562 Commits

Author SHA1 Message Date
wtc%netscape.com
c8c128b326 Bug 134113: make NSS build on Win32 using GCC (MinGW). The patch
(attachment 121068) is contributed by Chris Seawood (cls@seawood.org).


git-svn-id: svn://10.0.0.236/trunk@141471 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-20 04:23:37 +00:00
jpierre%netscape.com
c37d53d2ef Fix for 202053 - signing of softokn3.dll may fail on OS/2. Force the use of OS/2 CMD.EXE default shell . r=pedemont
git-svn-id: svn://10.0.0.236/trunk@141203 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 22:42:09 +00:00
wtc%netscape.com
8f09580ad7 Bug 201555: enable stripping of EXEs on OS/2 with gcc. The LIBPATHSTRICT
change in sign.cmd is so that you can run a VACPP build when gcc is
building (otherwise shlibsign loads the wrong DLLs).  The patch is
contributed by IBM.
Modified Files:
	coreconf/OS2.mk nss/cmd/shlibsign/sign.cmd


git-svn-id: svn://10.0.0.236/trunk@141158 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 04:08:09 +00:00
wtc%netscape.com
249c42dc3c The .chk files should have the $(DLL_PREFIX), not $(LIB_PREFIX), because
they correspond to shared libraries/DLLs.


git-svn-id: svn://10.0.0.236/trunk@141069 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 20:44:45 +00:00
wtc%netscape.com
6342e79c74 Bug 200974: NetBSD uses GNU ld and so also needs -rpath-link.
git-svn-id: svn://10.0.0.236/trunk@140820 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-07 23:52:17 +00:00
nelsonb%netscape.com
18a74c3e7d Fix bug 200224. Eliminate null ptr dereference.
git-svn-id: svn://10.0.0.236/trunk@140609 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 23:24:01 +00:00
wtc%netscape.com
fc422e4a26 Bug 200179: prepend, rather than overwrite, the shared library search path.
We can't assume the shared library search path is not set.


git-svn-id: svn://10.0.0.236/trunk@140515 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 22:58:26 +00:00
wtc%netscape.com
9296eb32ef Destroy the hash context, public key, private key, and slot so that NSS
shutdown will succeed.  r=relyea.


