diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2006-02-27 10:41:21 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2006-02-27 10:41:21 +0000 |
commit | b768f0f3c0f5364380f5981cc2600b3a906723da (patch) | |
tree | 14a9f6344ce104508224a13d906d78e4105caa95 /src/ne_private.h | |
parent | 684b40636c41945f1565c493d35ce448305376da (diff) | |
download | neon-b768f0f3c0f5364380f5981cc2600b3a906723da.tar.gz |
* src/ne_session.c (ne__ssl_set_verify_err): Moved here...
* src/ne_openssl.c (verify_err): ... from here.
(check_certificate): Use it.
* src/ne_gnutls.c (check_certificate): Use it on verification failure.
* src/ne_private.h (ne__ssl_set_verify_err): Add prototype.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@955 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_private.h')
-rw-r--r-- | src/ne_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ne_private.h b/src/ne_private.h index f16f266..a661a38 100644 --- a/src/ne_private.h +++ b/src/ne_private.h @@ -115,4 +115,7 @@ typedef int (*ne_push_fn)(void *userdata, const char *buf, size_t count); /* Do the SSL negotiation. */ 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); + #endif /* HTTP_PRIVATE_H */ |