Commit Graph

5370 Commits

Author SHA1 Message Date
dveditz%cruzio.com
17f3e82558 bug 283565 fix leak, return more specific error on OOM. patch by timeless, r=kengert, sr=dveditz, a=dveditz
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@195973 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-04 17:59:36 +00:00
kaie%kuix.de
d2ab59ebe9 bug 334442, Incorrect use of realloc oom Crash in secmod_ReadPermDB
r=nelson, a=dveditz


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@195267 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-24 18:04:16 +00:00
kaie%kuix.de
115b8bf053 bug 333767, nsNSSCertificateDB::AddCertFromBase64 mishandles trust settings
r=darin/kengert, a=dveditz


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@195266 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-24 17:24:51 +00:00
kaie%kuix.de
0e4696b21a Bug 321598, Double memory free in nsIX509::getRawDER
r=rrelyea, a=dveditz


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@195265 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-24 17:22:06 +00:00
cvshook%sicking.cc
a6529609f1 Bug 325426: Only use baseuris as base for resolving relative uris. r=bz sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@195123 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-21 23:35:52 +00:00
wtchang%redhat.com
06c84bcf0c Bugzilla bug 327855: OS2 GCC build should define XP_OS2_EMX for NSPR
headers.  Removed a duplicate XP_OS2 definition. r=Peter Weilbacher and
Julien Pierre. a=mkaply for approval1.8.0.3+.
 Tag: MOZILLA_1_8_0_BRANCH


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@194746 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 00:39:46 +00:00
dbaron%dbaron.org
06e9c1265a Check argc. b=330900 r=kengert sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@194559 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 23:39:26 +00:00
dbaron%dbaron.org
d4accd0f3c Fix indexing botch. Patch from Mikolaj J. Habryn <dichro-mozilla@rcpt.to>. r=kengert sr=dbaron a=darin b=330897
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@193837 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-07 21:01:26 +00:00
kaie%kuix.de
0e8102599e fix bug 328771
r=rrelyea sr=dveditz a=dveditz


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@191772 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-04 12:26:17 +00:00
wtchang%redhat.com
eacd228988 Bugzilla bug 322578: support ppc<->x86 cross builds for Mac OS X. The
patch is contributed by Mark Mentovai <mark@moxienet.com>.  r=wtc.
a=dveditz for approval1.8.0.2+.
 Tag: MOZILLA_1_8_0_BRANCH


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@191172 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-24 18:51:35 +00:00
dveditz%cruzio.com
d7d667c8c7 bug 327126 prevent missing JSContext during generateCRMFRequest() r=mrbkap, r=kengert, sr=dbaron, a=dveditz
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@190206 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-16 05:41:52 +00:00
mark%moxienet.com
1a30e05c66 302212 Mac OS X x86 and Xcode 2.2/gcc 4.0.1 builds can't target SDKs. Use -isysroot and -Wl,-syslibroot with gcc 4.0.0, -isysroot only with gcc 4.0.1. Core r=josh r=cls sr=bryner, NSPR and NSS r=josh sr=wtchang, all portions a=bsmedberg for 1.8.1 and 1.8.0.1.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@186984 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-05 15:40:18 +00:00
(no author)
d368a405db This commit was manufactured by cvs2svn to create branch
'MOZILLA_1_8_0_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@185757 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-07 05:54:01 +00:00
(no author)
d1331130a2 This commit was manufactured by cvs2svn to create branch
'MOZILLA_1_8_0_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@182227 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-14 02:57:26 +00:00
wtchang%redhat.com
10d0b85433 Bug 311402: upgraded the NSS version on the MOZILLA_1_8_BRANCH to
NSS 3.10.2 Beta 2, which we expect will be the same as NSS 3.10.2 final.
a=asa for mozilla1.8rc1.
 Tag: MOZILLA_1_8_BRANCH


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@181941 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 23:30:12 +00:00
wtchang%redhat.com
547359d8be Bug 311402: upgraded the NSS version on the MOZILLA_1_8_BRANCH to
NSS 3.10.2 Beta 2, which we expect will be the same as NSS 3.10.2 final.
a=asa for mozilla1.8rc1.
 Tag: MOZILLA_1_8_BRANCH


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@181938 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 23:22:54 +00:00
bugzilla%arlen.demon.co.uk
b44e539cc5 Bug 309542 Fix a11y problems and crop="right" is deprecated in page info dialog
p=me r=db48x sr=neil.parkwaycc.co.uk a=mscott


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@181428 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-02 11:00:19 +00:00
wtchang%redhat.com
b7c616f455 Bugzilla bug 298045: when importing a package of CA certs, display and ask
the user to trust the root most CA (instead of the leaf most CA) in the
package.  Also make sure that the cert is indeed a CA cert.  r=kaie,relyea.
sr=sfraser. a=asa for mozilla1.8b5.
 Tag: MOZILLA_1_8_BRANCH


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@181212 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-29 18:51:22 +00:00
mozilla.mano%sent.com
06e025dfcb Bug 217611- Page Info can be opened multiple. times patch by Jason Barnabe (np) <jason_barnabe@fastmail.fm>, r=mconnor, a=schrep.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@181021 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-27 02:10:43 +00:00
smfr%smfr.org
c1c2d66d9c Fix bug 307293: make sure we initialize the mType and mTag members of nsNSSASN1Object. r=wtchang, sr=rrelyea, a=asa.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@180419 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-16 18:59:35 +00:00
smfr%smfr.org
c014a45d21 Fix bug 306795: ensure that nsNSSCertificateDB::IsCertTrusted() propagates error values. r=dougt, sr=rrelyea, a=mtschrep
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179646 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-04 23:35:57 +00:00
gavin%gavinsharp.com
2efd3963f8 Bug 263182: Page Info (Security tab) doesn't explain mixed secure/insecure, r=kaie, sr=neil.parkwaycc.co.uk, a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179357 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-30 23:40:06 +00:00
dougt%meer.net
9a92420ef6 Bug 302284. add xpi hash support to InstallTrigger.install(). r=dveditz, sr=shaver, a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179031 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-26 06:46:21 +00:00
bienvenu%nventure.com
5018d488c9 add support for gssapi auth, 303160, 280792, a=mscott+schrep
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@178783 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 14:15:28 +00:00
cbiesinger%web.de
2d76924659 bug 277587 nsSecureBrowserUIImpl's nsUIContext interface requestor doesn't give
access to the dom window
patch by Christian Persch <chpe@gnome.org> r=jgmyers sr=roc a=asa


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@177944 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 13:39:30 +00:00
relyea%netscape.com
af70ef05e8 Bug 225034 Certificate Manager Crashes Mozilla [@ nsCertTree::CmpByCrit]
sr=brendan r=wtc a=dbaron
The issue is the use of the PL_DHash* functions. It's possible that a given call to PL_DHashOperate which adds a new entry may cause the hash table to expand, and all the existing entries to be reallocated. PL_DHash does this by allocating new memory, then copying the entries. getCacheEntry() returns one of these hash entries. CmpBy() makes two consecutive calls to getCacheEntry, then uses the returned entries for it's comparisons. If the second entry call causes a new entry to be added to the table, and causes the hash table to expand, the pointer to the first entry we retrieved will point to freed memory. The fix is to make the usable entry a pointer in the hashtable entry, and return that pointer. When the hashtable rebuilds it's entries, the pointer will be copied to the new entry and not be disturbed.


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@177796 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 00:23:42 +00:00
(no author)
f7df88887e This commit was manufactured by cvs2svn to create branch
'MOZILLA_1_8_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@177651 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 19:01:32 +00:00
relyea%netscape.com
5895a8be4e Bug 292239 r wtc & julien
Merge PKCS #11 v2.20 header files


