]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
nss: get the run-time version instead of build-time
authorDaniel Stenberg <daniel@haxx.se>
Wed, 13 Jan 2021 15:01:57 +0000 (16:01 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 13 Jan 2021 22:22:07 +0000 (23:22 +0100)
Closes #6445

lib/vtls/nss.c

index 59649ccc3a63f4e9035fd2a6b538a20b2b837b65..4d84da27f69677de7037e77d1da74928ac9b4f6e 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -2341,7 +2341,7 @@ static ssize_t nss_recv(struct connectdata *conn,  /* connection data */
 
 static size_t Curl_nss_version(char *buffer, size_t size)
 {
-  return msnprintf(buffer, size, "NSS/%s", NSS_VERSION);
+  return msnprintf(buffer, size, "NSS/%s", NSS_GetVersion());
 }
 
 /* data might be NULL */