aboutsummaryrefslogtreecommitdiffstats
path: root/community/mongodb-tools/fix-libressl.patch
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2018-07-19 04:19:11 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-07-20 10:15:31 +0000
commit9f992aed6e3f552a2d5bd0cff86bd68e489a6434 (patch)
tree86612273bd64feaa4433d6fdbbc8b13b8edf894e /community/mongodb-tools/fix-libressl.patch
parente7fe48c47dd7a60d756cc22e8f05f8b965c4befe (diff)
downloadaports-9f992aed6e3f552a2d5bd0cff86bd68e489a6434.tar.bz2
aports-9f992aed6e3f552a2d5bd0cff86bd68e489a6434.tar.xz
community/mongodb-tools: upgrade to 4.0.0
Diffstat (limited to 'community/mongodb-tools/fix-libressl.patch')
-rw-r--r--community/mongodb-tools/fix-libressl.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/mongodb-tools/fix-libressl.patch b/community/mongodb-tools/fix-libressl.patch
new file mode 100644
index 0000000000..18ad5c7ac7
--- /dev/null
+++ b/community/mongodb-tools/fix-libressl.patch
@@ -0,0 +1,43 @@
+--- mongo-tools-r4.0.0/vendor/src/github.com/10gen/openssl/cert.go.orig
++++ mongo-tools-r4.0.0/vendor/src/github.com/10gen/openssl/cert.go
+@@ -277,8 +277,8 @@
+ md = C.X_EVP_md_null()
+ case EVP_MD5:
+ md = C.X_EVP_md5()
+- case EVP_SHA:
+- md = C.X_EVP_sha()
++ //case EVP_SHA:
++ // md = C.X_EVP_sha()
+ case EVP_SHA1:
+ md = C.X_EVP_sha1()
+ case EVP_DSS:
+--- mongo-tools-r4.0.0/vendor/src/github.com/10gen/openssl/shim.c.orig
++++ mongo-tools-r4.0.0/vendor/src/github.com/10gen/openssl/shim.c
+@@ -47,7 +47,7 @@
+ * v1.1.X and later implementation
+ ************************************************
+ */
+-#if OPENSSL_VERSION_NUMBER >= 0x1010000fL
++#if OPENSSL_VERSION_NUMBER >= 0x1010000fL && !defined(LIBRESSL_VERSION_NUMBER)
+
+ void X_BIO_set_data(BIO* bio, void* data) {
+ BIO_set_data(bio, data);
+@@ -174,7 +174,7 @@
+ * v1.0.X implementation
+ ************************************************
+ */
+-#if OPENSSL_VERSION_NUMBER < 0x1010000fL
++#if OPENSSL_VERSION_NUMBER < 0x1010000fL || defined(LIBRESSL_VERSION_NUMBER)
+
+ static int x_bio_create(BIO *b) {
+ b->shutdown = 1;
+@@ -260,7 +260,8 @@
+ }
+
+ const EVP_MD *X_EVP_sha() {
+- return EVP_sha();
++ //return EVP_sha();
++ return NULL;
+ }
+
+ int X_EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx) {