aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mongodb-tools/libressl.patch
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2017-04-17 00:58:25 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-17 14:54:33 +0000
commit10d26ea4585efe24929db33db8166ddfc35bbc95 (patch)
tree8f65d1794013d422990c46e7efd8296cb4470fa9 /testing/mongodb-tools/libressl.patch
parent0e2accf3a3bd3f7a4718db7d217110d4152b3bb8 (diff)
downloadaports-10d26ea4585efe24929db33db8166ddfc35bbc95.tar.bz2
aports-10d26ea4585efe24929db33db8166ddfc35bbc95.tar.xz
testing/mongodb-tools: upgrade to 3.4.3
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"