diff options
| author | Martin Willi <martin@strongswan.org> | 2008-04-17 11:22:37 +0000 |
|---|---|---|
| committer | Martin Willi <martin@strongswan.org> | 2008-04-17 11:22:37 +0000 |
| commit | 233b853dfa3abce9b38cad360f486b373e8e50ae (patch) | |
| tree | 8b28444b8de1c64e4f785a59109eb739c16ca59d /src/charon/plugins/sql | |
| parent | 46a5604a04dd4f9cb2f81708f1628152649cc2da (diff) | |
| download | strongswan-233b853dfa3abce9b38cad360f486b373e8e50ae.tar.bz2 strongswan-233b853dfa3abce9b38cad360f486b373e8e50ae.tar.xz | |
extended credential_set_t interface by a cache_cert() method
allows persistent or in-memory caching of fetched certificates
Diffstat (limited to 'src/charon/plugins/sql')
| -rw-r--r-- | src/charon/plugins/sql/sql_cred.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/charon/plugins/sql/sql_cred.c b/src/charon/plugins/sql/sql_cred.c index a504b23af..9d91973c2 100644 --- a/src/charon/plugins/sql/sql_cred.c +++ b/src/charon/plugins/sql/sql_cred.c @@ -332,13 +332,20 @@ static enumerator_t* create_shared_enumerator(private_sql_cred_t *this, } /** + * Implementation of credential_set_t.cache_cert. + */ +static void cache_cert(private_sql_cred_t *this, certificate_t *cert) +{ + /* TODO: implement CRL caching to database */ +} + +/** * Implementation of sql_cred_t.destroy. */ static void destroy(private_sql_cred_t *this) { free(this); } - /** * Described in header. */ @@ -350,6 +357,7 @@ sql_cred_t *sql_cred_create(database_t *db) this->public.set.create_cert_enumerator = (void*)create_cert_enumerator; this->public.set.create_shared_enumerator = (void*)create_shared_enumerator; this->public.set.create_cdp_enumerator = (void*)return_null; + this->public.set.cache_cert = (void*)cache_cert; this->public.destroy = (void(*)(sql_cred_t*))destroy; this->db = db; |
