From 41a41808e321aee9601273d533d21af7a4b49d2a Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 4 Nov 2019 21:31:53 -0500 Subject: Add options for TLS client certificate --- bounce.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bounce.h') diff --git a/bounce.h b/bounce.h index 129dd7b..33c1fee 100644 --- a/bounce.h +++ b/bounce.h @@ -79,7 +79,8 @@ size_t listenBind(int fds[], size_t cap, const char *host, const char *port); size_t listenUnix(int fds[], size_t cap, const char *path); struct tls *listenAccept(int *fd, int bind); -int serverConnect(bool insecure, const char *host, const char *port); +void serverConfig(bool insecure, const char *cert, const char *priv); +int serverConnect(const char *host, const char *port); void serverRecv(void); void serverSend(const char *ptr, size_t len); void serverFormat(const char *format, ...) -- cgit 1.4.1