diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2018-09-05 16:59:00 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2018-09-05 16:59:00 +0000 |
commit | 87b5835785ec1e545166faa845a899cf169947cc (patch) | |
tree | 56a4a5f3bd566db2160b7d4dae4bd559515e4434 /lib/libssl/ssl_lib.c | |
parent | 13b376383228f743cb9a31f51e0c75152947e4e7 (diff) |
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 'lib/libssl/ssl_lib.c')
-rw-r--r-- | lib/libssl/ssl_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c index 44d11d4b164..d8415bcf6d8 100644 --- a/lib/libssl/ssl_lib.c +++ b/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) { |