chromium/deps/nss.git
5 weeks agoUpdate to NSS 3.16.7. master
agl@chromium.org [Thu, 25 Sep 2014 20:28:09 +0000 (20:28 +0000)]
Update to NSS 3.16.7.

This contains a fix for the RSA signature forgery bug (CVE-2014-1568):
https://www.mozilla.org/security/announce/2014/mfsa2014-73.html

Chrome and ChromeOS have already released updates containing this fix:
  http://googlechromereleases.blogspot.com/2014/09/stable-channel-update_24.html
  http://googlechromereleases.blogspot.com/2014/09/stable-channel-update-for-chrome-os_24.html

https://codereview.appspot.com/142600043/

(This the SVN version of the git change, referenced above. It seems that the
NSS git is still a mirror from this SVN repo and thus one cannot commit to it
directly.)

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@292145 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

5 weeks agoExport CERT_VerifySignedDataWithPublicKeyInfo from NSS on Windows
rsleevi@chromium.org [Tue, 23 Sep 2014 22:03:24 +0000 (22:03 +0000)]
Export CERT_VerifySignedDataWithPublicKeyInfo from NSS on Windows

BUG=401365
R=davidben@chromium.org

Review URL: https://codereview.chromium.org/598753002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@292099 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

8 weeks agoUpdate to NSPR 4.10.7.
wtc@chromium.org [Thu, 4 Sep 2014 17:48:34 +0000 (17:48 +0000)]
Update to NSPR 4.10.7.

Include the change proposed by Zach Anderson at
https://codereview.chromium.org/408583002/

R=rtenneti@chromium.org,zra@google.com
BUG=

Review URL: https://codereview.chromium.org/539213003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@291806 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 months agoAvoids MSVC warnings about possible value truncation.
wtc@chromium.org [Thu, 28 Aug 2014 22:14:37 +0000 (22:14 +0000)]
Avoids MSVC warnings about possible value truncation.

Suggested by Peter Kasting at
https://bugzilla.mozilla.org/show_bug.cgi?id=917571#c16

R=agl@chromium.org,pkasting@chromium.org
BUG=

Review URL: https://codereview.chromium.org/515383002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@291717 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 months agoAttempt to let nss's SSSE3 files build with clang-cl.
thakis@chromium.org [Mon, 25 Aug 2014 17:37:54 +0000 (17:37 +0000)]
Attempt to let nss's SSSE3 files build with clang-cl.

cl.exe can use intrinsics (like e.g. _mm_shuffle_epi8()) even if the arch
targeted by the compiler doesn't support the SSE level needed by the intrinsic.

clang (and gcc) can't do this, because it converts intrinsics into general
LLVM operations, and the LLVM bitcode is then translated back into assembly
later on, based on the target arch.

So move the file requiring an SSSE3 into a new target that's built with
/arch:AVX. The caller of the function in the new target already checks that
the processor supports AVX before doing the call. This also allows cl.exe to
emit AVX code for the regular C code in that function.

(It's unfortunate that clang-cl deviates fairly heavily from cl in this regard.
But this is very difficult to change, and it's the only larger deviation so
far.)

BUG=82385

Review URL: https://codereview.chromium.org/493883002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@291603 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 months agoDon't use <(DEPTH) in the argument to the -include flag.
wtc@chromium.org [Sun, 24 Aug 2014 15:23:40 +0000 (15:23 +0000)]
Don't use <(DEPTH) in the argument to the -include flag.

Instead, pass just the file name to -include. Add the nss_ prefix to the
file name (build_config_mac.h) to make the name more unique.

R=mark@chromium.org,kjellander@chromium.org
BUG=

Review URL: https://codereview.chromium.org/493213002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@291588 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 months agonss: Remove two files from sources that were removed in all conditionals.
thakis@chromium.org [Tue, 19 Aug 2014 23:37:22 +0000 (23:37 +0000)]
nss: Remove two files from sources that were removed in all conditionals.

No functional change, just makes the file a bit less confusing.

Review URL: https://codereview.chromium.org/482353002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@290695 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 months agoUpdate to NSS 3.16.4.
wtc@chromium.org [Thu, 14 Aug 2014 00:51:54 +0000 (00:51 +0000)]
Update to NSS 3.16.4.

R=mattm@chromium.org,rsleevi@chromium.org
BUG=396377

Review URL: https://codereview.chromium.org/457963002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@289430 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 months agoUpdate clang warnings after r287092.
thakis@chromium.org [Fri, 1 Aug 2014 23:50:28 +0000 (23:50 +0000)]
Update clang warnings after r287092.

Review URL: https://codereview.chromium.org/419963005

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@287121 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

3 months agoUpdate to NSPR 4.10.7 Beta 3.
wtc@chromium.org [Wed, 30 Jul 2014 19:33:18 +0000 (19:33 +0000)]
Update to NSPR 4.10.7 Beta 3.

R=davidben@chromium.org,rsleevi@chromium.org
BUG=396377

Review URL: https://codereview.chromium.org/407383002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@286582 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 months agoApply the fix for NSS bug 1021102 from the NSS upstream.
wtc@chromium.org [Fri, 13 Jun 2014 18:29:17 +0000 (18:29 +0000)]
Apply the fix for NSS bug 1021102 from the NSS upstream.

RSA_PrivateKeyCheck should not swap members of the input
RSAPrivateKey.

R=rsleevi@chromium.org
BUG=380925

Review URL: https://codereview.chromium.org/329663003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@277057 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 months agoAdd PK11_MakeIDFromPubKey to windows exports
eroman@chromium.org [Sat, 7 Jun 2014 02:06:36 +0000 (02:06 +0000)]
Add PK11_MakeIDFromPubKey to windows exports

BUG=378315,245025

Review URL: https://codereview.chromium.org/320603003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@275589 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 months agoAdd the patch file for r275283.
wtc@chromium.org [Fri, 6 Jun 2014 00:58:57 +0000 (00:58 +0000)]
Add the patch file for r275283.

R=rsleevi@chromium.org
BUG=380925

