64 Commits

Author SHA1 Message Date
julien.pierre.boogz%sun.com
443c030d5e Fix for bug 433791. Delete Win16 references. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256845 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 23:52:10 +00:00
wtc%google.com
c87ff82fc4 Bug 447563: fixed this bug without changing the values of error codes.
Use ADD_MODULE_FAILED_ERR as the surviving error code name.  r=emaldona
Modified Files:
	error.h pk11.c


git-svn-id: svn://10.0.0.236/trunk@254171 18797224-902f-48f8-a5cc-f745e15eee43
2008-09-11 17:32:08 +00:00
nelson%bolyard.com
7b936e5204 Backout part of patch for bug 447563, which cause the testing to fail.
The enumeration is evidently part of the public API of modutil. :(
/Sheriff Nelson


git-svn-id: svn://10.0.0.236/trunk@254158 18797224-902f-48f8-a5cc-f745e15eee43
2008-09-11 04:56:37 +00:00
emaldona%redhat.com
30226bc23c Bug 447563: Better error messages. r=nelson
git-svn-id: svn://10.0.0.236/trunk@254142 18797224-902f-48f8-a5cc-f745e15eee43
2008-09-10 14:02:00 +00:00
julien.pierre.boogz%sun.com
8c15f988ed Fix for bug 423839 . Add multiple PKCS#11 token password command line options to crmftest, modutil, p7sign, p7content . r=nelson
git-svn-id: svn://10.0.0.236/trunk@253377 18797224-902f-48f8-a5cc-f745e15eee43
2008-08-04 22:58:31 +00:00
rrelyea%redhat.com
8563dfd635 bug 217538: shared database support... changes to cmd.
cmd changes are as follows:
1) fix a bug in blapitest.c
2) enable certutil to change the password on a database on the command line.
3) remove the explicit tests for cert and key databases in modutil and signtool.


git-svn-id: svn://10.0.0.236/trunk@227929 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-12 23:24:19 +00:00
rrelyea%redhat.com
5e97cf8097 Add Camilla cipher suites TLS RFC4132 bug 361025
code supplied by okazaki@kick.gr.jp


git-svn-id: svn://10.0.0.236/trunk@221086 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-28 19:47:40 +00:00
alexei.volkov.bugs%sun.com
c9763fb007 359331: modutil -changepw strict shutdown failure. r=nelson
git-svn-id: svn://10.0.0.236/trunk@217795 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-05 00:33:54 +00:00
nelson%bolyard.com
80b2615268 Bug 354423. Get the right string length. R=alexei.volkov,rrelyea
git-svn-id: svn://10.0.0.236/trunk@217682 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-03 12:54:10 +00:00
julien.pierre.bugs%sun.com
474a7151bc Fix for bug 352439 - reference leaks in modutil . r=alexei.volkov
git-svn-id: svn://10.0.0.236/trunk@211841 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-15 23:10:13 +00:00
glen.beasley%sun.com
592d9ac5ef 340734 update ref to 140-1 to 140 r=neilWilliams
git-svn-id: svn://10.0.0.236/trunk@199524 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-08 18:19:09 +00:00
nelson%bolyard.com
4a76b12e4a Bug 326690. Enable modutil to configure default slots for the
AES, SHA256 or SHA512 mechanisms.  r=rrelyea,julien.pierre


git-svn-id: svn://10.0.0.236/trunk@191365 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-28 05:16:00 +00:00
julien.pierre.bugs%sun.com
dc3d8f8f7a Remove dead config.mk files for modutil and ssltap. Fix for 294720. r=nelson
git-svn-id: svn://10.0.0.236/trunk@184388 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-10 03:00:05 +00:00
nelsonb%netscape.com
00749853c3 Remove fortezza code from libSSL and from the SSL test programs.
Stop building fortezza's special software token, and fortezza specific
test programs.   Bug 239960. r=rrelyea.
Modified Files:
    cmd/manifest.mn cmd/platlibs.mk cmd/SSLsample/server.c
    cmd/SSLsample/sslsample.c cmd/modutil/modutil.c
    cmd/selfserv/selfserv.c cmd/sslstrength/sslstrength.c
    cmd/strsclnt/strsclnt.c cmd/tstclnt/tstclnt.c
    cmd/vfyserv/vfyserv.c cmd/vfyserv/vfyutil.c lib/manifest.mn
    lib/ssl/nsskea.c lib/ssl/preenc.h lib/ssl/prelib.c
    lib/ssl/ssl.h lib/ssl/ssl3con.c lib/ssl/ssl3prot.h
    lib/ssl/sslauth.c lib/ssl/sslcon.c lib/ssl/sslenum.c
    lib/ssl/sslimpl.h lib/ssl/sslinfo.c lib/ssl/sslproto.h
    lib/ssl/sslsecur.c lib/ssl/sslsnce.c lib/ssl/sslsock.c
    lib/ssl/sslt.h


