diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libtls/tls.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h index 34183745e5..0113c1c67f 100644 --- a/src/lib/libtls/tls.h +++ b/src/lib/libtls/tls.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls.h,v 1.63 2023/07/02 06:37:27 beck Exp $ */ | 1 | /* $OpenBSD: tls.h,v 1.64 2024/03/26 06:24:52 joshua Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -76,6 +76,12 @@ extern "C" { | |||
76 | #define TLS_MAX_SESSION_ID_LENGTH 32 | 76 | #define TLS_MAX_SESSION_ID_LENGTH 32 |
77 | #define TLS_TICKET_KEY_SIZE 48 | 77 | #define TLS_TICKET_KEY_SIZE 48 |
78 | 78 | ||
79 | /* Error codes */ | ||
80 | #if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) | ||
81 | #define TLS_ERROR_UNKNOWN 0x0000 | ||
82 | #define TLS_ERROR_OUT_OF_MEMORY 0x1000 | ||
83 | #endif | ||
84 | |||
79 | struct tls; | 85 | struct tls; |
80 | struct tls_config; | 86 | struct tls_config; |
81 | 87 | ||
@@ -88,6 +94,10 @@ int tls_init(void); | |||
88 | 94 | ||
89 | const char *tls_config_error(struct tls_config *_config); | 95 | const char *tls_config_error(struct tls_config *_config); |
90 | const char *tls_error(struct tls *_ctx); | 96 | const char *tls_error(struct tls *_ctx); |
97 | #if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) | ||
98 | int tls_config_error_code(struct tls_config *_config); | ||
99 | int tls_error_code(struct tls *_ctx); | ||
100 | #endif | ||
91 | 101 | ||
92 | struct tls_config *tls_config_new(void); | 102 | struct tls_config *tls_config_new(void); |
93 | void tls_config_free(struct tls_config *_config); | 103 | void tls_config_free(struct tls_config *_config); |