Skip to content

Commit aad497c

Browse files
committed
openssl: dynamically load on macOS
1 parent e265eb2 commit aad497c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/streams/openssl_dynamic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ int git_openssl_stream_dynamic_init(void)
122122
int err = 0;
123123

124124
if ((openssl_handle = dlopen("libssl.so.1.1", RTLD_NOW)) == NULL &&
125+
(openssl_handle = dlopen("libssl.1.1.dylib", RTLD_NOW)) == NULL &&
125126
(openssl_handle = dlopen("libssl.so.1.0.0", RTLD_NOW)) == NULL &&
127+
(openssl_handle = dlopen("libssl.1.0.0.dylib", RTLD_NOW)) == NULL &&
126128
(openssl_handle = dlopen("libssl.so.10", RTLD_NOW)) == NULL) {
127129
git_error_set(GIT_ERROR_SSL, "could not load ssl libraries");
128130
return -1;

0 commit comments

Comments
 (0)