summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_srvr.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2019-04-22 14:49:42 +0000
committerjsing <jsing@openbsd.org>2019-04-22 14:49:42 +0000
commit18e023dcb200e98bbd836e33df36f119381a10ee (patch)
treef1826db6f27e68f628f3b432419dd832fc9de0b4 /lib/libssl/ssl_srvr.c
parentAdd support for official Linux device tree bindings and implement support (diff)
downloadwireguard-openbsd-18e023dcb200e98bbd836e33df36f119381a10ee.tar.xz
wireguard-openbsd-18e023dcb200e98bbd836e33df36f119381a10ee.zip
Inline and remove the tlsext_tick_md macro.
There is not much point having a tlsext_tick_md macro that replaces EVP_sha256() in two places, when the cipher is just hardcoded. ok tb@
Diffstat (limited to 'lib/libssl/ssl_srvr.c')
-rw-r--r--lib/libssl/ssl_srvr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/ssl_srvr.c b/lib/libssl/ssl_srvr.c
index 745d0228f30..0a533430582 100644
--- a/lib/libssl/ssl_srvr.c
+++ b/lib/libssl/ssl_srvr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_srvr.c,v 1.66 2019/03/25 17:21:18 jsing Exp $ */
+/* $OpenBSD: ssl_srvr.c,v 1.67 2019/04/22 14:49:42 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -2553,7 +2553,7 @@ ssl3_send_newsession_ticket(SSL *s)
EVP_EncryptInit_ex(&ctx, EVP_aes_128_cbc(), NULL,
tctx->internal->tlsext_tick_aes_key, iv);
HMAC_Init_ex(&hctx, tctx->internal->tlsext_tick_hmac_key,
- 16, tlsext_tick_md(), NULL);
+ 16, EVP_sha256(), NULL);
memcpy(key_name, tctx->internal->tlsext_tick_key_name, 16);
}