summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_server.c
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2020-01-23 08:44:31 +0000
committerbeck <beck@openbsd.org>2020-01-23 08:44:31 +0000
commitaa78e754eb7134d9c74cd4d5f73b3c3443d3f0d7 (patch)
tree539c423292621e829c0d390b509d6aca33937bd9 /lib/libssl/tls13_server.c
parentRemove overly complicated set_rcvbuf. Very likely not needed in dig et al. (diff)
downloadwireguard-openbsd-aa78e754eb7134d9c74cd4d5f73b3c3443d3f0d7.tar.xz
wireguard-openbsd-aa78e754eb7134d9c74cd4d5f73b3c3443d3f0d7.zip
Build the encrypted extensions for the 1.3 server
ok jsing@
Diffstat (limited to 'lib/libssl/tls13_server.c')
-rw-r--r--lib/libssl/tls13_server.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libssl/tls13_server.c b/lib/libssl/tls13_server.c
index 61710107723..87a2ebc947a 100644
--- a/lib/libssl/tls13_server.c
+++ b/lib/libssl/tls13_server.c
@@ -1,6 +1,7 @@
-/* $OpenBSD: tls13_server.c,v 1.9 2020/01/23 06:59:11 beck Exp $ */
+/* $OpenBSD: tls13_server.c,v 1.10 2020/01/23 08:44:31 beck Exp $ */
/*
- * Copyright (c) 2019 Joel Sing <jsing@openbsd.org>
+ * Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org>
+ * Copyright (c) 2020 Bob Beck <beck@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -341,6 +342,11 @@ tls13_server_hello_retry_send(struct tls13_ctx *ctx, CBB *cbb)
int
tls13_server_encrypted_extensions_send(struct tls13_ctx *ctx, CBB *cbb)
{
+ if (!tlsext_server_build(ctx->ssl, cbb, SSL_TLSEXT_MSG_EE))
+ goto err;
+
+ return 1;
+ err:
return 0;
}