From de40edcfdbe61b35779d4d9d364860a212cf755a Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 5 Sep 2018 16:58:59 +0000 Subject: 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@ --- src/lib/libssl/ssl_lib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libssl/ssl_lib.c') 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 @@ -/* $OpenBSD: ssl_lib.c,v 1.188 2018/09/05 16:48:11 jsing Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.189 2018/09/05 16:58:59 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -2624,7 +2624,7 @@ ssl_clear_cipher_read_state(SSL *s) { EVP_CIPHER_CTX_free(s->enc_read_ctx); s->enc_read_ctx = NULL; - EVP_MD_CTX_destroy(s->read_hash); + EVP_MD_CTX_free(s->read_hash); s->read_hash = NULL; if (s->internal->aead_read_ctx != NULL) { @@ -2639,7 +2639,7 @@ ssl_clear_cipher_write_state(SSL *s) { EVP_CIPHER_CTX_free(s->internal->enc_write_ctx); s->internal->enc_write_ctx = NULL; - EVP_MD_CTX_destroy(s->internal->write_hash); + EVP_MD_CTX_free(s->internal->write_hash); s->internal->write_hash = NULL; if (s->internal->aead_write_ctx != NULL) { -- cgit v1.2.3-55-g6feb