extended credential_set_t interface by a cache_cert() method

allows persistent or in-memory caching of fetched certificates
This commit is contained in:
Martin Willi
2008-04-17 11:22:37 +00:00
parent 46a5604a04
commit 233b853dfa
12 changed files with 82 additions and 10 deletions
+11 -1
View File
@@ -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_ @} */