git-svn-id: svn://10.0.0.236/trunk@140513 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 22:47:46 +00:00
wtc%netscape.com
cddd1bbf95 Added a missing {.
git-svn-id: svn://10.0.0.236/trunk@140508 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 22:03:07 +00:00
bishakhabanerjee%netscape.com
6fca4967af checking return value of NSS_Shutdown() - bug 171263
git-svn-id: svn://10.0.0.236/trunk@140495 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 19:23:18 +00:00
bishakhabanerjee%netscape.com
d6412757ef checking return value of NSS_Shutdown - bug 171263
git-svn-id: svn://10.0.0.236/trunk@140494 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 19:13:50 +00:00
bishakhabanerjee%netscape.com
ac79db828b checking return value of NSS_Shutdown() - bug 171263
git-svn-id: svn://10.0.0.236/trunk@140493 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 19:11:38 +00:00
bishakhabanerjee%netscape.com
5e867ccb38 Checking return value of NSS_Shutdown() - bug 171263
git-svn-id: svn://10.0.0.236/trunk@140492 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 19:05:56 +00:00
bishakhabanerjee%netscape.com
13a14f2095 checking return value of NSS_Shutdown() - bug 171263
git-svn-id: svn://10.0.0.236/trunk@140491 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 19:00:50 +00:00
wtc%netscape.com
fc00da000f Bug 199628: support shlibsign on OpenVMS. Pass $(OS_TARGET) instead of
$(IS_WINDOWS) to sign.sh and sign.cmd (which ignores that argument).  In
sign.sh, use a case statement with three cases: Windows, OpenVMS, and
others.  The patch is contributed by Colin Blakes <colin@theblakes.com>.
Modified Files: Makefile sign.cmd sign.sh


git-svn-id: svn://10.0.0.236/trunk@140431 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-29 00:42:43 +00:00
nelsonb%netscape.com
faa5b981f5 Changes to enable ECC over characteristic 2^m fields.
Contribution from Vipul Gupta <Vipul.Gupta@Sun.COM>
Modified Files:
 nss/cmd/strsclnt/strsclnt.c nss/lib/cryptohi/seckey.c
 nss/lib/freebl/blapit.h nss/lib/freebl/ec.c
 nss/lib/freebl/manifest.mn nss/lib/freebl/mpi/Makefile
 nss/lib/softoken/ecdecode.c nss/lib/softoken/pkcs11.c
 nss/lib/ssl/ssl3con.c nss/lib/util/secoid.c
 nss/lib/util/secoidt.h


git-svn-id: svn://10.0.0.236/trunk@140430 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-29 00:18:30 +00:00
wtc%netscape.com
ad60ccb5b5 Bug 195797: support building NSS with GCC 3.x on OS/2. The patch is
contributed by Javier Pedemonte <pedemont@us.ibm.com>.
Modified Files:
	security/coreconf/OS2.mk security/coreconf/rules.mk
	security/nss/cmd/shlibsign/sign.cmd


git-svn-id: svn://10.0.0.236/trunk@140388 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-27 15:40:54 +00:00
wtc%netscape.com
cd468dfb31 Bug 199134: fixed build failures on FreeBSD. We need to specify -pthread
when linking an executable (already doing that when linking a shared lib),
and we need to use the -rpath-link flag to help the linker find the
shared libraries that we indirectly link with.  r=cls.
Modified Files: coreconf/FreeBSD.mk nss/cmd/platlibs.mk


git-svn-id: svn://10.0.0.236/trunk@140370 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-27 01:17:28 +00:00
wtc%netscape.com
8704a591e4 Bug 195127: set the LIBPATH environment variable (used by AIX) as absolute
pathname.  It seems that AIX caches shared libraries. If another app loaded
the same shared library earlier, the cached copy of the shared library,
including the pathname with which it was loaded, will be used.  So we need
to ensure that all apps load libsoftokn3.so with an absolute pathname so
that the pathname is correct to all apps.


git-svn-id: svn://10.0.0.236/trunk@140356 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-26 21:07:12 +00:00
wtc%netscape.com
08b4edbe77 Removed extraneous trailing / after directory pathnames.
git-svn-id: svn://10.0.0.236/trunk@140353 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-26 18:30:33 +00:00
wtc%netscape.com
ede99124e6 Bug 199082: checked in Nelson's patch, which
a) changes selfserv to test the return value from NSS_Shutdown.
b) changes SECMOD_Shutdown to set the error code SEC_ERROR_BUSY before
   returning SECFailure.
c) Adds a new function SSL_ShutdownServerSessionIDCache to ssl.h.
d) Changes selfserv to call SSL_ShutdownServerSessionIDCache before calling
NSS_Shutdown.
Modified Files:
	cmd/selfserv/selfserv.c lib/pk11wrap/pk11util.c
	lib/ssl/ssl.def lib/ssl/ssl.h lib/ssl/ssl3con.c
	lib/ssl/sslimpl.h lib/ssl/sslsnce.c


git-svn-id: svn://10.0.0.236/trunk@140305 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-26 00:31:13 +00:00
nelsonb%netscape.com
a5c825f716 Fix bug 198099. Display DSA public keys in certs properly.
git-svn-id: svn://10.0.0.236/trunk@140211 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 03:45:04 +00:00
wtc%netscape.com
4e2185eea8 Removed the experimental change. It did not cause the intermittent QA
failures on the "aix64" tinderbox to go away.


