summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls.c
diff options
context:
space:
mode:
authorjsing <>2015-02-07 09:50:09 +0000
committerjsing <>2015-02-07 09:50:09 +0000
commitff826d3cb94a579275eb6e97b3cf80ca69016d4b (patch)
tree91db1503e055d43a30b1aa24f0307097e2bfb2ed /src/lib/libtls/tls.c
parentfa55b09a9d68c9b8034bc1953d02a2baf74096e1 (diff)
downloadopenbsd-ff826d3cb94a579275eb6e97b3cf80ca69016d4b.tar.gz
openbsd-ff826d3cb94a579275eb6e97b3cf80ca69016d4b.tar.bz2
openbsd-ff826d3cb94a579275eb6e97b3cf80ca69016d4b.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 'src/lib/libtls/tls.c')
-rw-r--r--src/lib/libtls/tls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libtls/tls.c b/src/lib/libtls/tls.c
index 696c35b459..9fc81b5a64 100644
--- a/src/lib/libtls/tls.c
+++ b/src/lib/libtls/tls.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls.c,v 1.6 2015/02/07 04:33:51 jsing Exp $ */ 1/* $OpenBSD: tls.c,v 1.7 2015/02/07 09:50:09 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -236,7 +236,7 @@ tls_reset(struct tls *ctx)
236 ctx->errmsg = NULL; 236 ctx->errmsg = NULL;
237} 237}
238 238
239static int 239int
240tls_ssl_error(struct tls *ctx, int ssl_ret, const char *prefix) 240tls_ssl_error(struct tls *ctx, int ssl_ret, const char *prefix)
241{ 241{
242 const char *errstr = "unknown error"; 242 const char *errstr = "unknown error";