44 Commits

Author SHA1 Message Date
wtc%netscape.com
4d2eddeffb Bugzilla bug 131078: fixed compiler warnings. r=mcgreer.
git-svn-id: svn://10.0.0.236/trunk@116631 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 06:07:41 +00:00
bishakhabanerjee%netscape.com
897849a2c9 Patch for bug 119368: SECU_PrintError prints decimal error code now if
unknown error


git-svn-id: svn://10.0.0.236/trunk@113968 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 01:20:04 +00:00
relyea%netscape.com
b30eea42df 1) put some defensive programming so we don't crash on invalid der.
2) set the start offset correctly for multi-byte lengths when decoding sets
and sequences


git-svn-id: svn://10.0.0.236/trunk@113168 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 00:24:12 +00:00
relyea%netscape.com
cd1b6d6069 More 'pretty print' improvements. Decode context specific data a little more.
git-svn-id: svn://10.0.0.236/trunk@113123 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 17:50:27 +00:00
nelsonb%netscape.com
b3949a7795 Add error strings for new NSPR error codes. Bug 118668.
git-svn-id: svn://10.0.0.236/trunk@111785 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 03:00:30 +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
jpierre%netscape.com
4ce6e3777c Fix for OS/2 build
git-svn-id: svn://10.0.0.236/trunk@107050 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 03:10:29 +00:00
relyea%netscape.com
0023cdd352 Fix compilier warnings.
Remove calls to low level key structures.


git-svn-id: svn://10.0.0.236/trunk@103354 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 21:47:29 +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
mcgreer%netscape.com
d3215bb79b be strict about passing wincx in pk12util.
git-svn-id: svn://10.0.0.236/trunk@100900 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-12 20:57:40 +00:00
mcgreer%netscape.com
264b5aa5dd print a useful error message when password fails
git-svn-id: svn://10.0.0.236/trunk@100669 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-09 20:14:15 +00:00
mcgreer%netscape.com
02b4fb2375 when doing file passwords, only open the file once to retrieve the password, then keep it in memory. Seems to fix scripting problems (especially in FIPS, which hits the password prompt a lot).
git-svn-id: svn://10.0.0.236/trunk@100662 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-09 13:58:30 +00:00
mcgreer%netscape.com
5ae7ee3c2d copy the plaintext password over
git-svn-id: svn://10.0.0.236/trunk@100523 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 21:11:46 +00:00
nelsonb%netscape.com
31d9f60da5 Add function SECU_PrintBuf() which prints a buffer in hex and ASCII.
git-svn-id: svn://10.0.0.236/trunk@89872 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 04:23:38 +00:00
relyea%netscape.com
6e5c224ecb On NT, it looks like isatty doesn't always work. Since we always use stdin for this use
that test instead.


git-svn-id: svn://10.0.0.236/trunk@88155 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 01:58:02 +00:00
wtc%netscape.com
7906a156a2 Bugzilla bug #60143: checked in OpenVMS patch from Colin Blake
<colin@theblakes.com>.
Modified Files:
	coreconf/OpenVMS.mk coreconf/arch.mk coreconf/rules.mk
	coreconf/ruleset.mk nss/cmd/lib/secpwd.c nss/lib/nss/nss.h
	nss/lib/nss/nssinit.c


git-svn-id: svn://10.0.0.236/trunk@86172 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-04 05:52:42 +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
relyea%netscape.com
2edf510fba remove cdbhdl.h bug 64260 reviewed by wtc.
git-svn-id: svn://10.0.0.236/trunk@85976 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-01 18:09:50 +00:00
kirke%netscape.com
55dbf03443 Resolves bug 66244 - Many NSS command do not detect failure of NSS_Init* functions. Introduced SECU_PrintPRandOSError(progName); to print on failure. Each command is responsible for exiting with appropriate status to distinguish failure points.
git-svn-id: svn://10.0.0.236/trunk@85896 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 23:25:02 +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
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
nelsonb%netscape.com
7f3c01a89d Eliminate warnings about functions returning values of the wrong type.
git-svn-id: svn://10.0.0.236/trunk@84521 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 07:49:22 +00:00
nelsonb%netscape.com
a0442a3fc2 Add missing declaration of library function printflags().
git-svn-id: svn://10.0.0.236/trunk@84520 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 07:48:04 +00:00
relyea%netscape.com
247e71075b Move the cert searching and printing utility function out of secutil.c so that
most functions which call secutil can still be used in the shared libraries.


