list ca certificates

This commit is contained in:
Andreas Steffen 2006-05-30 07:48:29 +00:00
parent f5a4518a74
commit e1c00b96a6
1 changed files with 3 additions and 2 deletions

View File

@ -128,7 +128,7 @@ static void load_end_certificate(const char *filename, identification_t **idp)
snprintf(path, sizeof(path), "%s/%s", CERTIFICATE_DIR, filename); 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) if (cert)
{ {
@ -141,7 +141,7 @@ static void load_end_certificate(const char *filename, identification_t **idp)
id = subject; id = subject;
*idp = id->clone(id); *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) if (msg->type = STR_LIST_CERTS)
{ {
charon->credentials->log_certificates(charon->credentials, this->stroke_logger, utc); charon->credentials->log_certificates(charon->credentials, this->stroke_logger, utc);
charon->credentials->log_ca_certificates(charon->credentials, this->stroke_logger, utc);
} }
} }