summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_internal.h
diff options
context:
space:
mode:
authorjsing <>2015-02-07 09:50:09 +0000
committerjsing <>2015-02-07 09:50:09 +0000
commit3c52e5da9498101951b1faf5afc8426a918ea6d6 (patch)
tree91db1503e055d43a30b1aa24f0307097e2bfb2ed /src/lib/libtls/tls_internal.h
parent515ca1ea0ddc5d9575475e170f3db3a468cd82e6 (diff)
downloadopenbsd-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_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h
index 18fcf539c3..f0feddcf5b 100644
--- a/src/lib/libtls/tls_internal.h
+++ b/src/lib/libtls/tls_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls_internal.h,v 1.8 2015/02/07 06:19:26 jsing Exp $ */ 1/* $OpenBSD: tls_internal.h,v 1.9 2015/02/07 09:50:09 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> 3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org>
4 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
@@ -74,5 +74,6 @@ int tls_host_port(const char *hostport, char **host, char **port);
74int tls_set_error(struct tls *ctx, char *fmt, ...) 74int tls_set_error(struct tls *ctx, char *fmt, ...)
75 __attribute__((__format__ (printf, 2, 3))) 75 __attribute__((__format__ (printf, 2, 3)))
76 __attribute__((__nonnull__ (2))); 76 __attribute__((__nonnull__ (2)));
77int tls_ssl_error(struct tls *ctx, int ssl_ret, const char *prefix);
77 78
78#endif /* HEADER_TLS_INTERNAL_H */ 79#endif /* HEADER_TLS_INTERNAL_H */