71 Commits

Author SHA1 Message Date
wtc%netscape.com
53cfca6a3b Bugzilla bug 131057: define PORT_Strdup as PL_strdup so that it uses NSPR's
memory allocator.  r=mcgreer.  Modified files: secport.c secport.h


git-svn-id: svn://10.0.0.236/trunk@116629 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 05:54:22 +00:00
wtc%netscape.com
52f5bfd019 Bugzilla bug 70217: ported NSS to BeOS. The patch is contributed by
Christopher Seawood <seawood@netscape.com>.


git-svn-id: svn://10.0.0.236/trunk@115206 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-22 04:23:30 +00:00
ian.mcgreer%sun.com
202313e65b bug 125359, by default the ASN.1 en/decoder should treat all numbers as signed. But many source/target items desire unsigned integers (specifically, bignums in the crypto stuff), so implement an siUnsignedInteger type which notifies the en/decoder to handle the conversion.
r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@115170 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-21 22:41:44 +00:00
nelsonb%netscape.com
d58ebedbc4 Change most coreconf and NSS makefiles to use OS_TARGET (which can
be overridden via an environment variable) rather than OS_ARCH.
This is a precursor to more flexibility in cross-platform builds.
Bug 104541.


git-svn-id: svn://10.0.0.236/trunk@114608 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 22:54:08 +00:00
ian.mcgreer%sun.com
db557442e8 bug 124446, thread safety issues with static oid hashtable.
r=wtc


git-svn-id: svn://10.0.0.236/trunk@114206 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-11 23:12:00 +00:00
jpierre%netscape.com
101faf53fc Fix for 122907 - patch to disable arena free lists with environment variable
git-svn-id: svn://10.0.0.236/trunk@113720 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 22:20:43 +00:00
relyea%netscape.com
8fc3bf1fcb Don't leak memory in the arena pool
git-svn-id: svn://10.0.0.236/trunk@113126 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 19:00:47 +00:00
ian.mcgreer%sun.com
0cf0e70db5 last change to INTEGER encoding, strip extraneous leading zeros from integer values passed to encoder
git-svn-id: svn://10.0.0.236/trunk@112538 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 22:48:26 +00:00
ian.mcgreer%sun.com
69f304d8ad fix for bug 115360, ASN.1 encoder/decoder should handle conversion of unsigned integers used in NSS to ASN.1 INTEGERs, and vice versa.
git-svn-id: svn://10.0.0.236/trunk@112118 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 23:20:43 +00:00
relyea%netscape.com
3062b0e3b5 Fix dual key generation crash.
git-svn-id: svn://10.0.0.236/trunk@111902 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 00:33:08 +00:00
relyea%netscape.com
dd1d27c432 Clean up compilier warnings on Solaris and Linux, most particularly:
1) Implicit declaration of function.
2) Possibly unitialized variables.

These warnings have indicated some real problems in the code, so many changes
are not just to silence the warnings, but to fix the problems. Others were
inocuous, but the warnings were silenced to reduce the noise.


git-svn-id: svn://10.0.0.236/trunk@109938 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:36:25 +00:00
jpierre%netscape.com
9e179ff639 Fix for bug 95458 - ASN1 decoder crashes when fed incorrect data
git-svn-id: svn://10.0.0.236/trunk@109237 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 18:46:17 +00:00
relyea%netscape.com
e31243d81f changes for PSM to compile against NSS shared libraries.
Move SSL and S/MIME to the new common MAPFILE usage


git-svn-id: svn://10.0.0.236/trunk@108708 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 18:00:28 +00:00
relyea%netscape.com
d6a02fdc86 NSS 3.4 integration changes.
1) 3.4 needs to bump the version numbers up by one on secmod.db from NSS 3.3
   2) Need to add escapes to the configdirectory. (should add them to other parameters as well.
   3) put exported files back into the correct headers.
   4) Add _BEGIN/_END protos where appropriate.


git-svn-id: svn://10.0.0.236/trunk@108481 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 19:04:59 +00:00
nelsonb%netscape.com
b9c0acc0a2 Now that the implementations of all the RNG_ functions have been moved
from lib/util to lib/freebl, move the RNG header file there, too.
Eliminate secrngt.h, which has been empty (except for the license
boilerplate) for many releases.


