aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/credentials/credential_set.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/charon/credentials/credential_set.h')
-rw-r--r--src/charon/credentials/credential_set.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/charon/credentials/credential_set.h b/src/charon/credentials/credential_set.h
index a4e891a84..41c5b1674 100644
--- a/src/charon/credentials/credential_set.h
+++ b/src/charon/credentials/credential_set.h
@@ -87,7 +87,17 @@ struct credential_set_t {
* @return an enumerator over CDPs as char*
*/
enumerator_t *(*create_cdp_enumerator)(credential_set_t *this,
- certificate_type_t type, identification_t *id);
+ certificate_type_t type, identification_t *id);
+
+ /**
+ * Cache a certificate in the credential set.
+ *
+ * The caching policy is implementation dependent, the sets may cache the
+ * certificate in-memory, persistent on disk or not at all.
+ *
+ * @param cert certificate to cache
+ */
+ void (*cache_cert)(credential_set_t *this, certificate_t *cert);
};
#endif /* CREDENTIAL_SET_H_ @} */