Be less verbose if loading PKCS#11 certificate fails
This commit is contained in:
@@ -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,
|
cert = lib->creds->create(lib->creds, CRED_CERTIFICATE, CERT_X509,
|
||||||
BUILD_BLOB_ASN1_DER, data, BUILD_END);
|
BUILD_BLOB_ASN1_DER, data, BUILD_END);
|
||||||
free(data.ptr);
|
free(data.ptr);
|
||||||
if (cert)
|
if (!cert)
|
||||||
{
|
|
||||||
DBG1(DBG_CFG, "loaded PKCS#11 certificate '%Y'",
|
|
||||||
cert->get_subject(cert));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
DBG1(DBG_CFG, "parsing PKCS#11 certificate %#B failed", &keyid);
|
DBG1(DBG_CFG, "parsing PKCS#11 certificate %#B failed", &keyid);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user