Commit Graph
104 Commits
Author SHA1 Message Date
Emanuel Hoogeveen cf432e3c50 Bug 1338574 - Part 6: Use MOZ_CRASH_UNSAFE_PRINTF in NSS. r=keeler 2017-02-21 18:02:00 +01:00
David Keeler 6fe0d76f1a bug 1301407 - enable nsNSSComponent initialization diagnostic crash report on all platforms r=dragana 2017-02-15 14:51:45 -08:00
David Keeler d6618b446b bug 1301407 - save PRErrorCode from all NSS initialization calls and include in annotated crash report r=dragana 2017-01-25 13:14:52 -08:00
Cykesiopka 2ea082a548 Bug 1325107 - Stop using NS_ASSERTION() in PSM. r=mgoodwin
MOZ_ASSERT() is basically equivalent to NS_ASSERTION().
PSM already uses MOZ_ASSERT() for new code, so there's no need to use
NS_ASSERTION() as well.

MozReview-Commit-ID: JHDsbDkYvHf
2017-01-02 14:11:39 +08:00
David Keeler fbcf0974a2 bug 1301407 - capture NSS_NoDB_Init failure error codes in crash reports r=dragana 2016-12-21 16:50:38 -08:00
David Keeler 69f858b87c Backed out changeset 425f66fa9b10 (bug 1301407) for not being necessary any longer r=dragana
MozReview-Commit-ID: 4YiSOMjwFn4
2016-12-21 16:23:08 -08:00
Cykesiopka a9353c2c61 Bug 1313715 - Avoid unnecessary uses of PR_SetError() under security/apps/ and security/certverifier/. r=keeler
The PR_SetError() + PR_GetError() pattern is error prone and unnecessary.

Also fixes Bug 1254403.

