File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
features/FEATURE_BLE/ble/generic Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -661,6 +661,11 @@ class SecurityDb {
661
661
virtual void set_restore (bool reload) { };
662
662
663
663
private:
664
+ /* *
665
+ * Get an entry for a new connection not present in the db yet. This will find a free entry
666
+ * or use a disconnected entry by reseting all the stored information.
667
+ * @return empty entry for the new connection
668
+ */
664
669
virtual SecurityDistributionFlags_t* get_free_entry_flags () {
665
670
/* get a free one if available */
666
671
SecurityDistributionFlags_t* match = NULL ;
@@ -690,10 +695,23 @@ class SecurityDb {
690
695
return match;
691
696
}
692
697
698
+ /* *
699
+ * How many entries can be stored in the databes.
700
+ * @return max number of entries
701
+ */
693
702
virtual uint8_t get_entry_count () = 0;
694
703
704
+ /* *
705
+ * Return database entry based on its index.
706
+ * @param index index from 0 to get_entry_count()
707
+ * @return databse entry stored at index
708
+ */
695
709
virtual SecurityDistributionFlags_t* get_entry_handle_by_index (uint8_t index) = 0;
696
710
711
+ /* *
712
+ * Delete all the information.
713
+ * @param db_handle handle for the entry to be reset
714
+ */
697
715
virtual void reset_entry (entry_handle_t db_handle) = 0;
698
716
699
717
virtual SecurityEntryIdentity_t* read_in_entry_peer_identity (entry_handle_t db_handle) = 0;
You can’t perform that action at this time.
0 commit comments