diff options
author | tb <> | 2020-09-19 09:56:35 +0000 |
---|---|---|
committer | tb <> | 2020-09-19 09:56:35 +0000 |
commit | 6c23be8ae2a3bfec4de157d86a462d08f4efd3ed (patch) | |
tree | b604af0689d1ffdeb500101c9b73ccc7d0732155 /src/lib/libssl/ssl.h | |
parent | a4fede3dd4df29c213d7d3e5ba6b126d77af33b5 (diff) | |
download | openbsd-6c23be8ae2a3bfec4de157d86a462d08f4efd3ed.tar.gz openbsd-6c23be8ae2a3bfec4de157d86a462d08f4efd3ed.tar.bz2 openbsd-6c23be8ae2a3bfec4de157d86a462d08f4efd3ed.zip |
Prepare to provide SSL_SESSION_{set,get}_max_early_data()
Since we do not support 0-RTT, these are noops. Some software expects
this API to be available if TLS1_3_VERSION is defined.
ok beck jsing
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/ssl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index a783739c57..401c9cf843 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.173 2020/09/17 15:42:14 jsing Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.174 2020/09/19 09:56:34 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 | * |
@@ -1386,6 +1386,10 @@ const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *ss, | |||
1386 | unsigned int *len); | 1386 | unsigned int *len); |
1387 | const unsigned char *SSL_SESSION_get0_id_context(const SSL_SESSION *ss, | 1387 | const unsigned char *SSL_SESSION_get0_id_context(const SSL_SESSION *ss, |
1388 | unsigned int *len); | 1388 | unsigned int *len); |
1389 | #if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL) | ||
1390 | uint32_t SSL_SESSION_get_max_early_data(const SSL_SESSION *sess); | ||
1391 | int SSL_SESSION_set_max_early_data(SSL_SESSION *sess, uint32_t max_early_data); | ||
1392 | #endif | ||
1389 | unsigned long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s); | 1393 | unsigned long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s); |
1390 | int SSL_SESSION_has_ticket(const SSL_SESSION *s); | 1394 | int SSL_SESSION_has_ticket(const SSL_SESSION *s); |
1391 | unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *ss); | 1395 | unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *ss); |