git-svn-id: svn://10.0.0.236/trunk@140085 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-23 00:16:43 +00:00
wtc%netscape.com
8927f1667d Deleted an obsolete comment.
git-svn-id: svn://10.0.0.236/trunk@140050 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 08:01:44 +00:00
wtc%netscape.com
f04efc4615 An experimental change for debugging bug 195127: on the 64-bit AIX
tinderbox the dist/${OBJDIR}/lib/libsoftokn3.chk symlink sometimes does
not get created.


git-svn-id: svn://10.0.0.236/trunk@140048 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 07:52:25 +00:00
wtc%netscape.com
e8ed431f38 Bug 198543: checked in the patch from Chris Seawood to fix BeOS bustage.
Apparently it is necessary to have LIBRARY_PATH set in the environment.


git-svn-id: svn://10.0.0.236/trunk@140027 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 02:59:26 +00:00
wtc%netscape.com
2ae7855a95 BSD/OS seems to be using GNU ld, which needs -rpath-link to find the
implicit dependency of an explicitly lined .so at link time.


git-svn-id: svn://10.0.0.236/trunk@140011 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 01:26:58 +00:00
wtc%netscape.com
ade3fe09ea Bug 198543: BeOS uses LIBRARY_PATH to search for shared libraries.
git-svn-id: svn://10.0.0.236/trunk@139974 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 21:33:43 +00:00
wtc%netscape.com
1594819117 Rewrote without the dirname() and basename() calls because they are not
available on some Unix platforms (e.g., BSD/OS 4.2).


git-svn-id: svn://10.0.0.236/trunk@139969 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 20:57:07 +00:00
wtc%netscape.com
b19d343996 Bug 197890: backed out the previous checkin. For unknown reasons, the
Mozilla trunk Tinderbox machine "beast" had trouble running the cygpath
command.  It failed with the error
"can't create title mutex, Win32 error 6".


git-svn-id: svn://10.0.0.236/trunk@139908 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 06:10:31 +00:00
wtc%netscape.com
8a21142c1e On IRIX, dirname() and basename() are defined in -lgen.
git-svn-id: svn://10.0.0.236/trunk@139905 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 05:13:20 +00:00
wtc%netscape.com
95675d1983 Bug 198482: OS/2 can't run sign.sh because we can't set DLL load path in
a shell script.  This patch is contributed by Michael Kaply
<mkaply@us.ibm.com>.
Modified Files: Makefile
Added Files: sign.cmd


git-svn-id: svn://10.0.0.236/trunk@139901 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 03:48:11 +00:00
wtc%netscape.com
758e85dd87 Bugzilla 198481: fixed all build problems with gcc on Solaris.
1. Removed the workarounds we put in before -- hardcoding LD to
/usr/ccs/bin/ld and passing the -B/usr/ccs/bin/ flag to gcc.
2. Use the compiler, $(CC), to build shared libraries.
3. If gcc is used, determine whether gcc uses GNU ld or Solaris
ld and set the new make variable GCC_USE_GNU_LD accordingly.
Modified Files:
	coreconf/SunOS5.mk nss/cmd/platlibs.mk nss/lib/freebl/Makefile


git-svn-id: svn://10.0.0.236/trunk@139898 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 03:31:00 +00:00
wtc%netscape.com
a03ec3e9c3 Bug 58221: don't use strlen to check if a string is of length 0.
git-svn-id: svn://10.0.0.236/trunk@139753 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 06:37:03 +00:00
wtc%netscape.com
1871b254e6 Bug 58221: don't use strlen to check if a string is of length 0.
git-svn-id: svn://10.0.0.236/trunk@139752 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 06:30:12 +00:00
wtc%netscape.com
42332809da Bug 197890: use Cygwin's cygpath command to "escape" a pathname with a
drive letter for Cygwin's bash.


git-svn-id: svn://10.0.0.236/trunk@139672 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 14:48:09 +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
20e3ae1f8b Made 'seconds' argument to '-L' optional.
Updated Usage with '-L [seconds]' syntax, and default value (30).


