diff options
author | June McEnroe <june@causal.agency> | 2019-11-04 21:31:53 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-11-04 21:31:53 -0500 |
commit | 41a41808e321aee9601273d533d21af7a4b49d2a (patch) | |
tree | a219d4ce547578c2ad0f2bfaf70df1ebaf5d82da /bounce.h | |
parent | Zero PASS parameter (diff) | |
download | pounce-41a41808e321aee9601273d533d21af7a4b49d2a.tar.gz pounce-41a41808e321aee9601273d533d21af7a4b49d2a.zip |
Add options for TLS client certificate
Diffstat (limited to '')
-rw-r--r-- | bounce.h | 3 |
1 files changed, 2 insertions, 1 deletions
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, ...) |