Mozilla NSS and NSPR set up to be built for Windows (Vista and later) with Visual Studio 2017.
Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications. For more information, see https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS.
Netscape Portable Runtime (NSPR) provides a platform-neutral API for system level and libc-like functions and is required to build NSS. See https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR.
This repository contains following stable releases:
Sources were patched to fix minor Windows-specific build errors.
Normally you don't need to compile the libraries yourself. You can just download the zip archive from the prebuilt directory. The archive contains include files, .lib files, .dll's and tools, that is everything needed to use NSS+NSPR in your program. Both debug and release builds are included, as well as both 32-bit and 64-bit platforms.
To run tools, you'll need to copy .dll's to bin directory or keep them somewhere in your PATH.
Following sections are applicable if you are going to compile libraries yourself.
choco install MozillaBuild
)For you reference, patches that were used to achieve a successful build, are located in diff subdirectory. They are already applied to the source tree.
Convert to use new gyp/ninja build system, which should also allow producing static libraries.
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Sources_Building_Testing