Review URL: https://codereview.chromium.org/317293002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@275286 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 months agoFix compiler error with -Werror,-Wpointer-sign
wtc@chromium.org [Fri, 6 Jun 2014 00:42:50 +0000 (00:42 +0000)]
Fix compiler error with -Werror,-Wpointer-sign

R=rsleevi@chromium.org
BUG=380925

Review URL: https://codereview.chromium.org/316353002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@275283 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 months agoUpdate to NSS 3.16.2 Beta 3.
wtc@chromium.org [Thu, 5 Jun 2014 00:49:06 +0000 (00:49 +0000)]
Update to NSS 3.16.2 Beta 3.

R=rsleevi@chromium.org
BUG=380925

Review URL: https://codereview.chromium.org/319593003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@274968 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

5 months agoAdd RSA-OAEP support from upstream NSS bugs 1009794 and 1009785
rsleevi@chromium.org [Tue, 20 May 2014 21:39:35 +0000 (21:39 +0000)]
Add RSA-OAEP support from upstream NSS bugs 1009794 and 1009785

BUG=372917
R=wtc

Review URL: https://codereview.chromium.org/295043002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@271760 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

5 months ago[webcrypto] Add some additional NSS exports on windows.
eroman@chromium.org [Tue, 20 May 2014 03:35:40 +0000 (03:35 +0000)]
[webcrypto] Add some additional NSS exports on windows.

These will be used by JWK import of RSA private keys.
BUG=373542, 24502

Review URL: https://codereview.chromium.org/293973002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@271557 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

6 months agoFix bugs in intel-gcm-x86-masm.asm and re-enable the Intel AES assembly
wtc@chromium.org [Wed, 30 Apr 2014 22:44:47 +0000 (22:44 +0000)]
Fix bugs in intel-gcm-x86-masm.asm and re-enable the Intel AES assembly
code.

R=agl@chromium.org,rsleevi@chromium.org
BUG=none

Review URL: https://codereview.chromium.org/254213002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@267366 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

6 months agoDisable Intel AES assembly code on Windows because of memory corruption
wtc@chromium.org [Tue, 29 Apr 2014 01:12:53 +0000 (01:12 +0000)]
Disable Intel AES assembly code on Windows because of memory corruption
in the GCM assembly code.

Fix a typo in the Windows x64 sources! section.

R=agl@chromium.org,rsleevi@chromium.org
BUG=367515

Review URL: https://codereview.chromium.org/258013011

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@266724 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

6 months agoImplement AES in different modes of operation, using AES-NI and
wtc@chromium.org [Thu, 24 Apr 2014 18:02:48 +0000 (18:02 +0000)]
Implement AES in different modes of operation, using AES-NI and
PCLMULQDQ-NI, for WIN32 and WIN64 platforms. Only the WIN32 assembly
code is used right now.

By Shay Gueron and Vlad Krasnov, Intel.
Upstream NSS bug: https://bugzilla.mozilla.org/show_bug.cgi?id=979703

Original review URL: https://codereview.chromium.org/214183004

TBR=agl@chromium.org,rsleevi@chromium.org
BUG=none

Review URL: https://codereview.chromium.org/250463004

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@265958 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoAdd PK11_ExportDERPrivateKeyInfo and PK11_ExportPrivKeyInfo.
wtc@chromium.org [Wed, 26 Mar 2014 01:52:52 +0000 (01:52 +0000)]
Add PK11_ExportDERPrivateKeyInfo and PK11_ExportPrivKeyInfo.

NSS bug: https://bugzilla.mozilla.org/show_bug.cgi?id=519255

R=eroman@chromium.org,rsleevi@chromium.org
BUG=none
TEST=none

Review URL: https://codereview.chromium.org/205343004

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@259440 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoUpdate to NSPR 4.10.4.
wtc@chromium.org [Sat, 22 Mar 2014 13:37:33 +0000 (13:37 +0000)]
Update to NSPR 4.10.4.

R=rsleevi@chromium.org,rtenneti@chromium.org
BUG=353152
TEST=none

Review URL: https://codereview.chromium.org/200653003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@258808 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoAdd NSS exports for Windows.
eroman@chromium.org [Fri, 21 Mar 2014 20:34:11 +0000 (20:34 +0000)]
Add NSS exports for Windows.

  SEC_ASN1EncodeInteger_Util
  NSS_Get_SECKEY_PrivateKeyInfoTemplate

Used by Web Crypto for the export of RSA private keys in PKCS#8 format.

BUG=245025

Review URL: https://codereview.chromium.org/203263013

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@258664 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoUpdate NSS to NSS_3_16_RTM.
wtc@chromium.org [Mon, 17 Mar 2014 16:53:40 +0000 (16:53 +0000)]
Update NSS to NSS_3_16_RTM.

It is no longer necessary to define NSS_ENABLE_ECC.

R=agl@chromium.org,rsleevi@chromium.org
BUG=353152
TEST=none

Review URL: https://codereview.chromium.org/195763027

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@257452 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoAdd PK11_PubUnwrapSymKeyWithFlagsPerm() to NSS exports.
eroman@chromium.org [Wed, 12 Mar 2014 23:20:52 +0000 (23:20 +0000)]
Add PK11_PubUnwrapSymKeyWithFlagsPerm() to NSS exports.

BUG=245025

Review URL: https://codereview.chromium.org/195893010

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@256695 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoAdd PK11_GetKeyLength to NSS exports.
eroman@chromium.org [Tue, 4 Mar 2014 22:52:45 +0000 (22:52 +0000)]
Add PK11_GetKeyLength to NSS exports.

BUG=245025

Review URL: https://codereview.chromium.org/186783002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@254867 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

8 months agoRevert r228205.
wtc@chromium.org [Tue, 25 Feb 2014 23:50:09 +0000 (23:50 +0000)]
Revert r228205.

> Disable optimization in prdtoa.c under VS2013.
>
> Causes a compiler ICE. Upstream bug marked fixed, so this can be
> removed on a subsequent compiler release.
>
> BUG=288948

