1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

nss: get the run-time version instead of build-time

Closes #6445
This commit is contained in:
Daniel Stenberg 2021-01-13 16:01:57 +01:00
parent 3831043eff
commit a79555291e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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 */