README.NSS 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. libcurl with NSS
  2. ================
  3. Author: Daniel Stenberg
  4. Date: June 24, 2008
  5. NSS home => http://www.mozilla.org/projects/security/pki/nss/
  6. libcurl can be built to use the NSS libraries for SSL/TLS. Invoke configure
  7. --without-ssl --with-nss.
  8. The source code in lib/nss.c currently cause a compiler warning due to the
  9. lack of a prototype. The prototype is provided by the public header provided
  10. by NSS called "base64.h". But since we use a private header in libcurl named
  11. identically, we cannot include the NSS one.
  12. This problem persists because:
  13. * NSS doesn't use a properly established separate subdir for their include
  14. files. Instead different distros have put them in /usr/include/nss and
  15. /usr/include/nss3 etc.
  16. * The pkg-config output for NSS provides a full -I path to the nss include dir,
  17. so we cannot #include <nss/base64.h> or <nss3/base64.h>. This too may be due
  18. to how distros do it.
  19. * I tried getting the (all new in June 2008) NSS 3.12 tarball to check how it
  20. behaves out-of-box but this wouldn't even build - complaining on missing
  21. files that aren't included in the tarball. The tarball doesn't even include
  22. build instuctions but you must hunt them down on their web site.
  23. Due to these design problems we may of course get further similar problems in
  24. the future, but I hope we can work them out somehow along the way.