summaryrefslogtreecommitdiff
path: root/src/lib/libssl/t1_enc.c
diff options
context:
space:
mode:
authorjsing <>2018-09-05 16:58:59 +0000
committerjsing <>2018-09-05 16:58:59 +0000
commit4e47c515f40e5440374f3cb833834c52edfd8b18 (patch)
tree3bf8afe97ce6a4beefaa158520450f94016312bf /src/lib/libssl/t1_enc.c
parentc67d138a999b0555285f0993584d8124abc2b926 (diff)
downloadopenbsd-4e47c515f40e5440374f3cb833834c52edfd8b18.tar.gz
openbsd-4e47c515f40e5440374f3cb833834c52edfd8b18.tar.bz2
openbsd-4e47c515f40e5440374f3cb833834c52edfd8b18.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/t1_enc.c')
-rw-r--r--src/lib/libssl/t1_enc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/t1_enc.c b/src/lib/libssl/t1_enc.c
index 39f542215b..01ff05952c 100644
--- a/src/lib/libssl/t1_enc.c
+++ b/src/lib/libssl/t1_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_enc.c,v 1.111 2018/09/05 16:48:11 jsing Exp $ */ 1/* $OpenBSD: t1_enc.c,v 1.112 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 *
@@ -476,7 +476,7 @@ tls1_change_cipher_state_cipher(SSL *s, char is_read,
476 if ((cipher_ctx = EVP_CIPHER_CTX_new()) == NULL) 476 if ((cipher_ctx = EVP_CIPHER_CTX_new()) == NULL)
477 goto err; 477 goto err;
478 s->enc_read_ctx = cipher_ctx; 478 s->enc_read_ctx = cipher_ctx;
479 if ((mac_ctx = EVP_MD_CTX_create()) == NULL) 479 if ((mac_ctx = EVP_MD_CTX_new()) == NULL)
480 goto err; 480 goto err;
481 s->read_hash = mac_ctx; 481 s->read_hash = mac_ctx;
482 } else { 482 } else {
@@ -498,7 +498,7 @@ tls1_change_cipher_state_cipher(SSL *s, char is_read,
498 if ((cipher_ctx = EVP_CIPHER_CTX_new()) == NULL) 498 if ((cipher_ctx = EVP_CIPHER_CTX_new()) == NULL)
499 goto err; 499 goto err;
500 s->internal->enc_write_ctx = cipher_ctx; 500 s->internal->enc_write_ctx = cipher_ctx;
501 if ((mac_ctx = EVP_MD_CTX_create()) == NULL) 501 if ((mac_ctx = EVP_MD_CTX_new()) == NULL)
502 goto err; 502 goto err;
503 s->internal->write_hash = mac_ctx; 503 s->internal->write_hash = mac_ctx;
504 } 504 }