summaryrefslogtreecommitdiff
path: root/src/lib/libssl/t1_enc.c
diff options
context:
space:
mode:
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 }