git-svn-id: svn://10.0.0.236/trunk@108144 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 04:29:27 +00:00
nelsonb%netscape.com
38c49051cb Use data from /dev/urandom to initialize PRNG, when possible.
and related changes.  Bug 96626.


git-svn-id: svn://10.0.0.236/trunk@108136 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 02:41:20 +00:00
relyea%netscape.com
8e5904ce24 Fixes to make pkcs12 work correctly:
1) Make pkcs12 pbe function.
   2) add code to allow setting and getting of the key nickname attribute.


git-svn-id: svn://10.0.0.236/trunk@107656 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 05:39:56 +00:00
relyea%netscape.com
162c530b16 Land BOB_WORK_BRANCH unto the tip.
remove lots of depricated files.
move some files to appropriate directories (pcertdb *_rand
associated headers to soft token, for instance)
rename several stan files which had the same name as other nss files.
remove depricated functions.


git-svn-id: svn://10.0.0.236/trunk@107628 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 00:15:51 +00:00
wtc%netscape.com
71f6b17411 Removed the temporary #if 0.
git-svn-id: svn://10.0.0.236/trunk@107480 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:52:12 +00:00
wtc%netscape.com
c6fcf205bb Bugzilla bug 108708: commented out the "netstat -ni" command for
debugging.  This change will be backed out.


git-svn-id: svn://10.0.0.236/trunk@107475 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 21:34:09 +00:00
nelsonb%netscape.com
4035d51f10 Attempt to move all the constant tables in secoid.c into the text segment
where they belong.


git-svn-id: svn://10.0.0.236/trunk@107419 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:46:37 +00:00
relyea%netscape.com
1407e64cce Build OID hash table using PL_Hash rather then the dbm hash code.
git-svn-id: svn://10.0.0.236/trunk@107120 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 21:50:09 +00:00
ddrinan%netscape.com
ed895f9c12 Fix for decoding sequences. This was encountered when decoding the recipient info of a CMS strucure. Only the first recipient info was decoded, the others were not. Checkin approved by relyea
git-svn-id: svn://10.0.0.236/trunk@107025 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 00:10:55 +00:00
nelsonb%netscape.com
a91e3f73be Add a few new OIDs for AES and one old semi-bogus OID for DSA. 55048.
git-svn-id: svn://10.0.0.236/trunk@103762 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 23:29:30 +00:00
relyea%netscape.com
c774d09663 Fix compiler warnings on HP, AIX, Linux, and Solaris.
git-svn-id: svn://10.0.0.236/trunk@103367 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 22:12:23 +00:00
nelsonb%netscape.com
44cf59d2ab Fix a crash. An attempt to move a sensitive key longer than 48 bytes
from one token to another will no longer crash.  Instead, it will fail
with the new error code SEC_ERROR_CANNOT_MOVE_SENSITIVE_KEY.  Bug 97887.
In addition, DHE key pairs are now generated with CKA_SENSITIVE false.


git-svn-id: svn://10.0.0.236/trunk@102373 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 03:00:39 +00:00
relyea%netscape.com
dadc39c1fb Memory leak fixes.
git-svn-id: svn://10.0.0.236/trunk@101757 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:34:34 +00:00
javi%netscape.com
dbebfccfa3 Fix pk12util by modifying my previous patch.
git-svn-id: svn://10.0.0.236/trunk@100250 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-03 00:37:53 +00:00
javi%netscape.com
c5cd22968e This is a patch for Bug 80416. r=relyea
This fixes a problem with encoding optional octet strings.  The code
 previously took a NULL SECItem that was not streaming and interpreted
 that data.


 XXX This may cause trouble when we try to encode large
     S/MIME messages that may require streaming.


git-svn-id: svn://10.0.0.236/trunk@100120 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-01 22:39:50 +00:00
bryner%uiuc.edu
48ba2b292e Bug 75049 - Enable NSS for carbon build. patch from beard, r=mcgreer, sr=nelsonb, a=asa.
git-svn-id: svn://10.0.0.236/trunk@98120 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-28 01:40:39 +00:00
wtc%netscape.com
f563c9425e Bugzilla bug #77199: Make NSS build under OS/2. Thanks to Javier
Pedemonte <pedemont@us.ibm.com> for the patch.
Modified Files:
        coreconf/OS2.mk coreconf/rules.mk coreconf/ruleset.mk
        nss/lib/freebl/Makefile nss/lib/pkcs12/p12.h nss/lib/ssl/ssl.h
        nss/lib/util/secport.h


