chromium/deps/nss.git
10 days agoFix the invalid read (heap-buffer-overflow) error in AppendAVA(). master
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

10 days 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

10 days 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

11 days 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

2 weeks 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

2 weeks 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

3 weeks 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

3 weeks 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

4 weeks 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

4 weeks 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

4 weeks 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

5 weeks 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

8 weeks 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

8 weeks 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

4 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

4 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

4 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

4 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

4 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

5 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

5 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

5 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 months 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

6 months 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

7 months 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

7 months 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

7 months 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

7 months agoExclude mpi_amd64.c from the sources list when building on 64-bit mac os in order...
badea@adobe.com [Wed, 3 Oct 2012 08:16:09 +0000 (08:16 +0000)]
Exclude mpi_amd64.c from the sources list when building on 64-bit mac os in order to fix compilation errors.

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

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

7 months agoAdd readme entry for https://codereview.chromium.org/11019003/
thakis@chromium.org [Mon, 1 Oct 2012 15:10:43 +0000 (15:10 +0000)]
Add readme entry for https://codereview.chromium.org/11019003/

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

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

7 months agoMerge https://bugzilla.mozilla.org/show_bug.cgi?id=795213 to fix a warning.
thakis@chromium.org [Mon, 1 Oct 2012 08:32:47 +0000 (08:32 +0000)]
Merge https://bugzilla.mozilla.org/show_bug.cgi?id=795213 to fix a warning.

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

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

7 months agoUpdate NSS to NSS 3.14 pre-release snapshot 2012-09-25.
wtc@chromium.org [Wed, 26 Sep 2012 04:57:13 +0000 (04:57 +0000)]
Update NSS to NSS 3.14 pre-release snapshot 2012-09-25.

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

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

8 months agoChange the license headers to MPL 2. MPL 2 is in
wtc@chromium.org [Sat, 22 Sep 2012 00:17:24 +0000 (00:17 +0000)]
Change the license headers to MPL 2. MPL 2 is in
mozilla/security/nss/COPYING.

TBR=rsleevi@chromium.org
BUG=151692
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10970050

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

8 months agoFix DER_EncodeTimeChoice handling of dates before 1950 and
mattm@chromium.org [Fri, 31 Aug 2012 18:57:28 +0000 (18:57 +0000)]
Fix DER_EncodeTimeChoice handling of dates before 1950 and
exactly 2050-01-01 00:00:00.

BUG=142388
Review URL: https://chromiumcodereview.appspot.com/10898026

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

10 months agoAdd iOS build support to nss.gyp
stuartmorgan@chromium.org [Tue, 10 Jul 2012 13:35:03 +0000 (13:35 +0000)]
Add iOS build support to nss.gyp

BUG=None
TEST=None

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

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

10 months agoAdd PK11_DoesMechanism to NSS exports_win.def
mattm@chromium.org [Mon, 25 Jun 2012 21:28:39 +0000 (21:28 +0000)]
Add PK11_DoesMechanism to NSS exports_win.def

For http://codereview.chromium.org/10560020/

BUG=127506
TEST=Try to build that CL on windows shared build.
Review URL: https://chromiumcodereview.appspot.com/10669014

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

11 months agoUpdate NSS to NSS 3.13.5 (from NSS 3.13.3).
wtc@chromium.org [Thu, 14 Jun 2012 23:17:47 +0000 (23:17 +0000)]
Update NSS to NSS 3.13.5 (from NSS 3.13.3).

R=rsleevi@chromium.org
BUG=132885
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10540165

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