git-svn-id: svn://10.0.0.236/trunk@177810 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 03:42:26 +00:00
nelsonb%netscape.com
663db84c36 Back out the preceeding fortezza removal patch, which was accidentally
applied to the trunk, not to the intended branch.


git-svn-id: svn://10.0.0.236/trunk@171823 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-06 21:35:45 +00:00
nelsonb%netscape.com
b62572db42 Remove fortezza support from libSSL and related commands. Bug 239960.
ON PERFORMANCE_HACKS_BRANCH.  r=rrelyea.


git-svn-id: svn://10.0.0.236/trunk@171820 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-06 19:43:19 +00:00
julien.pierre.bugs%sun.com
00fdce35ea Reduce unneeded warning output
git-svn-id: svn://10.0.0.236/trunk@171507 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-02 06:46:51 +00:00
gerv%gerv.net
a2d903c9f2 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@168726 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-02 22:28:27 +00:00
gerv%gerv.net
43cb9e1492 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155484 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-25 15:03:26 +00:00
relyea%netscape.com
291f5c8248 Bug 203866
Make unloaded modules visible for administrative purposes.
sr=wtc r=nelson


git-svn-id: svn://10.0.0.236/trunk@147841 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-10 15:29:43 +00:00
nelsonb%netscape.com
1ac2b80786 Check for presence of secmod.db file prior to acting on it, for all
cases except "multiaccess:".  Bug 220217. r=relyea


git-svn-id: svn://10.0.0.236/trunk@147645 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 23:33:03 +00:00
nelsonb%netscape.com
9ae20d64bf Fix usage message to list all commands. Also, fix a few lines of
code that did not follow the file's convention for indentation.
Bug 203870.


git-svn-id: svn://10.0.0.236/trunk@147264 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-24 21:49:49 +00:00
wtc%netscape.com
eee783e6a0 Bug 206926: 1. Undo the changes to secrng.h, pqgutil.h, swfutl.c,
unix_rand.c, and win_rand.c. 2. Make secrng.h and pqgutil.h private.
3. Public header pk11pqg.h can't include private header pqgutil.h.
4. Many files don't need to include secrng.h.  A few don't need to include
pqgutil.h.  5. Remove duplicate declarations of PQG_DestroyParams and
PQG_DestroyVerify from blapi.h.


git-svn-id: svn://10.0.0.236/trunk@143125 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-30 23:31:32 +00:00
wtc%netscape.com
6d47044c42 Bug 197890: Eliminated the artificial dependency of all NSS cmd tools on
zlib.  Only some of them (modutil and signtool) need zlib and we now define
that dependency explicitly.  In shlibsign/sign.sh, escape the drive letter
if the pathname contains it and we are using Cygwin so that the pathname
does not contain any colon, which is the PATH separator in Cygwin. r=relyea
Modified Files: platlibs.mk modutil/manifest.mn shlibsign/sign.sh
	signtool/manifest.mn


git-svn-id: svn://10.0.0.236/trunk@139615 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 21:48:18 +00:00
kirk.erickson%sun.com
b5ee5bd796 Addresses bug 193378 modutil should print an error message,
by printing error on SECMOD_DeleteInternalModule() failure.


git-svn-id: svn://10.0.0.236/trunk@138408 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-25 02:09:11 +00:00
relyea%netscape.com
a7b24ab1b2 Surface the Err codes if we fail to shift to FIPS mode.
Add new option to verify that we have shifted to FIPS mode.


git-svn-id: svn://10.0.0.236/trunk@137392 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-05 00:31:15 +00:00
relyea%netscape.com
ed0e221f04 Compile modutil with shared libraries.
git-svn-id: svn://10.0.0.236/trunk@137032 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-28 16:44:33 +00:00
bishakhabanerjee%netscape.com
43ef69edd2 checking return value of NSS_Shutdown. Bug 171263
git-svn-id: svn://10.0.0.236/trunk@135950 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-07 22:31:36 +00:00
nicolson%netscape.com
4b34ca8158 Fix 164126: makefile build error.
Change the NSS module name from "security" to "nss".


git-svn-id: svn://10.0.0.236/trunk@128961 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 16:38:56 +00:00
wtc%netscape.com
16ce983004 Bugs 166734 and 166785: fixed compiler warnings reported by gcc on Linux.
The patch for this checkin is attached to bug 166785.