git-svn-id: svn://10.0.0.236/trunk@84481 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-06 21:09:28 +00:00
relyea%netscape.com
ee3473443c remove depricated functions from secutil.
git-svn-id: svn://10.0.0.236/trunk@84480 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-06 21:05:36 +00:00
nelsonb%netscape.com
c6ec12f986 Reduce warnings by adding missing #includes to eliminate calls to
undeclared functions.


git-svn-id: svn://10.0.0.236/trunk@84366 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 08:21:15 +00:00
mcgreer%netscape.com
a55d64f4d5 fix bug 63447 where certutil was opening an unneccessary output terminal.
git-svn-id: svn://10.0.0.236/trunk@83934 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-21 01:51:37 +00:00
relyea%netscape.com
9dc0a0150f Open VMS changes bug 60143
git-svn-id: svn://10.0.0.236/trunk@83383 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-07 22:24:46 +00:00
mcgreer%netscape.com
e7afcf22fd add a new function, SECU_TextFileToItem, for reading text files.
git-svn-id: svn://10.0.0.236/trunk@80875 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 00:56:32 +00:00
mcgreer%netscape.com
3bd32da764 fix problems encountered in shell script. it appears that "echo nss > passfile" creates a file with 6 bytes on NT using the dos shell. the added bytes were causing problems with password files, which this while loop attempted to fix. however, it broke DER-encoded input that has added whitespace at the end. this checkin returns SECU_FileToItem to it's original state, which blindly accepts whitespace characters at the end of the file.
the second change is forced because SECITEM_AllocItem asserts dst->data == NULL, and many NSS utilities pass uninitialized SECItem's around.  In the future, those should be fixed, but for now zero the output buffer.


git-svn-id: svn://10.0.0.236/trunk@80219 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-02 22:30:27 +00:00
mcgreer%netscape.com
52767c0e64 changes to use blapitest on NT.
git-svn-id: svn://10.0.0.236/trunk@80167 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-29 22:27:14 +00:00
mcgreer%netscape.com
f6f79f1ff0 add seeding call (for 3.1, for 3.2 I think this function needs to go away).
git-svn-id: svn://10.0.0.236/trunk@80151 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-29 15:27:00 +00:00
mcgreer%netscape.com
fee15c70c4 NT still buggy with password files, this seems to fix it
git-svn-id: svn://10.0.0.236/trunk@79348 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 18:45:20 +00:00
mcgreer%netscape.com
ea6d4f6a57 extra #endif broke build
git-svn-id: svn://10.0.0.236/trunk@79346 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 15:58:42 +00:00
relyea%netscape.com
2327610e28 Fix NT so it can read from a password file. (do the correct EOL conversions).
Fix trust display for certs not in the database.


git-svn-id: svn://10.0.0.236/trunk@79344 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 15:35:03 +00:00
mcgreer%netscape.com
aaf912bcde added fingerprints to list of things dumped with cert, bug 45303
git-svn-id: svn://10.0.0.236/trunk@77540 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 01:07:12 +00:00
mcgreer%netscape.com
951eff21a1 fingerprint had to handled in certutil for now since SECU_PrintCertificate receives a decoded DER. see #45303
git-svn-id: svn://10.0.0.236/trunk@74117 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:42:57 +00:00
mcgreer%netscape.com
72e2f0642e add fingerprints to info dumped with certificate
git-svn-id: svn://10.0.0.236/trunk@74109 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 20:48:47 +00:00
relyea%netscape.com
743720da87 merge changes from NSS 3.0 branch to allow NT automated tests to work.
git-svn-id: svn://10.0.0.236/trunk@73533 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:25:41 +00:00
chrisk%netscape.com
4be6618598 Fixed bug in sequence printing code: array counter was overshooting by one
git-svn-id: svn://10.0.0.236/trunk@72660 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 14:35:17 +00:00
mcgreer%netscape.com
92d86935db more cleanup on cert listing
git-svn-id: svn://10.0.0.236/trunk@72331 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-16 00:36:43 +00:00
chrisk%netscape.com
040db90898 Sorted output for certutil -L
git-svn-id: svn://10.0.0.236/trunk@72054 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-12 22:25:40 +00:00
roeber%netscape.com
da21657c84 Applying ancient patch to dump out extended key usage extensions
git-svn-id: svn://10.0.0.236/trunk@70424 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-18 01:02:40 +00:00
relyea%netscape.com
a4d4d45374 Initial NSS Open Source checkin
git-svn-id: svn://10.0.0.236/trunk@64788 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 20:13:40 +00:00