git-svn-id: svn://10.0.0.236/trunk@95606 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 21:25:32 +00:00
kirke%netscape.com
dd0f832932 Now setting error before new SECFailure returns (see 78577).
git-svn-id: svn://10.0.0.236/trunk@94411 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-09 22:40:22 +00:00
kirke%netscape.com
619d806e05 Fixes 78577 (second half) This gets the SECItem->data member NULL case.
git-svn-id: svn://10.0.0.236/trunk@94294 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 22:53:23 +00:00
kirke%netscape.com
8a1da17bd7 Fixes 78577. Checking for NULL src arg.
git-svn-id: svn://10.0.0.236/trunk@94290 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 22:38:02 +00:00
wtc%netscape.com
86a13c2608 Bugzilla bug #78528: put the const ASN1 template declarations in certt.h,
secdig.h, and secoid.h inside extern "C" blocks.


git-svn-id: svn://10.0.0.236/trunk@93668 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 21:34:13 +00:00
wtc%netscape.com
1b62937aa9 Bugzilla bug #78528: put the const ASN1 template declarations inside
an extern "C" block.  Thanks to Javier Delgadillo for the patch.


git-svn-id: svn://10.0.0.236/trunk@93665 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-02 20:14:46 +00:00
nelsonb%netscape.com
c3e808b431 Merge changes from NSS_3_2_BRANCH. Fix backward compatibility issues.
git-svn-id: svn://10.0.0.236/trunk@91584 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-06 17:47:15 +00:00
nelsonb%netscape.com
37ab6208d1 Eliminate the old global arena lock. Each ArenaPool now has its own lock.
The new PORTArenaPool struct, an extended PLAreanaPool, is used in place
of PLArenaPools.


git-svn-id: svn://10.0.0.236/trunk@90286 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 23:40:09 +00:00
wtc%netscape.com
9e6c133c84 Bugzilla bug #63768: removed references to the obsolete PURE_LIBRARY,
HAVE_PURIFY etc. make variables in NSS files.  Reviewed by nelson Bolyard.
Modified Files:
	cmd/platrules.mk cmd/crmf-cgi/config.mk cmd/crmftest/config.mk
	cmd/lib/config.mk cmd/zlib/config.mk lib/base/config.mk
	lib/certdb/config.mk lib/certhigh/config.mk lib/ckfw/config.mk
	lib/crmf/config.mk lib/cryptohi/config.mk
	lib/fortcrypt/swfort/config.mk lib/freebl/config.mk
	lib/jar/config.mk lib/nss/config.mk lib/pk11wrap/config.mk
	lib/pkcs12/config.mk lib/pkcs7/config.mk lib/smime/config.mk
	lib/softoken/config.mk lib/ssl/config.mk lib/util/config.mk


git-svn-id: svn://10.0.0.236/trunk@86029 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-02 01:49:57 +00:00
wtc%netscape.com
7eaf8ab4ae Bugzilla bug #62855: checked in OS/2 patches from Javier Pedemonte
<pedemont@us.ibm.com>.
Modified files: selfserv.c, swfutl.c, os2_rand.c.


git-svn-id: svn://10.0.0.236/trunk@85842 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 19:09:48 +00:00
wtc%netscape.com
50931f27c7 Bugzilla bug #66367: rename the internal NSS functions that we have to
export from the NSS shared library.  Reviewed by Bob Relyea.
Modified Files:
	nss/lib/certdb/certdb.c nss/lib/certdb/pcertdb.c
	nss/lib/nss/Makefile nss/lib/nss/manifest.mn
	nss/lib/nss/nss.def nss/lib/pk11wrap/pk11skey.c
	nss/lib/pkcs12/p12d.c nss/lib/pkcs12/p12e.c
	nss/lib/pkcs12/p12local.c nss/lib/pkcs7/certread.c
	nss/lib/pkcs7/p7decode.c nss/lib/pkcs7/p7encode.c
	nss/lib/smime/cmsutil.c nss/lib/softoken/secpkcs5.c
	nss/lib/ssl/ssl3con.c nss/lib/ssl/sslcon.c
	nss/lib/ssl/sslnonce.c nss/lib/ssl/sslsnce.c
	nss/lib/util/nsslocks.c