git-svn-id: svn://10.0.0.236/trunk@177649 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 18:58:47 +00:00
sandeep.konchady%sun.com
06b9934756 As per Wan-Teh's suggestion, the comments are modified to look as shown below.
#/********************************************************************/
#/* The VERSION Strings should be updated in the following           */
#/* files everytime a new release of JSS is generated:               */
#/*                                                                  */
#/* org/mozilla/jss/CryptoManager.java                               */
#/* org/mozilla/jss/CryptoManager.c                                  */
#/* org/mozilla/jss/util/jssver.h                                    */
#/* lib/manifest.mn                                                  */
#/*                                                                  */
#/********************************************************************/


git-svn-id: svn://10.0.0.236/trunk@177648 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 18:39:14 +00:00
relyea%netscape.com
eab20b2728 Bug 303010 Certificate upgrade can drop S/MIME certificates
r=wtc.

Delay loading the S/MIME records on upgrade until the cert is loaded


git-svn-id: svn://10.0.0.236/trunk@177646 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 18:01:26 +00:00
jst%mozilla.jstenback.com
a9f668bc25 Followup changes to bzabarsky's review for bug 296639. Reviews pending, a=drivers@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@177635 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 04:11:00 +00:00
wtchang%redhat.com
fedd4db7ed Bugzilla Bug 257693: actually implemented EC_ValidatePublicKey and added a
test case.  The patch is contributed by Douglas Stebila
<douglas@stebila.ca>.  r=wtc.
Modified Files:
	ec.c ecl/ec2.h ecl/ec2_aff.c ecl/ecl-priv.h ecl/ecl.c
	ecl/ecl.h ecl/ecp.h ecl/ecp_aff.c ecl/tests/ec2_test.c
	ecl/tests/ecp_test.c


