diff options
author | 2018-09-05 16:58:59 +0000 | |
---|---|---|
committer | 2018-09-05 16:58:59 +0000 | |
commit | 48053958a069a6294694e3420876848cdfce2f55 (patch) | |
tree | 3212eb56ffc254c4d3008243a4548a77d910b101 /lib/libssl/ssl_lib.c | |
parent | Correctly clear the current cipher state, when changing cipher state. (diff) | |
download | wireguard-openbsd-48053958a069a6294694e3420876848cdfce2f55.tar.xz wireguard-openbsd-48053958a069a6294694e3420876848cdfce2f55.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 '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) { |