summaryrefslogtreecommitdiff
path: root/src/ne_socket.h
diff options
context:
space:
mode:
authorJoe Orton <notroj@users.noreply.github.com>2004-10-31 19:13:43 +0000
committerJoe Orton <notroj@users.noreply.github.com>2004-10-31 19:13:43 +0000
commit94dd51facc94158bf28269b8c00651c0de6bc2a2 (patch)
tree28564732749a1fff52b06bfe54183617111f296d /src/ne_socket.h
parentbdaa3d8b0a52aae66be089017bdc92e1b4e4029d (diff)
downloadneon-git-94dd51facc94158bf28269b8c00651c0de6bc2a2.tar.gz
* src/ne_socket.c (ne_sock_connect_ssl): Take a userdata parameter;
attach this as OpenSSL "app data" pointer and GNU TLS "session pointer". * src/ne_openssl.c (provide_client_cert): Adapt to use right app data pointer. (ne__negotiate_ssl): Pass session pointer to ne_sock_connect_ssl. * src/ne_gnutls.c (ne__negotiate_ssl): Pass session pointer to ne_sock_connect_ssl.
Diffstat (limited to 'src/ne_socket.h')
-rw-r--r--src/ne_socket.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ne_socket.h b/src/ne_socket.h
index 82a4760..9b199c3 100644
--- a/src/ne_socket.h
+++ b/src/ne_socket.h
@@ -185,8 +185,9 @@ int ne_service_lookup(const char *name);
int ne_sock_accept_ssl(ne_socket *sock, ne_ssl_context *ctx);
/* Negotiate an SSL connection on socket as an SSL client, using given
- * SSL context. */
-int ne_sock_connect_ssl(ne_socket *sock, ne_ssl_context *ctx);
+ * SSL context; userdata is made available for callbacks. */
+int ne_sock_connect_ssl(ne_socket *sock, ne_ssl_context *ctx,
+ void *userdata);
END_NEON_DECLS