MozReview-Commit-ID: DRI69xY4vxC
2016-12-14 20:10:25 +08:00
Masatoshi Kimura 7588e8a167 Bug 1130670 - Remove vestigial RC4 fallback backend. r=keeler
MozReview-Commit-ID: 9YRVgnymndI
2016-12-02 22:09:38 +09:00
EKR 2b16a3c92a bug 1320510 - clamp the default enabled TLS version range to what NSS supports r=keeler
In particular, this fixes the case where Firefox is compiled with TLS 1.3
enabled by default with the option --with-system-nss against NSS 3.28, which has
TLS 1.3 compile-time disabled by default.
2016-11-28 13:15:34 -08:00
Masatoshi Kimura dabc979300 Bug 1248198 - Remove the "security.ssl.enable_npn" pref. r=keeler,mcmanus
MozReview-Commit-ID: J6nYmNAipyL
2016-11-17 20:45:18 +09:00
David Keeler 6e4495288e bug 1301407 - temporarily add assertions during nsNSSComponent::Init to find out what's failing on Android r=dragana 2016-11-07 12:53:13 -08:00
Martin Thomson c60208ffc1 Bug 1310516 - Enable TLS 1.3, r=keeler
MozReview-Commit-ID: FrI7fZBIn2w
2016-11-04 14:46:02 +11:00
David Keeler bd1bf8e6e8 bug 1227638 - deterministically load EV information r=Cykesiopka,mgoodwin
Previously PSM would load EV information on-demand (i.e. just before verifying a
certificate). This simplifies this operation, removes a dubious optimization
(loading the EV information on another thread while opening a network
connection), and relocates the loading operation to when we are likely to have
good disk locality (i.e. when we've just loaded the built-in roots module).

This also removes the now-unused MOZ_NO_EV_CERTS build flag.

MozReview-Commit-ID: 8Rnl4ozF95V
2016-09-30 18:08:08 -07:00
David Keeler c81d368351 bug 1311077 - fix builtin root module loading so it works in Android Cpp unit tests r=Cykesiopka
Also updates the relevant test (TestCertDB) to ensure that we actually are
loading builtin root certificates.

MozReview-Commit-ID: LXA4TqTzy8T
2016-10-19 15:14:23 -07:00
Wes Kocher 685852562e Backed out changeset 003ec40aa484 (bug 1227638) for android Cpp failures a=backout 2016-10-17 15:08:41 -07:00
David Keeler 4e24de833f bug 1227638 - deterministically load EV information r=Cykesiopka,mgoodwin
Previously PSM would load EV information on-demand (i.e. just before verifying a
certificate). This simplifies this operation, removes a dubious optimization
(loading the EV information on another thread while opening a network
connection), and relocates the loading operation to when we are likely to have
good disk locality (i.e. when we've just loaded the built-in roots module).

This also removes the now-unused MOZ_NO_EV_CERTS build flag.

MozReview-Commit-ID: 8Rnl4ozF95V
2016-09-30 18:08:08 -07:00
David Keeler d10eb23406 bug 1289865 - look in more registry locations for enterprise roots r=Cykesiopka,mhowell
This adds the following locations:
HKLM\SOFTWARE\Policies\Microsoft\SystemCertificates\Root\Certificates
HKLM\SOFTWARE\Microsoft\EnterpriseCertificates\Root\Certificates
to the location that was already being searched, which is:
HKLM\SOFTWARE\Microsoft\SystemCertificates

MozReview-Commit-ID: LGOT4YNEqLV
2016-10-06 16:14:06 -07:00
Sergei Chernov 8eb3e4e402 Bug 1293231 - Certificate Transparency - basic telemetry reports; r=Cykesiopka,keeler
MozReview-Commit-ID: EGvuZADObJo
2016-08-11 13:41:50 +03:00
EKR 16f134d58b Bug 1304919 - PSM changes to support TLS 1.3 key exchange, r=mt
MozReview-Commit-ID: 1GMk8PajbHj
2016-09-23 14:27:29 +10:00
Sebastian Hengst 0b50b28d38 Backed out changeset b54d608edfa8 (bug 1304919) 2016-09-24 18:00:17 +02:00
EKR 932d43a9f5 Bug 1304919 - PSM changes to support TLS 1.3 key exchange, r=mt
MozReview-Commit-ID: 1GMk8PajbHj
2016-09-23 14:27:29 +10:00
David Keeler 273f4fffb5 bug 1302140 - add policy to disable SHA-1 except for certificates issued by non-built-in CAs r=jcj,rbarnes
MozReview-Commit-ID: 2uwHPxk0VhZ
2016-09-14 15:11:15 -07:00
Sebastian Hengst e4d1aafeb6 Backed out changeset 2df66e8b7411 (bug 1302140) for Windows build bustage in CertVerifier.cpp. r=backout on a CLOSED TREE 2016-09-21 20:47:08 +02:00
David Keeler f0b96ef5ba bug 1302140 - add policy to disable SHA-1 except for certificates issued by non-built-in CAs r=jcj,rbarnes
MozReview-Commit-ID: 2uwHPxk0VhZ
2016-09-14 15:11:15 -07:00
Michael Layzell d32dafff26 Bug 1018486 - Part 8: Various other changes, r=smaug
MozReview-Commit-ID: B0dsomkWgEk
2016-09-07 10:50:45 -04:00
Cykesiopka 82efda822c Bug 1256302 - Remove CertVerifier::InitCertVerifierLog(). r=jcj 2016-09-02 10:45:47 +02:00
Kan-Ru Chen a9b19d0584 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Dragana Damjanovic ac872e009d Bug 1264578 - NSS support for http with TLS 1.3. r=keeler 2016-08-19 05:01:00 -04:00
Sebastian Hengst bb51903126 Backed out changeset 80942fb9a0f1 (bug 1264578) 2016-08-18 17:28:09 +02:00
Dragana Damjanovic 95b59cdad4 Bug 1264578 - NSS support for http with TLS 1.3. r=keeler 2016-08-17 13:57:00 -04:00
J.C. Jones ccdb472139 Bug 1273475 - use release assertions for PSM->NSS shutdown. r=ttaubert
Update the prior patch to use MOZ_RELEASE_ASSERT so that we cleanly crash
if there's still an error somewhere in this logic, instead of deadlocking
on beta (but crashing on aurora).

MozReview-Commit-ID: InttEcC55Dn
2016-08-05 14:47:23 -07:00
David Keeler 8647fe4716 Bug 1273475 - fix deadlock and potential crash when PSM shuts down NSS. r=ttaubert, r=jcj
This fixes two issues:
1. nsNSSShutDownList::evaporateAllNSSResources could deadlock by acquiring
sListLock and then the singleton's mNSSActivityStateLock in
nsNSSActivityState::restrictActivityToCurrentThread.

2. Calling UnloadLoadableRoots before
nsNSSShutDownList::evaporateAllNSSResources could result in removing modules
that were still in use, causing assertion failures and potential crashes.

MozReview-Commit-ID: 8ZgZTVw7sWh
2016-08-02 12:16:37 -07:00
David Keeler 5d8fc3b198 backout changeset 1a1d7ef3cb0e (bug 1279479) for causing WebRTC compatibility issues
The WebRTC implementation inherits cipher suite preferences from PSM and then
enables a few mandatory ones and disables a number of undesirable ones. If PSM
makes a change to a cipher suite preference that isn't in WebRTC's whitelist or
blacklist, compatibility issues can arise. See bug 1288246 for an example.
2016-07-22 10:31:34 -07:00
David Keeler d98b86843a bug 1284946 - remove usages-related APIs from nsIX509Cert r=Cykesiopka,Felipe,jcj
nsIX509Cert provided the APIs getUsagesArray, requestUsagesArrayAsync, and
getUsagesString. These APIs were problematic in that the synchronous ones would
cause certificate verification to block the main thread and the asynchronous one
was needlessly indirect in its definition (it made use of two additional
special-case xpidl types) and needlessly complex in its implementation (it
required nsNSSComponent to manually manage a background thread without the aid
of recent improvements in that area (e.g. CryptoTask)). Furthermore, these APIs
would return string descriptions of the usages the certificate in question had
been verified for rather than using more concrete identifiers or values. This
paradigm is usable but imprecise. The new nsIX509CertDB API
asyncVerifyCertAtTime is much more expressive, enforces off-main-thread
computation, and makes use of CryptoTask for a simple implementation. Using this
API, previous uses of the old nsIX509Cert APIs can be replaced. As an additional
benefit, this removes a ton of obsolete C++ code.

MozReview-Commit-ID: KXVTcjAKehu
2016-07-06 14:45:36 -07:00
Masatoshi Kimura 55ead26189 Bug 1279479 - Hide DHE cipher suites from the first handshake. r=keeler
MozReview-Commit-ID: BXZm6EMaLy2
2016-06-23 03:48:02 +09:00
Masatoshi Kimura b390f1a5a2 Bug 1281084 - Enable TLS 1.3 PSK-resumption for AES-256-GCM and ChaCha20/Poly1305. r=keeler 2016-06-22 21:55:13 +09:00
Mark Goodwin f07c400374 Bug 1280224 - Initial values for the content signature root pref are ignored. r=keeler
MozReview-Commit-ID: 9y8wsVcz0hz
2016-06-21 15:24:52 +01:00
Masatoshi Kimura 1a4996d705 Bug 1268728 - Remove ability to enable RC4. r=keeler 2016-06-07 22:17:43 +09:00
Masatoshi Kimura d30e416a43 Bug 975832 - Enable AES-256 variants of the AES-128 GCM cipher suites we have already enabled. r=keeler 2016-06-04 08:19:29 +09:00
Chris Peterson b789db0655 Bug 1277014 - Fix -Wstring-conversion warnings in security/manager/ssl/. r=keeler
security/manager/ssl/nsNSSComponent.cpp:1694:16 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [31]' to 'bool'
security/manager/ssl/nsNSSIOLayer.cpp:1333:16 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [22]' to 'bool'
security/manager/ssl/nsNSSIOLayer.cpp:1341:16 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [22]' to 'bool'
security/manager/ssl/nsNSSIOLayer.cpp:1349:16 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [22]' to 'bool'
security/manager/ssl/nsNSSIOLayer.cpp:1357:16 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [22]' to 'bool'
2016-05-31 21:51:50 -07:00
David Keeler eafc5f28ca bug 1265113 - implement platform support for enterprise roots r=Cykesiopka,mhowell,rbarnes
MozReview-Commit-ID: JKxwCjoH0Oa
2016-04-13 15:36:22 -07:00
David Keeler a9ea24a63a bug 1273677 - ensure session cache is properly configured and torn down for TLSServerSocket r=mcmanus
MozReview-Commit-ID: 6i7HxTdLcID
2016-05-23 13:58:56 -07:00
Wes Kocher 397e32b951 Backed out changeset 1b8f35a4774e (bug 1273677) for valgring leaks CLOSED TREE 2016-05-20 18:13:12 -07:00
David Keeler 743f8a3aab bug 1273677 - ensure session cache is properly configured and torn down for TLSServerSocket r=mcmanus
MozReview-Commit-ID: 6i7HxTdLcID
2016-05-17 15:17:33 -07:00
Cykesiopka e82de86c37 Bug 1271501 - Use mozilla::BitwiseCast instead of reinterpret_cast in PSM. r=keeler
mozilla::BitwiseCast does the same thing, but provides static asserts that
mitigate some of the risk of using reinterpret_cast.

MozReview-Commit-ID: ENQ8QC6Nl9o
2016-05-18 21:20:56 -07:00
Martin Thomson 15e36308f5 Bug 1250568 - Adding ECDHE_PSK suites, r=keeler
MozReview-Commit-ID: 1MGB7ewpDuZ
2016-04-04 16:21:19 -03:00
Hasse 5da0e86dd5 bug 428421 - fix ordering of FIPS description strings r=keeler
In bug 317630, in the call to PK11_ConfigurePKCS11, the order of the strings
provided was switched such that the FIPS token description appeared before the
FIPS slot description, when in fact the reverse should happen.
2016-05-12 15:45:30 -07:00
David Keeler 4dbfff8d3f bug 982932 - only allow Netscape-stepUp to be used for serverAuth for old CA certificates r=Cykesiopka,jcj
MozReview-Commit-ID: 88JhIU1pUji
2016-05-05 16:11:11 -07:00
David Keeler a4f2ac0e62 bug 883718 - remove nsIEntropyCollector and implementation r=mgoodwin,mrbkap
The rationale behind nsIEntropyCollector was to supplement NSS' source of
entropy with randomness from mouse move events. This obviously doesn't work on
platforms without a mouse (e.g. mobile platforms). Furthermore, as NSS seeds its
random number generator with robust randomness from the operating system, this
is unnecessary anyway. The primary concern is that initialization of the random
number generator must happen after forking, which is exactly what we do with the
child process in e10s mode.

MozReview-Commit-ID: GYQDElSCZy0
2016-05-10 16:24:44 -07:00
David Keeler 9ce8e31ca2 bug 1267463 - add a more nuanced subject common name fallback option for prerelease channels r=Cykesiopka,jcj
MozReview-Commit-ID: 1vHXrPAHTRm
2016-04-25 15:55:18 -07:00