From: Daniel Gustafsson Date: Wed, 19 Jun 2019 20:28:20 +0000 (+0200) Subject: nss: support using libnss on macOS X-Git-Tag: curl-7_65_2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24e92a71d5a19957a2250c8876d703cc919ae576;p=thirdparty%2Fcurl.git nss: support using libnss on macOS The file suffix for dynamically loadable objects on macOS is .dylib, which need to be added for the module definitions in order to get the NSS TLS backend to work properly on macOS. Closes https://github.com/curl/curl/pull/4046 --- diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index 5e0cd2414c..85b851ff8d 100644 --- a/lib/vtls/nss.c +++ b/lib/vtls/nss.c @@ -223,9 +223,12 @@ static const cipher_s cipherlist[] = { #endif }; -#ifdef WIN32 +#if defined(WIN32) static const char *pem_library = "nsspem.dll"; static const char *trust_library = "nssckbi.dll"; +#elif defined(__APPLE__) +static const char *pem_library = "libnsspem.dylib"; +static const char *trust_library = "libnssckbi.dylib"; #else static const char *pem_library = "libnsspem.so"; static const char *trust_library = "libnssckbi.so";