git-svn-id: svn://10.0.0.236/trunk@128926 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 00:27:52 +00:00
wtc%netscape.com
952d7bcc66 Removed README.TXT, which is just README with Windows line endings (CRLF).
git-svn-id: svn://10.0.0.236/trunk@124852 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 17:11:25 +00:00
relyea%netscape.com
50406c66c5 Bug 133584: Fix reference leaks which prevent shutdown in NSS and in the tests.
Debug builds can verify correct operation by setting NSS_STRICT_SHUTDOWN, which
will cause an assert if shutdown is called but not all the modules are freed (which
means a slot, key, or cert reference has been leaked).


git-svn-id: svn://10.0.0.236/trunk@118866 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-12 19:05:21 +00:00
jpierre%netscape.com
7a190abea9 Call NSS_Shudown in modutil
git-svn-id: svn://10.0.0.236/trunk@117598 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-27 05:02:58 +00:00
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
jpierre%netscape.com
104ab33335 Fix bug 128347 - add -string argument to pass strings to PKCS#11 modules upon addition
git-svn-id: svn://10.0.0.236/trunk@115630 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-02 01:56:27 +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
jpierre%netscape.com
26c1e6d023 Fix for 125143 - allow modutil to report PKCS#11 library load failure errors
git-svn-id: svn://10.0.0.236/trunk@114359 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-13 01:43:10 +00:00
jpierre%netscape.com
9d6c410b11 Reset NSPR error text before adding the module to make sure we aren't getting some previous error
git-svn-id: svn://10.0.0.236/trunk@114248 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 04:25:15 +00:00
jpierre%netscape.com
8b6f524f9d Make modutil display a more detailed error when a PKCS#11 module fails to load. This is done by checking the NSPR error text that is set by PR_LoadLibrary failures deep in SECMOD_AddNewModule
git-svn-id: svn://10.0.0.236/trunk@114245 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 04:09:21 +00:00
nelsonb%netscape.com
0b78f800ea Change the behavior of the -list <module> option so that it doesn't stop
at the first error it encounters when looping through the slots, and so
that it displays the slot info even if it cannot get token info. 111075


git-svn-id: svn://10.0.0.236/trunk@108719 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 20:52:37 +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
ian.mcgreer%sun.com
d37dd4ed78 fix prompts to STDIN when using file passwords, bug 103942
git-svn-id: svn://10.0.0.236/trunk@105059 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-10 19:54:22 +00:00
relyea%netscape.com
6e05bd575f Fix compiler warnings.
Use the new Initalization functions for Modules.


git-svn-id: svn://10.0.0.236/trunk@103352 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 21:44:20 +00:00
relyea%netscape.com
96a8daf191 Fix Updating the slot in modutil.
Add option to dump the raw PKCS #11 strings.


git-svn-id: svn://10.0.0.236/trunk@102453 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:16:51 +00:00
wtc%netscape.com
8baf9712df Bugzilla bug 94685: added 'const' to eliminate compiler warning.
Modified files: install.c instsec.c


git-svn-id: svn://10.0.0.236/trunk@101670 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:10:00 +00:00
wtc%netscape.com
fdb50e4111 Bugzilla bug 95797: fixed a typo. Thanks to Joerg Brunsmann
<joerg_brunsmann@yahoo.de> for the bug report and patch.


git-svn-id: svn://10.0.0.236/trunk@101431 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 19:05:34 +00:00
wtc%netscape.com
30d9ff478a Bugzilla bug #77884: fixed discrepancy between the size of an array and
the variable that represents the array size.  Let the compiler compute
the value for us instead of using hardcoded constants.  Thanks to
andrew@fernandes.org for reporting and tracking down this bug.


git-svn-id: svn://10.0.0.236/trunk@96538 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-06 17:00:51 +00:00
relyea%netscape.com
ed82589e54 OK, let's not get sloppy on the types... flags should be a PRUint32.
git-svn-id: svn://10.0.0.236/trunk@86732 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 02:05:19 +00:00
relyea%netscape.com
cfdefcfcde Make the public interface use a flags variable instead of a billion little
Bools.

suggested and reviewed by wtc in bug 66230


git-svn-id: svn://10.0.0.236/trunk@86731 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 02:03:03 +00:00
relyea%netscape.com
82187a130c update certutil and modutil to use the new NSS_Initialize signature.
modutil can now specify it's nocertdb paramter.

bug 64260 reviewed by wtc


git-svn-id: svn://10.0.0.236/trunk@86649 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-09 01:38:04 +00:00