]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - src/charon-tkm/src/tkm/tkm_nonceg.h
Add context id getter to TKM nonce generator
[thirdparty/strongswan.git] / src / charon-tkm / src / tkm / tkm_nonceg.h
index 907890bbd1649be066f6dcb7ad6629089550c70a..25ec48a64a775cc60c4728e4047429b8510e527e 100644 (file)
@@ -20,6 +20,7 @@
 typedef struct tkm_nonceg_t tkm_nonceg_t;
 
 #include <library.h>
+#include <tkm/types.h>
 
 /**
  * nonce_gen_t implementation using the trusted key manager.
@@ -30,6 +31,14 @@ struct tkm_nonceg_t {
         * Implements nonce_gen_t.
         */
        nonce_gen_t nonce_gen;
+
+       /**
+        * Get nonce context id.
+        *
+        * @return      context id of this nonce generator.
+        */
+       nc_id_type (*get_id)(tkm_nonceg_t * const this);
+
 };
 
 /**