From 658f6c2090db2bbf4c22b2e8244bc261dd175d70 Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 24 Jul 2008 23:02:36 +0000 Subject: * src/ne_session.c [NE_HAVE_SSL] (ne__ssl_match_hostname): New function, merged from duplicate copies in ne_openssl.c/ne_gnutls.c. * src/ne_private.h (ne__ssl_match_hostname): New prototype. * src/ne_openssl.c, src/ne_gnutls.c (match_hostname): Remove function. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1514 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845 --- src/ne_private.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ne_private.h') diff --git a/src/ne_private.h b/src/ne_private.h index 55f09e0..9ebfa6b 100644 --- a/src/ne_private.h +++ b/src/ne_private.h @@ -127,4 +127,9 @@ int ne__negotiate_ssl(ne_session *sess); /* Set the session error appropriate for SSL verification failures. */ void ne__ssl_set_verify_err(ne_session *sess, int failures); +/* Return non-zero if hostname from certificate (cn) matches hostname + * used for session (hostname); follows RFC2818 logic. cn is modified + * in-place. */ +int ne__ssl_match_hostname(char *cn, const char *hostname); + #endif /* HTTP_PRIVATE_H */ -- cgit v1.2.1