summaryrefslogtreecommitdiffstats
path: root/lib/libssl/t1_enc.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2018-09-05 16:58:59 +0000
committerjsing <jsing@openbsd.org>2018-09-05 16:58:59 +0000
commit48053958a069a6294694e3420876848cdfce2f55 (patch)
tree3212eb56ffc254c4d3008243a4548a77d910b101 /lib/libssl/t1_enc.c
parentCorrectly clear the current cipher state, when changing cipher state. (diff)
downloadwireguard-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/t1_enc.c')
-rw-r--r--lib/libssl/t1_enc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/t1_enc.c b/lib/libssl/t1_enc.c
index 39f542215b4..01ff05952c4 100644
--- a/lib/libssl/t1_enc.c
+++ b/lib/libssl/t1_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: t1_enc.c,v 1.111 2018/09/05 16:48:11 jsing Exp $ */
+/* $OpenBSD: t1_enc.c,v 1.112 2018/09/05 16:58:59 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -476,7 +476,7 @@ tls1_change_cipher_state_cipher(SSL *s, char is_read,
if ((cipher_ctx = EVP_CIPHER_CTX_new()) == NULL)
goto err;
s->enc_read_ctx = cipher_ctx;
- if ((mac_ctx = EVP_MD_CTX_create()) == NULL)
+ if ((mac_ctx = EVP_MD_CTX_new()) == NULL)
goto err;
s->read_hash = mac_ctx;
} else {
@@ -498,7 +498,7 @@ tls1_change_cipher_state_cipher(SSL *s, char is_read,
if ((cipher_ctx = EVP_CIPHER_CTX_new()) == NULL)
goto err;
s->internal->enc_write_ctx = cipher_ctx;
- if ((mac_ctx = EVP_MD_CTX_create()) == NULL)
+ if ((mac_ctx = EVP_MD_CTX_new()) == NULL)
goto err;
s->internal->write_hash = mac_ctx;
}