aboutsummaryrefslogtreecommitdiffstats
path: root/community/mongodb-tools/libressl.patch
blob: 0663627567f406db1c470955e1222515b9b9fc09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- 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"
 
-const Version string = C.OPENSSL_VERSION_TEXT
+const Version string = "LibreSSL 2.5.5"
--- mongo-tools-r3.4.7/vendor/src/github.com/spacemonkeygo/openssl/init_posix.go.orig
+++ mongo-tools-r3.4.7/vendor/src/github.com/spacemonkeygo/openssl/init_posix.go
@@ -52,7 +52,7 @@
 	return rc;
 }
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
 void Goopenssl_thread_locking_callback(int mode, int n, const char *file,
 	int line) {
 	if (mode & CRYPTO_LOCK) {