diff --git a/http2.d b/http2.d index b65acbd..3375d72 100644 --- a/http2.d +++ b/http2.d @@ -2089,7 +2089,12 @@ version(use_openssl) { shared static this() { version(OSX) { - ossllib_handle = dlopen("libssl.dylib", RTLD_NOW); + // newest box + ossllib_handle = dlopen("libssl.1.1.dylib", RTLD_NOW); + // other boxes + if(ossllib_handle is null) + ossllib_handle = dlopen("libssl.dylib", RTLD_NOW); + // old ones like my laptop test if(ossllib_handle is null) ossllib_handle = dlopen("/usr/local/opt/openssl/lib/libssl.1.0.0.dylib", RTLD_NOW);