Commit aad497cb1c79b2bf751b45a38aac60595c7cc382

Edward Thomson 2021-08-24T14:08:43

openssl: dynamically load on macOS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/streams/openssl_dynamic.c b/src/streams/openssl_dynamic.c
index 37d7e73..da16b6e 100644
--- a/src/streams/openssl_dynamic.c
+++ b/src/streams/openssl_dynamic.c
@@ -122,7 +122,9 @@ int git_openssl_stream_dynamic_init(void)
 	int err = 0;
 
 	if ((openssl_handle = dlopen("libssl.so.1.1", RTLD_NOW)) == NULL &&
+	    (openssl_handle = dlopen("libssl.1.1.dylib", RTLD_NOW)) == NULL &&
 	    (openssl_handle = dlopen("libssl.so.1.0.0", RTLD_NOW)) == NULL &&
+	    (openssl_handle = dlopen("libssl.1.0.0.dylib", RTLD_NOW)) == NULL &&
 	    (openssl_handle = dlopen("libssl.so.10", RTLD_NOW)) == NULL) {
 		git_error_set(GIT_ERROR_SSL, "could not load ssl libraries");
 		return -1;