git-svn-id: svn://10.0.0.236/trunk@139308 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 02:40:43 +00:00
relyea%netscape.com
c03e47d2be remove last references to TraverseCerts by removing depricated functions with call it. r=wtc
git-svn-id: svn://10.0.0.236/trunk@138980 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 21:46:20 +00:00
relyea%netscape.com
f054c87eff Incorporate wtc comment from bug 19061 (removal of commented code).
git-svn-id: svn://10.0.0.236/trunk@138888 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-04 23:11:09 +00:00
relyea%netscape.com
48cadc778a Print all the certs for a given nickname, not just the first.
git-svn-id: svn://10.0.0.236/trunk@138881 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-04 22:32:24 +00:00
ian.mcgreer%sun.com
b74702329e bug 177556, signtool -l fails
r=wtc


git-svn-id: svn://10.0.0.236/trunk@138724 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 21:14:36 +00:00
nelsonb%netscape.com
db2f1140de Add support for Elliptic Curve Cryptography. Bug 195135.
Modified Files:
 	cmd/lib/SECerrs.h cmd/selfserv/selfserv.c
 	cmd/tstclnt/tstclnt.c lib/cryptohi/keyhi.h
 	lib/cryptohi/keythi.h lib/cryptohi/seckey.c
 	lib/cryptohi/secvfy.c lib/freebl/Makefile lib/freebl/blapi.h
 	lib/freebl/blapit.h lib/freebl/ldvector.c lib/freebl/loader.c
 	lib/freebl/loader.h lib/freebl/manifest.mn lib/nss/nss.def
 	lib/pk11wrap/pk11skey.c lib/pk11wrap/pk11slot.c
 	lib/softoken/lowkeyti.h lib/softoken/manifest.mn
 	lib/softoken/pkcs11.c lib/softoken/pkcs11c.c
 	lib/softoken/pkcs11t.h lib/ssl/ssl3con.c lib/ssl/ssl3prot.h
 	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/sslsock.c lib/ssl/sslt.h lib/util/secerr.h
 	lib/util/secoid.c lib/util/secoidt.h
Added Files:
 	lib/freebl/GFp_ecl.c lib/freebl/GFp_ecl.h lib/freebl/ec.c
 	lib/freebl/ec.h lib/softoken/ecdecode.c


git-svn-id: svn://10.0.0.236/trunk@138574 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 01:31:38 +00:00
nelsonb%netscape.com
434fd1bc8e Add missing dependency on error headers.
git-svn-id: svn://10.0.0.236/trunk@138557 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-26 23:52:40 +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
wtc%netscape.com
4f908e5c38 Simplified the test for substrings.
git-svn-id: svn://10.0.0.236/trunk@138191 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:20:07 +00:00
thayes%netscape.com
1b54ba57d9 Bug 192639: Use utility functions for managing token passwords so that
cmsutil will prompt for the value if it is not given on the command line.
r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@137964 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-19 00:39:39 +00:00
wtc%netscape.com
92e7c17942 Add DHE algorithms to the list. (Merged relyea's checkin (rev. 1.3.2.1)
from the NSS_3_7_BRANCH to the trunk.)


git-svn-id: svn://10.0.0.236/trunk@137931 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-18 02:53:54 +00:00
wtc%netscape.com
ea6060a1b0 Bug 131826: backed out the zlib 1.1.4 upgrade because the signtool tests
failed.
Modified Files:
	README adler32.c compress.c crc32.c deflate.c deflate.h
	example.c gzio.c infblock.c infblock.h infcodes.c infcodes.h
	inffast.c inffast.h inflate.c inftrees.c inftrees.h infutil.c
	infutil.h minigzip.c trees.c uncompr.c zconf.h zlib.h zutil.c
	zutil.h


git-svn-id: svn://10.0.0.236/trunk@137599 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-08 15:00:13 +00:00
wtc%netscape.com
3b2b50508d Bug 131826: checked in the README file of zlib 1.1.4.
git-svn-id: svn://10.0.0.236/trunk@137598 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-08 09:10:36 +00:00