58 Commits

Author SHA1 Message Date
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
wtc%netscape.com
2fc6f07ea1 Initial NetBSD port contributed by Shin'ichiro TAYA <taya@sm.sony.co.jp>.
Modified Files:
    coreconf/config.mk nss/lib/util/unix_rand.c
Added Files:
    coreconf/NetBSD.mk


git-svn-id: svn://10.0.0.236/trunk@80156 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-29 17:42:39 +00:00
relyea%netscape.com
f47ead3b87 OS/2 build changes.
git-svn-id: svn://10.0.0.236/trunk@79631 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 17:07:22 +00:00
wtc%netscape.com
4ef9643340 Bugzilla bug #52399: handle FreeBSD. Thanks to Thomas Stromberg
<tstromberg@rtci.com> for the bug report.


git-svn-id: svn://10.0.0.236/trunk@79514 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 04:11:53 +00:00
wtc%netscape.com
cbc82dc7ae Bugzilla bug #48248: removed an extraneous declaration of putenv(). Thanks
to Steven T. Hatton <hattons@bellatlantic.net> for reporting the bug.


git-svn-id: svn://10.0.0.236/trunk@78571 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 02:25:18 +00:00
nelsonb%netscape.com
ed9c8d8e32 Remove PQG_DestroyParams(), PQG_DestroyVerify from pqg.c because they
duplicate the functions in lib/util/pqgutil.c.  Also, the functions in
pqgutil correctly handle the case where the Params or Verify was
constructed without an arena (a fact which is now more obvious when
reading the code there).


git-svn-id: svn://10.0.0.236/trunk@78320 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 01:24:52 +00:00
chrisk%netscape.com
f773ad5402 Fix OID for DC AVAs - the root OID in RFC2247 is not different from
the root OID in RFC1274 - so the one we had was WRONG.
I don't know where it came from.


git-svn-id: svn://10.0.0.236/trunk@72664 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 16:31:31 +00:00
chrisk%netscape.com
0cffe12987 Add code for generation of SMIMEProfile and SMIMEKeyEncryptionPreference
git-svn-id: svn://10.0.0.236/trunk@72663 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 16:28:59 +00:00
chrisk%netscape.com
6db98da95b Fix bug in decoder:
When encoding indefinitely & encountering an optional field at the end of
a sequence, right after an IMPLICIT or POINTER template, the decoder
was not propagating the optionalness and the end-of-contents condition
correctly as it hits the end-of-contents octets instead of the optional
field. This is because IMPLICIT and POINTER push TWO states to look
for the next tag, not just one.
(The first state is "afterImplicit" or "afterPointer", the second one
starts with "beforeIdentifier" as usual).
This finally makes decoding envelopedData messages in cmsutil work.


git-svn-id: svn://10.0.0.236/trunk@72653 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 13:24:01 +00:00
chrisk%netscape.com
c97a690adc Merge smimetk_branch to tip...
git-svn-id: svn://10.0.0.236/trunk@72136 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-13 21:56:37 +00:00
chrisk%netscape.com
771c88f21f Added RFC2630 OID values:
SEC_OID_CMS_EPHEMERAL_STATIC_DIFFIE_HELLMAN = id-alg-ESDH
SEC_OID_CMS_3DES_KEY_WRAP                   = id-alg-CMS3DESwrap
SEC_OID_CMS_RC2_KEY_WRAP                    = id-alg-CMSRC2wrap


git-svn-id: svn://10.0.0.236/trunk@70598 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-22 15:28:22 +00:00
chrisk%netscape.com
db87eb60fc Added SEC_ASN1DecodeInteger function
git-svn-id: svn://10.0.0.236/trunk@70597 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-22 15:24:20 +00:00
dougt%netscape.com
1931899568 Minor changes to fix mac build bustages.
git-svn-id: svn://10.0.0.236/trunk@69424 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-12 18:43:28 +00:00
repka%netscape.com
19e2f0bcca Build new base64 encoder implementation.
git-svn-id: svn://10.0.0.236/trunk@65452 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-06 22:41:21 +00:00