From fba28f19754f62b5227650143d5441fc86d4c7d7 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 25 Apr 2018 21:33:33 +0200 Subject: Revert "Update NSS to 3.35-RTM" This reverts commit f1a0f0a56fdd0fc39f255174ce08c06b91c66c94. --- security/nss/coreconf/config.gypi | 11 +++-------- security/nss/coreconf/config.mk | 11 ++++++++++- security/nss/coreconf/coreconf.dep | 1 + security/nss/coreconf/werror.py | 2 +- 4 files changed, 15 insertions(+), 10 deletions(-) (limited to 'security/nss/coreconf') diff --git a/security/nss/coreconf/config.gypi b/security/nss/coreconf/config.gypi index f4c3fbd0f..9ea528ae4 100644 --- a/security/nss/coreconf/config.gypi +++ b/security/nss/coreconf/config.gypi @@ -96,6 +96,7 @@ 'mozilla_client%': 0, 'moz_fold_libs%': 0, 'moz_folded_library_name%': '', + 'ssl_enable_zlib%': 1, 'sanitizer_flags%': 0, 'test_build%': 0, 'no_zdefs%': 0, @@ -108,7 +109,6 @@ 'nss_public_dist_dir%': '<(nss_dist_dir)/public', 'nss_private_dist_dir%': '<(nss_dist_dir)/private', 'only_dev_random%': 1, - 'disable_fips%': 1, }, 'target_defaults': { # Settings specific to targets should go here. @@ -125,12 +125,6 @@ '<(nss_dist_dir)/private/<(module)', ], 'conditions': [ - [ 'disable_fips==1', { - 'defines': [ - 'NSS_FIPS_DISABLED', - 'NSS_NO_INIT_SUPPORT', - ], - }], [ 'OS!="android" and OS!="mac" and OS!="win"', { 'libraries': [ '-lpthread', @@ -173,7 +167,7 @@ }, }, }], - [ 'target_arch=="arm64" or target_arch=="aarch64" or target_arch=="sparc64" or target_arch=="ppc64" or target_arch=="ppc64le" or target_arch=="s390x" or target_arch=="mips64"', { + [ 'target_arch=="arm64" or target_arch=="aarch64"', { 'defines': [ 'NSS_USE_64', ], @@ -300,6 +294,7 @@ 'Common': { 'abstract': 1, 'defines': [ + 'NSS_NO_INIT_SUPPORT', 'USE_UTIL_DIRECTLY', 'NO_NSPR_10_SUPPORT', 'SSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES', diff --git a/security/nss/coreconf/config.mk b/security/nss/coreconf/config.mk index 55d95c30e..09b733d5c 100644 --- a/security/nss/coreconf/config.mk +++ b/security/nss/coreconf/config.mk @@ -146,6 +146,10 @@ endif # [16.0] Global environ ment defines ####################################################################### +ifdef NSS_DISABLE_ECC +DEFINES += -DNSS_DISABLE_ECC +endif + ifdef NSS_ALLOW_UNSUPPORTED_CRITICAL DEFINES += -DNSS_ALLOW_UNSUPPORTED_CRITICAL endif @@ -172,7 +176,7 @@ endif # FIPS support requires startup tests to be executed at load time of shared modules. # For performance reasons, these tests are disabled by default. -# When compiling binaries that must support FIPS mode, +# When compiling binaries that must support FIPS mode, # you should define NSS_FORCE_FIPS # # NSS_NO_INIT_SUPPORT is always defined on platforms that don't support @@ -199,3 +203,8 @@ DEFINES += -DNO_NSPR_10_SUPPORT # Hide old, deprecated, TLS cipher suite names when building NSS DEFINES += -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES + +# Mozilla's mozilla/modules/zlib/src/zconf.h adds the MOZ_Z_ prefix to zlib +# exported symbols, which causes problem when NSS is built as part of Mozilla. +# So we add a NSS_SSL_ENABLE_ZLIB variable to allow Mozilla to turn this off. +NSS_SSL_ENABLE_ZLIB = 1 diff --git a/security/nss/coreconf/coreconf.dep b/security/nss/coreconf/coreconf.dep index 5182f7555..590d1bfae 100644 --- a/security/nss/coreconf/coreconf.dep +++ b/security/nss/coreconf/coreconf.dep @@ -10,3 +10,4 @@ */ #error "Do not include this header file." + diff --git a/security/nss/coreconf/werror.py b/security/nss/coreconf/werror.py index c469c4002..0d3843f64 100644 --- a/security/nss/coreconf/werror.py +++ b/security/nss/coreconf/werror.py @@ -24,7 +24,7 @@ def main(): # If we aren't clang, make sure we have gcc 4.8 at least if not cc_is_clang: try: - v = subprocess.check_output([cc, '-dumpversion'], stderr=sink).decode("utf-8") + v = subprocess.check_output([cc, '-dumpversion'], stderr=sink) v = v.strip(' \r\n').split('.') v = list(map(int, v)) if v[0] < 4 or (v[0] == 4 and v[1] < 8): -- cgit v1.2.3