R=scottmg@chromium.org
BUG=none
TEST=none

Review URL: https://codereview.chromium.org/180233003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@253292 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

8 months agoUpdate to NSS 3.15.5 and NSPR 4.10.3.
wtc@chromium.org [Fri, 21 Feb 2014 21:00:31 +0000 (21:00 +0000)]
Update to NSS 3.15.5 and NSPR 4.10.3.

R=agl@chromium.org,rsleevi@chromium.org
BUG=345497
TEST=none

Review URL: https://codereview.chromium.org/170823003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@252643 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

8 months agoFix compilation of NSPR and NSPR for aarch64
wtc@chromium.org [Tue, 18 Feb 2014 22:13:10 +0000 (22:13 +0000)]
Fix compilation of NSPR and NSPR for aarch64

nspr/pr/include/md/_darwin.cfg: Change 64-bit architecture detection in
to use __LP64__ that is defined when compiling for x86_64 and aarch64.

nspr/pr/include/md/_darwin.h: Define _PR_SI_ARCHITECTURE to "aarch64".

nspr/pr/src/misc/prdtoa.c: Do not define IEEE_ARM when building for
aarch64, as the IEEE implementation behaves as IEEE_8087 (setting
IEEE_ARM cause the function PR_strtod to return incorrect values).

nspr/pr/include/pratom.h: Do not use intrisincs __sync_add_and_fetch,
__sync_sub_and_fetch and __sync_lock_test_and_set when building for
aarch64 as support for those intrisics has not been tested (but it
should be).

nss/lib/freebl/build_config_mac.h: aarch64 is a 64-bit architecture
but instruction set is incompatible with previous ARMv7 instruction
set, so does not use assembly implementations.

By Sylvain Defresne <sdefresne@chromium.org>.
Original review URL: https://codereview.chromium.org/159893002/

BUG=314720
R=rsleevi@chromium.org, wtc@chromium.org

Review URL: https://codereview.chromium.org/167773007

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@251855 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agoUpdate third_party/nss to 3.15.5 Beta 2.
wtc@chromium.org [Tue, 21 Jan 2014 17:52:52 +0000 (17:52 +0000)]
Update third_party/nss to 3.15.5 Beta 2.

R=agl@chromium.org,rsleevi@chromium.org
BUG=331625
TEST=none

Review URL: https://codereview.chromium.org/133273035

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@246067 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agoAdd SEC_SignData to NSS exports.
eroman@chromium.org [Thu, 16 Jan 2014 20:02:22 +0000 (20:02 +0000)]
Add SEC_SignData to NSS exports.

BUG=245025

Review URL: https://codereview.chromium.org/140693005

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@245298 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agoRemove LDAP support from NSS.
wtc@chromium.org [Tue, 14 Jan 2014 00:01:34 +0000 (00:01 +0000)]
Remove LDAP support from NSS.

R=rsleevi@chromium.org
BUG=289680
TEST=none

Review URL: https://codereview.chromium.org/130403004

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@244613 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agoExport CERT_CompareName method.
mallinath@chromium.org [Fri, 10 Jan 2014 23:28:34 +0000 (23:28 +0000)]
Export CERT_CompareName method.

This method is being used in libjingle.

R=rsleevi@chromium.org
BUG=none
TEST=none

Review URL: https://codereview.chromium.org/131323007

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@244274 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agoDelete nss/lib/softoken/rsawrapr.c.
wtc@chromium.org [Thu, 9 Jan 2014 20:01:03 +0000 (20:01 +0000)]
Delete nss/lib/softoken/rsawrapr.c.

nss/lib/softoken/rsawrapr.c was deleted in NSS 3.15.4.

R=agl@chromium.org
BUG=331625
TEST=none

Review URL: https://codereview.chromium.org/132203003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@243960 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agoUpdate third_party/nss to NSS 3.15.4.
wtc@chromium.org [Thu, 9 Jan 2014 18:48:15 +0000 (18:48 +0000)]
Update third_party/nss to NSS 3.15.4.

Notable changes:

1. Move RSA PKCS #1 v1.5, RSA-PSS, and RSA-OAEP code from nss/lib/softoken
to nss/lib/freebl.
https://bugzilla.mozilla.org/show_bug.cgi?id=836019

2. Use the HTTP GET method for OCSP requests.
https://bugzilla.mozilla.org/show_bug.cgi?id=436414
https://bugzilla.mozilla.org/show_bug.cgi?id=928142

3. Improve handling of cached Unknown and Revoked OCSP status.
https://bugzilla.mozilla.org/show_bug.cgi?id=933109

4. Don't read from /dev/urandom using fully buffered mode I/O.
https://bugzilla.mozilla.org/show_bug.cgi?id=927230

R=agl@chromium.org,rsleevi@chromium.org
BUG=331625
TEST=none

Review URL: https://codereview.chromium.org/105893015

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@243937 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agoExport CERT_DistNamesFromCertList and CERT_DupDistNames.
wtc@chromium.org [Mon, 6 Jan 2014 18:18:06 +0000 (18:18 +0000)]
Export CERT_DistNamesFromCertList and CERT_DupDistNames.

They are referenced in SSL_SetTrustAnchors and SSL_ReconfigFD.
We have been commenting out the references with
net/third_party/nss/patches/versionskew.patch. I am going to
remove that patch because Chromium now requires NSS 3.14.3,
which have CERT_DistNamesFromCertList and CERT_DupDistNames.

R=rsleevi@chromium.org
BUG=331625
TEST=none

Review URL: https://codereview.chromium.org/117973004

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@243121 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

10 months agoExport four ASN.1 templates:
wtc@chromium.org [Sun, 8 Dec 2013 03:48:40 +0000 (03:48 +0000)]
Export four ASN.1 templates:
  NSS_Get_CERT_SequenceOfCertExtensionTemplate
  NSS_Get_SEC_GeneralizedTimeTemplate_Util
  NSS_Get_SEC_IntegerTemplate_Util
  NSS_Get_SEC_OctetStringTemplate_Util

