]> git.ipfire.org Git - people/ms/strongswan.git/blobdiff - src/libstrongswan/credentials/credential_manager.h
Merge branch 'ikev1-clean' into ikev1-master
[people/ms/strongswan.git] / src / libstrongswan / credentials / credential_manager.h
index 8e8f04b8cff4a167b38fbc60b25f5e6cecabd967..ad789c718a5788a28f2a6c7901b56d0cf58c82c8 100644 (file)
@@ -89,7 +89,7 @@ struct credential_manager_t {
         * @param type          kind of requested shared key
         * @param first         first subject between key is shared
         * @param second        second subject between key is shared
-        * @return                      enumerator over shared keys
+        * @return                      enumerator over (shared_key_t*,id_match_t,id_match_t)
         */
        enumerator_t *(*create_shared_enumerator)(credential_manager_t *this,
                                                                shared_key_type_t type,
@@ -230,10 +230,14 @@ struct credential_manager_t {
         * operation, sets may be added for the calling thread only. This
         * does not require a write lock and is therefore a much cheaper
         * operation.
+        * The exclusive option allows to disable all other credential sets
+        * until the set is deregistered.
         *
         * @param set           set to register
+        * @param exclusive     TRUE to disable all other sets for this thread
         */
-       void (*add_local_set)(credential_manager_t *this, credential_set_t *set);
+       void (*add_local_set)(credential_manager_t *this, credential_set_t *set,
+                                                 bool exclusive);
 
        /**
         * Unregister a thread local credential set from the manager.