summaryrefslogtreecommitdiff
path: root/src/lib/libssl/t1_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/t1_enc.c')
-rw-r--r--src/lib/libssl/t1_enc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libssl/t1_enc.c b/src/lib/libssl/t1_enc.c
index 613eb4cf18..6b3d40d8ec 100644
--- a/src/lib/libssl/t1_enc.c
+++ b/src/lib/libssl/t1_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_enc.c,v 1.137 2021/04/19 17:03:39 jsing Exp $ */ 1/* $OpenBSD: t1_enc.c,v 1.138 2021/04/19 17:26:39 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 *
@@ -312,8 +312,8 @@ tls1_change_cipher_state(SSL *s, int which)
312 const EVP_AEAD *aead; 312 const EVP_AEAD *aead;
313 char is_read, use_client_keys; 313 char is_read, use_client_keys;
314 314
315 cipher = S3I(s)->tmp.new_sym_enc; 315 aead = tls12_record_layer_aead(s->internal->rl);
316 aead = S3I(s)->tmp.new_aead; 316 cipher = tls12_record_layer_cipher(s->internal->rl);
317 317
318 /* 318 /*
319 * is_read is true if we have just read a ChangeCipherSpec message, 319 * is_read is true if we have just read a ChangeCipherSpec message,
@@ -424,8 +424,6 @@ tls1_setup_key_block(SSL *s)
424 if (!ssl_get_handshake_evp_md(s, &handshake_hash)) 424 if (!ssl_get_handshake_evp_md(s, &handshake_hash))
425 return (0); 425 return (0);
426 426
427 S3I(s)->tmp.new_aead = aead;
428 S3I(s)->tmp.new_sym_enc = cipher;
429 S3I(s)->hs.tls12.mac_secret_size = mac_secret_size; 427 S3I(s)->hs.tls12.mac_secret_size = mac_secret_size;
430 428
431 tls12_record_layer_set_aead(s->internal->rl, aead); 429 tls12_record_layer_set_aead(s->internal->rl, aead);