R=rsleevi@chromium.org,eroman@chromium.org
BUG=309578
TEST=none

Review URL: https://codereview.chromium.org/109413002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@239365 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

11 months agoUpdate to NSPR 4.10.2.
wtc@chromium.org [Thu, 14 Nov 2013 22:37:02 +0000 (22:37 +0000)]
Update to NSPR 4.10.2.

Note: On Linux and its derivatives such as Android, define the feature
macro HAVE_GETTID, HAVE_SETPRIORITY, or HAVE_SYSCALL if the system has
the gettid, setpriority, or syscall function, respectively.

R=rtenneti@chromium.org
BUG=318442
TEST=none

Review URL: https://codereview.chromium.org/68173008

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@235242 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

11 months agoUpdate to NSS 3.15.3.
wtc@chromium.org [Wed, 13 Nov 2013 18:52:55 +0000 (18:52 +0000)]
Update to NSS 3.15.3.

R=agl@chromium.org,rsleevi@chromium.org
BUG=318442
TEST=none

Review URL: https://codereview.chromium.org/70673004

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@234862 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

11 months agoAdd SECKEY_GetPublicKeyType to windows exports.
eroman@chromium.org [Fri, 8 Nov 2013 00:28:04 +0000 (00:28 +0000)]
Add SECKEY_GetPublicKeyType to windows exports.

BUG=245025
R=rsleevi@chromium.org

