diff options
Diffstat (limited to 'src/lib/libssl/ssl.h')
-rw-r--r-- | src/lib/libssl/ssl.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 4117d90e89..49335fc55a 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.199 2021/09/08 17:24:23 tb Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.200 2021/09/08 17:27:33 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -681,6 +681,12 @@ void SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx, | |||
681 | void SSL_get0_alpn_selected(const SSL *ssl, const unsigned char **data, | 681 | void SSL_get0_alpn_selected(const SSL *ssl, const unsigned char **data, |
682 | unsigned int *len); | 682 | unsigned int *len); |
683 | 683 | ||
684 | #if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL) | ||
685 | typedef int (*SSL_psk_use_session_cb_func)(SSL *ssl, const EVP_MD *md, | ||
686 | const unsigned char **id, size_t *idlen, SSL_SESSION **sess); | ||
687 | void SSL_set_psk_use_session_callback(SSL *s, SSL_psk_use_session_cb_func cb); | ||
688 | #endif | ||
689 | |||
684 | #define SSL_NOTHING 1 | 690 | #define SSL_NOTHING 1 |
685 | #define SSL_WRITING 2 | 691 | #define SSL_WRITING 2 |
686 | #define SSL_READING 3 | 692 | #define SSL_READING 3 |
@@ -1322,6 +1328,9 @@ int SSL_SESSION_set1_id(SSL_SESSION *s, const unsigned char *sid, | |||
1322 | unsigned int sid_len); | 1328 | unsigned int sid_len); |
1323 | int SSL_SESSION_set1_id_context(SSL_SESSION *s, | 1329 | int SSL_SESSION_set1_id_context(SSL_SESSION *s, |
1324 | const unsigned char *sid_ctx, unsigned int sid_ctx_len); | 1330 | const unsigned char *sid_ctx, unsigned int sid_ctx_len); |
1331 | #if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL) | ||
1332 | int SSL_SESSION_is_resumable(const SSL_SESSION *s); | ||
1333 | #endif | ||
1325 | 1334 | ||
1326 | SSL_SESSION *SSL_SESSION_new(void); | 1335 | SSL_SESSION *SSL_SESSION_new(void); |
1327 | void SSL_SESSION_free(SSL_SESSION *ses); | 1336 | void SSL_SESSION_free(SSL_SESSION *ses); |