summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
-rw-r--r--src/lib/libtls/tls_internal.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h
index cf4a8e28ad..4503c20ab7 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.13 2015/08/27 14:34:46 jsing Exp $ */ 1/* $OpenBSD: tls_internal.h,v 1.14 2015/08/27 15:26:50 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>
@@ -59,8 +59,8 @@ struct tls {
59 uint32_t flags; 59 uint32_t flags;
60 uint32_t state; 60 uint32_t state;
61 61
62 int err;
63 char *errmsg; 62 char *errmsg;
63 int errnum;
64 64
65 int socket; 65 int socket;
66 66
@@ -76,7 +76,10 @@ int tls_configure_keypair(struct tls *ctx);
76int tls_configure_server(struct tls *ctx); 76int tls_configure_server(struct tls *ctx);
77int tls_configure_ssl(struct tls *ctx); 77int tls_configure_ssl(struct tls *ctx);
78int tls_host_port(const char *hostport, char **host, char **port); 78int tls_host_port(const char *hostport, char **host, char **port);
79int tls_set_error(struct tls *ctx, char *fmt, ...) 79int tls_set_error(struct tls *ctx, const char *fmt, ...)
80 __attribute__((__format__ (printf, 2, 3)))
81 __attribute__((__nonnull__ (2)));
82int tls_set_errorx(struct tls *ctx, const char *fmt, ...)
80 __attribute__((__format__ (printf, 2, 3))) 83 __attribute__((__format__ (printf, 2, 3)))
81 __attribute__((__nonnull__ (2))); 84 __attribute__((__nonnull__ (2)));
82int tls_ssl_error(struct tls *ctx, SSL *ssl_conn, int ssl_ret, 85int tls_ssl_error(struct tls *ctx, SSL *ssl_conn, int ssl_ret,