From ab50ec9e33d47d93e2443758e00d5a2b2f69963e Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sun, 5 Mar 2023 12:00:03 -0500 Subject: [PATCH] Use correct path when loading libnss{pem,ckbi}.so Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726073 Gbp-Pq: Name Use-correct-path-when-loading-libnss-pem-ckbi-.so.patch --- lib/vtls/nss.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index 774cbdd7..79994e05 100644 --- a/lib/vtls/nss.c +++ b/lib/vtls/nss.c @@ -255,8 +255,12 @@ static const char *trust_library = "nssckbi.dll"; 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"; +#ifndef _DEB_HOST_ARCH +#error "_DEB_HOST_ARCH must be defined" +#endif + +static const char *pem_library = "/usr/lib/" _DEB_HOST_ARCH "/nss/libnsspem.so"; +static const char *trust_library = "/usr/lib/" _DEB_HOST_ARCH "/libnssckbi.so"; #endif static SECMODModule *pem_module = NULL; -- 2.30.2