Граф коммитов

4146 Коммитов

Автор SHA1 Сообщение Дата
Cykesiopka 275d94abd0 Bug 1296317 - Stop calling PR_SetError() in VerifyCert() and VerifySSLServerCert(). r=keeler
The PR_SetError() + PR_GetError() pattern currently used is error prone and
unnecessary. The functions involved can instead return mozilla::pkix::Result,
which is equally expressive and more robust.

MozReview-Commit-ID: Hkd39eqTvds

--HG--
extra : rebase_source : f09e37c6a3a930c30cce003139df86bc84d771ee
2016-10-10 15:44:41 +08:00
Carsten "Tomcat" Book 401922b6ce Backed out changeset 1f6f908368e5 (bug 1305289) for gtest failures 2016-10-10 09:33:01 +02:00
Sergei Chernov 0449e02200 Bug 1305289 - Certificate Transparency - basic UI indicator; r=Dolske,keeler
MozReview-Commit-ID: b0SUW2WNJT

--HG--
extra : rebase_source : 893d9945de71004ccda3222782273ad953d8a598
2016-09-28 20:19:56 +03:00
Phil Ringnalda 9251041b3b Merge autoland to m-c, a=merge
MozReview-Commit-ID: 8JQRDBBl2l8
2016-10-08 16:47:23 -07:00
ffxbld ba04bb95b6 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2016-10-08 14:26:37 -07:00
ffxbld ad799ee214 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2016-10-08 14:26:35 -07:00
Cykesiopka a4fb559557 Bug 1308132 - Use std::unique_ptr instead of mozilla::UniquePtr as the underlying type for ScopedNSSTypes.h UniqueX types.
MozReview-Commit-ID: IAaBhPTjZft

--HG--
extra : rebase_source : 1675da2e63b222dd7ea9ee9d481fb9c04a490d1a
extra : histedit_source : 23fbbd8c96c7d014d57591579a44c666b9197362
2016-10-06 17:01:58 +08:00
Cykesiopka ff965dc7b2 Bug 1305930 - Stop using PL_strnlen() in PSM.
strnlen() is available on all the platforms we care about, so we should use that
instead.

MozReview-Commit-ID: H3ac5AHiRJk

--HG--
extra : rebase_source : 911f292e97facf5807a1bc1654bdbc1fab87c8bc
extra : histedit_source : 17ff8322acc90bb88efd428aab1e0e0fc785ed61
2016-10-05 00:32:23 +08:00
Cykesiopka 1d6f642d9d Bug 1186286 - Consult more than just the CN when deleting a cert so it's always clear what's being deleted. r=mgoodwin
Deleting certs via the cert manager results in a confirmation dialog popping up.
This dialog contains a list of certs that were selected for deletion.

Currently, only the Common Name of each cert is used to represent it in the list.
This is a problem for certs that don't have a CN. More jarringly, the cert
manager itself falls back to various other attributes, so for example selecting
a cert that is represented by its OU ends up popping up a dialog where an empty
list is shown.

MozReview-Commit-ID: 3z4BebW8Ucd

--HG--
extra : rebase_source : 468eb3de470e3ec42471c80183a9c48ebfb130c9
extra : histedit_source : 90e1d2fc73aaba4ded68d933b6ea3a6092d60636
2016-10-07 20:14:27 +08:00
Cykesiopka 77d242f817 Bug 1186286 - Move some code around to facilitate code reuse for the subsequent patch. r=mgoodwin
The existing code in head.js is moved out because it doesn't need to be there
now, and probably not in the near future.

MozReview-Commit-ID: GWUW9wT3fzF

--HG--
extra : rebase_source : b7ba2a621df205bda8bdb0cbd493a22ce49a705f
extra : histedit_source : e9094261bc717ffd0a320b180fba4aab21122fa4
2016-10-07 20:11:35 +08:00
Ryan VanderMeulen e980397fb4 Merge m-c to autoland. a=merge 2016-10-07 23:22:46 -04:00
David Keeler a80e2f28a3 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

