aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/x509/x509_plugin.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-05-21 15:52:20 +0200
committerMartin Willi <martin@revosec.ch>2010-05-21 16:25:51 +0200
commit13c593f126eea2b64cedd8764652d23b77c97f62 (patch)
tree826a5ef5ec3301d27eea7f082b55463d1a84e342 /src/libstrongswan/plugins/x509/x509_plugin.c
parentaab861608a06353fe297da66f49957ce12529bc1 (diff)
downloadstrongswan-13c593f126eea2b64cedd8764652d23b77c97f62.tar.bz2
strongswan-13c593f126eea2b64cedd8764652d23b77c97f62.tar.xz
Added support for CRL generation to x509 plugin
Diffstat (limited to 'src/libstrongswan/plugins/x509/x509_plugin.c')
-rw-r--r--src/libstrongswan/plugins/x509/x509_plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/x509/x509_plugin.c b/src/libstrongswan/plugins/x509/x509_plugin.c
index e71c55efc..8391781e2 100644
--- a/src/libstrongswan/plugins/x509/x509_plugin.c
+++ b/src/libstrongswan/plugins/x509/x509_plugin.c
@@ -52,6 +52,8 @@ static void destroy(private_x509_plugin_t *this)
lib->creds->remove_builder(lib->creds,
(builder_function_t)x509_crl_load);
lib->creds->remove_builder(lib->creds,
+ (builder_function_t)x509_crl_gen);
+ lib->creds->remove_builder(lib->creds,
(builder_function_t)x509_ocsp_request_gen);
lib->creds->remove_builder(lib->creds,
(builder_function_t)x509_ocsp_response_load);
@@ -81,6 +83,8 @@ plugin_t *x509_plugin_create()
(builder_function_t)x509_ac_load);
lib->creds->add_builder(lib->creds, CRED_CERTIFICATE, CERT_X509_CRL,
(builder_function_t)x509_crl_load);
+ lib->creds->add_builder(lib->creds, CRED_CERTIFICATE, CERT_X509_CRL,
+ (builder_function_t)x509_crl_gen);
lib->creds->add_builder(lib->creds, CRED_CERTIFICATE, CERT_X509_OCSP_REQUEST,
(builder_function_t)x509_ocsp_request_gen);
lib->creds->add_builder(lib->creds, CRED_CERTIFICATE, CERT_X509_OCSP_RESPONSE,