11 months agoAdded some exports required for using NSS for symmetric key crypto on Windows (http...
ddorwin@chromium.org [Thu, 14 Jun 2012 19:24:02 +0000 (19:24 +0000)]
Added some exports required for using NSS for symmetric key crypto on Windows (crbug.com/127803).

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

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

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

11 months agoUpdate patches/ with new modifications
rsleevi@chromium.org [Thu, 7 Jun 2012 19:31:52 +0000 (19:31 +0000)]
Update patches/ with new modifications

BUG=none
TEST=none

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

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

11 months agoAddress a post-review comment following r140895
rsleevi@chromium.org [Thu, 7 Jun 2012 01:34:05 +0000 (01:34 +0000)]
Address a post-review comment following r140895

BUG=none
TEST=none
TBR=wtc

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

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

11 months agoFix a memory leak in cert_PKIXMakeOIDList, which is called any time
rsleevi@chromium.org [Thu, 7 Jun 2012 00:08:48 +0000 (00:08 +0000)]
Fix a memory leak in cert_PKIXMakeOIDList, which is called any time
certificate verification happens.

BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10537019/

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

12 months agoFix incremental_chrome_dll=1 builds on Windows
rsleevi@chromium.org [Mon, 21 May 2012 21:21:12 +0000 (21:21 +0000)]
Fix incremental_chrome_dll=1 builds on Windows

WebKit pulls in nss.gyp:* as a dependency, which is an incorrect
configuration. While this issue needs to be fixed upstream, work
around it by suppressing internal targets from appearing as dependencies
when using *

BUG=128996
TEST=Build Chrome on MSVS with incremental_chrome_dll=1. webkit.dll should
link.

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

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

12 months agonss: Fix mac components build breakage.
thakis@chromium.org [Sat, 19 May 2012 17:36:00 +0000 (17:36 +0000)]
nss: Fix mac components build breakage.

http://codereview.chromium.org/10392098/ made nss a
shim target with a single source file that depends on
a static library that contains all object files. Tell
the linker to load all these object files.

I don't quite understand 'nss' doesn't contain most
source files, with just nssckbi being a small static
library, and no nss_static, but this is the smallest
change to fix the components build.

TBR=rsleevi
Review URL: https://chromiumcodereview.appspot.com/10409044

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

12 months agoSpeculative fix for mac shared FYI bot
rsleevi@chromium.org [Sat, 19 May 2012 00:43:20 +0000 (00:43 +0000)]
Speculative fix for mac shared FYI bot

BUG=none
TEST=none

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

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

12 months agoAddress post-review comment from r137477
rsleevi@chromium.org [Fri, 18 May 2012 19:36:39 +0000 (19:36 +0000)]
Address post-review comment from r137477

BUG=123666
TEST=it compiles
R=wtc

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

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

12 months agoSplit the nssckbi target off from the 'nss' target.
rsleevi@chromium.org [Wed, 16 May 2012 19:15:33 +0000 (19:15 +0000)]
Split the nssckbi target off from the 'nss' target.

Originally reviewed at http://codereview.chromium.org/10392098/

BUG=123666
TEST=it compiles (both static and shared)
TBR=wtc

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

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

12 months agoFix compiler warnings.
wtc@chromium.org [Wed, 9 May 2012 17:25:23 +0000 (17:25 +0000)]
Fix compiler warnings.

..\..\third_party\nss\mozilla\nsprpub\pr\src\io\prprf.c(668) : warning C4133:
'=' : incompatible types - from 'WCHAR *' to 'const char *'
..\..\third_party\nss\mozilla\nsprpub\pr\src\io\prprf.c(1007) : warning C4090:
'=' : different 'const' qualifiers
..\..\third_party\nss\mozilla\security\nss\lib\certdb\stanpcertdb.c(710) :
warning C4090: 'function' : different 'const' qualifiers
..\..\third_party\nss\mozilla\security\nss\lib\certdb\stanpcertdb.c(719) :
warning C4090: 'function' : different 'const' qualifiers
..\..\third_party\nss\mozilla\security\nss\lib\pk11wrap\pk11load.c(486) :
warning C4102: 'library_loaded' : unreferenced label
..\..\third_party\nss\mozilla\security\nss\lib\softoken\pkcs11c.c(6265) :
warning C4090: 'function' : different 'const' qualifiers

R=scottmg@chromium.org
BUG=126483
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10389033

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

14 months agomac: Don't build nss with -fvisibility=hidden when doing a shared build. git-svn
thakis@chromium.org [Mon, 12 Mar 2012 19:25:20 +0000 (19:25 +0000)]
mac: Don't build nss with -fvisibility=hidden when doing a shared build.

This matches what we do in ffmpeg:
http://code.google.com/codesearch#OAMlx_jo-ck/src/third_party/ffmpeg/ffmpeg.gyp&exact_package=chromium&q=fvisibility=hidden%20file:%5C.gyp&type=cs&l=513

BUG=chromium:90078
Review URL: https://chromiumcodereview.appspot.com/9690002

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

14 months agoUpdate to NSS 3.13.3.
wtc@chromium.org [Tue, 28 Feb 2012 00:41:21 +0000 (00:41 +0000)]
Update to NSS 3.13.3.

R=rsleevi@chromium.org
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9474027

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

15 months agoUpdate to NSS 3.13.2.
wtc@chromium.org [Fri, 17 Feb 2012 17:43:33 +0000 (17:43 +0000)]
Update to NSS 3.13.2.

R=rsleevi@chromium.org
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9413033

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

15 months agoUpdate to NSPR 4.9.
wtc@chromium.org [Thu, 16 Feb 2012 04:08:00 +0000 (04:08 +0000)]
Update to NSPR 4.9.

The mozilla/nsprpub/lib/msgc directory has been removed from NSPR
upstream, so nspr-checkout.sh no longer needs to remove it.

R=rsleevi@chromium.org
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9404039

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

15 months agoSwitch/enum warnings moved from -Wswitch-enum to -Wswitch in clang,
thakis@chromium.org [Wed, 15 Feb 2012 16:13:05 +0000 (16:13 +0000)]
Switch/enum warnings moved from -Wswitch-enum to -Wswitch in clang,
rename flag.

TBR=evan
Review URL: https://chromiumcodereview.appspot.com/9402013

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

15 months agoAllow projects dependent on NSS to specify whether to build the complete NSS.
rsleevi@chromium.org [Mon, 30 Jan 2012 22:53:10 +0000 (22:53 +0000)]
Allow projects dependent on NSS to specify whether to build the complete NSS.

(Originally reviewed at http://codereview.chromium.org/9233033/ )

BUG=none
TEST=none
TBR=wtc

Review URL: http://codereview.chromium.org/9302015

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

16 months agoDisable harmless warnings for 3rdparty code: nss, nspr.
thakis@chromium.org [Tue, 17 Jan 2012 22:22:17 +0000 (22:22 +0000)]
Disable harmless warnings for 3rdparty code: nss, nspr.

BUG=102390
Review URL: https://chromiumcodereview.appspot.com/9221023

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

17 months agoAdd the include_dirs required when 'exclude_nss_root_certs' or 'exclude_nss_libpkix...
wtc@chromium.org [Wed, 21 Dec 2011 23:40:00 +0000 (23:40 +0000)]
Add the include_dirs required when 'exclude_nss_root_certs' or 'exclude_nss_libpkix' is 0.

R=mattm@chromium.org,rvargas@chromium.org
BUG=none
TEST=No compilation errors when 'exclude_nss_root_certs' and 'exclude_nss_libpkix' are 1
(the default).
Review URL: http://codereview.chromium.org/8999019

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

17 months agoAdd PR_ImplodeTime to exports.def.
mattm@chromium.org [Thu, 15 Dec 2011 00:55:41 +0000 (00:55 +0000)]
Add PR_ImplodeTime to exports.def.

BUG=107047
TEST=local build
Review URL: http://codereview.chromium.org/8952001

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

17 months agoAdd CERT_CertTimesValid to exports, for http://codereview.chromium.org/8537025/
mattm@chromium.org [Thu, 1 Dec 2011 21:43:18 +0000 (21:43 +0000)]
Add CERT_CertTimesValid to exports, for codereview.chromium.org/8537025/

BUG=88782
TEST=none
Review URL: http://codereview.chromium.org/8770015

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

18 months agoRevert unnecessary change r109994. (Remove bailout from signing function.)
mattm@chromium.org [Thu, 17 Nov 2011 22:40:58 +0000 (22:40 +0000)]
Revert unnecessary change r109994. (Remove bailout from signing function.)

BUG=88782
TEST=none
Review URL: http://codereview.chromium.org/8574043

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

18 months agoAdd HASH_ResultLen to exports.
mattm@chromium.org [Tue, 15 Nov 2011 22:31:17 +0000 (22:31 +0000)]
Add HASH_ResultLen to exports.

BUG=88782
TEST=none
Review URL: http://codereview.chromium.org/8533029

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

18 months agoExports for http://codereview.chromium.org/8537025.
mattm@chromium.org [Tue, 15 Nov 2011 00:26:40 +0000 (00:26 +0000)]
Exports for codereview.chromium.org/8537025.

BUG=88782
TEST=builds
Review URL: http://codereview.chromium.org/8463028

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

18 months agoRemove bailout from signing function.
mattm@chromium.org [Tue, 15 Nov 2011 00:26:29 +0000 (00:26 +0000)]
Remove bailout from signing function.

BUG=88782
TEST=tested in followup chromium unittest
Review URL: http://codereview.chromium.org/8463029

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

18 months agoAdd NSS exports for ECPrivateKey shared build.
mattm@chromium.org [Tue, 8 Nov 2011 04:07:40 +0000 (04:07 +0000)]
Add NSS exports for ECPrivateKey shared build.
(http://codereview.chromium.org/8413024/)

BUG=88782
TEST=win shared build works
Review URL: http://codereview.chromium.org/8386062

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

18 months agoUpdate NSS to NSS 3.13.1 Beta 2.
wtc@chromium.org [Wed, 26 Oct 2011 01:46:45 +0000 (01:46 +0000)]
Update NSS to NSS 3.13.1 Beta 2.

There are two new files:
  mozilla/security/nss/lib/util/SECerrs.h
  mozilla/security/nss/lib/util/errstrs.c

Some of our local modifications have been checked in to the NSS
upstream, so our two NSS patches become smaller.

R=mattm@chromium.org
BUG=84136,97426
TEST=none
Review URL: http://codereview.chromium.org/8390026

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

19 months agoInclude exports to fix win shared build with 105997.
mattm@chromium.org [Tue, 18 Oct 2011 04:46:51 +0000 (04:46 +0000)]
Include exports to fix win shared build with 105997.

BUG=none
TEST=compiles
TBR=wtc@chromium.org
Review URL: http://codereview.chromium.org/8334011

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

20 months agoAdd PK11_NeedLogin and PK11_IsLoggedIn to Win NSS exports.
mattm@chromium.org [Fri, 16 Sep 2011 21:10:27 +0000 (21:10 +0000)]
Add PK11_NeedLogin and PK11_IsLoggedIn to Win NSS exports.

(Needed for shared build to work with http://codereview.chromium.org/7839025/)

BUG=88782
TEST=none
Review URL: http://codereview.chromium.org/7926003

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

21 months agoImprove nspr-static.patch and nss-static.patch.
wtc@chromium.org [Mon, 1 Aug 2011 17:08:54 +0000 (17:08 +0000)]
Improve nspr-static.patch and nss-static.patch.

Now they test the macros NSPR_STATIC, NSS_STATIC, NSS_DISABLE_DBM,
NSS_DISABLE_LIBPKIX, and NSS_DISABLE_ROOT_CERTS, instead of using
#if 0 to comment out code.

For our purposes, NSPR_STATIC is the opposite of our COMPONENT_BUILD
macro, but NSS_STATIC isn't.  We still need to define NSS_STATIC
when building our nss component as shared_library.  To us, NSS_STATIC
means "do not build the NSS freebl, softokn, and nssckbi libraries as
separate shared libraries".  Perhaps NSS_MONOLITHIC would be a better
macro name.

The new nss-static.patch also adds the ability to use the built-in
root CA certificates in a NSS static build.

R=rvargas@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7453039

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

21 months agoAdd all NSS files to allow using a complete NSS in the future.
wtc@chromium.org [Fri, 29 Jul 2011 01:09:39 +0000 (01:09 +0000)]
Add all NSS files to allow using a complete NSS in the future.

The new files are:
1. the built-in root CA certificates
- mozilla/security/nss/lib/ckfw/*
2. the libpkix certificate verification library
- mozilla/security/nss/lib/libpkix/*
- nss/mozilla/security/nss/lib/certhigh/{certvfypkix.c,certvfypkixprint.c}

The new files are excluded from the build by default.

R=rvargas@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7530005

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

21 months agoUpgrade to NSS 3.12.11 Beta 1 and NSPR 4.8.9 Beta 3.
wtc@chromium.org [Thu, 28 Jul 2011 17:52:51 +0000 (17:52 +0000)]
Upgrade to NSS 3.12.11 Beta 1 and NSPR 4.8.9 Beta 3.

Document patches/nspr-remove-io.patch in README.chromium, which wasn't
done when the patch was added in http://codereview.chromium.org/6810025.

R=agl@chromium.org,rvargas@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7523022

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

22 months agoRemove Fortezza certificate support.
wtc@chromium.org [Tue, 26 Jul 2011 18:42:08 +0000 (18:42 +0000)]
Remove Fortezza certificate support.

R=agl@chromium.org,rvargas@chromium.org
BUG=88044
TEST=none
Review URL: http://codereview.chromium.org/7488025

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

22 months agocomponents/mac: Make linking libcrnspr.dylib work.
thakis@chromium.org [Thu, 21 Jul 2011 20:11:10 +0000 (20:11 +0000)]
components/mac: Make linking libcrnspr.dylib work.

Without this patch:

Undefined symbols:
  "_CFBundleGetFunctionPointerForName", referenced from:
      _pr_FindSymbolInLib in prlink.o
  "_CFBundleCreate", referenced from:
      _pr_LoadCFBundle in prlink.o
  "_CloseConnection", referenced from:
      _PR_UnloadLibrary in prlink.o
  "_CFURLCreateWithFileSystemPath", referenced from:
      _pr_LoadCFBundle in prlink.o
  "_CFStringCreateWithCString", referenced from:
      _pr_LoadCFBundle in prlink.o
      _pr_FindSymbolInLib in prlink.o
  "_FindSymbol", referenced from:
      _pr_FindSymbolInLib in prlink.o
     (maybe you meant: _PR_FindSymbolAndLibrary, _PR_FindSymbol )
  "_c2pstrcpy", referenced from:
      _pr_FindSymbolInLib in prlink.o
  "_CFRelease", referenced from:
      _pr_LoadCFBundle in prlink.o
      _pr_LoadCFBundle in prlink.o
      _PR_UnloadLibrary in prlink.o
      _PR_UnloadLibrary in prlink.o
      _pr_FindSymbolInLib in prlink.o
ld: symbol(s) not found
Review URL: http://codereview.chromium.org/7484005

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

22 months agonss: Enable building nss as a dll.
rvargas@google.com [Mon, 27 Jun 2011 21:35:27 +0000 (21:35 +0000)]
nss: Enable building nss as a dll.

BUG=85776
TEST=none
Review URL: http://codereview.chromium.org/7044127

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

2 years agoDisable VS warnings in third_party/nss to be able to enable Warnings as Error.
maruel@chromium.org [Sat, 30 Apr 2011 14:14:10 +0000 (14:14 +0000)]
Disable VS warnings in third_party/nss to be able to enable Warnings as Error.
Review URL: http://codereview.chromium.org/6903070

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

2 years agoRemove IO operations in NSPR
hclam@chromium.org [Fri, 8 Apr 2011 23:06:43 +0000 (23:06 +0000)]
Remove IO operations in NSPR

Do not initialize IO when initalizing NSS. Windows version of NSPR also tried to
use getaddrinfo to resolve hostname in a SSL connection. By removing
_PR_HAVE_GETADDRINFO this will force it to use PR_GetHostByName.

Removing _PR_INET6_PROBE will prevent it from creating a IPv6 socket to probe if
IPv6 is there.

I have tested this change to have no effect visiting a https site.

Review URL: http://codereview.chromium.org/6810025

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

2 years agoMake NSS for Chromium build properly for Mac x86_64.
mark@chromium.org [Tue, 29 Mar 2011 20:34:30 +0000 (20:34 +0000)]
Make NSS for Chromium build properly for Mac x86_64.

BUG=18323
TEST=My own 'ARCHS': ['x86_64'] build. Chromium now builds up through
     base_unittests for x86_64, and all base_unittests pass except for those
     tests also marked FAILS_ for x86.
Review URL: http://codereview.chromium.org/6749034

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

2 years agoFormatting the readmes in deps to follow the proper format and making sure they conta...
cdn@chromium.org [Mon, 14 Mar 2011 19:29:03 +0000 (19:29 +0000)]
Formatting the readmes in deps to follow the proper format and making sure they contain Short Name and Version fields for version tracking.

BUG=None
TEST=N/A
Review URL: http://codereview.chromium.org/6624034

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

2 years agoUpdate svn:ignores.
pkasting@chromium.org [Fri, 21 Jan 2011 22:12:25 +0000 (22:12 +0000)]
Update svn:ignores.

BUG=none
TEST=none
TBR=maruel

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

2 years agoUpdate to NSS 3.12.8.
wtc@chromium.org [Tue, 5 Oct 2010 23:00:32 +0000 (23:00 +0000)]
Update to NSS 3.12.8.

R=agl
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3536010

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

2 years agoRevert 55588 partially - the workaround for bug 40663 is still necessary
wtc@chromium.org [Tue, 5 Oct 2010 19:44:10 +0000 (19:44 +0000)]
Revert 55588 partially - the workaround for bug 40663 is still necessary
for some reason. I keep the "real fix" because it is a correct change in
general.

Original Review URL for 55588: http://codereview.chromium.org/3113004

R=agl
BUG=40663
TEST=Run chrome.exe on Windows.  Use SSL.  Shut down Chrome.
All chrome.exe processes should terminate.

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

2 years agoReplace the workaround for bug 40663 by the real fix.
wtc@chromium.org [Tue, 10 Aug 2010 18:05:03 +0000 (18:05 +0000)]
Replace the workaround for bug 40663 by the real fix.

R=agl
BUG=40663
TEST=Run chrome.exe on Windows.  Use SSL.  Shut down Chrome.
All chrome.exe processes should terminate.
Review URL: http://codereview.chromium.org/3113004

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

2 years agoUpdate to NSS 3.12.7 and NSPR 4.8.6.
wtc@chromium.org [Tue, 10 Aug 2010 00:29:59 +0000 (00:29 +0000)]
Update to NSS 3.12.7 and NSPR 4.8.6.

Remove two NSPR patches because they were checked in
to the NSPR upstream.

Remove the mozilla/security/nss/lib/pki1 directory.
It's been removed in the upstream.

R=agl
BUG=none
TEST=no build errors or test failures.
Review URL: http://codereview.chromium.org/3135002

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

2 years agoUpdate NSS from NSS_3_12_6_RC1 to NSS_3_12_RTM.
wtc@chromium.org [Thu, 27 May 2010 22:37:00 +0000 (22:37 +0000)]
Update NSS from NSS_3_12_6_RC1 to NSS_3_12_RTM.

The only changes are version macros.

R=agl
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2322001

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

2 years agoPort third_party/nss to Mac OS X, 32-bit x86.
wtc@chromium.org [Thu, 27 May 2010 22:04:23 +0000 (22:04 +0000)]
Port third_party/nss to Mac OS X, 32-bit x86.

Delete unused files os_Darwin_ppc.s, uxpoll.c, and secload.c.

Do not use FlatCarbon headers in prlink.c.

R=mark
BUG=30689
TEST=No build errors on Mac OS X and Windows.
Review URL: http://codereview.chromium.org/2259003

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

3 years agoAttach a "foreign" thread to NSPR as a "system" thread so that
wtc@chromium.org [Tue, 20 Apr 2010 18:38:28 +0000 (18:38 +0000)]
Attach a "foreign" thread to NSPR as a "system" thread so that
PR_Cleanup doesn't need to wait for it to terminate.  This works
around a problem with thread local storage destructors in the
official Windows builds, which enable whole program optimization.

R=agl
BUG=40663
TEST=Run chrome.exe with the --use-nss-for-ssl option on Windows.
Use SSL.  Shut down Chrome.  All chrome.exe processes should
terminate.
Review URL: http://codereview.chromium.org/1701001

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

3 years agoUpdate to NSS_3_12_6_RC1 and NSPR_4_8_4_RTM.
wtc@chromium.org [Mon, 22 Feb 2010 18:16:04 +0000 (18:16 +0000)]
Update to NSS_3_12_6_RC1 and NSPR_4_8_4_RTM.

R=agl
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/650104

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