Added Files:
	nss/lib/nss/nssrenam.h


git-svn-id: svn://10.0.0.236/trunk@85774 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-30 21:02:28 +00:00
wtc%netscape.com
ac41e872c6 Bugzilla bug #63935: use our own macro LINUX instead of the compiler
predefined macro __linux as __linux is not defined by some compilers.
Thanks to jsmith@penguinppc.org for the bug report and a suggested fix.


git-svn-id: svn://10.0.0.236/trunk@85697 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-30 01:52:47 +00:00
nelsonb%netscape.com
3844d4f4f4 Win32 processes have two environments, a Unix-compatible one and an NT
environment.  NSS has no control over which of these environments will
be inherited by any child processes, so when NSS modifies or adds an
environment variable, it needs to do so to both environments.
This fixes bugzilla bug 66615.  Reviewed by wtc.


git-svn-id: svn://10.0.0.236/trunk@85551 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-26 03:24:05 +00:00
wtc%netscape.com
4f79024ac3 Bugzilla bug #65416: assign values to enumeration constants in secutil.h
and nssilock.h explicitly.  Reviewed by Ian McGreer.


git-svn-id: svn://10.0.0.236/trunk@85499 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 19:05:50 +00:00
wtc%netscape.com
a620d900b4 Bugzilla bug #65416: assign values explicitly to enumeration constants.
The same values that the compiler would assign are assigned, with only
one exception (cmmfNoPKIStatus in cmmft.h).  This is patch id=22555,
reviewed by Nelson Bolyard.


git-svn-id: svn://10.0.0.236/trunk@85087 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-18 16:36:43 +00:00
nelsonb%netscape.com
07e1db7a72 Eliminate some warnings found when compiling on Unix boxen.
git-svn-id: svn://10.0.0.236/trunk@84526 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 09:21:25 +00:00
nelsonb%netscape.com
bb7974ac11 MSVC won't let you initialize a pointer in a data structure with the
address of an external variable that comes from another DLL.
This is a fundamental difference between WIN32 DLLs and Unix DSOs.
So, for every SEC_ASN1Template inside of libnss3 that is referenced by
other templates outside of libnss3, a new "chooser" function was created
that returns the address of that template.  For WIN32, the templates
outside of libnss3 access libnss3's templates by the chooser function
rather than by direct reference.  Some simple macros allow Unix to
continue to use direct references, avoiding the extra function calls.
With these changes, all.sh (qa script) passes all tests on NT with DLLs.
Modified Files:
	cmd/checkcert/checkcert.c cmd/lib/secutil.c lib/asn1/asn1t.h
	lib/certdb/certdb.c lib/certdb/certt.h lib/certdb/crl.c
	lib/certhigh/certreq.c lib/crmf/asn1cmn.c lib/crmf/crmfcont.c
	lib/crmf/crmftmpl.c lib/cryptohi/secsign.c lib/nss/nss.def
	lib/pkcs12/p12local.c lib/pkcs12/p12tmpl.c
	lib/pkcs7/certread.c lib/pkcs7/p7decode.c lib/pkcs7/p7local.c
	lib/smime/cmsasn1.c lib/smime/cmsattr.c lib/smime/cmspubkey.c
	lib/smime/cmssigdata.c lib/smime/smimeutil.c
	lib/softoken/keydb.c lib/softoken/keydbt.h lib/util/secalgid.c
	lib/util/secasn1.h lib/util/secasn1d.c lib/util/secasn1t.h
	lib/util/secasn1u.c lib/util/secdig.c lib/util/secdig.h
	lib/util/secoid.h


git-svn-id: svn://10.0.0.236/trunk@84523 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 08:13:13 +00:00
larryh%netscape.com
18549422d1 Bugzilla: 64132. NSS lock instrumentation
git-svn-id: svn://10.0.0.236/trunk@84300 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-03 19:51:22 +00:00
larryh%netscape.com
87dbde878d Bugzilla: 64132
git-svn-id: svn://10.0.0.236/trunk@84291 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-03 01:39:43 +00:00
relyea%netscape.com
47080d092a Open VMS changes: bug 60143.
git-svn-id: svn://10.0.0.236/trunk@83382 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-07 22:23:06 +00:00