summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 57d0f4b779..e0a77d7820 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.249 2021/02/25 17:06:05 jsing Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.250 2021/02/27 14:20:50 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 *
@@ -2616,22 +2616,14 @@ ssl_clear_cipher_state(SSL *s)
2616void 2616void
2617ssl_clear_cipher_read_state(SSL *s) 2617ssl_clear_cipher_read_state(SSL *s)
2618{ 2618{
2619 EVP_CIPHER_CTX_free(s->enc_read_ctx);
2620 s->enc_read_ctx = NULL;
2621 EVP_MD_CTX_free(s->read_hash);
2622 s->read_hash = NULL;
2623
2624 tls12_record_layer_clear_read_state(s->internal->rl); 2619 tls12_record_layer_clear_read_state(s->internal->rl);
2620 tls12_record_layer_read_cipher_hash(s->internal->rl,
2621 &s->enc_read_ctx, &s->read_hash);
2625} 2622}
2626 2623
2627void 2624void
2628ssl_clear_cipher_write_state(SSL *s) 2625ssl_clear_cipher_write_state(SSL *s)
2629{ 2626{
2630 EVP_CIPHER_CTX_free(s->internal->enc_write_ctx);
2631 s->internal->enc_write_ctx = NULL;
2632 EVP_MD_CTX_free(s->internal->write_hash);
2633 s->internal->write_hash = NULL;
2634
2635 tls12_record_layer_clear_write_state(s->internal->rl); 2627 tls12_record_layer_clear_write_state(s->internal->rl);
2636} 2628}
2637 2629