From abdc360910496483afa44b9ca075e21b248a491d Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 28 Feb 2017 14:08:50 +0000 Subject: Stop pretending that MD5 and SHA1 might not exist - rather than locating "ssl3-md5" and "ssl-sha1", call the EVP_md5() and EVP_sha1() functions directly. ok beck@ inoguchi@ --- src/lib/libssl/ssl_clnt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libssl/ssl_clnt.c') diff --git a/src/lib/libssl/ssl_clnt.c b/src/lib/libssl/ssl_clnt.c index 7f4d6582da..da4b966bc6 100644 --- a/src/lib/libssl/ssl_clnt.c +++ b/src/lib/libssl/ssl_clnt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_clnt.c,v 1.5 2017/02/07 02:08:38 beck Exp $ */ +/* $OpenBSD: ssl_clnt.c,v 1.6 2017/02/28 14:08:49 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1478,8 +1478,8 @@ ssl3_get_server_key_exchange(SSL *s) q = md_buf; for (num = 2; num > 0; num--) { if (!EVP_DigestInit_ex(&md_ctx, - (num == 2) ? s->ctx->internal->md5 : - s->ctx->internal->sha1, NULL)) { + (num == 2) ? EVP_md5() : EVP_sha1(), + NULL)) { al = SSL_AD_INTERNAL_ERROR; goto f_err; } -- cgit v1.2.3-55-g6feb