Skip to content

Commit 7a7c506

Browse files
moved the funcs back from API to impl
1 parent 4768bc7 commit 7a7c506

File tree

2 files changed

+29
-38
lines changed

2 files changed

+29
-38
lines changed

connectivity/FEATURE_BLE/include/ble/SecurityManager.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -668,34 +668,6 @@ class SecurityManager
668668
*/
669669
ble_error_t setHintFutureRoleReversal(bool enable = true);
670670

671-
/**
672-
* Set the time after which an event will be generated unless we received a packet with
673-
* a valid MIC.
674-
*
675-
* @param[in] connectionHandle Handle to identify the connection.
676-
* @param[in] timeout_in_ms Timeout to set.
677-
*
678-
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
679-
*/
680-
ble_error_t setAuthenticationTimeout(
681-
connection_handle_t connection,
682-
uint32_t timeout_in_ms
683-
);
684-
685-
/**
686-
* Get the time after which an event will be generated unless we received a packet with
687-
* a valid MIC.
688-
*
689-
* @param[in] connectionHandle Handle to identify the connection.
690-
* @param[in] timeout_in_ms Returns the timeout.
691-
*
692-
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
693-
*/
694-
ble_error_t getAuthenticationTimeout(
695-
connection_handle_t connection,
696-
uint32_t *timeout_in_ms
697-
);
698-
699671
////////////////////////////////////////////////////////////////////////////
700672
// Encryption
701673
//

connectivity/FEATURE_BLE/libraries/ble-api-implementation/include/ble/internal/SecurityManagerImpl.h

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,6 @@ class SecurityManager :
118118

119119
ble_error_t setHintFutureRoleReversal(bool enable = true);
120120

121-
ble_error_t setAuthenticationTimeout(
122-
connection_handle_t connection,
123-
uint32_t timeout_in_ms
124-
);
125-
126-
ble_error_t getAuthenticationTimeout(
127-
connection_handle_t connection,
128-
uint32_t *timeout_in_ms
129-
);
130-
131121
////////////////////////////////////////////////////////////////////////////
132122
// Encryption
133123
//
@@ -196,6 +186,35 @@ class SecurityManager :
196186
/* ===================================================================== */
197187
/* private implementation follows */
198188

189+
private:
190+
/**
191+
* Set the time after which an event will be generated unless we received a packet with
192+
* a valid MIC.
193+
*
194+
* @param[in] connectionHandle Handle to identify the connection.
195+
* @param[in] timeout_in_ms Timeout to set.
196+
*
197+
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
198+
*/
199+
ble_error_t setAuthenticationTimeout(
200+
connection_handle_t connection,
201+
uint32_t timeout_in_ms
202+
);
203+
204+
/**
205+
* Get the time after which an event will be generated unless we received a packet with
206+
* a valid MIC.
207+
*
208+
* @param[in] connectionHandle Handle to identify the connection.
209+
* @param[in] timeout_in_ms Returns the timeout.
210+
*
211+
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
212+
*/
213+
ble_error_t getAuthenticationTimeout(
214+
connection_handle_t connection,
215+
uint32_t *timeout_in_ms
216+
);
217+
199218
/* implements PalSecurityManager::EventHandler */
200219
private:
201220
////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)