diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2008-02-07 08:31:51 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2008-02-07 08:31:51 +0000 |
commit | 14722edf3004aed43ab75e26a40ac1dcf25392eb (patch) | |
tree | 9927d5cfa57d1bc40d160841af13079cd318b7a3 /src/ne_gnutls.c | |
parent | f372cfa8eea85d6eaf5b674a5a001e30c3d294dc (diff) | |
download | neon-14722edf3004aed43ab75e26a40ac1dcf25392eb.tar.gz |
* src/ne_gnutls.c (match_hostname, check_identity): Tone down
the debugging output.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1332 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_gnutls.c')
-rw-r--r-- | src/ne_gnutls.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ne_gnutls.c b/src/ne_gnutls.c index 5436cd6..2629a99 100644 --- a/src/ne_gnutls.c +++ b/src/ne_gnutls.c @@ -329,7 +329,6 @@ void ne_ssl_cert_validity_time(const ne_ssl_certificate *cert, static int match_hostname(char *cn, const char *hostname) { const char *dot; - NE_DEBUG(NE_DBG_SSL, "Match %s on %s...\n", cn, hostname); dot = strchr(hostname, '.'); if (dot == NULL) { char *pnt = strchr(cn, '.'); @@ -443,7 +442,10 @@ static int check_identity(const ne_uri *server, gnutls_x509_crt cert, } } - NE_DEBUG(NE_DBG_SSL, "Identity match: %s\n", match ? "good" : "bad"); + if (*hostname) + NE_DEBUG(NE_DBG_SSL, "ssl: Identity match for '%s': %s\n", hostname, + match ? "good" : "bad"); + return match ? 0 : 1; } |