diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-06-20 01:15:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:18:33 -0500 |
commit | 64bf731865c7ea0a95d658099e7578f4bae3a9cc (patch) | |
tree | 7f2db5709d7bea6e697deb17ae3cabb1f5e65aa8 /source4/lib/tls/tls.h | |
parent | 7290c4bb278d8755ac72443285b3e0a6e8643c5e (diff) | |
download | samba-64bf731865c7ea0a95d658099e7578f4bae3a9cc.tar.gz samba-64bf731865c7ea0a95d658099e7578f4bae3a9cc.tar.bz2 samba-64bf731865c7ea0a95d658099e7578f4bae3a9cc.zip |
r7769: added client support in the tls library api
(This used to be commit 71ee6a1df542b95c61217de71e6f56b8ce9d81b5)
Diffstat (limited to 'source4/lib/tls/tls.h')
-rw-r--r-- | source4/lib/tls/tls.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/tls/tls.h b/source4/lib/tls/tls.h index 3046e35a1c..a046b91637 100644 --- a/source4/lib/tls/tls.h +++ b/source4/lib/tls/tls.h @@ -41,6 +41,13 @@ struct tls_context *tls_init_server(struct tls_params *parms, BOOL tls_enable); /* + call tls_init_client() on each new client connection +*/ +struct tls_context *tls_init_client(struct socket_context *sock, + struct fd_event *fde, + BOOL tls_enable); + +/* call these to send and receive data. They behave like socket_send() and socket_recv() */ NTSTATUS tls_socket_recv(struct tls_context *tls, void *buf, size_t wantlen, |