summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <>2018-09-05 16:58:59 +0000
committerjsing <>2018-09-05 16:58:59 +0000
commitde40edcfdbe61b35779d4d9d364860a212cf755a (patch)
tree3bf8afe97ce6a4beefaa158520450f94016312bf /src/lib/libssl/ssl_lib.c
parent3dd336e6ff4073ca34d5f248d90afd65c6e3f27f (diff)
downloadopenbsd-de40edcfdbe61b35779d4d9d364860a212cf755a.tar.gz
openbsd-de40edcfdbe61b35779d4d9d364860a212cf755a.tar.bz2
openbsd-de40edcfdbe61b35779d4d9d364860a212cf755a.zip
Use the newer/more sensible names for EVP_MD_CTX_* functions.
EVP_MD_CTX_create -> EVP_MD_CTX_new EVP_MD_CTX_destroy -> EVP_MD_CTX_free This should make the intent more obvious and reduce head scratching during code reviews. Raised by tb@
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 44d11d4b16..d8415bcf6d 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.188 2018/09/05 16:48:11 jsing Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.189 2018/09/05 16:58:59 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 *
@@ -2624,7 +2624,7 @@ ssl_clear_cipher_read_state(SSL *s)
2624{ 2624{
2625 EVP_CIPHER_CTX_free(s->enc_read_ctx); 2625 EVP_CIPHER_CTX_free(s->enc_read_ctx);
2626 s->enc_read_ctx = NULL; 2626 s->enc_read_ctx = NULL;
2627 EVP_MD_CTX_destroy(s->read_hash); 2627 EVP_MD_CTX_free(s->read_hash);
2628 s->read_hash = NULL; 2628 s->read_hash = NULL;
2629 2629
2630 if (s->internal->aead_read_ctx != NULL) { 2630 if (s->internal->aead_read_ctx != NULL) {
@@ -2639,7 +2639,7 @@ ssl_clear_cipher_write_state(SSL *s)
2639{ 2639{
2640 EVP_CIPHER_CTX_free(s->internal->enc_write_ctx); 2640 EVP_CIPHER_CTX_free(s->internal->enc_write_ctx);
2641 s->internal->enc_write_ctx = NULL; 2641 s->internal->enc_write_ctx = NULL;
2642 EVP_MD_CTX_destroy(s->internal->write_hash); 2642 EVP_MD_CTX_free(s->internal->write_hash);
2643 s->internal->write_hash = NULL; 2643 s->internal->write_hash = NULL;
2644 2644
2645 if (s->internal->aead_write_ctx != NULL) { 2645 if (s->internal->aead_write_ctx != NULL) {