git-svn-id: svn://10.0.0.236/trunk@177614 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 00:59:19 +00:00
wtchang%redhat.com
c60652569b Bugzilla Bug 298514: added a missing break statement and removed an unused
variable. r=jpierre.


git-svn-id: svn://10.0.0.236/trunk@177612 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 00:44:35 +00:00
wtchang%redhat.com
0e71db2146 Bugzilla Bug 240554: added ECDSA support in S/MIME. The patch is
contributed by Vipul Gupta <vipul.gupta@sun.com>. r=wtc.
Modified Files:
	cryptohi/secsign.c pkcs7/config.mk pkcs7/p7decode.c
	pkcs7/p7encode.c smime/cmssiginfo.c smime/cmsutil.c
	smime/config.mk


git-svn-id: svn://10.0.0.236/trunk@177606 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 23:11:40 +00:00
wtchang%redhat.com
549e4b84c2 Bugzilla Bug 240554: added S/MIME tests for ECDSA. The patch is
contributed by Vipul Gupta <vipul.gupta@sun.com>. r=wtc.
Modified files: fixtests.sh cert/eccert.sh
Added file: smime/ecsmime.sh


git-svn-id: svn://10.0.0.236/trunk@177605 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 22:50:12 +00:00
sandeep.konchady%sun.com
a2cc25e4c2 Older release of JSS had an issue with gradually slowing socket read time when
transfering large files (> 10MB).  In order to test this in current and future
release, there needs to be a test client that can read a file and transfer it to
a server (remote or local) via JSS socket.  The server should report the number
of bytes read and the time it took to read these bytes.  There should not no
degradation in read time if there is no leak of any sort.

This is not part of all.pl, but is a client/server that uses JSS to transfer
files securely.  The main purpose of this test would be to test the performance
of large file transfer using JSS.

NOTE: If bufferedStream.mark(Integer.MAX_VALUE); method is invoked then fill
method of BufferedInputStream class copies lot of data using System.arraycopy
(which in-turn use memcpy). This causes very high CPU usage.  This is one of
the reasons secure large file transfer can become slow over time.


git-svn-id: svn://10.0.0.236/trunk@177558 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 18:28:59 +00:00
nelsonb%netscape.com
fddd184a59 A faster c implementation of SHA1 for most platforms. Bug 285932.
r=wtchang     Modified Files: prng_fips1861.c sha_fast.c sha_fast.h


git-svn-id: svn://10.0.0.236/trunk@177533 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 01:01:08 +00:00
wtchang%redhat.com
42773a09de Bugzilla Bug 303116: fixed an off-by-one error in the size of the NAF
buffer. We access this buffer using indices from 0 to orderBitSize.
r=douglas.stebila.


git-svn-id: svn://10.0.0.236/trunk@177513 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-10 20:35:07 +00:00
wtchang%redhat.com
c03590785f Bugzilla Bug 303116: fixed an off-by-one error when duplicating a string.
r=douglas.stebila.


git-svn-id: svn://10.0.0.236/trunk@177509 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-10 18:49:29 +00:00
wtchang%redhat.com
c4473d4415 Bugzilla Bug 303116: this file doesn't need to include <strings.h>, which
doesn't exist on Windows. r=relyea.
Bugzilla Bug 303130: fixed memory leak of mp_int in ECPoints_mul.
r=douglas.stebila.


