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, 1 insertions, 13 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 5cf4be74aa..b67f8569cc 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.243 2021/01/26 18:45:32 tb Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.244 2021/01/28 17:00:38 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 *
@@ -2618,12 +2618,6 @@ ssl_clear_cipher_read_state(SSL *s)
2618 s->read_hash = NULL; 2618 s->read_hash = NULL;
2619 2619
2620 tls12_record_layer_clear_read_state(s->internal->rl); 2620 tls12_record_layer_clear_read_state(s->internal->rl);
2621
2622 if (s->internal->aead_read_ctx != NULL) {
2623 EVP_AEAD_CTX_cleanup(&s->internal->aead_read_ctx->ctx);
2624 free(s->internal->aead_read_ctx);
2625 s->internal->aead_read_ctx = NULL;
2626 }
2627} 2621}
2628 2622
2629void 2623void
@@ -2635,12 +2629,6 @@ ssl_clear_cipher_write_state(SSL *s)
2635 s->internal->write_hash = NULL; 2629 s->internal->write_hash = NULL;
2636 2630
2637 tls12_record_layer_clear_write_state(s->internal->rl); 2631 tls12_record_layer_clear_write_state(s->internal->rl);
2638
2639 if (s->internal->aead_write_ctx != NULL) {
2640 EVP_AEAD_CTX_cleanup(&s->internal->aead_write_ctx->ctx);
2641 free(s->internal->aead_write_ctx);
2642 s->internal->aead_write_ctx = NULL;
2643 }
2644} 2632}
2645 2633
2646/* Fix this function so that it takes an optional type parameter */ 2634/* Fix this function so that it takes an optional type parameter */