summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libtls/tls.h12
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
79struct tls; 85struct tls;
80struct tls_config; 86struct tls_config;
81 87
@@ -88,6 +94,10 @@ int tls_init(void);
88 94
89const char *tls_config_error(struct tls_config *_config); 95const char *tls_config_error(struct tls_config *_config);
90const char *tls_error(struct tls *_ctx); 96const char *tls_error(struct tls *_ctx);
97#if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
98int tls_config_error_code(struct tls_config *_config);
99int tls_error_code(struct tls *_ctx);
100#endif
91 101
92struct tls_config *tls_config_new(void); 102struct tls_config *tls_config_new(void);
93void tls_config_free(struct tls_config *_config); 103void tls_config_free(struct tls_config *_config);