aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-02-04 01:15:58 (GMT)
committerJouni Malinen <j@w1.fi>2008-02-04 01:15:58 (GMT)
commit7005c65f649ee70fcdd2c53fd27988ff7a291b80 (patch)
treeaa7a2167ec864575cb69137ab4094a8c4bba5f41
parent3a5b54a6886b0ed3bdd8c0f829f5b45977521fa6 (diff)
downloadhostap-history-7005c65f649ee70fcdd2c53fd27988ff7a291b80.zip
hostap-history-7005c65f649ee70fcdd2c53fd27988ff7a291b80.tar.gz
hostap-history-7005c65f649ee70fcdd2c53fd27988ff7a291b80.tar.bz2
Added more debug to issuer name validation error
-rw-r--r--src/tls/x509v3.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tls/x509v3.c b/src/tls/x509v3.c
index 484c54b..4da4891 100644
--- a/src/tls/x509v3.c
+++ b/src/tls/x509v3.c
@@ -1567,6 +1567,14 @@ int x509_certificate_chain_validate(struct x509_certificate *trusted,
&cert->next->subject) != 0) {
wpa_printf(MSG_DEBUG, "X509: Certificate "
"chain issuer name mismatch");
+ x509_name_string(&cert->issuer, buf,
+ sizeof(buf));
+ wpa_printf(MSG_DEBUG, "X509: cert issuer: %s",
+ buf);
+ x509_name_string(&cert->next->subject, buf,
+ sizeof(buf));
+ wpa_printf(MSG_DEBUG, "X509: next cert "
+ "subject: %s", buf);
*reason = X509_VALIDATE_CERTIFICATE_UNKNOWN;
return -1;
}