diff --git a/security/manager/ssl/src/moz.build b/security/manager/ssl/src/moz.build index e26a604db61e..044e72e656b9 100644 --- a/security/manager/ssl/src/moz.build +++ b/security/manager/ssl/src/moz.build @@ -101,6 +101,7 @@ LOCAL_INCLUDES += [ if CONFIG['NSS_DISABLE_DBM']: DEFINES['NSS_DISABLE_DBM'] = '1' +DEFINES['SSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES'] = 'True' DEFINES['NSS_ENABLE_ECC'] = 'True' for var in ('DLL_PREFIX', 'DLL_SUFFIX'): DEFINES[var] = '"%s"' % CONFIG[var] diff --git a/security/manager/ssl/src/nsNSSCallbacks.cpp b/security/manager/ssl/src/nsNSSCallbacks.cpp index e052491982e1..04e20d4a998e 100644 --- a/security/manager/ssl/src/nsNSSCallbacks.cpp +++ b/security/manager/ssl/src/nsNSSCallbacks.cpp @@ -1096,12 +1096,12 @@ AccumulateCipherSuite(Telemetry::ID probe, const SSLChannelInfo& channelInfo) case TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA: value = 22; break; case TLS_DHE_RSA_WITH_AES_256_CBC_SHA: value = 23; break; case TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA: value = 24; break; - case SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA: value = 25; break; + case TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA: value = 25; break; case TLS_DHE_DSS_WITH_AES_128_CBC_SHA: value = 26; break; case TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA: value = 27; break; case TLS_DHE_DSS_WITH_AES_256_CBC_SHA: value = 28; break; case TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA: value = 29; break; - case SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA: value = 30; break; + case TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA: value = 30; break; // ECDH key exchange case TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA: value = 41; break; case TLS_ECDH_RSA_WITH_AES_128_CBC_SHA: value = 42; break; @@ -1117,10 +1117,10 @@ AccumulateCipherSuite(Telemetry::ID probe, const SSLChannelInfo& channelInfo) case TLS_RSA_WITH_AES_256_CBC_SHA: value = 63; break; case TLS_RSA_WITH_CAMELLIA_256_CBC_SHA: value = 64; break; case SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA: value = 65; break; - case SSL_RSA_WITH_3DES_EDE_CBC_SHA: value = 66; break; + case TLS_RSA_WITH_3DES_EDE_CBC_SHA: value = 66; break; case TLS_RSA_WITH_SEED_CBC_SHA: value = 67; break; - case SSL_RSA_WITH_RC4_128_SHA: value = 68; break; - case SSL_RSA_WITH_RC4_128_MD5: value = 69; break; + case TLS_RSA_WITH_RC4_128_SHA: value = 68; break; + case TLS_RSA_WITH_RC4_128_MD5: value = 69; break; // unknown default: value = 0; diff --git a/security/manager/ssl/src/nsNSSComponent.cpp b/security/manager/ssl/src/nsNSSComponent.cpp index ad72774424b1..2421956b4f9a 100644 --- a/security/manager/ssl/src/nsNSSComponent.cpp +++ b/security/manager/ssl/src/nsNSSComponent.cpp @@ -809,7 +809,7 @@ static const CipherPref sCipherPrefs[] = { TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA, true }, { "security.ssl3.dhe_rsa_des_ede3_sha", - SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, true }, // deprecated (3DES) + TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA, true }, // deprecated (3DES) { "security.ssl3.dhe_dss_aes_128_sha", TLS_DHE_DSS_WITH_AES_128_CBC_SHA, true }, // deprecated (DSS) @@ -830,12 +830,12 @@ static const CipherPref sCipherPrefs[] = { { "security.ssl3.rsa_camellia_256_sha", TLS_RSA_WITH_CAMELLIA_256_CBC_SHA, true }, // deprecated (RSA key exchange) { "security.ssl3.rsa_des_ede3_sha", - SSL_RSA_WITH_3DES_EDE_CBC_SHA, true }, // deprecated (RSA key exchange, 3DES) + TLS_RSA_WITH_3DES_EDE_CBC_SHA, true }, // deprecated (RSA key exchange, 3DES) { "security.ssl3.rsa_rc4_128_sha", - SSL_RSA_WITH_RC4_128_SHA, true }, // deprecated (RSA key exchange, RC4) + TLS_RSA_WITH_RC4_128_SHA, true }, // deprecated (RSA key exchange, RC4) { "security.ssl3.rsa_rc4_128_md5", - SSL_RSA_WITH_RC4_128_MD5, true }, // deprecated (RSA key exchange, RC4, HMAC-MD5) + TLS_RSA_WITH_RC4_128_MD5, true }, // deprecated (RSA key exchange, RC4, HMAC-MD5) // All the rest are disabled by default