summaryrefslogtreecommitdiff
path: root/src/ne_privssl.h
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-02-17 17:07:03 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-02-17 17:07:03 +0000
commit8eaf88821892706e44d2fa31def6a28db319a610 (patch)
tree02cecd6173c90b7c1fe06515b4e63903d99c04ad /src/ne_privssl.h
parent1deacfb88cf0294d672a90121d4f45f498ae8740 (diff)
downloadneon-8eaf88821892706e44d2fa31def6a28db319a610.tar.gz
* src/ne_privssl.h (ne__ssl_init, ne__ssl_exit): Add prototypes.
* src/ne_socket.c (init_ssl): Removed. (ne_sock_init, ne_sock_init): Call ne__ssl_init, ne__ssl_exit to handle process-global init/exit of the SSL library. * src/ne_openssl.c (ne__ssl_init, ne__ssl_exit): New functions. * src/ne_gnutls.c (ne__ssl_init, ne__ssl_exit): New functions. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@919 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_privssl.h')
-rw-r--r--src/ne_privssl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ne_privssl.h b/src/ne_privssl.h
index 46661c6..ea485bc 100644
--- a/src/ne_privssl.h
+++ b/src/ne_privssl.h
@@ -75,4 +75,11 @@ typedef gnutls_session ne_ssl_socket;
ne_ssl_socket ne__sock_sslsock(ne_socket *sock);
+/* Process-global initialization of the SSL library; returns non-zero
+ * on error. */
+int ne__ssl_init(void);
+
+/* Process-global de-initialization of the SSL library. */
+void ne__ssl_exit(void);
+
#endif /* NE_PRIVSSL_H */