--HG--
extra : rebase_source : 735230f03b4e9b94f350cdbd3930b68975824458
2016-10-06 16:14:06 -07:00
Sebastian Hengst fd0ca58e46 No bug - Fix eslint warnings which popped up with delay. r=eslint-fix 2016-10-07 16:58:58 +02:00
Mark Goodwin 19e1ce84e0 Bug 1306471 - Modify the SiteSecurityService to allow dynamic pin preloads r=keeler
MozReview-Commit-ID: JLbJcMuvcyI

--HG--
extra : rebase_source : fec1e75d3ca35d17d71d797e46c45983aaeb0c12
2016-10-06 11:00:43 +01:00
David Keeler de3db56831 bug 1225682 - (still) don't use nsAutoString as class member variable in security/manager/ r=mgoodwin
MozReview-Commit-ID: LvFQdleIuEx

--HG--
extra : rebase_source : 2ac7779e355ffe48f61084aeb76e741e64cea6f6
2016-03-18 10:24:27 -07:00
David Keeler ee56723139 bug 1304188 - introduce X509.jsm r=Cykesiopka,jcj
This is mostly a preliminary review request, although I think everything that
should be done in this bug is present. This intentionally does not include
support for decoding extensions or subject public keys.

MozReview-Commit-ID: 4ewu66Xx411

--HG--
extra : rebase_source : 6105cf16e46d5d2cc9355cf38f8d0098a8a40462
2016-09-20 15:36:25 -07:00
Cykesiopka ebfb27c403 Bug 1142350 - Remove nsIUserCertPicker, nsICertPickDialogs and associated code from mozilla-central. r=keeler
The code is used in comm-central, but is unused in mozilla-central. It will be
imported into comm-central in Bug 1297368.

MozReview-Commit-ID: BEY9BR0YRiD

--HG--
extra : rebase_source : 6d34c1e82cd749a009f26be50fde0537373f2f9e
2016-09-21 19:34:12 +08:00
Phil Ringnalda 9c92a69a82 Merge autoland to m-c, a=merge 2016-10-01 14:00:21 -07:00
ffxbld 20d52ee5f4 No bug, Automated HPKP preload list update from host bld-linux64-spot-316 - a=hpkp-update 2016-10-01 05:51:40 -07:00
ffxbld eddc6a1d95 No bug, Automated HSTS preload list update from host bld-linux64-spot-316 - a=hsts-update 2016-10-01 05:51:37 -07:00
Cykesiopka 8b1a108f37 Bug 1304587 - Avoid using types that correspond to char/char16_t strings in PKCS #11 IDL files. r=keeler
Typically, the interfaces involved don't need to use raw char/char16_t strings,
and hence can benefit from the additional safety of using the Mozilla string
classes.

In some places, this patch also changes some UTF-16 APIs to UTF-8 where the
implementations can never actually support UTF-16. This reduces the amount of
code and runtime conversion.

MozReview-Commit-ID: y8o5wLBohe

--HG--
extra : rebase_source : 130c8b77a98d21d5b9a0efeccae8861d89fa8f02
2016-10-01 00:46:13 +08:00
Cykesiopka 9a3244d164 Bug 1305531 - Add test cases to test_sdr.js to ensure recommended way of using encryptString() and decryptString() works. r=keeler
MozReview-Commit-ID: 5vPxUZyzGSz

--HG--
extra : rebase_source : 6aba7627e3c0c79ea633933ce7f140c20b16c9d9
2016-10-01 09:29:29 +08:00
Cykesiopka e95a6f224a Bug 1305531 - Use ACString instead of AUTF8String in nsISecretDecoderRing.idl to unbreak decrypting saved usernames and passwords. r=keeler
Bug 1275841 switched some IDL types from "string" to "AUTF8String".
This had the unintentional effect of breaking decryption of previously saved
passwords that contained special characters.

In particular, the AUTF8String type means XPConnect may convert any strings
using that type to UTF-16 when crossing XPConnect boundaries.
However, crypto-SDR.js (responsible for encrypting and decrypting for the
password manager) expects to do conversions between UTF-16 and UTF-8 itself.
What ends up happening is crypto-SDR.js decrypts a saved password and tries to
convert from UTF-8 to UTF-16, but fails because the decrypted text is already
UTF-16.

