summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2020-09-19 10:05:00 +0000
committertb <tb@openbsd.org>2020-09-19 10:05:00 +0000
commitfde73d252d93e35b17cc8ba8028f042c7d4f8f2a (patch)
treed8e34388567748b3004229e5b378e7e81eff8b17 /lib/libssl/ssl_lib.c
parentPrepare to provide SSL_SESSION_{set,get}_max_early_data() (diff)
downloadwireguard-openbsd-fde73d252d93e35b17cc8ba8028f042c7d4f8f2a.tar.xz
wireguard-openbsd-fde73d252d93e35b17cc8ba8028f042c7d4f8f2a.zip
Prepare to provide SSL{,_CTX}_{get,set}_max_early_data
Similar to the SSL_SESSION versions, these are noops that are expected to be available by some configure tests. ok beck jsing
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r--lib/libssl/ssl_lib.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c
index c184f75abe5..3c62f39a571 100644
--- a/lib/libssl/ssl_lib.c
+++ b/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_lib.c,v 1.230 2020/09/18 16:18:56 schwarze Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.231 2020/09/19 10:05:00 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1000,6 +1000,29 @@ SSL_write(SSL *s, const void *buf, int num)
return ssl3_write(s, buf, num);
}
+uint32_t
+SSL_CTX_get_max_early_data(const SSL_CTX *ctx)
+{
+ return 0;
+}
+
+int
+SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data)
+{
+ return 1;
+}
+
+uint32_t
+SSL_get_max_early_data(const SSL *s)
+{
+ return 0;
+}
+
+int
+SSL_set_max_early_data(SSL *s, uint32_t max_early_data)
+{
+ return 1;
+}
int
SSL_shutdown(SSL *s)
{