BLE: fix references to oob_rand_t.

pull/6188/head
Vincent Coubard 2018-02-27 11:43:50 +00:00
parent 4010bade89
commit 361ae8c7a3
4 changed files with 8 additions and 8 deletions

View File

@ -227,7 +227,7 @@ public:
virtual ble_error_t oobReceived(
const address_t *address,
const oob_rand_t *random,
const oob_lesc_value_t *random,
const oob_confirm_t *confirm
);
@ -363,7 +363,7 @@ private:
static bool crypto_toolbox_f4(
const public_key_t &U,
const public_key_t &V,
const oob_rand_t &X,
const oob_lesc_value_t &X,
oob_confirm_t &confirm
);
#endif
@ -470,9 +470,9 @@ private:
/** There is always only one OOB data set stored at a time */
address_t _peer_sc_oob_address;
oob_rand_t _peer_sc_oob_random;
oob_lesc_value_t _peer_sc_oob_random;
oob_confirm_t _peer_sc_oob_confirm;
oob_rand_t _local_sc_oob_random;
oob_lesc_value_t _local_sc_oob_random;
static const size_t MAX_CONTROL_BLOCKS = 5;
ControlBlock_t _control_blocks[MAX_CONTROL_BLOCKS];

View File

@ -974,9 +974,9 @@ public:
* If the verification failed this will not be called and cancel_pairing will be called instead.
*
* @param[in] connection connection handle
* @param[in] oob_rand_t random number sent from the local device to be used in further
* @param[in] local_random random number sent from the local device to be used in further
* calculations by the stack, set to 0 if peer reported no OOB present
* @param[in] oob_rand_t random number from the peer to be used in further
* @param[in] peer_random random number from the peer to be used in further
* calculations by the stack, set to 0 if no OOB data received
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
*/

View File

@ -170,7 +170,7 @@ public:
MOCK_METHOD3(
oob_data_verified,
ble_error_t(connection_handle_t, const oob_rand_t &, const oob_rand_t &)
ble_error_t(connection_handle_t, const oob_lesc_value_t &, const oob_lesc_value_t &)
);
// get the event handler present in the mock object.

View File

@ -59,7 +59,7 @@ public:
MOCK_METHOD2(legacyPairingOobGenerated, void(const address_t *, const oob_tk_t *));
MOCK_METHOD3(oobGenerated, void(const address_t *, const oob_rand_t *, const oob_confirm_t *));
MOCK_METHOD3(oobGenerated, void(const address_t *, const oob_lesc_value_t *, const oob_confirm_t *));
MOCK_METHOD3(signingKey, void(connection_handle_t, const csrk_t *, bool));
};