summaryrefslogtreecommitdiff
path: root/emulator/smp.c
Commit message (Collapse)AuthorAgeFilesLines
* monitor: Inclusive language changesArchie Pusaka2021-09-211-4/+4
| | | | | | | | BT core spec 5.3 promotes the usage of inclusive languages. This CL replaces some terms with the more appropriate counterparts, such as "central", "peripheral", "link key", and "accept list" Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
* bthost: Add bthost_debug and use it on smp.cLuiz Augusto von Dentz2021-08-121-5/+15
| | | | | This adds bthost_debug which wraps util_debug and make use of it in smp.c.
* bthost: Add support for address types other then publicLuiz Augusto von Dentz2020-12-171-5/+19
| | | | | This properly initialize the address type according to the connection address.
* bthost: Always use conn->prnd for Pairing RandomLuiz Augusto von Dentz2020-12-171-5/+4
| | | | | Since it is now properly set with random bytes it shall be used when responding.
* bthost: Use bt_crypto_random_bytes to generate a Pairing RandomLuiz Augusto von Dentz2020-12-161-0/+2
| | | | | This makes it more consistent with how stacks are implemented instead of setting the response all zero which is not secure.
* emulator: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 20 GPL-2.0-or-later : 2 License: LGPL-2.1-or-later emulator/server.c emulator/amp.c emulator/hciemu.c emulator/vhci.c emulator/btdev.c emulator/serial.h emulator/le.h emulator/le.c emulator/main.c emulator/amp.h emulator/hciemu.h emulator/bthost.h emulator/btdev.h emulator/vhci.h emulator/serial.c emulator/phy.c emulator/smp.c emulator/phy.h emulator/bthost.c emulator/server.h License: GPL-2.0-or-later emulator/b1ee.c emulator/hfp.c
* build: Fix checking result of sizeof instead of memcmpLuiz Augusto von Dentz2016-08-251-1/+1
| | | | | | | | | | | | This can be easily spot when building with clang: emulator/smp.c:373:53: error: size argument in 'memcmp' call is a comparison [-Werror,-Wmemsize-comparison] if (memcmp(conn->pcnf, confirm, sizeof(conn->pcnf) != 0)) { tools/smp-tester.c:596:53: error: size argument in 'memcmp' call is a comparison [-Werror,-Wmemsize-comparison] if (memcmp(data->pcnf, confirm, sizeof(data->pcnf) != 0)) {
* emulator: Include Link Key in key distribution if BR/EDR is supportedJohan Hedberg2016-06-071-8/+14
|
* emulator/smp: Fix sending BR/EDR SMP Pairing Request as slaveJohan Hedberg2015-02-161-0/+3
|
* emulator: Use local includes for libbluetooth headersMarcel Holtmann2015-02-121-2/+2
|
* emulator/smp: Fix identity info PDU sending orderJohan Hedberg2015-01-201-3/+4
|
* emulator/bthost: Add support for triggering SMP over BR/EDRJohan Hedberg2015-01-071-0/+37
|
* emulator: Add SMP over BR/EDR supportJohan Hedberg2014-12-171-41/+99
|
* emulator/smp: Add passkey entry supportJohan Hedberg2014-12-031-3/+113
|
* emulator/smp: Add initial code for selecting authentication methodJohan Hedberg2014-12-031-0/+93
|
* emulator/smp: Add basic just-works LE SC pairing supportJohan Hedberg2014-12-031-3/+136
|
* emulator/smp: Add basic SC Public Key generation & exchange supportJohan Hedberg2014-12-031-1/+66
|
* emulator/smp: Add smp_send() helper that uses bthost_send_cid_v()Johan Hedberg2014-10-021-62/+61
|
* emulator/smp: Add full key distribution supportJohan Hedberg2014-09-221-16/+115
|
* emulator/bthost: Add skeleton for passing encryption changes to SMPJohan Hedberg2014-09-191-0/+15
|
* emulator/smp: Use proper defines for SMP opcodesJohan Hedberg2014-09-191-11/+10
|
* emulator/smp: Fix pairing response key dist. to what's actually supportedJohan Hedberg2014-09-181-2/+2
|
* emulator/smp: Set correct pairing response valuesJohan Hedberg2014-09-181-8/+10
|
* emulator: Fix up SMP Pairing Confirm/Random handlingJohan Hedberg2014-09-161-7/+22
|
* emulator: Add support for specifying SMP authentication requirementJohan Hedberg2014-09-161-8/+8
|
* emulator: Use explicit IO capability for bthostJohan Hedberg2014-09-131-2/+2
|
* monitor: Use 64-bit unsigned integer for random numberMarcel Holtmann2014-02-271-2/+1
|
* emulator: Use shared crypto code instead of custom functionsJohan Hedberg2014-02-261-224/+18
|
* emulator: Fix unaligned memory access compilation errorsAnderson Lizardo2014-01-211-2/+2
| | | | | The u128_xor() function does proper aligned access and accepts void * arguments, therefore the casts are unnecessary and trigger clang errors.
* emulator/bthost: Add SMP callback to fetch LTKJohan Hedberg2014-01-201-0/+14
|
* emulator/bthost: Add SMP supportJohan Hedberg2014-01-201-0/+469