Review URL: https://codereview.chromium.org/60803003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@233722 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoUpdate the patch file for r231825 (https://codereview.chromium.org/51333008).
wtc@chromium.org [Wed, 30 Oct 2013 22:04:20 +0000 (22:04 +0000)]
Update the patch file for r231825 (https://codereview.chromium.org/51333008).

TBR=agl@chromium.org
BUG=310768
TEST=none

Review URL: https://codereview.chromium.org/53523002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@231937 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoNSS: Typo fix for non-x86 builds in generic poly1305 code.
agl@chromium.org [Wed, 30 Oct 2013 13:57:26 +0000 (13:57 +0000)]
NSS: Typo fix for non-x86 builds in generic poly1305 code.

TBR=wtc

Review URL: https://codereview.chromium.org/51333008

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@231825 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoExpose PK11_GenerateKeyPairWithOpFlags to windows build of NSS.
eroman@chromium.org [Wed, 30 Oct 2013 06:29:21 +0000 (06:29 +0000)]
Expose PK11_GenerateKeyPairWithOpFlags to windows build of NSS.

BUG=267888
R=rsleevi@chromium.org

Review URL: https://codereview.appspot.com/19620043

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@231777 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoSupport ChaCha20+Poly1305 cipher suites.
wtc@chromium.org [Wed, 23 Oct 2013 20:05:06 +0000 (20:05 +0000)]
Support ChaCha20+Poly1305 cipher suites.

Patch by Adam Langley.

Upstream NSS bug https://bugzilla.mozilla.org/show_bug.cgi?id=917571

R=agl@chromium.org
BUG=310768
TEST=none

Review URL: https://codereview.chromium.org/27510015

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@230497 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoDisable optimization in prdtoa.c under VS2013.
scottmg@chromium.org [Fri, 11 Oct 2013 18:47:03 +0000 (18:47 +0000)]
Disable optimization in prdtoa.c under VS2013.

Causes a compiler ICE. Upstream bug marked fixed, so this can be
removed on a subsequent compiler release.

R=rsleevi@chromium.org
BUG=288948

Review URL: https://codereview.chromium.org/27011005

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@228205 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

13 months agoAdd NSS export for PK11_ImportSymKeyWithFlags.
eroman@chromium.org [Fri, 13 Sep 2013 22:11:09 +0000 (22:11 +0000)]
Add NSS export for PK11_ImportSymKeyWithFlags.

Will be used for WebCrypto.
It is already in the upstream NSS exports.

BUG=245025
R=rsleevi@chromium.org

Review URL: https://codereview.appspot.com/13474047

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@223139 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

14 months agoExport additional NSS functions for NetworkingPrivateCrypto support.
mef@chromium.org [Thu, 29 Aug 2013 21:22:38 +0000 (21:22 +0000)]
Export additional NSS functions for NetworkingPrivateCrypto support.

BUG=267667

Review URL: https://chromiumcodereview.appspot.com/23604007

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@220375 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoExport all the HASH_ functions.
wtc@chromium.org [Thu, 27 Jun 2013 23:21:04 +0000 (23:21 +0000)]
Export all the HASH_ functions.

https://codereview.chromium.org/17776003/ needs HASH_GetType and
HASH_ResultLenContext.

R=rsleevi@chromium.org
BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com/18140006

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@209026 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoUpdate NSS to NSS_3_15_1_BETA2.
wtc@chromium.org [Thu, 27 Jun 2013 00:30:55 +0000 (00:30 +0000)]
Update NSS to NSS_3_15_1_BETA2.

R=rsleevi@chromium.org
BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com/17773004

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@208832 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoRNG_SystemRNG should fail rather than falling back on rng_systemFromNoise
wtc@chromium.org [Mon, 17 Jun 2013 23:53:30 +0000 (23:53 +0000)]
RNG_SystemRNG should fail rather than falling back on rng_systemFromNoise
if it cannot call RtlGenRandom on Windows.

Remove the obsolete code for Windows versions older than Windows XP.

In unix_rand.c, abort the process under more conditions.

R=rsleevi@chromium.org
BUG=244661
TEST=none

Review URL: https://chromiumcodereview.appspot.com/17058006

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@206843 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoFix a typo in the header include guard of secmod.h.
wtc@chromium.org [Mon, 17 Jun 2013 22:16:41 +0000 (22:16 +0000)]
Fix a typo in the header include guard of secmod.h.

Upstream NSS bug: https://bugzilla.mozilla.org/show_bug.cgi?id=884072

R=thakis@chromium.org
BUG=none
TEST=no compilation errors

Review URL: https://chromiumcodereview.appspot.com/17314004

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@206814 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoExport HASH_Begin, HASH_Create, HASH_Destroy, HASH_End,
wtc@chromium.org [Thu, 13 Jun 2013 18:18:39 +0000 (18:18 +0000)]
Export HASH_Begin, HASH_Create, HASH_Destroy, HASH_End,
HASH_Update.

They are needed by https://codereview.chromium.org/16638016/

R=rsleevi@chromium.org
BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com/16990002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@206124 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoCall abort() if NSS cannot read from /dev/urandom.
wtc@chromium.org [Mon, 10 Jun 2013 21:47:22 +0000 (21:47 +0000)]
Call abort() if NSS cannot read from /dev/urandom.

R=rsleevi@chromium.org
BUG=244661
TEST=content_unittests --gtest_filter=MacSandboxTest.NSSAccess

Review URL: https://chromiumcodereview.appspot.com/15990009

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@205313 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoUpdate to NSS_3_15_RTM.
wtc@chromium.org [Tue, 4 Jun 2013 21:58:48 +0000 (21:58 +0000)]
Update to NSS_3_15_RTM.

nss-appendava-invalid-read.patch, nss-rc4-invalid-read.patch, and
nss-secitem-array-leak.patch are part of NSS_3_15_RTM.

nss-static-smime.patch is merged into nss-static.patch.

R=rsleevi@chromium.org
BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com/16293003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@204056 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoAllow NSS to be built with NO_NSPR_10_SUPPORT.
wtc@chromium.org [Sat, 1 Jun 2013 00:36:09 +0000 (00:36 +0000)]
Allow NSS to be built with NO_NSPR_10_SUPPORT.

Upstream NSS bug https://bugzilla.mozilla.org/show_bug.cgi?id=802430

TBR=rsleevi@chromium.org
BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com/16132005

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@203531 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoRemove CVS keywords from NSS source files.
wtc@chromium.org [Sat, 1 Jun 2013 00:06:39 +0000 (00:06 +0000)]
Remove CVS keywords from NSS source files.

Upstream NSS bug https://bugzilla.mozilla.org/show_bug.cgi?id=863871

TBR=rsleevi@chromium.org
BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com/16285003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@203521 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoFix the invalid read (heap-buffer-overflow) error in AppendAVA().
wtc@chromium.org [Wed, 15 May 2013 19:59:52 +0000 (19:59 +0000)]
Fix the invalid read (heap-buffer-overflow) error in AppendAVA().

Upstream NSS bug https://bugzilla.mozilla.org/show_bug.cgi?id=869262

R=rsleevi@chromium.org
BUG=236469
TEST=none

Review URL: https://chromiumcodereview.appspot.com/15067014

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@200337 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoEnable libpkix to handle AIA chasing when compiled statically
rsleevi@chromium.org [Wed, 15 May 2013 19:24:40 +0000 (19:24 +0000)]
Enable libpkix to handle AIA chasing when compiled statically

In order to prevent a circular dependency, upstream NSS has
libpkix dlopen [lib]smime3 to access the CERT_DecodeCertPackage
function, which handles decoding PEM/DER certificates from the
web.

However, when built as Chromium does, [lib]smime3 doesn't exist,
and thus all AIA chasing fails. Instead, for builds where all of
NSS is linked into a single library (static or dynamic), directly
link to the function (with the assistance of an extern).

BUG=176541

Review URL: https://chromiumcodereview.appspot.com/12383037

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@200333 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoExport SGN_Digest and VFY_VerifyDigestDirect.
wtc@chromium.org [Wed, 15 May 2013 14:47:25 +0000 (14:47 +0000)]
Export SGN_Digest and VFY_VerifyDigestDirect.

These functions generate or verify RSA signatures that contain
the ASN.1 DigestInfo structure. TLS 1.2 uses this kind of RSA
signature.

R=agl@chromium.org
BUG=90392
TEST=none

Review URL: https://chromiumcodereview.appspot.com/14575005

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@200266 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoExport HASH_ResultLenByOidTag.
wtc@chromium.org [Tue, 14 May 2013 17:08:37 +0000 (17:08 +0000)]
Export HASH_ResultLenByOidTag.

The TLS 1.2 code is expected to need this function.

R=agl@chromium.org
BUG=90392
TEST=none

Review URL: https://chromiumcodereview.appspot.com/14941009

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@200019 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoAdd the patch for https://codereview.chromium.org/15027002/.
wtc@chromium.org [Thu, 9 May 2013 00:44:25 +0000 (00:44 +0000)]
Add the patch for https://codereview.chromium.org/15027002/.

R=rsleevi@chromium.org
BUG=174140
TEST=none

Review URL: https://chromiumcodereview.appspot.com/14982004

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@199075 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoFix the remaining heap-buffer-overflow (read) error in arcfour.c.
wtc@chromium.org [Tue, 7 May 2013 21:35:21 +0000 (21:35 +0000)]
Fix the remaining heap-buffer-overflow (read) error in arcfour.c.

R=rsleevi@chromium.org
BUG=174140
TEST=none

Review URL: https://chromiumcodereview.appspot.com/15027002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@198802 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months agoFix a memory leak in SECITEM_FreeArray.
wtc@chromium.org [Tue, 30 Apr 2013 23:14:22 +0000 (23:14 +0000)]
Fix a memory leak in SECITEM_FreeArray.

NSS bug: https://bugzilla.mozilla.org/show_bug.cgi?id=866363

R=rsleevi@chromium.org
BUG=233732
TEST=no build errors or test failures

Review URL: https://chromiumcodereview.appspot.com/14704003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@197511 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months agoExport the functions needed by the libSSL in NSS 3.15.
wtc@chromium.org [Mon, 29 Apr 2013 22:14:49 +0000 (22:14 +0000)]
Export the functions needed by the libSSL in NSS 3.15.

R=agl@chromium.org,rsleevi@chromium.org
BUG=233732
TEST=no build errors on Windows

Review URL: https://chromiumcodereview.appspot.com/14544011

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@197158 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months agoUpdate NSS to NSS_3_15_BETA2.
wtc@chromium.org [Wed, 24 Apr 2013 23:29:36 +0000 (23:29 +0000)]
Update NSS to NSS_3_15_BETA2.

R=agl@chromium.org,rsleevi@chromium.org
BUG=233732
TEST=no build errors on iOS, Mac OS X, and Windows.

Review URL: https://chromiumcodereview.appspot.com/13898013

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@196262 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months agoMake most of the RCS/CVS keyword changes in NSS_3_15_BETA2 after
wtc@chromium.org [Mon, 22 Apr 2013 23:09:14 +0000 (23:09 +0000)]
Make most of the RCS/CVS keyword changes in NSS_3_15_BETA2 after
NSS was migrated from CVS to hg.

This will make it easier to see the real changes in NSS_3_15_BETA2.

TBR=rsleevi@chromium.org
BUG=233732
TEST=no build errors on iOS, Mac OS X, and Windows.

Review URL: https://chromiumcodereview.appspot.com/14166011

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@195639 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months ago- Added export of CERT_GetCertKeyType for ssl platform support
mef@chromium.org [Mon, 22 Apr 2013 22:02:44 +0000 (22:02 +0000)]
- Added export of CERT_GetCertKeyType for ssl platform support

BUG=226455

Review URL: https://chromiumcodereview.appspot.com/14416002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@195619 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months agoChange the NSS and NSPR source tree to the new directory structure to be
wtc@chromium.org [Fri, 19 Apr 2013 23:37:33 +0000 (23:37 +0000)]
Change the NSS and NSPR source tree to the new directory structure to be
used by NSS 3.15.

The directory structure of the source tree was adjusted with these svn
commands:
    svn move mozilla/nsprpub nspr
    svn move mozilla/security/nss nss
    svn delete mozilla

R=rsleevi@chromium.org
BUG=233732
TEST=no build errors on iOS, Mac OS X, and Windows.

Review URL: https://codereview.chromium.org/14249009

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@195338 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

19 months agoPK11_DecryptWithSymKey and PK11_EncryptWithSymKey have been
wtc@chromium.org [Fri, 29 Mar 2013 19:28:51 +0000 (19:28 +0000)]
PK11_DecryptWithSymKey and PK11_EncryptWithSymKey have been
renamed PK11_Decrypt and PK11_Encrypt.

gcm.c: Don't call PORT_Memcpy with a NULL source buffer pointer.
Use a better error code if the input buffer is too small.

ecp_256_32.c: Remove the extra BYTESWAP32 and BYTESWAP64 for
big-endian processors.

R=rsleevi@chromium.org,rtenneti@chromium.org
BUG=none
TEST=none
Review URL: https://codereview.chromium.org/13327005

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@191424 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

19 months agoMake CKM_AES_GCM usable.
wtc@chromium.org [Tue, 26 Mar 2013 18:47:04 +0000 (18:47 +0000)]
Make CKM_AES_GCM usable.

This requires fixing bugs in the underlying AES GCM code and
adding the PK11_EncryptWithSymKey and PK11_DecryptWithSymKey
functions to provide access to CKM_AES_GCM, which does not
support multi-part operations.

R=agl@chromium.org,rsleevi@chromium.org
BUG=none
TEST=to be covered by Aes128GcmEncrypterTest and
Aes128GcmDecrypterTest in net_unittests

Review URL: https://chromiumcodereview.appspot.com/12668022

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@190723 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoDefine _AMD64_, MP_CHAR_STORE_SLOW, and MP_IS_LITTLE_ENDIAN
wtc@chromium.org [Thu, 14 Feb 2013 23:45:32 +0000 (23:45 +0000)]
Define _AMD64_, MP_CHAR_STORE_SLOW, and MP_IS_LITTLE_ENDIAN
for 64-bit Windows builds.

This matches the upstream NSS build system.

R=jschuh@chromium.org,rsleevi@chromium.org
BUG=167951
TEST=none

Review URL: https://chromiumcodereview.appspot.com/12210134

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@182578 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoFix RC4 reads/writes outside array bounds.
wtc@chromium.org [Thu, 14 Feb 2013 23:44:56 +0000 (23:44 +0000)]
Fix RC4 reads/writes outside array bounds.

Encrypt one byte at a time before and after the main loop
that encrypts one word at a time.

Use rc4_wordconv for x86 on all operating systems. Improve
error reporting.

R=rsleevi@chromium.org
BUG=174140
TEST=none

Review URL: https://chromiumcodereview.appspot.com/12226071

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@182577 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoUpdate to NSS 3.14.3 Beta 1 for the TLS CBC constant-time
wtc@chromium.org [Fri, 8 Feb 2013 18:40:41 +0000 (18:40 +0000)]
Update to NSS 3.14.3 Beta 1 for the TLS CBC constant-time
decoding fix.

R=agl@chromium.org,rsleevi@chromium.org
BUG=172658
TEST=none

Review URL: https://chromiumcodereview.appspot.com/12207073

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@181529 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoMerge NSS_3_14_2_RTM.
mattm@chromium.org [Tue, 5 Feb 2013 01:17:06 +0000 (01:17 +0000)]
Merge NSS_3_14_2_RTM.

Add nss-sqlite-tempfilename-ifdef.patch to fix compile failure.

TEST=compile on mac and win.
Review URL: https://codereview.chromium.org/12197027

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@180595 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoSupport big-endian processors. Eliminate the dependency on the
wtc@chromium.org [Mon, 4 Feb 2013 20:30:06 +0000 (20:30 +0000)]
Support big-endian processors. Eliminate the dependency on the
implementation-defined behavior of right-shifting a negative signed
integer.

R=agl@chromium.org,rsleevi@chromium.org
BUG=172178
TEST=no build or test failures on iOS, Mac, and Windows

Review URL: https://chromiumcodereview.appspot.com/12137003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@180499 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoUse the ARM assembly code in mpi_arm.c for iOS.
wtc@chromium.org [Thu, 31 Jan 2013 19:46:46 +0000 (19:46 +0000)]
Use the ARM assembly code in mpi_arm.c for iOS.

For Mac OS X and iOS, use a forced include file
(mozilla/security/nss/lib/freebl/build_config_mac.h) to define the
processor architecture specific macros used by NSS's lib/freebl
code.

R=droger@chromium.org,mark@chromium.org,rsleevi@chromium.org
BUG=139432
TEST=no build error or net_unittests failure. Visit https://www.google.com/
on iOS.

Review URL: https://chromiumcodereview.appspot.com/10828060

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@179928 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoUpdate to NSPR 4.9.5 Beta 2, part 2: actual changes.
wtc@chromium.org [Tue, 29 Jan 2013 14:20:10 +0000 (14:20 +0000)]
Update to NSPR 4.9.5 Beta 2, part 2: actual changes.

R=rsleevi@chromium.org
BUG=172762
TEST=none

Review URL: https://chromiumcodereview.appspot.com/12089033

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@179335 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoUpdate to NSPR 4.9.5, part 1: MPL 2 upgrade only.
wtc@chromium.org [Tue, 29 Jan 2013 01:06:54 +0000 (01:06 +0000)]
Update to NSPR 4.9.5, part 1: MPL 2 upgrade only.

For ease of reviewing the actual changes, I split the update to NSPR 4.9.5
into two parts. Part 1 is the MPL 2 upgrade only, which occurred in NSPR
4.9.1 (https://bugzilla.mozilla.org/show_bug.cgi?id=716564).

mozilla/nsprpub/LICENSE is a new file containing MPL 2.

R=rsleevi@chromium.org
BUG=172762
TEST=none

Review URL: https://chromiumcodereview.appspot.com/12084035

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@179236 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoAdd an optimized 32-bit implementation of the NIST P-256 elliptic curve.
wtc@chromium.org [Mon, 28 Jan 2013 22:31:29 +0000 (22:31 +0000)]
Add an optimized 32-bit implementation of the NIST P-256 elliptic curve.

ecp_256_32.c was written by Adam Langley and was reviewed in
https://codereview.chromium.org/10944017/

R=agl@chromium.org,rsleevi@chromium.org
BUG=172178
TEST=no build or test failures on iOS, Mac, and Windows

Review URL: https://chromiumcodereview.appspot.com/12042100

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@179208 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoIt is not necessary to disable Visual C++ warning C4334 when
wtc@chromium.org [Thu, 17 Jan 2013 18:24:28 +0000 (18:24 +0000)]
It is not necessary to disable Visual C++ warning C4334 when
compiling NSPR.

R=jschuh@chromium.org
BUG=166496
TEST=no compilation errors
Review URL: https://codereview.chromium.org/11886033

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@177437 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoExpose more functions for webrtc.
ronghuawu@chromium.org [Mon, 14 Jan 2013 22:26:12 +0000 (22:26 +0000)]
Expose more functions for webrtc.

Review URL: https://chromiumcodereview.appspot.com/11884022

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@176741 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoExport SECKEY_CopyPublicKey for windows.
ronghuawu@chromium.org [Sat, 12 Jan 2013 04:24:01 +0000 (04:24 +0000)]
Export SECKEY_CopyPublicKey for windows.

Webrtc/libjingle uses SECKEY_CopyPublicKey.

Review URL: https://chromiumcodereview.appspot.com/11874012

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@176509 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoMake all nss targets build on Win64
jschuh@chromium.org [Thu, 10 Jan 2013 00:16:34 +0000 (00:16 +0000)]
Make all nss targets build on Win64

BUG=166496
BUG=167187

Review URL: https://chromiumcodereview.appspot.com/11827039

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@175939 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoMake nss compile on Win64
jschuh@chromium.org [Thu, 27 Dec 2012 19:19:47 +0000 (19:19 +0000)]
Make nss compile on Win64

BUG=http://crbug.com/166496

Review URL: https://chromiumcodereview.appspot.com/11602021

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@174690 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoUpdate NSS to NSS 3.14.1 RC0
wtc@chromium.org [Thu, 13 Dec 2012 20:45:57 +0000 (20:45 +0000)]
Update NSS to NSS 3.14.1 RC0

R=rsleevi@chromium.org
BUG=none
TEST=none
Review URL: https://codereview.chromium.org/11576018

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@172945 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoUpdate to NSS_3_14_1_BETA2.
wtc@chromium.org [Sat, 8 Dec 2012 04:16:26 +0000 (04:16 +0000)]
Update to NSS_3_14_1_BETA2.

R=rsleevi@chromium.org
BUG=none
TEST=none
Review URL: https://codereview.chromium.org/11475053

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@171933 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoFix gcc compiler warnings "cast to pointer from integer of different size"
wtc@chromium.org [Thu, 6 Dec 2012 23:01:25 +0000 (23:01 +0000)]
Fix gcc compiler warnings "cast to pointer from integer of different size"
in certvfy.c in 64-bit builds.

R=mark@chromium.org,rsleevi@chromium.org
BUG=none
TEST=none
Review URL: https://codereview.chromium.org/11468004

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@171621 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoUpdate NSS to NSS 3.14.1 pre-release snapshot 2012-11-17 01:00:00 PST.
wtc@chromium.org [Sat, 24 Nov 2012 00:31:53 +0000 (00:31 +0000)]
Update NSS to NSS 3.14.1 pre-release snapshot 2012-11-17 01:00:00 PST.

TBR=rsleevi@chromium.org
BUG=153281
TEST=none
Review URL: https://codereview.chromium.org/11280082

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@169374 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoFix a compilation error under GCC 4.6.3 with the -O3 -fvisibility=hidden
wtc@chromium.org [Wed, 21 Nov 2012 22:34:00 +0000 (22:34 +0000)]
Fix a compilation error under GCC 4.6.3 with the -O3 -fvisibility=hidden
-fno-omit-frame-pointer flags

NSS bug https://bugzilla.mozilla.org/show_bug.cgi?id=814031

R=rsleevi@chromium.org,sgjesse@chromium.org
BUG=none
TEST=none
Review URL: https://codereview.chromium.org/11411127

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@169146 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoExport NSS_SetAlgorithmPolicy.
wtc@chromium.org [Tue, 20 Nov 2012 20:09:56 +0000 (20:09 +0000)]
Export NSS_SetAlgorithmPolicy.

This could be useful to the code in
https://chromiumcodereview.appspot.com/11365274.

R=rsleevi@chromium.org
BUG=151692
TEST=none
Review URL: https://codereview.chromium.org/11419095

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@168855 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoMerge the patch for the NSS 3.14 regression
wtc@chromium.org [Mon, 19 Nov 2012 20:31:07 +0000 (20:31 +0000)]
Merge the patch for the NSS 3.14 regression
https://bugzilla.mozilla.org/show_bug.cgi?id=812399

TBR=rsleevi@chromium.org
BUG=153281
TEST=none
Review URL: https://codereview.chromium.org/11419072

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@168591 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoUse the oserr argument of PR_SetError to narrow down where NSS
wtc@chromium.org [Fri, 16 Nov 2012 20:50:20 +0000 (20:50 +0000)]
Use the oserr argument of PR_SetError to narrow down where NSS
sets the SEC_ERROR_LEGACY_DATABASE error.

R=mattm@chromium.org,rsleevi@chromium.org
BUG=153281
TEST=none
Review URL: https://codereview.chromium.org/11420043

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@168286 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoUpdate NSS to NSS 3.14 pre-release snapshot 2012-06-28 01:00:00 PDT.
wtc@chromium.org [Fri, 9 Nov 2012 01:35:39 +0000 (01:35 +0000)]
Update NSS to NSS 3.14 pre-release snapshot 2012-06-28 01:00:00 PDT.

This snapshot contains the NSS patch for
https://bugzilla.mozilla.org/show_bug.cgi?id=753116 (softoken needs
to split out common components to util) was checked in, which we
suspect may have caused the crash in bug 153281.

TBR=rsleevi@chromium.org
BUG=151692
TEST=none
Review URL: https://codereview.chromium.org/11362174

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@166832 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoUpdate NSS to NSS 3.14 pre-release snapshot 2012-06-26 01:00:00 PDT.
wtc@chromium.org [Thu, 8 Nov 2012 01:05:41 +0000 (01:05 +0000)]
Update NSS to NSS 3.14 pre-release snapshot 2012-06-26 01:00:00 PDT.

This is the snapshot of NSS right before the NSS patch for
https://bugzilla.mozilla.org/show_bug.cgi?id=753116 (softoken needs
to split out common components to util) was checked in, which we
suspect may have caused the crash in bug 153281.

