summaryrefslogtreecommitdiffstats
path: root/lib/libtls/tls_internal.h
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-02-07 09:50:09 +0000
committerjsing <jsing@openbsd.org>2015-02-07 09:50:09 +0000
commitd474f84fda47888e6824e804d947dca1380b37e3 (patch)
tree41b1a0d0a8f82638de6a5210249e949f8ad259c0 /lib/libtls/tls_internal.h
parentpf synproxy will do the 3WHS on behalf of the target machine, and once (diff)
downloadwireguard-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_internal.h')
-rw-r--r--lib/libtls/tls_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libtls/tls_internal.h b/lib/libtls/tls_internal.h
index 18fcf539c35..f0feddcf5b9 100644
--- a/lib/libtls/tls_internal.h
+++ b/lib/libtls/tls_internal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_internal.h,v 1.8 2015/02/07 06:19:26 jsing Exp $ */
+/* $OpenBSD: tls_internal.h,v 1.9 2015/02/07 09:50:09 jsing Exp $ */
/*
* Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org>
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
@@ -74,5 +74,6 @@ 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);
#endif /* HEADER_TLS_INTERNAL_H */