summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-08-24 14:08:43 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-08-24 16:23:46 -0400
commitaad497cb1c79b2bf751b45a38aac60595c7cc382 (patch)
treebf21a7bc4d18a083421feb34bc936671eea0bd89
parente265eb2f51a13d0a1172330075bdd1c69aed5e8c (diff)
downloadlibgit2-aad497cb1c79b2bf751b45a38aac60595c7cc382.tar.gz
openssl: dynamically load on macOS
-rw-r--r--src/streams/openssl_dynamic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/streams/openssl_dynamic.c b/src/streams/openssl_dynamic.c
index 37d7e7342..da16b6ed7 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;