aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mongodb-tools/libressl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mongodb-tools/libressl.patch')
-rw-r--r--testing/mongodb-tools/libressl.patch47
1 files changed, 20 insertions, 27 deletions
diff --git a/testing/mongodb-tools/libressl.patch b/testing/mongodb-tools/libressl.patch
index 9cbcf2ee04..0afd28f98c 100644
--- a/testing/mongodb-tools/libressl.patch
+++ b/testing/mongodb-tools/libressl.patch
@@ -1,28 +1,21 @@
-diff --git a/vendor/src/github.com/spacemonkeygo/openssl/ctx.go b/vendor/src/github.com/spacemonkeygo/openssl/ctx.go
-index 22d6dd1..894fecd 100644
---- a/vendor/src/github.com/spacemonkeygo/openssl/ctx.go
-+++ b/vendor/src/github.com/spacemonkeygo/openssl/ctx.go
-@@ -140,8 +140,8 @@ const (
- func NewCtxWithVersion(version SSLVersion) (*Ctx, error) {
- var method *C.SSL_METHOD
- switch version {
-- case SSLv3:
-- method = C.SSLv3_method()
-+// case SSLv3:
-+// method = C.SSLv3_method()
- case TLSv1:
- method = C.TLSv1_method()
- case TLSv1_1:
-diff --git a/vendor/src/github.com/spacemonkeygo/openssl/hostname.c b/vendor/src/github.com/spacemonkeygo/openssl/hostname.c
-index 7ebea17..41c5951 100644
---- a/vendor/src/github.com/spacemonkeygo/openssl/hostname.c
-+++ b/vendor/src/github.com/spacemonkeygo/openssl/hostname.c
-@@ -346,7 +346,7 @@ static int do_x509_check(X509 *x, const unsigned char *chk, size_t chklen,
- return 0;
- }
+--- mongo-tools-r3.4.3.orig/vendor/src/github.com/spacemonkeygo/openssl/cert.go
++++ mongo-tools-r3.4.3/vendor/src/github.com/spacemonkeygo/openssl/cert.go
+@@ -277,8 +277,8 @@
+ md = C.EVP_md_null()
+ case EVP_MD5:
+ md = C.EVP_md5()
+- case EVP_SHA:
+- md = C.EVP_sha()
++ //case EVP_SHA:
++ // md = C.EVP_sha()
+ case EVP_SHA1:
+ md = C.EVP_sha1()
+ case EVP_DSS:
+--- mongo-tools-r3.4.3.orig/vendor/src/github.com/spacemonkeygo/openssl/version.go
++++ mongo-tools-r3.4.3/vendor/src/github.com/spacemonkeygo/openssl/version.go
+@@ -19,4 +19,4 @@
+ // #include <openssl/opensslv.h>
+ import "C"
--#if OPENSSL_VERSION_NUMBER < 0x1000200fL
-+#if OPENSSL_VERSION_NUMBER < 0x1000200fL || defined(LIBRESSL_VERSION_NUMBER)
-
- int X509_check_host(X509 *x, const unsigned char *chk, size_t chklen,
- unsigned int flags)
+-const Version string = C.OPENSSL_VERSION_TEXT
++const Version string = "LibreSSL 2.4.5"