aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_x509.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-04-30 11:46:11 +0200
committerMartin Willi <martin@revosec.ch>2013-07-18 12:17:53 +0200
commit3f55f203ee89e04511dc37b6a8ee7fe889b74c04 (patch)
tree4bfdf2a779c53a9048a6e2f93bfdadfb340e0302 /src/libstrongswan/plugins/openssl/openssl_x509.c
parent437a6feb07eaf515c9384bb04aa1609ddb391a6d (diff)
downloadstrongswan-3f55f203ee89e04511dc37b6a8ee7fe889b74c04.tar.bz2
strongswan-3f55f203ee89e04511dc37b6a8ee7fe889b74c04.tar.xz
openssl: show which critical X.509 extension is not supported
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_x509.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_x509.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_x509.c b/src/libstrongswan/plugins/openssl/openssl_x509.c
index c98e8055d..f15f511e7 100644
--- a/src/libstrongswan/plugins/openssl/openssl_x509.c
+++ b/src/libstrongswan/plugins/openssl/openssl_x509.c
@@ -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;
}