summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2017-02-28 14:08:49 +0000
committerjsing <jsing@openbsd.org>2017-02-28 14:08:49 +0000
commit2a9e9ef903f253d22fea2145245c5c9757d03b8e (patch)
tree8e398cbcc89be0a37b7564251d0d7b5b5b3e6355 /lib/libssl/ssl_lib.c
parentSwitch geteblks()'s size argument from int to size_t. It's called with (diff)
downloadwireguard-openbsd-2a9e9ef903f253d22fea2145245c5c9757d03b8e.tar.xz
wireguard-openbsd-2a9e9ef903f253d22fea2145245c5c9757d03b8e.zip
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@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r--lib/libssl/ssl_lib.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c
index 65b26209b8e..3f458d8b101 100644
--- a/lib/libssl/ssl_lib.c
+++ b/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_lib.c,v 1.157 2017/02/15 14:56:42 jsing Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.158 2017/02/28 14:08:49 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1865,15 +1865,6 @@ SSL_CTX_new(const SSL_METHOD *meth)
if (!ret->param)
goto err;
- if ((ret->internal->md5 = EVP_get_digestbyname("ssl3-md5")) == NULL) {
- SSLerrorx(SSL_R_UNABLE_TO_LOAD_SSL3_MD5_ROUTINES);
- goto err2;
- }
- if ((ret->internal->sha1 = EVP_get_digestbyname("ssl3-sha1")) == NULL) {
- SSLerrorx(SSL_R_UNABLE_TO_LOAD_SSL3_SHA1_ROUTINES);
- goto err2;
- }
-
if ((ret->internal->client_CA = sk_X509_NAME_new_null()) == NULL)
goto err;