git-svn-id: svn://10.0.0.236/trunk@177507 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-10 18:46:29 +00:00
wtchang%redhat.com
c1271d2587 Bugzilla Bug 266123: added ppc64 support. The patch is contributed by
Markus Rothe <markus@unixforces.net>. r=wtc.


git-svn-id: svn://10.0.0.236/trunk@177448 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-09 22:31:24 +00:00
wtchang%redhat.com
415fe5cce5 Bugzilla bug 303986: do not assume the line ending is '\n'; it may be the
two character sequence '\r''\n'.  Make sure a character is a digit before
using it as a digit. r=jpierre.


git-svn-id: svn://10.0.0.236/trunk@177446 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-09 22:19:09 +00:00
nelsonb%netscape.com
dc2b778129 Address review comments. Add test after PORT_Assert. Bug 303334.
r=rrelyea,sr=wtchang
Modified Files: rijndael.c


git-svn-id: svn://10.0.0.236/trunk@177406 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-09 03:09:38 +00:00
nelsonb%netscape.com
23c78ce0ef Make changes from review feedback. Bug 303316. r=wtchang.
Modified Files: freebl/alghmac.h freebl/blapi.h freebl/ldvector.c
freebl/loader.c freebl/loader.h freebl/rawhash.c
freebl/tlsprfalg.c softoken/lowpbe.c softoken/pkcs11c.c


git-svn-id: svn://10.0.0.236/trunk@177405 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-09 02:54:54 +00:00
cbiesinger%web.de
65d00ec4e1 297057 fix case of doOK()
patch by Frank Wein <bugzilla@mcsmurf.de> r=kaie sr=neil a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@177274 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-06 21:34:04 +00:00
nelsonb%netscape.com
48e3abcec3 Add a new assembly language source file with multiplication code for
Sparc v8 (not V8plus) CPUs.  This works around a performance regression
by restoring the former code.  Bug 303338. r=wtchang.
Modified Files: Makefile
Added Files:    mpi/mpv_sparcv8x.s


git-svn-id: svn://10.0.0.236/trunk@177266 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-06 11:08:41 +00:00
nelsonb%netscape.com
0a30d49c9a Add a comment clarifying that this source file is for sparc v8plus CPUs.
Upgrade license to tri-license.  Fix a bunch of whitespace problems,
WAY too much indentation.  Related to bug 303338. r=wtchang.
Modified Files: mpi/mpv_sparcv8.s


git-svn-id: svn://10.0.0.236/trunk@177265 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-06 11:06:55 +00:00
nelsonb%netscape.com
d19af5aed7 Move the TLS Pseudo Random Function (PRF) and the HMAC algorithm from
softoken to freebl.  Bug 303316. r=wtchang (with suggested changes)
Modified Files:
	freebl/blapi.h freebl/ldvector.c freebl/loader.c
	freebl/loader.h freebl/manifest.mn softoken/lowpbe.c
	softoken/manifest.mn softoken/pkcs11c.c softoken/pkcs11i.h
	softoken/tlsprf.c
Added Files:
	freebl/alghmac.c freebl/alghmac.h freebl/rawhash.c
	freebl/tlsprfalg.c
Removed Files:
	softoken/alghmac.c softoken/alghmac.h softoken/rawhash.c


git-svn-id: svn://10.0.0.236/trunk@177263 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-06 09:27:28 +00:00
nelsonb%netscape.com
4a8a7a3d21 This is the last trunk version of this file. The file will be moved
to nss/lib/freebl.  This version is identical to the first version
of this file in nss/lib/freebl.  Bug 303316. r=wtchang.
Modified Files: alghmac.c alghmac.h rawhash.c


git-svn-id: svn://10.0.0.236/trunk@177262 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-06 09:24:13 +00:00
nelsonb%netscape.com
7e86019de4 Add new functions for blapi symmetric ciphers and digest functions,
so that all those functions can initialize a preallocated context.
Bug 303334. r=rrelyea.
Modified Files: aeskeywrap.c alg2268.c arcfour.c blapi.h blapit.h desblapi.c
ldvector.c loader.c loader.h md2.c md5.c rijndael.c rijndael.h sha512.c


git-svn-id: svn://10.0.0.236/trunk@177260 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-06 07:24:21 +00:00