head 1.7; access; symbols pkgsrc-2021Q1:1.6.0.16 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.14 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.12 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.6.0.10 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.6 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.8 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.4 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.2 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.5.0.22 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.20 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.18 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.16 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.14 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.12 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.10 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.6 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.4 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.2 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.4.0.26 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.24 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.22 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.20 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.18 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.16 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.14 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.12 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.10 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.8 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.6 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.4 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.2 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.3.0.10 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.8 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.6 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.4 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.2 pkgsrc-2012Q2-base:1.3 pkgsrc-2011Q4:1.2.0.28 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.26 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.24 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.22 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.20 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.18 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.16 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.14 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.12 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.10 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.8 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.6 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.4 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.2 pkgsrc-2006Q3-base:1.2; locks; strict; comment @# @; 1.7 date 2021.04.09.06.40.59; author wiz; state dead; branches; next 1.6; commitid LyiaXY3PbpR7hAOC; 1.6 date 2019.05.05.22.47.28; author ryoon; state Exp; branches; next 1.5; commitid 7HsZhlA6vUsVi4mB; 1.5 date 2016.09.30.11.59.12; author ryoon; state Exp; branches; next 1.4; commitid SgNgcU1jls0W9joz; 1.4 date 2013.07.20.09.28.11; author ryoon; state Exp; branches; next 1.3; commitid vGlStYxlQ9FPRbYw; 1.3 date 2012.04.18.21.01.42; author ryoon; state Exp; branches; next 1.2; 1.2 date 2006.07.12.16.32.00; author rillig; state dead; branches; next 1.1; 1.1 date 2006.07.12.16.30.04; author rillig; state Exp; branches; next ; desc @@ 1.7 log @nss: fix interoperability with openssl For a long time now (at least 15 years), the installed pkg-config file also linked against libsoftokn3, which is wrong according to upstream. This library is only intended to be loaded as a module. Having this library linked added symbols to the namespace that conflict with openssl symbols. This had caused problems before, and patches had been added to rename symbols to avoid this conflict. Instead, fix this correctly by not linking against libsoftokn3. Switch to using the pkg-config and nss-config files provided in the distfiles instead of pkgsrc-specific ones. Remove now unneeded symbol-renaming patches. Remove DragonFly patches while here. Bump PKGREVISION. @ text @$NetBSD: patch-am,v 1.6 2019/05/05 22:47:28 ryoon Exp $ SHA1_Update and MD5_Update conflict with openssl which may be dynamically loaded at runtime via libcups or libgssapi so causing a crash due to using the wrong binding. So rename here to avoid conflict. --- nss/lib/freebl/blapi.h.orig 2019-03-16 00:25:08.000000000 +0000 +++ nss/lib/freebl/blapi.h @@@@ -1046,6 +1046,8 @@@@ extern void MD5_DestroyContext(MD5Contex */ extern void MD5_Begin(MD5Context *cx); +#define MD5_Update NSS_MD5_Update + /* ** Update the MD5 hash function with more data. ** "cx" the context @@@@ -1211,6 +1213,8 @@@@ extern void SHA1_DestroyContext(SHA1Cont */ extern void SHA1_Begin(SHA1Context *cx); +#define SHA1_Update NSS_SHA1_Update + /* ** Update the SHA-1 hash function with more data. ** "cx" the context @ 1.6 log @Do not conflict with MD5_Update from OpenSSL Like SHA1_Update, define another name, NSS_MD5_Update and use via CPP macto. This change fixes PDF export of misc/libreoffice. And make pkglint happier. @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.5 2016/09/30 11:59:12 ryoon Exp $ @ 1.5 log @Update to 3.27 Changelog: The NSS team has released Network Security Services (NSS) 3.27, which is a minor release. Below is a summary of the changes. Please refer to the full release notes for additional details, including the SHA256 fingerprints of the changed CA certificates. New functionality: * Allow custom named group priorities for TLS key exchange handshake   (SSL_NamedGroupConfig). * Added support for RSA-PSS signatures in TLS 1.2 and TLS 1.3 New Functions: * SSL_NamedGroupConfig Notable Changes: * NPN can not be enabled anymore. * Hard limits on the maximum number of TLS records encrypted with the same    key are enforced. * Disabled renegotiation in DTLS. * The following CA certificates were Removed - CN = IGC/A, O = PM/SGDN, OU = DCSSI - CN = Juur-SK, O = AS Sertifitseerimiskeskus - CN = EBG Elektronik Sertifika Hizmet Sağlayıcısı - CN = S-TRUST Authentication and Encryption Root CA 2005:PN - O = VeriSign, Inc., OU = Class 1 Public Primary Certification Authority - O = VeriSign, Inc., OU = Class 2 Public Primary Certification Authority - G2 - O = VeriSign, Inc., OU = Class 3 Public Primary Certification Authority - O = Equifax, OU = Equifax Secure Certificate Authority - CN = Equifax Secure eBusiness CA-1 - CN = Equifax Secure Global eBusiness CA-1 The full release notes are available at https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_3.27_release_notes @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.4 2013/07/20 09:28:11 ryoon Exp $ d3 2 a4 2 SHA1_Update conflicts with openssl which may be dynamically loaded at runtime via libcups or libgssapi so causing a crash due to using d7 1 a7 1 --- nss/lib/freebl/blapi.h.orig 2016-09-26 06:00:51.000000000 +0000 d9 10 a18 1 @@@@ -1212,6 +1212,8 @@@@ extern void SHA1_DestroyContext(SHA1Cont @ 1.4 log @Update to 3.15.1 Changelog: NSS 3.15.1 release notes Introduction Network Security Services (NSS) 3.15.1 is a patch release for NSS 3.15. The bug fixes in NSS 3.15.1 are described in the "Bugs Fixed" section below. Distribution Information NSS 3.15.1 source distributions are also available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_15_1_RTM/src/ New in NSS 3.15.1 New Functionality TLS 1.2: TLS 1.2 (RFC 5246) is supported. HMAC-SHA256 cipher suites (RFC 5246 and RFC 5289) are supported, allowing TLS to be used without MD5 and SHA-1. Note the following limitations. The hash function used in the signature for TLS 1.2 client authentication must be the hash function of the TLS 1.2 PRF, which is always SHA-256 in NSS 3.15.1. AES GCM cipher suites are not yet supported. New Functions None. New Types in sslprot.h SSL_LIBRARY_VERSION_TLS_1_2 - The protocol version of TLS 1.2 on the wire, value 0x0303. TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_NULL_SHA256 - New TLS 1.2 only HMAC-SHA256 cipher suites. in sslerr.h SSL_ERROR_UNSUPPORTED_HASH_ALGORITHM, SSL_ERROR_DIGEST_FAILURE, SSL_ERROR_INCORRECT_SIGNATURE_ALGORITHM - New error codes for TLS 1.2. in sslt.h ssl_hmac_sha256 - A new value in the SSLMACAlgorithm enum type. ssl_signature_algorithms_xtn - A new value in the SSLExtensionType enum type. New PKCS #11 Mechanisms None. Notable Changes in NSS 3.15.1 Bug 856060 - Enforce name constraints on the common name in libpkix when no subjectAltName is present. Bug 875156 - Add const to the function arguments of SEC_CertNicknameConflict. Bug 877798 - Fix ssltap to print the certificate_status handshake message correctly. Bug 882829 - On Windows, NSS initialization fails if NSS cannot call the RtlGenRandom function. Bug 875601 - SECMOD_CloseUserDB/SECMOD_OpenUserDB fails to reset the token delay, leading to spurious failures. Bug 884072 - Fix a typo in the header include guard macro of secmod.h. Bug 876352 - certutil now warns if importing a PEM file that contains a private key. Bug 565296 - Fix the bug that shlibsign exited with status 0 even though it failed. The NSS_SURVIVE_DOUBLE_BYPASS_FAILURE build option is removed. Bugs fixed in NSS 3.15.1 https://bugzilla.mozilla.org/buglist.cgi?list_id=5689256;resolution=FIXED;classification=Components;query_format=advanced;target_milestone=3.15.1;product=NSS Compatibility NSS 3.15.1 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared libraries will work with NSS 3.15.1 shared libraries without recompiling or relinking. Furthermore, applications that restrict their use of NSS APIs to the functions listed in NSS Public Functions will remain compatible with future versions of the NSS shared libraries. NSS 3.15 release notes Introduction The NSS team has released Network Security Services (NSS) 3.15, which is a minor release. Distribution Information The HG tag is NSS_3_15_RTM. NSS 3.15 requires NSPR 4.10 or newer. NSS 3.15 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_15_RTM/src/ New in NSS 3.15 New Functionality Support for OCSP Stapling (RFC 6066, Certificate Status Request) has been added for both client and server sockets. TLS client applications may enable this via a call to SSL_OptionSetDefault(SSL_ENABLE_OCSP_STAPLING, PR_TRUE); Added function SECITEM_ReallocItemV2. It replaces function SECITEM_ReallocItem, which is now declared as obsolete. Support for single-operation (eg: not multi-part) symmetric key encryption and decryption, via PK11_Encrypt and PK11_Decrypt. certutil has been updated to support creating name constraints extensions. New Functions in ssl.h SSL_PeerStapledOCSPResponse - Returns the server's stapled OCSP response, when used with a TLS client socket that negotiated the status_request extension. SSL_SetStapledOCSPResponses - Set's a stapled OCSP response for a TLS server socket to return when clients send the status_request extension. in ocsp.h CERT_PostOCSPRequest - Primarily intended for testing, permits the sending and receiving of raw OCSP request/responses. in secpkcs7.h SEC_PKCS7VerifyDetachedSignatureAtTime - Verifies a PKCS#7 signature at a specific time other than the present time. in xconst.h CERT_EncodeNameConstraintsExtension - Matching function for CERT_DecodeNameConstraintsExtension, added in NSS 3.10. in secitem.h SECITEM_AllocArray SECITEM_DupArray SECITEM_FreeArray SECITEM_ZfreeArray - Utility functions to handle the allocation and deallocation of SECItemArrays SECITEM_ReallocItemV2 - Replaces SECITEM_ReallocItem, which is now obsolete. SECITEM_ReallocItemV2 better matches caller expectations, in that it updates item->len on allocation. For more details of the issues with SECITEM_ReallocItem, see Bug 298649 and Bug 298938. in pk11pub.h PK11_Decrypt - Performs decryption as a single PKCS#11 operation (eg: not multi-part). This is necessary for AES-GCM. PK11_Encrypt - Performs encryption as a single PKCS#11 operation (eg: not multi-part). This is necessary for AES-GCM. New Types in secitem.h SECItemArray - Represents a variable-length array of SECItems. New Macros in ssl.h SSL_ENABLE_OCSP_STAPLING - Used with SSL_OptionSet to configure TLS client sockets to request the certificate_status extension (eg: OCSP stapling) when set to PR_TRUE Notable Changes in NSS 3.15 SECITEM_ReallocItem is now deprecated. Please consider using SECITEM_ReallocItemV2 in all future code. NSS has migrated from CVS to the Mercurial source control management system. Updated build instructions are available at Migration to HG As part of this migration, the source code directory layout has been re-organized. The list of root CA certificates in the nssckbi module has been updated. The default implementation of SSL_AuthCertificate has been updated to add certificate status responses stapled by the TLS server to the OCSP cache. Applications that use SSL_AuthCertificateHook to override the default handler should add appropriate calls to SSL_PeerStapledOCSPResponse and CERT_CacheOCSPResponseFromSideChannel. Bug 554369: Fixed correctness of CERT_CacheOCSPResponseFromSideChannel and other OCSP caching behaviour. Bug 853285: Fixed bugs in AES GCM. Bug 341127: Fix the invalid read in rc4_wordconv. Faster NIST curve P-256 implementation. Dropped (32-bit) SPARC V8 processor support on Solaris. The shared library libfreebl_32int_3.so is no longer produced. Bugs fixed in NSS 3.15 This Bugzilla query returns all the bugs fixed in NSS 3.15: https://bugzilla.mozilla.org/buglist.cgi?list_id=6278317&resolution=FIXED&classification=Components&query_format=advanced&product=NSS&target_milestone=3.15 @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.3 2012/04/18 21:01:42 ryoon Exp $ d7 1 a7 1 --- nss/lib/freebl/blapi.h.orig 2009-06-29 18:15:13.000000000 +0200 d9 1 a9 1 @@@@ -925,6 +925,8 @@@@ extern void SHA1_DestroyContext(SHA1Cont d17 1 a17 1 ** "cx" the context @ 1.3 log @Update 3.13.4 * Change distfile to separated source. Changelog is not shown. Probably some bugs are fixed. Tested on NetBSD/i386 6.99.4 and DragonFly/i386 3.0.1. @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.1.1.1 2009/08/05 02:59:48 tnn Exp $ d7 2 a8 2 --- security/nss/lib/freebl/blapi.h.orig 2009-06-29 18:15:13.000000000 +0200 +++ security/nss/lib/freebl/blapi.h @ 1.2 log @Removed patch-am, which had been added accidentally. The problem that it tried to solve is properly fixed by patch-an. @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.1 2006/07/12 16:30:04 rillig Exp $ d3 3 a5 1 Prevent an endless recursion, resulting in a segmentation fault. d7 7 a13 8 --- mozilla/security/nss/lib/freebl/loader.c.orig 2006-07-12 18:03:20.000000000 +0200 +++ mozilla/security/nss/lib/freebl/loader.c 2006-07-12 18:02:55.000000000 +0200 @@@@ -39,6 +39,9 @@@@ * ***** END LICENSE BLOCK ***** */ /* $Id: patch-am,v 1.1 2006/07/12 16:30:04 rillig Exp $ */ +#undef NDEBUG +#include d15 3 a17 11 #include "loader.h" #include "prmem.h" #include "prerror.h" @@@@ -926,6 +928,7 @@@@ RNG_RNGInit(void) { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return SECFailure; + assert(vector->p_RNG_RNGInit != RNG_RNGInit); return (vector->p_RNG_RNGInit)(); } @ 1.1 log @Updated nss to 3.11. No ChangeLog available, but some libraries have changed: - removed libfort - added libfreebl3 - removed libswft @ text @d1 1 a1 1 $NetBSD$ d9 1 a9 1 /* $Id: loader.c,v 1.26 2005/11/10 02:18:22 julien.pierre.bugs%sun.com Exp $ */ @