@@ -441,7 +441,7 @@ class SecurityManager {
441
441
* support out-of-band exchanges of security data.
442
442
* @param[in] passkey To specify a static passkey.
443
443
* @param[in] signing Generate and distribute signing key during pairing
444
- * @param[in] dbPath Path to the folder used to store keys in the filesystem,
444
+ * @param[in] dbPath Path to the file used to store keys in the filesystem,
445
445
* if NULL keys will be only stored in memory
446
446
*
447
447
*
@@ -452,17 +452,33 @@ class SecurityManager {
452
452
SecurityIOCapabilities_t iocaps = IO_CAPS_NONE,
453
453
const Passkey_t passkey = NULL ,
454
454
bool signing = true ,
455
- const char *dbPath = NULL ) {
455
+ const char *dbFilepath = NULL ) {
456
456
/* Avoid compiler warnings about unused variables. */
457
457
(void )enableBonding;
458
458
(void )requireMITM;
459
459
(void )iocaps;
460
460
(void )passkey;
461
- (void )dbPath ;
461
+ (void )dbFilepath ;
462
462
463
463
return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porters: override this API if security is supported. */
464
464
}
465
465
466
+ /* *
467
+ * Change the file used for the security database. If path is invalid or a NULL is passed
468
+ * keys will only be stored in memory.
469
+ *
470
+ * @note This operation is only allowed with no active connections.
471
+ *
472
+ * @param[in] dbPath Path to the file used to store keys in the filesystem,
473
+ * if NULL keys will be only stored in memory
474
+ *
475
+ * @return BLE_ERROR_NONE on success.
476
+ */
477
+ virtual ble_error_t setDatabaseFilepath (const char *dbFilepath = NULL ) {
478
+ (void )dbFilepath;
479
+ return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porters: override this API if security is supported. */
480
+ }
481
+
466
482
/* *
467
483
* Notify all registered onShutdown callbacks that the SecurityManager is
468
484
* about to be shutdown and clear all SecurityManager state of the
0 commit comments