Skip to content

Commit ca44ce3

Browse files
committed
BLE - Conditionally expose SecurityManager::enableSigning
1 parent eeb14c5 commit ca44ce3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

features/FEATURE_BLE/ble/SecurityManager.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ class SecurityManager {
644644
*/
645645
ble_error_t setKeypressNotification(bool enabled = true);
646646

647+
#if BLE_FEATURE_SIGNING
647648
/**
648649
* Request generation and exchange of signing keys so that packet signing can be utilised
649650
* on this connection.
@@ -655,6 +656,7 @@ class SecurityManager {
655656
* @return BLE_ERROR_NONE or appropriate error code indicating the failure reason.
656657
*/
657658
ble_error_t enableSigning(ble::connection_handle_t connectionHandle, bool enabled = true);
659+
#endif // BLE_FEATURE_SIGNING
658660

659661
/**
660662
* Give a hint to the stack that the master/slave role might change in the future.

features/FEATURE_BLE/source/SecurityManager.tpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,15 @@ ble_error_t SecurityManager<Impl>::setKeypressNotification(bool enabled) {
137137
return impl()->setKeypressNotification_(enabled);
138138
}
139139

140+
#if BLE_FEATURE_SIGNING
140141
template <class Impl>
141142
ble_error_t SecurityManager<Impl>::enableSigning(
142143
ble::connection_handle_t connectionHandle,
143144
bool enabled
144145
) {
145146
return impl()->enableSigning_(connectionHandle, enabled);
146147
}
148+
#endif // BLE_FEATURE_SIGNING
147149

148150
template <class Impl>
149151
ble_error_t SecurityManager<Impl>::setHintFutureRoleReversal(bool enable) {

0 commit comments

Comments
 (0)