diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2006-05-30 07:48:29 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2006-05-30 07:48:29 +0000 |
commit | e1c00b96a6182c20b3a78d4bff70e77510e230a6 (patch) | |
tree | a74b97dac7226e821815e7b6fc200c2e1b1b1bda | |
parent | f5a4518a74bda8782aeb004be1764c649361c57f (diff) | |
download | strongswan-e1c00b96a6182c20b3a78d4bff70e77510e230a6.tar.bz2 strongswan-e1c00b96a6182c20b3a78d4bff70e77510e230a6.tar.xz |
list ca certificates
-rwxr-xr-x | src/charon/threads/stroke_interface.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/charon/threads/stroke_interface.c b/src/charon/threads/stroke_interface.c index e31be8a1c..fab3e8bd5 100755 --- a/src/charon/threads/stroke_interface.c +++ b/src/charon/threads/stroke_interface.c @@ -128,7 +128,7 @@ static void load_end_certificate(const char *filename, identification_t **idp) snprintf(path, sizeof(path), "%s/%s", CERTIFICATE_DIR, filename); } - cert = x509_create_from_file(path); + cert = x509_create_from_file(path, "end entity certificate"); if (cert) { @@ -141,7 +141,7 @@ static void load_end_certificate(const char *filename, identification_t **idp) id = subject; *idp = id->clone(id); } - cert->destroy(cert); + charon->credentials->add_certificate(charon->credentials, cert); } } @@ -474,6 +474,7 @@ static void stroke_list(private_stroke_t *this, stroke_msg_t *msg, bool utc) if (msg->type = STR_LIST_CERTS) { charon->credentials->log_certificates(charon->credentials, this->stroke_logger, utc); + charon->credentials->log_ca_certificates(charon->credentials, this->stroke_logger, utc); } } |