@@ -141,8 +141,7 @@ class SecurityManager {
141
141
/* *
142
142
* Deliver the requested whitelist to the application.
143
143
*
144
- * @param[in] whitelist whitelist created based on the bonding table,
145
- * caller transfers the memory ownership
144
+ * @param[in] whitelist pointer to the whitelist filled with entries based on bonding information
146
145
*/
147
146
virtual void whitelistFromBondTable (Gap::Whitelist_t* whitelist) {
148
147
if (whitelist) {
@@ -372,8 +371,8 @@ class SecurityManager {
372
371
*
373
372
* @param[in] whitelist Preallocated whitelist which will be filled up to its capacity.
374
373
* If whitelist already contains entries this will be appended to.
375
- * Ownership of memory is trasnferred from the caller. It will be
376
- * returned in the generated event .
374
+ * Do not access the whitelist until callback has been called,
375
+ * returning the filled whitelist .
377
376
*
378
377
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
379
378
*/
@@ -571,7 +570,7 @@ class SecurityManager {
571
570
* by a call to linkEncryptionResult in the event handler when the action is completed.
572
571
*
573
572
* @param[in] connectionHandle Handle to identify the connection.
574
- * @param[in] encryption
573
+ * @param[in] encryption encryption state requested
575
574
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
576
575
*/
577
576
virtual ble_error_t setLinkEncryption (ble::connection_handle_t connectionHandle, ble::link_encryption_t encryption) {
@@ -584,7 +583,7 @@ class SecurityManager {
584
583
* Return the size of the encryption key used on this link.
585
584
*
586
585
* @param[in] connectionHandle Handle to identify the connection.
587
- * @param[out] size Size of the encryption key in bytes
586
+ * @param[out] byteSize Size of the encryption key in bytes.
588
587
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
589
588
*/
590
589
virtual ble_error_t getEncryptionKeySize (ble::connection_handle_t connectionHandle, uint8_t *byteSize) {
@@ -607,21 +606,6 @@ class SecurityManager {
607
606
return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porters: override this API if security is supported. */
608
607
}
609
608
610
- // //////////////////////////////////////////////////////////////////////////
611
- // Privacy
612
- //
613
-
614
- /* *
615
- * Set the time after which the private adress will be regenerated.
616
- *
617
- * @param[in] timeout_in_seconds How often (in seconds) the private address should be regenerated.
618
- * @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
619
- */
620
- virtual ble_error_t setPrivateAddressTimeout (uint16_t timeout_in_seconds) {
621
- (void ) timeout_in_seconds;
622
- return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porters: override this API if security is supported. */
623
- }
624
-
625
609
// //////////////////////////////////////////////////////////////////////////
626
610
// Authentication
627
611
//
@@ -833,8 +817,8 @@ class SecurityManager {
833
817
*
834
818
* Get the security status of a connection.
835
819
*
836
- * @param[in] connectionHandle Handle to identify the connection.
837
- * @param[out] securityStatusP Security status.
820
+ * @param[in] connectionHandle Handle to identify the connection.
821
+ * @param[out] securityStatus Security status.
838
822
*
839
823
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
840
824
*/
0 commit comments