The solution is to use ACString instead of AUTF8String. ACString does not result
in automatic encoding changes, so the expectations of crypto-SDR.js are met
again, and lets SecretDecoderRing.cpp keep the benefit of working with smart
string types.

This change probably breaks passwords saved after Bug 1275841 landed and before
this patch landed, but the number of passwords this patch breaks is probably
much lower than the number of passwords that would be broken if this patch did
not land.

MozReview-Commit-ID: 6Z01zfwJ6t7

--HG--
extra : rebase_source : 514e78f2e1c2cef3b3692656b20daf3b068a4fee
2016-10-01 09:29:28 +08:00
David Keeler 8d6b6a78fe bug 1243923 - add support for the CA/Browser Forum EV OID r=Cykesiopka,jcj
MozReview-Commit-ID: 4zqzistEhvo

--HG--
extra : rebase_source : 62d28c3715fcb225ec83ba422621dd3f8c40f708
2016-09-02 16:39:15 -07:00
David Keeler a0181b703e Bug 1305422 - part 15 - don't call size_forward in nsPKCS12Blob; r=mgoodwin,nfroyd
Before this patch, nsPKCS12Blob::digest_read used size_forward to perform a size
check on a buffer. However, the entire set of {digest_open, digest_close,
digest_read, digest_write} was unnecessary because NSS provides this
functionality by default when using SEC_PKCS12DecoderStart. This patch
simplifies things by removing the extraneous implementations.
2016-09-29 19:33:57 -07:00
Carsten "Tomcat" Book 5b45193594 merge mozilla-inbound to mozilla-central a=merge 2016-09-29 11:44:58 +02:00
Martin Thomson 9ddbbc7158 Bug 1306003 - Enable P-521, r=ekr,rbarnes
MozReview-Commit-ID: 1oF98CACtQV

--HG--
extra : rebase_source : 61c6a4c87a5de305e7701654a3c5e7ecdacc75de
2016-09-29 10:40:40 +10:00
Carsten "Tomcat" Book 572e74ee99 merge mozilla-inbound to mozilla-central a=merge 2016-09-28 15:56:33 +02:00
Kate McKinley c57d400961 Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb, r=mayhemer, r=jld, r=smaug, r=dkeeler, r=jmaher, p=ally
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.

Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.

nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.

MozReview-Commit-ID: ES1JruCtDdX

--HG--
extra : rebase_source : 2ac6c93c49f2862fc0b9e595eb0598cd1ea4bedf
2016-09-27 11:27:00 -04:00
Carsten "Tomcat" Book 762cd18602 Merge mozilla-central to autoland 2016-09-28 16:52:13 +02:00
Masatoshi Kimura 5169b351fb Bug 1305561 - Do not check renego extension when TLS version is 1.3. r=keeler
MozReview-Commit-ID: JtT6hLcbl3W

--HG--
extra : rebase_source : 32e1e28bad773bd7333468b6f93d01cc05ab4321
extra : source : faaf8817705900a1134e2be7bc9c349a33e670aa
2016-09-27 20:06:22 +09:00
Sergei Chernov 976d5c3f1d Bug 1293231 - Certificate Transparency - basic telemetry reports; r=Cykesiopka,keeler
MozReview-Commit-ID: EGvuZADObJo

--HG--
extra : rebase_source : 9a059c9f8e2fdf9bfc693b0b5649808b1beeb67b
2016-08-11 13:41:50 +03:00
Martin Thomson 6158ad648f Bug 1304926 - Enable specific named groups, r=keeler
MozReview-Commit-ID: KIe6D9iRAXt

--HG--
extra : rebase_source : a8f6d712b59bf373e52a88b8451c8db4a3f71d65
extra : amend_source : 071e9f4c3ebe336af3888b76e778d0d753d326fc
2016-09-26 15:06:42 +10:00
EKR bf2bd2813c Bug 1304919 - PSM changes to support TLS 1.3 key exchange, r=mt
MozReview-Commit-ID: 1GMk8PajbHj

