diff options
author | 2015-03-31 12:21:27 +0000 | |
---|---|---|
committer | 2015-03-31 12:21:27 +0000 | |
commit | 5251ab8ebfaae4c128eb38be605d2bdecef0131f (patch) | |
tree | 3cd8e6ece0b736d35863138a8100b9ed5941772f /lib/libtls/tls_internal.h | |
parent | There's no good reason to make -m and -c mutually exclusive. (diff) | |
download | wireguard-openbsd-5251ab8ebfaae4c128eb38be605d2bdecef0131f.tar.xz wireguard-openbsd-5251ab8ebfaae4c128eb38be605d2bdecef0131f.zip |
Store errors that occur during a tls_accept_socket() call on the context
for the server, rather than on the context for the connection. This makes
more sense than the current behaviour does.
Issue reported by Tim van der Molen.
Diffstat (limited to 'lib/libtls/tls_internal.h')
-rw-r--r-- | lib/libtls/tls_internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libtls/tls_internal.h b/lib/libtls/tls_internal.h index d1ba48ea1a0..ba37e136e66 100644 --- a/lib/libtls/tls_internal.h +++ b/lib/libtls/tls_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_internal.h,v 1.11 2015/02/22 14:50:41 jsing Exp $ */ +/* $OpenBSD: tls_internal.h,v 1.12 2015/03/31 12:21:27 jsing Exp $ */ /* * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> @@ -77,6 +77,7 @@ int tls_host_port(const char *hostport, char **host, char **port); int tls_set_error(struct tls *ctx, char *fmt, ...) __attribute__((__format__ (printf, 2, 3))) __attribute__((__nonnull__ (2))); -int tls_ssl_error(struct tls *ctx, int ssl_ret, const char *prefix); +int tls_ssl_error(struct tls *ctx, SSL *ssl_conn, int ssl_ret, + const char *prefix); #endif /* HEADER_TLS_INTERNAL_H */ |