openssl: show which critical X.509 extension is not supported

This commit is contained in:
Martin Willi
2013-07-18 12:17:53 +02:00
parent 437a6feb07
commit 3f55f203ee
@@ -977,7 +977,12 @@ static bool parse_extensions(private_openssl_x509_t *this)
"libstrongswan.x509.enforce_critical", TRUE);
if (!ok)
{
DBG1(DBG_LIB, "found unsupported critical X.509 extension");
char buf[80] = "";
OBJ_obj2txt(buf, sizeof(buf),
X509_EXTENSION_get_object(ext), 0);
DBG1(DBG_LIB, "found unsupported critical X.509 "
"extension: %s", buf);
}
break;
}