diff options
| author | jsing <> | 2019-04-22 14:49:42 +0000 |
|---|---|---|
| committer | jsing <> | 2019-04-22 14:49:42 +0000 |
| commit | 481a036cafc6552ac328afa74cc80f468c640149 (patch) | |
| tree | 63b0ea25d0746842832bbfbb818b6338df9733d6 /src/lib/libssl/ssl_srvr.c | |
| parent | a01da1106e8ac7c9458b57ed7467f79a0e445134 (diff) | |
| download | openbsd-481a036cafc6552ac328afa74cc80f468c640149.tar.gz openbsd-481a036cafc6552ac328afa74cc80f468c640149.tar.bz2 openbsd-481a036cafc6552ac328afa74cc80f468c640149.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 '')
| -rw-r--r-- | src/lib/libssl/ssl_srvr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c index 745d0228f3..0a53343058 100644 --- a/src/lib/libssl/ssl_srvr.c +++ b/src/lib/libssl/ssl_srvr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_srvr.c,v 1.66 2019/03/25 17:21:18 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_srvr.c,v 1.67 2019/04/22 14:49:42 jsing 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 | * |
| @@ -2553,7 +2553,7 @@ ssl3_send_newsession_ticket(SSL *s) | |||
| 2553 | EVP_EncryptInit_ex(&ctx, EVP_aes_128_cbc(), NULL, | 2553 | EVP_EncryptInit_ex(&ctx, EVP_aes_128_cbc(), NULL, |
| 2554 | tctx->internal->tlsext_tick_aes_key, iv); | 2554 | tctx->internal->tlsext_tick_aes_key, iv); |
| 2555 | HMAC_Init_ex(&hctx, tctx->internal->tlsext_tick_hmac_key, | 2555 | HMAC_Init_ex(&hctx, tctx->internal->tlsext_tick_hmac_key, |
| 2556 | 16, tlsext_tick_md(), NULL); | 2556 | 16, EVP_sha256(), NULL); |
| 2557 | memcpy(key_name, tctx->internal->tlsext_tick_key_name, 16); | 2557 | memcpy(key_name, tctx->internal->tlsext_tick_key_name, 16); |
| 2558 | } | 2558 | } |
| 2559 | 2559 | ||