--HG--
extra : rebase_source : 3a5ee2f04595b54fc50b84b8e9c4196f31adb1f0
extra : source : b54d608edfa874dfd3d8305e771490a4b25cf641
2016-09-23 14:27:29 +10:00
ffxbld 3c8aea1193 No bug, Automated HPKP preload list update from host bld-linux64-spot-389 - a=hpkp-update 2016-09-24 06:03:53 -07:00
ffxbld 45fdba1af2 No bug, Automated HSTS preload list update from host bld-linux64-spot-389 - a=hsts-update 2016-09-24 06:03:51 -07:00
David Keeler b1cb7643ef bug 1302140 - add policy to disable SHA-1 except for certificates issued by non-built-in CAs r=jcj,rbarnes
MozReview-Commit-ID: 2uwHPxk0VhZ

--HG--
extra : rebase_source : 1c7b5d2559139fa8286342decf4e4f7c83317e29
2016-09-14 15:11:15 -07:00
Sebastian Hengst d8888f81d1 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 d374bc442a bug 1302140 - add policy to disable SHA-1 except for certificates issued by non-built-in CAs r=jcj,rbarnes
MozReview-Commit-ID: 2uwHPxk0VhZ

--HG--
extra : rebase_source : 5b1342abc2eb260ec91464b3a1d331baf8968460
2016-09-14 15:11:15 -07:00
Joseph Yeh d51b2b87d0 Bug 1298872 - Fix text cropped and overflowed in advanced pane in-content dialogs; r=MattN
MozReview-Commit-ID: C7Q5VnipTIa

--HG--
extra : rebase_source : 7a7a967c6a58c2d54ed69ec6a41802f5b6fe747f
2016-09-05 18:11:08 +08:00
ffxbld 653cac986e No bug, Automated HPKP preload list update from host bld-linux64-spot-593 - a=hpkp-update 2016-09-17 05:55:01 -07:00
ffxbld 873ec403ea No bug, Automated HSTS preload list update from host bld-linux64-spot-593 - a=hsts-update 2016-09-17 05:54:58 -07:00
Joseph Yeh eb7643afdc Bug 1049001 - Convert the certManager dialog to in-content; r=MattN
MozReview-Commit-ID: GKkbxlWboPO

--HG--
extra : rebase_source : 6a4814b3d3f7d733a6361f8adcca76371df6039f
2016-09-13 14:27:13 -07:00
David Keeler 2b1cac9df4 bug 1299676 - introduce der.jsm as a minimal js ASN.1 DER decoder r=Cykesiopka,jcj
MozReview-Commit-ID: 29oNa3S3s6a

--HG--
extra : rebase_source : 6e55bc8a105d480d33d58cd5d4bdcdf68a83e26c
2016-08-23 16:30:38 -07:00
ffxbld 3107c66acb No bug, Automated HPKP preload list update from host bld-linux64-spot-424 - a=hpkp-update 2016-09-10 05:50:42 -07:00
ffxbld e1dae8a80b No bug, Automated HSTS preload list update from host bld-linux64-spot-424 - a=hsts-update 2016-09-10 05:50:40 -07:00
Cykesiopka 80c7f24081 Bug 1274135 - Replace char_ptr_cast() and uint8_t_ptr_cast() with mozilla::BitwiseCast. r=keeler,valentin
The functions aren't necessary now that we have BitwiseCast.

MozReview-Commit-ID: 2nzOuwAop4Y

--HG--
extra : rebase_source : 0cb2c16f484a81b2e77384564973b58ac2d10fb9
2016-09-08 20:46:26 +08:00
Carsten "Tomcat" Book f4a16a723a merge mozilla-inbound to mozilla-central a=merge 2016-09-08 12:01:17 +02:00
Wes Kocher ac33516b3c Merge m-c to autoland, a=merge 2016-09-07 18:07:50 -07:00
Ryan VanderMeulen 57d3c61d9b Backed out changeset db5d2a3899c0 (bug 1274135) for bustage. 2016-09-07 20:52:18 -04:00