diff options
author | 2015-02-07 09:50:09 +0000 | |
---|---|---|
committer | 2015-02-07 09:50:09 +0000 | |
commit | d474f84fda47888e6824e804d947dca1380b37e3 (patch) | |
tree | 41b1a0d0a8f82638de6a5210249e949f8ad259c0 /lib/libtls/tls.c | |
parent | pf synproxy will do the 3WHS on behalf of the target machine, and once (diff) | |
download | wireguard-openbsd-d474f84fda47888e6824e804d947dca1380b37e3.tar.xz wireguard-openbsd-d474f84fda47888e6824e804d947dca1380b37e3.zip |
Convert tls_connect_fds() and tls_accept_socket() to the new OpenSSL error
dance handling code. This means that we get slightly useful messages when
a TLS connection or accept fails.
Requested by reyk@
Diffstat (limited to 'lib/libtls/tls.c')
-rw-r--r-- | lib/libtls/tls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtls/tls.c b/lib/libtls/tls.c index 696c35b4594..9fc81b5a646 100644 --- a/lib/libtls/tls.c +++ b/lib/libtls/tls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls.c,v 1.6 2015/02/07 04:33:51 jsing Exp $ */ +/* $OpenBSD: tls.c,v 1.7 2015/02/07 09:50:09 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -236,7 +236,7 @@ tls_reset(struct tls *ctx) ctx->errmsg = NULL; } -static int +int tls_ssl_error(struct tls *ctx, int ssl_ret, const char *prefix) { const char *errstr = "unknown error"; |