From 8869477885718844d368b48774f926489385e3b3 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sun, 12 May 2019 22:47:29 +0100 Subject: Make using TLS for clients connecting to the bouncer optional. --- sockets.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sockets.h') diff --git a/sockets.h b/sockets.h index c342de2..099fc53 100644 --- a/sockets.h +++ b/sockets.h @@ -34,4 +34,10 @@ SSL_CTX *create_context(); void configure_context(SSL_CTX *ctx, char *certfile, char *keyfile); +// Read from a socket, whether or not using TLS +int sockread(SSL *fd, char *buf, int bufsize, int tls); + +// Write to a socket, whether or not using TLS +int socksend(SSL *fd, char *buf, int bufsize, int tls); + #endif -- cgit v1.2.3