diff options
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
-rw-r--r-- | src/lib/libtls/tls_internal.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h index cb5d90f542..745fb40c76 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.28 2016/04/28 17:05:59 jsing Exp $ */ | 1 | /* $OpenBSD: tls_internal.h,v 1.29 2016/05/27 14:38:40 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> |
@@ -118,10 +118,16 @@ int tls_handshake_client(struct tls *ctx); | |||
118 | int tls_handshake_server(struct tls *ctx); | 118 | int tls_handshake_server(struct tls *ctx); |
119 | int tls_host_port(const char *hostport, char **host, char **port); | 119 | int tls_host_port(const char *hostport, char **host, char **port); |
120 | 120 | ||
121 | int tls_set_config_error(struct tls_config *cfg, const char *fmt, ...) | 121 | int tls_error_set(struct tls_error *error, const char *fmt, ...) |
122 | __attribute__((__format__ (printf, 2, 3))) | 122 | __attribute__((__format__ (printf, 2, 3))) |
123 | __attribute__((__nonnull__ (2))); | 123 | __attribute__((__nonnull__ (2))); |
124 | int tls_set_config_errorx(struct tls_config *cfg, const char *fmt, ...) | 124 | int tls_error_setx(struct tls_error *error, const char *fmt, ...) |
125 | __attribute__((__format__ (printf, 2, 3))) | ||
126 | __attribute__((__nonnull__ (2))); | ||
127 | int tls_config_set_error(struct tls_config *cfg, const char *fmt, ...) | ||
128 | __attribute__((__format__ (printf, 2, 3))) | ||
129 | __attribute__((__nonnull__ (2))); | ||
130 | int tls_config_set_errorx(struct tls_config *cfg, const char *fmt, ...) | ||
125 | __attribute__((__format__ (printf, 2, 3))) | 131 | __attribute__((__format__ (printf, 2, 3))) |
126 | __attribute__((__nonnull__ (2))); | 132 | __attribute__((__nonnull__ (2))); |
127 | int tls_set_error(struct tls *ctx, const char *fmt, ...) | 133 | int tls_set_error(struct tls *ctx, const char *fmt, ...) |