diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-04-17 20:23:31 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-04-17 20:23:31 +0000 |
commit | 8eeb796a51a3b86db36a17fde4b73016154dafe5 (patch) | |
tree | fec3548f59b322ac63da2b21d00c9815ad31579d /src | |
parent | 5434d5f7e94c34acf51f2554f7064ff58a12b8dd (diff) | |
download | strongswan-8eeb796a51a3b86db36a17fde4b73016154dafe5.tar.bz2 strongswan-8eeb796a51a3b86db36a17fde4b73016154dafe5.tar.xz |
changed logging of crl writing to old style
Diffstat (limited to 'src')
-rw-r--r-- | src/charon/plugins/stroke/stroke_cred.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/charon/plugins/stroke/stroke_cred.c b/src/charon/plugins/stroke/stroke_cred.c index 38656b8c5..7d0d14699 100644 --- a/src/charon/plugins/stroke/stroke_cred.c +++ b/src/charon/plugins/stroke/stroke_cred.c @@ -534,7 +534,7 @@ static void cache_cert(private_stroke_cred_t *this, certificate_t *cert) { if (cert->get_type(cert) == CERT_X509_CRL && this->cachecrl) { - /* CRLs get cached to /etc/ipsec.d/crls/authkeyId.der */ + /* CRLs get written to /etc/ipsec.d/crls/authkeyId.crl */ crl_t *crl = (crl_t*)cert; cert->get_ref(cert); @@ -548,17 +548,17 @@ static void cache_cert(private_stroke_cred_t *this, certificate_t *cert) id = crl->get_authKeyIdentifier(crl); chunk = id->get_encoding(id); hex = chunk_to_hex(chunk, FALSE); - snprintf(buf, sizeof(buf), "%s/%s.der", CRL_DIR, hex); + snprintf(buf, sizeof(buf), "%s/%s.crl", CRL_DIR, hex); free(hex); chunk = cert->get_encoding(cert); if (chunk_write(chunk, buf, 022, TRUE)) { - DBG1(DBG_CFG, "cached crl to %s", buf); + DBG1(DBG_CFG, " written crl to '%s'", buf); } else { - DBG1(DBG_CFG, "caching crl to %s failed", buf); + DBG1(DBG_CFG, " writing crl to '%s' failed", buf); } free(chunk.ptr); } |