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
commitff826d3cb94a579275eb6e97b3cf80ca69016d4b (patch)
tree91db1503e055d43a30b1aa24f0307097e2bfb2ed /src/lib/libtls/tls_internal.h
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_internal.h')
-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 */