Be less verbose if loading PKCS#11 certificate fails
authorMartin Willi <martin@revosec.ch>
Mon, 15 Oct 2012 16:26:26 +0000 (18:26 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 24 Oct 2012 11:07:53 +0000 (13:07 +0200)
src/libstrongswan/plugins/pkcs11/pkcs11_creds.c

index a3aa99a..410af38 100644 (file)
@@ -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);
                }