summaryrefslogtreecommitdiff
path: root/peripheral
Commit message (Collapse)AuthorAgeFilesLines
* build: Fix errors with glibc < 2.25Fabrice Fontaine2022-02-151-2/+2
| | | | | | | | | | | | | | | | | | getrandom and sys/random.h are only available since glibc 2.25: https://www.gnu.org/software/gnulib/manual/html_node/sys_002frandom_002eh.html resulting in the following build failures since version 5.63 and https://git.kernel.org/pub/scm/bluetooth/bluez.git/log/?qt=grep&q=getrandom: plugins/autopair.c:20:24: fatal error: sys/random.h: No such file or directory #include <sys/random.h> ^ To fix this build failure, add util_getrandom and a fallback (borrowed from pipewire and licensed under MIT): https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/master/src/pipewire/utils.c Fixes: - http://autobuild.buildroot.org/results/6b8870d12e0804d6154230a7322c49416c1dc0e2
* build: Fix build when sanitizer are enabledLuiz Augusto von Dentz2021-12-231-1/+1
| | | | This fixes various issues found when sanitizers are enabled.
* peripheral: Replace random number generation functionTedd Ho-Jeong An2021-12-081-5/+6
| | | | | | | | This patch replaces the rand() function to the getrandom() syscall. It was reported by the Coverity scan rand() should not be used for security-related applications, because linear congruential algorithms are too easy to break
* peripheral: Fix unchecked return valueTedd Ho-Jeong An2021-10-181-1/+2
| | | | | This patch fixes the unchecked return value(CWE-252) issues reported by the Coverity.
* peripheral: Cleanup deprecated symbolic file permissionsBrian Gix2021-02-231-2/+1
|
* peripheral: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-2111-154/+11
| | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 11 License: LGPL-2.1-or-later peripheral/log.h peripheral/main.c peripheral/efivars.c peripheral/attach.h peripheral/gatt.c peripheral/attach.c peripheral/log.c peripheral/gap.h peripheral/efivars.h peripheral/gap.c peripheral/gatt.h
* shared/gatt-client: Add support for EATT featuresLuiz Augusto von Dentz2020-03-021-1/+1
| | | | | This enables EATT in the Client Features if the EATT characteristic is present in the database.
* peripheral: Walk rp->opcodes directly instead of interim variableMarcel Holtmann2019-05-071-3/+1
|
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-064-0/+4
|
* shared/mainloop: Remove mainloop_set_signalLuiz Augusto von Dentz2018-12-051-9/+1
| | | | | This removes mainloop_set_signal and replaces it usage with mainloop_run_with_signal.
* Add support for requiring min key size for access GATT characteristicsSzymon Janc2018-03-261-1/+1
| | | | | | This allows to configure bluetoothd to require minimum encryption key size when accessing GATT server characteristics. It is a global configuration option affecting whole GATT database.
* shared/gatt-client: Allow multiple ready callbacksLuiz Augusto von Dentz2017-07-041-2/+2
| | | | | | This makes the ready callbacks much more convenient to track when the client is ready since its is now possible to notify more than on client at the same time.
* shared/att: Add ext_signed flag to be able to use external cryptoMariusz Skamra2015-05-191-1/+1
| | | | | | | | | | | | | Due to the issues with CSRK tests ext_signed flag has been added to allow android/gatt handle signed write operations. This patch fixes following tests: GAP__TC_SEC_CSIGN_BV_02_C GAP__TC_SEC_CSIGN_BI_01_C GAP__TC_SEC_CSIGN_BI_02_C GAP__TC_SEC_CSIGN_BI_03_C GAP__TC_SEC_CSIGN_BI_04_C SM__TC_SIGN_BV_03_C
* gatt: Fix NULL pointer dereferenceAndrei Emeltchenko2015-05-171-0/+1
| | | | Safely return in case of error.
* shared/att: Rename sec_level to securityLuiz Augusto von Dentz2015-04-291-1/+1
|
* peripheral: Add initial code for btsensor applicationMarcel Holtmann2015-04-2811-0/+1589