--- 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) {
