diff options
| author | jsing <> | 2015-02-07 09:50:09 +0000 |
|---|---|---|
| committer | jsing <> | 2015-02-07 09:50:09 +0000 |
| commit | 3c52e5da9498101951b1faf5afc8426a918ea6d6 (patch) | |
| tree | 91db1503e055d43a30b1aa24f0307097e2bfb2ed /src/lib/libtls/tls.c | |
| parent | 515ca1ea0ddc5d9575475e170f3db3a468cd82e6 (diff) | |
| download | openbsd-3c52e5da9498101951b1faf5afc8426a918ea6d6.tar.gz openbsd-3c52e5da9498101951b1faf5afc8426a918ea6d6.tar.bz2 openbsd-3c52e5da9498101951b1faf5afc8426a918ea6d6.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 '')
| -rw-r--r-- | src/lib/libtls/tls.c | 4 |
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 | ||
| 239 | static int | 239 | int |
| 240 | tls_ssl_error(struct tls *ctx, int ssl_ret, const char *prefix) | 240 | tls_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"; |
