aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-10-15 18:26:26 +0200
committerMartin Willi <martin@revosec.ch>2012-10-24 13:07:53 +0200
commit5d4c27d077ef0f21a9ab42a9735172c28e3683ea (patch)
tree81df80a3ad3492e0761e8e957cdf78bea78d9b3b /src
parent05e266ea9d7fb51c5d7c3dc2a3272f6b351338e4 (diff)
downloadstrongswan-5d4c27d077ef0f21a9ab42a9735172c28e3683ea.tar.bz2
strongswan-5d4c27d077ef0f21a9ab42a9735172c28e3683ea.tar.xz
Be less verbose if loading PKCS#11 certificate fails
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/plugins/pkcs11/pkcs11_creds.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libstrongswan/plugins/pkcs11/pkcs11_creds.c b/src/libstrongswan/plugins/pkcs11/pkcs11_creds.c
index a3aa99a6a..410af3856 100644
--- a/src/libstrongswan/plugins/pkcs11/pkcs11_creds.c
+++ b/src/libstrongswan/plugins/pkcs11/pkcs11_creds.c
@@ -340,12 +340,7 @@ certificate_t *pkcs11_creds_load(certificate_type_t type, va_list args)
cert = lib->creds->create(lib->creds, CRED_CERTIFICATE, CERT_X509,
BUILD_BLOB_ASN1_DER, data, BUILD_END);
free(data.ptr);
- if (cert)
- {
- DBG1(DBG_CFG, "loaded PKCS#11 certificate '%Y'",
- cert->get_subject(cert));
- }
- else
+ if (!cert)
{
DBG1(DBG_CFG, "parsing PKCS#11 certificate %#B failed", &keyid);
}