diff options
author | 2020-09-19 09:56:34 +0000 | |
---|---|---|
committer | 2020-09-19 09:56:34 +0000 | |
commit | d309fe463d54b7bfda7d2975052eb4b75cefbd33 (patch) | |
tree | 130180a15a493c8b9bcf7accbd67aaa52958c3dc /lib/libssl/ssl_sess.c | |
parent | sync (diff) | |
download | wireguard-openbsd-d309fe463d54b7bfda7d2975052eb4b75cefbd33.tar.xz wireguard-openbsd-d309fe463d54b7bfda7d2975052eb4b75cefbd33.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 'lib/libssl/ssl_sess.c')
-rw-r--r-- | lib/libssl/ssl_sess.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c index 191e43b74ba..d805419de43 100644 --- a/lib/libssl/ssl_sess.c +++ b/lib/libssl/ssl_sess.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_sess.c,v 1.99 2020/09/17 15:23:29 jsing Exp $ */ +/* $OpenBSD: ssl_sess.c,v 1.100 2020/09/19 09:56:35 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -194,6 +194,18 @@ SSL_SESSION_get_ex_data(const SSL_SESSION *s, int idx) return (CRYPTO_get_ex_data(&s->internal->ex_data, idx)); } +uint32_t +SSL_SESSION_get_max_early_data(const SSL_SESSION *s) +{ + return 0; +} + +int +SSL_SESSION_set_max_early_data(SSL_SESSION *s, uint32_t max_early_data) +{ + return 1; +} + SSL_SESSION * SSL_SESSION_new(void) { |