diff options
author | June McEnroe <june@causal.agency> | 2019-10-27 20:33:27 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-11-01 01:01:12 -0400 |
commit | 227054387ce7abc295a693a7375b398db02ba222 (patch) | |
tree | 7c78ca4ef6e602f145ca488737a6bebe83981a98 /server.c | |
parent | Use explicit_bzero to clear passwords (diff) | |
download | pounce-227054387ce7abc295a693a7375b398db02ba222.tar.gz pounce-227054387ce7abc295a693a7375b398db02ba222.zip |
Use capsicum
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server.c b/server.c index e1fc328..e23dc9a 100644 --- a/server.c +++ b/server.c @@ -80,6 +80,9 @@ int serverConnect(bool insecure, const char *host, const char *port) { error = tls_connect_socket(client, sock, host); if (error) errx(EX_PROTOCOL, "tls_connect: %s", tls_error(client)); + error = tls_handshake(client); + if (error) errx(EX_PROTOCOL, "tls_handshake: %s", tls_error(client)); + return sock; } |