TBR=rsleevi@chromium.org
BUG=151692
TEST=none
Review URL: https://codereview.chromium.org/11359091

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@166571 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoAdd support files for building NSS and NSPR on linux.
whesse@chromium.org [Thu, 1 Nov 2012 19:21:15 +0000 (19:21 +0000)]
Add support files for building NSS and NSPR on linux.

The nss.gyp file is not changed to support this.  Building on linux is
only supported in the standalone Dart VM, using runtime/bin/net/nss.gyp
in the Dart repository, which checks out Chromium NSS into third_party.
The added files are exact copies from NSPR 4.9.  The checkout script for nspr
is modified to leave these additional files undeleted.
Review URL: https://codereview.chromium.org/11343039

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@165464 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoAdd back file content that mysteriously disappeared after https://chromiumcodereview...
thakis@chromium.org [Fri, 26 Oct 2012 01:24:49 +0000 (01:24 +0000)]
Add back file content that mysteriously disappeared after https://chromiumcodereview.appspot.com/11029020

TBR=wtc

Review URL: https://chromiumcodereview.appspot.com/11267053

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@164238 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoRevert NSS 3.14 because it seems to cause the crash in bug 153281.
wtc@chromium.org [Thu, 25 Oct 2012 22:42:35 +0000 (22:42 +0000)]
Revert NSS 3.14 because it seems to cause the crash in bug 153281.

