summaryrefslogtreecommitdiff
path: root/src/ne_private.h
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2008-07-24 23:02:36 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2008-07-24 23:02:36 +0000
commit658f6c2090db2bbf4c22b2e8244bc261dd175d70 (patch)
tree9873af5c9ae9fdf96fe1004c28a3685da7649a16 /src/ne_private.h
parenta9cf47779cb3b868a78de8608abaf8b1f80612a2 (diff)
downloadneon-658f6c2090db2bbf4c22b2e8244bc261dd175d70.tar.gz
* 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
Diffstat (limited to 'src/ne_private.h')
-rw-r--r--src/ne_private.h5
1 files changed, 5 insertions, 0 deletions
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 */