This reverts three CLs.
1. r163113: https://codereview.chromium.org/11227010
2. r162852: https://codereview.chromium.org/11193042
3. r158748: https://codereview.chromium.org/10961060

R=thakis@chromium.org,rsleevi@chromium.org
BUG=151692
TEST=none
Review URL: https://codereview.chromium.org/11270050

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@164196 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoFix a compiler warning in sftk_forceTokenAttribute in
wtc@chromium.org [Sat, 20 Oct 2012 00:57:56 +0000 (00:57 +0000)]
Fix a compiler warning in sftk_forceTokenAttribute in
mozilla/security/nss/lib/softoken/pkcs11u.c.

3>ClCompile:
3>  pkcs11u.c
3>mozilla\security\nss\lib\softoken\pkcs11u.c(514): error C2220:
  warning treated as error - no 'object' file generated
3>mozilla\security\nss\lib\softoken\pkcs11u.c(514): warning C4090:
  '=' : different 'const' qualifiers

TBR=rsleevi@chromium.org
BUG=151692
TEST=none
Review URL: https://codereview.chromium.org/11227010

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@163113 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoUpdate NSS to NSS 3.14 RC1.
wtc@chromium.org [Fri, 19 Oct 2012 00:05:34 +0000 (00:05 +0000)]
Update NSS to NSS 3.14 RC1.

R=rsleevi@chromium.org
BUG=151692
TEST=none
Review URL: https://codereview.chromium.org/11193042

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@162852 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoMinor readme tweaks suggested at https://codereview.chromium.org/11017010/
thakis@chromium.org [Thu, 4 Oct 2012 05:40:04 +0000 (05:40 +0000)]
Minor readme tweaks suggested at https://codereview.chromium.org/11017010/

TBR=wtc

Review URL: https://chromiumcodereview.appspot.com/11029020

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/nss@160085 4ff67af0-8c30-449e-8e8b-ad334ec8d88c