Граф коммитов

821 Коммитов

Автор SHA1 Сообщение Дата
wtc%netscape.com 8c6feb497d Bugzilla bug #54131: link executable programs with the -z and +s linker
options.
2000-09-26 04:49:09 +00:00
thayes%netscape.com 9bbc4daa03 Add UTF8String handling to Name attributes. 2000-09-25 21:13:24 +00:00
relyea%netscape.com a47e73ab05 Fix problem where RSA op failures cause multiple retries of the RSA algorithm. 2000-09-23 00:05:27 +00:00
relyea%netscape.com d6ae253521 Move the header files. 2000-09-23 00:04:34 +00:00
relyea%netscape.com d494af743c Use the new NSS_NoDB_init. 2000-09-23 00:00:05 +00:00
wtc%netscape.com 1adb86262f Added perl-generated files nssckpev.h nssckft.h nssckg.h nssck.api. 2000-09-22 22:52:20 +00:00
ddrinan%netscape.com 6581103a47 Copy over ALL of the components directory 2000-09-22 22:32:35 +00:00
relyea%netscape.com 60d0900ca3 Add NSS_NoDB_Init() 2000-09-22 17:34:29 +00:00
relyea%netscape.com f923ace5db Check in changes to add NSS_NoDB_Init(). 2000-09-22 17:33:46 +00:00
ddrinan%netscape.com 40af302348 Make the component directory writeable 2000-09-22 17:06:59 +00:00
mcgreer%netscape.com cae70ded34 revert changes to DH param gen. MPI does compute q=2p+1 for strong primes, but returns q not p. #ifdef in rsa for testing mp_exptmod_d vs. mp_exptmod, mp_exptmod is considerably faster. 2000-09-22 16:24:16 +00:00
wtc%netscape.com 1d2060546c Bugzilla bug #53114: fixed license. 2000-09-22 14:55:03 +00:00
wtc%netscape.com b60704ec9e Added a white space. 2000-09-22 14:52:32 +00:00
wtc%netscape.com b4f26ea4e3 Bugzilla bug #53114: fixed license in nss/cmd/zlib/Makefile and
manifest.mn.  Thanks to Brian Ryner <bryner@netscape.com> for the bug
report.
2000-09-22 05:35:35 +00:00
bryner%uiuc.edu 30ab9913bd Moving files out of security/base at request of security team. The new home for these files is in netwerk. Bug 53648. r=scc. a=gagan,brendan. 2000-09-22 04:42:20 +00:00
ddrinan%netscape.com 02676a0092 Copy ALL the contents of the components directory during build_xpi 2000-09-22 00:02:19 +00:00
mcgreer%netscape.com dd53d4c408 Fix DH param gen, MPI returns Sophie-Germain prime q, then compute 2q + 1. Initial checkin of two KEA functions. 2000-09-21 23:45:24 +00:00
ddrinan%netscape.com 2b2c212de7 This script will run regxpcom 2000-09-21 21:51:57 +00:00
ddrinan%netscape.com 3a0e6d04b6 More bug fixes for regxpcom 2000-09-21 21:50:23 +00:00
ddrinan%netscape.com f3c74c6294 Fix the directory location of regxpcom 2000-09-21 20:09:13 +00:00
ddrinan%netscape.com 49b8d58c54 Fixed a problem with generating the component.reg file 2000-09-21 18:08:25 +00:00
wtc%netscape.com 87762fc67c One only needs to link with either libcrypto or freebl. We need to copy
freebl/sha_fast.{c,h} to libcrypto to make libcrypto complete.
Modified files: nss/cmd/platlibs.mk, nss/lib/Makefile,
nss/lib/fortcrypt/swfort/pkcs11/Makefile.
2000-09-21 06:20:44 +00:00
ddrinan%netscape.com 3667215cd3 Fixed typo 2000-09-21 01:13:38 +00:00
ddrinan%netscape.com 5157809ea8 Generate a component.reg as part of the xpi build for Unix. Bug# 49507 2000-09-20 23:15:23 +00:00
relyea%netscape.com e3404f2a3c Changes to build OS/2 NSS. 2000-09-20 17:20:23 +00:00
relyea%netscape.com 32f5210984 OS/2 build changes. 2000-09-20 17:07:22 +00:00
mcgreer%netscape.com 60a4cfa59f Check in self-test based on FIPS 186-1 appendix 5 2000-09-19 21:14:22 +00:00
chrisk%netscape.com d3fb620cd1 Fix bug # 53221: Call RNG_SystemInfoForRNG to provide RNG with enough
entropy for proper operation.
2000-09-19 19:34:46 +00:00
wtc%netscape.com dfe682c89a Bugzilla bug #53204: import NSPR 4.0.1 on Windows NT and 4.0 on all other
platforms.
Modified files: manifest.mn, Makefile
2000-09-19 17:49:54 +00:00
mcgreer%netscape.com 89db06d9ff include support for adding S/MIME certs to the database. this will be needed for S/MIME test code. 2000-09-19 16:22:17 +00:00
mcgreer%netscape.com 124d13f3df don't set modulus octets until good primes are generated. 2000-09-19 06:18:04 +00:00
wtc%netscape.com 558b4488e2 Bugzilla bug #52404: FreeBSD doesn't have cuserid() either. Thanks to
Thomas Stromberg <tstromberg@rtci.com> for the bug report.
2000-09-19 06:05:28 +00:00
mcgreer%netscape.com eca80fd5cb don't set prime data until good primes are generated. 2000-09-19 06:03:52 +00:00
wtc%netscape.com bd0c75f195 Bugzilla bug #52399: handle FreeBSD. Thanks to Thomas Stromberg
<tstromberg@rtci.com> for the bug report.
2000-09-19 04:11:53 +00:00
wtc%netscape.com 41f888f734 Bugzilla bug #52398: define USE_PTHREADS=1 by default. Do not link with
-lc or -lc_r.  Also merged other changes from NSPR's FreeBSD.mk.
Thanks to Thomas Stromberg <tstromberg@rtci.com> for the bug report.
2000-09-19 03:53:08 +00:00
wtc%netscape.com 149d35adf3 Bugzilla bug #53143: removed the definition of NSPR internal macros.
Modified files: FreeBSD.mk, HP-UXB.10.10.mk, HP-UXB.10.20.mk, Linux.mk,
OSF1.mk, SunOS5.mk, cmd/SSLsample/Makefile.NSS, lib/freebl/Makefile.
2000-09-19 02:24:31 +00:00
wtc%netscape.com de8158bdf3 Added FreeBSD.mk, which contains the common config stuff for all versions
of FreeBSD.mk.  FreeBSD2.mk now merely includes FreeBSD.mk.
Modified file: FreeBSD2.mk
Added file: FreeBSD.mk
2000-09-19 01:48:42 +00:00
cotter%netscape.com 46b55340ed Updated info re installation directories, running Communicator 4.x. Moved sentence re problems running PSM on Unix if you havelogged in as a different user since installation to Known Bugs/Issues. 2000-09-19 00:23:38 +00:00
nelsonb%netscape.com ecbd427c31 Fix a UMR, one of many where the SECItem type field was uninitialized.
bug 39483.  Also, eliminate a warning about calling an undeclared function
by including the header file.
2000-09-18 23:53:18 +00:00
nelsonb%netscape.com 47d0feae47 Fix bug 52396. Don't compile case ENOSR on platforms that don't have it. 2000-09-18 19:53:59 +00:00
mcgreer%netscape.com 22ed53defc just some general cleanup 2000-09-16 15:56:06 +00:00
wtc%netscape.com 173f1f86a3 Bugzilla bug #52900: added Linux2.4.mk to allow us to build NSS on Linux
2.4.x kernels.  This bug was reported by Michael H. Warfield
<mhw@wittsend.com>.
2000-09-16 06:11:32 +00:00
thayes%netscape.com 62da840f60 Initialize random number generator from system information. The new
RNG implementation fails if insufficient seed is not provided, which
would cause SDR key generation to fail.
2000-09-16 00:53:08 +00:00
relyea%netscape.com 033b3f5ff1 Fix stupid shell typo so that *ALL* the testcases will pass.
bob
2000-09-15 22:08:57 +00:00
relyea%netscape.com d4cd91c732 Fix merge problems from CVS. This version should now compile and work. 2000-09-15 21:01:53 +00:00
mcgreer%netscape.com 7a17768f54 signed data certs may not be set when this is called, so get certs from db. 2000-09-15 20:23:26 +00:00
mcgreer%netscape.com 69c9890974 NT still buggy with password files, this seems to fix it 2000-09-15 18:45:20 +00:00
mcgreer%netscape.com 38dffc100f extra #endif broke build 2000-09-15 15:58:42 +00:00
relyea%netscape.com df1265c29d Propogate the password arg to the sign function. 2000-09-15 15:37:37 +00:00
relyea%netscape.com fcecefc5d9 Fix NT so it can read from a password file. (do the correct EOL conversions).
Fix trust display for certs not in the database.
2000-09-15 15:35:03 +00:00
mcgreer%netscape.com c53b6cbc2a Added function NSS_CMSSignedData_VerifyCertsOnly to API 2000-09-15 06:38:33 +00:00
ddrinan%netscape.com 03f6d8b4a6 Add XPCOM, NSPR and i18n back into xpi files 2000-09-15 01:28:23 +00:00
javi%netscape.com d1c62c5472 When doing forced backup, create a single p12 file which has all of
the certs instead of a single p12 file for each cert.
2000-09-15 01:27:06 +00:00
ddrinan%netscape.com ebf9ebd157 Install PSM in its own directory 2000-09-15 01:26:52 +00:00
wtc%netscape.com 29e03534a0 Increase the sleep interval from 10 to 20. 2000-09-15 00:43:36 +00:00
cotter%netscape.com c92324faac Updated release notes re TLS; minor formatting changes to api doc. 2000-09-15 00:17:45 +00:00
ddrinan%netscape.com 3c715fcfda Enable TLS by default 2000-09-15 00:03:12 +00:00
relyea%netscape.com 72a1e1abc8 Fix authentication tests so they work for both unix and NT. 2000-09-14 21:59:04 +00:00
relyea%netscape.com c214f9f4de Fix certutil to read Certs from PKCS #11 modules. Make the 'all' option for
modules work for ListCerts and ListKeys. Allow password from file for these
options as well.
2000-09-14 21:12:13 +00:00
nelsonb%netscape.com dffbab7246 Remove duplicate PORT_Free call. Fix bug 52633. 2000-09-14 20:25:26 +00:00
mcgreer%netscape.com 74d27b9ad7 fix bug where certlist was being freed after being set. 2000-09-14 17:14:44 +00:00
mcgreer%netscape.com a5d84fa47c even better fix to zero signer info issue 2000-09-14 00:33:28 +00:00
nelsonb%netscape.com e73209994b Eliminate extraneous "oop!" output at end of script on some platforms. 2000-09-14 00:32:24 +00:00
nelsonb%netscape.com 00152514ee Changes to make mpi use 64-bit digits on machines where unsigned longs
are 64-bits.  Renamed s_mp_invmod_32b to s_mp_invmod_radix since radix
can now exceed 32 bits.  Improved performance on all platforms except
MIPS and X86.
2000-09-14 00:31:01 +00:00
mcgreer%netscape.com a687f0f0b9 another instance of potentially null signerInfos being referenced 2000-09-13 22:44:28 +00:00
relyea%netscape.com 1feca30018 Get the pid from Selfserv itself rather than from the Shell. works around a nasty mks bug in NT. 2000-09-13 21:59:26 +00:00
relyea%netscape.com 8ddbdf24c4 Add option to get the server pid so we can kill the server later. 2000-09-13 21:25:13 +00:00
relyea%netscape.com f27aaf0c0d Fix IDG build breakage on AIX (remove cast). 2000-09-13 21:15:07 +00:00
wtc%netscape.com 4c69e27bae Get OBJDIR_NAME and OS_ARCH from the makefile as opposed to the arch.sh
script.  arch.sh should be cvs removed when we are sure about this change.
Checkin on behalf of Sonja Mirtitsch <sonmi@netscape.com>.
Modified file: init.sh
Added file: Makefile
2000-09-13 19:19:05 +00:00
mcgreer%netscape.com 765cfa8442 fix incorrect buffer zero 2000-09-13 18:44:11 +00:00
mcgreer%netscape.com b0e2eebad5 fix change I made last night 2000-09-13 18:13:17 +00:00
mcgreer%netscape.com 3e14ecc51b fixes RFE from bug 49316 (will test on NT before verifying) 2000-09-13 06:43:52 +00:00
mcgreer%netscape.com 8f9df751ab attempt to fix bug 51882 (sig data w/ no signer infos) 2000-09-13 06:15:13 +00:00
relyea%netscape.com 2a2ebdaf9c Fix double equal error in if statement 2000-09-13 00:21:17 +00:00
jgmyers%netscape.com 5933c0e58f failure to save cx->i and cx->j caused second arcfour encrypt/decrypt to return garbage: bug 52192 r=mcgreer 2000-09-12 23:02:24 +00:00
mcgreer%netscape.com cf63cc5a31 leading zero problems fixed; thanks to nelsonb for pointing out that I needed mp_to_fixlen_octets 2000-09-12 20:32:43 +00:00
relyea%netscape.com d99ee625c4 pick up changes from NSS 2.8.3. Most of these changes include the changes
Nelson made in rev 1.9 and 1.10. It also include some changes that remove
inappropriate templace valuse (CKA_VALUE_LEN) in some cases. Our internal
token tolerates these values, but most tokens rightly reject requests with
these.
2000-09-12 20:29:23 +00:00
jgmyers%netscape.com d33a0e465b support IPv6 in ssl: bug 48657 r=nelsonb 2000-09-12 20:15:44 +00:00
nelsonb%netscape.com a7816d4fdc Set the CKA_VALUE attribute in pk11_ImportSymKeyWithTempl().
This is a better solution to bug 52306, because it fixes the behavior of
all the functions that unwrap and/or import sym keys.
2000-09-12 19:44:56 +00:00
wtc%netscape.com a3783b7f6a Bugzilla bug #52232: remove the yacc rule and also cancel the implicit
yacc and lex rules in the primary Makefile.  Added comments to rules.mk
explaining that Berkeley yacc should be used.
Modified files: Makefile, rules.mk
2000-09-12 18:52:57 +00:00
wtc%netscape.com 5abdbf3c46 Bugzilla bug #52232: reverted to revision 1.1, which was generated
by Berkeley yacc 1.4 and hence was portable.  Revision 1.2 was
generated by the yacc in Solaris 2.6 and contained
#include <values.h>, which does not exist on NT.  Always use Berkeley
yacc (latest version is 1.9) to generate installparse.{c,h}.
Modified files: installparse.c, installparse.h
2000-09-12 14:51:06 +00:00
nelsonb%netscape.com 3884764d8f Fix two bugs in mp_invmod: a) returned wrong result if output var is also
one of the input vars, b) sometimes returned negative answer. Added a test
case to mpi-test.c with a value that previously produced a negative answer.
2000-09-12 00:41:09 +00:00
wtc%netscape.com ea7eef4b3c Checked in Perl-generated file certdata.c. 2000-09-11 23:34:42 +00:00
relyea%netscape.com f9efd67cbd nssTracker functions should only be defined in debug builds 2000-09-11 23:27:56 +00:00
nelsonb%netscape.com 55543ba43b Stop using "reserved" fields of PRIOMethods by name. Fixes bug 52092. 2000-09-11 22:37:12 +00:00
wtc%netscape.com 676970a82d Bugzilla bug #52187: modified ckapi.perl to read its input from the
first command-line argument as opposed to stdin.  Checkin on behalf
of sonmi@netscape.com.
Modified files: Makefile, ckapi.perl
2000-09-11 22:37:01 +00:00
wtc%netscape.com da47804c04 Bugzilla bug #52173: restored the FORCE target for NT. 2000-09-11 21:54:10 +00:00
wtc%netscape.com 9f590a6d24 Bugzilla bug #52173: accept both ytab.{c,h} and y.tab.{c,h} as the output
files of yacc.
2000-09-11 21:40:42 +00:00
mcgreer%netscape.com a64012af79 fix building of ssl sample code 2000-09-11 19:06:50 +00:00
mcgreer%netscape.com 2d78c9d09c initial checkin of Diffie-Hellman implementation 2000-09-11 17:11:50 +00:00
wtc%netscape.com f5199e9faa Backed out the previous checkin. I found another solution. 2000-09-11 15:01:04 +00:00
wtc%netscape.com 4144b1d802 Added the moz_import rule for the Windows build. 2000-09-11 15:00:22 +00:00
wtc%netscape.com 6483ca666a Added makefile.win as the interface to Mozilla Client's Win32 build
system.
2000-09-11 04:38:09 +00:00
cotter%netscape.com 3abc4fc669 Fixed two typos, deleted obsolete link. 2000-09-11 04:35:03 +00:00
wtc%netscape.com a72219b781 Changed the PR_GetError() call to PORT_GetError() because we use
PORT_SetError() to set error codes.
Modified files: dsa.c, rsa.c
2000-09-11 04:17:02 +00:00
wtc%netscape.com 252c3d1f57 Added mozilla/dist/include to INCLUDES because Mozilla's WIN32 build
has changed to export headers to that directory, so nss needs to get
the dbm headers (e.g., mcom_db.h) from there.  We should think about
what is the best long term solution to this problem (where to export
and get headers).
2000-09-11 03:39:55 +00:00
wtc%netscape.com 16ee94772a Added config file for WINNT 5.0 (Windows 2000). 2000-09-11 03:08:40 +00:00
nelsonb%netscape.com b08b7459fd Fix a bug in pk11_HandUnwrap that made it always fail because it was not
setting the CKA_VALUE attribute.  Also, fix two places that called
PK11_MapError(crv) unnecessarily and with improper crv values.
2000-09-11 01:37:36 +00:00
nelsonb%netscape.com fcd529acd8 Create a new function, CERT_DupCertList(), and call it instead of calling
CERT_CertChainFromCert in ssl_DupSocket().  This is MUCH faster.  This is
the first approximation of the right fix.  The next step is to consider
doing ref counting instead of actual duplication.  Fixes bug 51425 .
2000-09-09 06:08:46 +00:00
nelsonb%netscape.com fcf473c3e4 Change order of includes so this will build on NT. 2000-09-09 03:41:11 +00:00
nelsonb%netscape.com e2bcb02f53 Change order of includes, so this will build on NT. 2000-09-09 03:19:35 +00:00
wtc%netscape.com c519f893ff Bugzilla bug #48248: removed an extraneous declaration of putenv(). Thanks
to Steven T. Hatton <hattons@bellatlantic.net> for reporting the bug.
2000-09-09 02:25:18 +00:00
ddrinan%netscape.com 2ed27ddfed Fixed OBJDIR_NAME problem with nspr for Linux and Solaris 2000-09-09 00:53:00 +00:00
relyea%netscape.com ebe1c8c942 Sigh... let's compile this puppy before I check it in.... 2000-09-08 23:08:49 +00:00
relyea%netscape.com 98637e030d Fix Startup crash found by CPD on linux. (use the correct slot function). 2000-09-08 23:00:04 +00:00
relyea%netscape.com 01b9ee6b51 Fix bug where cached keys were keeping around dead sessions. 2000-09-08 22:59:06 +00:00
mcgreer%netscape.com 9a7b580fd6 fix bugs where some nss code expects leading 0's (once used for signs). allows pkcs11 pairwise consistency check to operate correctly. 2000-09-08 22:41:51 +00:00
ddrinan%netscape.com 8cacd8e867 Build coreconf 2000-09-08 22:05:00 +00:00
javi%netscape.com 8242571c31 Whomp the MAC_SECURITY_BRANCH onto the tip. 2000-09-08 21:42:11 +00:00
ddrinan%netscape.com 9cd6cd6f79 Build NSPR as part of PSM build 2000-09-08 21:32:04 +00:00
ddrinan%netscape.com d7ced633a9 ui and doc directories are now under psmdata 2000-09-08 02:04:05 +00:00
ddrinan%netscape.com bf93236cfd Install PSM in the same directiry as mozilla 2000-09-08 02:03:11 +00:00
ddrinan%netscape.com bbf6e76d49 Move ui and doc directories under psmdata and do not copy NSPR, XPCOM and components into the xpi file 2000-09-08 02:01:42 +00:00
wtc%netscape.com 371c1b79c4 gcc does not recognize the -xchip=ultra2 option on Solaris/Sparc. 2000-09-08 01:05:23 +00:00
wtc%netscape.com 09a0d18f5b Fixed the relative paths in the symlinks created by the moz_import target. 2000-09-08 00:52:35 +00:00
mcgreer%netscape.com 00a7d0cfbc make compare_key do something (even if it will go away soon) 2000-09-07 23:18:40 +00:00
nelsonb%netscape.com 90846eeb8b If an application calls SSL_SetURL on an NSPR FD that has NOT had SSL
"imported" into it, SSL_SetURL will crash.  This change fixes that.
2000-09-07 19:01:48 +00:00
javi%netscape.com 0d25294418 Update the packages up for nlslayer import on tortoise 2000-09-07 18:53:05 +00:00
mcgreer%netscape.com a42c5a312f first draft of rsa CRT decryption 2000-09-07 16:29:23 +00:00
relyea%netscape.com ad7149aae7 Add definitions for the nssCKFWMechanism functions.
Add definitions to stub out the NSPR functions.
2000-09-07 16:07:03 +00:00
mcgreer%netscape.com 68893ffb12 separate keygen from primegen, to facilitate testing (by using the self-test key from blapitest). using this verified the keygen process (against that self-test, anyway). leaving a testing function in temporarily. 2000-09-07 07:33:34 +00:00
mcgreer%netscape.com b02753e28a fix bad change made in keygen 2000-09-07 06:44:57 +00:00
nelsonb%netscape.com a485dc7547 Attempt to prevent certain NSS internal error codes from being seen by
applications that use SSL sockets.  These include:
SEC_ERROR_EXTENSION_NOT_FOUND and SSL_ERROR_SESSION_NOT_FOUND
2000-09-07 03:35:31 +00:00
mcgreer%netscape.com 47641a2f5f call extended euclidean algorithm directly instead of using mp_invmod 2000-09-07 03:14:16 +00:00
nelsonb%netscape.com d912e6b7b2 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).
2000-09-07 01:24:52 +00:00
nelsonb%netscape.com e6188e0198 Effectively remove all the code that uses RC5 from the software token
by surrounding it with #if NSS_SOFTOKEN_DOES_RC5
2000-09-07 01:17:00 +00:00
mcgreer%netscape.com 59c0e808b5 first draft of rsa public key op (tested against blapi self-test) 2000-09-06 23:58:41 +00:00
nelsonb%netscape.com a8f519e4a0 Uncouple the definition of MOZILLA_SECURITY_BUILD from the location of
the "dist" directory used in the NSS build.  MOZILLA_SECURITY_BUILD is
now only useful for iPlanet internal builds, and is not needed by anyone
else.
2000-09-06 23:33:27 +00:00
mcgreer%netscape.com 1d4f18f1b6 first draft of rsa keygen
secmpi.h is defines used by nss code calling mpi
2000-09-06 23:27:34 +00:00
relyea%netscape.com c854fd2e3a Add the base and pkcs11 framework to the builds. 2000-09-06 22:24:48 +00:00
relyea%netscape.com 109d76dd7f Make the framework compile with the rest of NSS.
Include a 'live' certdata.txt with those certs we have permission to push to
open source (additional certs will be added as we get permission from the
owners).
2000-09-06 22:24:00 +00:00
relyea%netscape.com 4bf21d630a Changes to make base code compile in the current nss environment. This is so
the pkcs framework can use it.
2000-09-06 22:11:57 +00:00
relyea%netscape.com 41389b54d9 Set Root certs to be an externally loaded PKCS #11 module. 2000-09-06 22:10:07 +00:00
relyea%netscape.com 245c8dcff9 Add code to allow Trusted root certs to come from an externally loaded
pkcs #11 module.
2000-09-06 22:05:57 +00:00
mcgreer%netscape.com a9fb460db0 private header file to talk between mpi and nss 2000-09-06 21:46:43 +00:00
mcgreer%netscape.com 88827ba20d *added pqg code based on fips 186-1
*added stubs to rsa functions
2000-09-06 17:43:42 +00:00
javi%netscape.com 5340ae2947 Use PR_MIN just in case some systems don't have a MIN macro defined. 2000-09-05 23:55:55 +00:00
nelsonb%netscape.com b0a14c2c1e Force installparse.y to be rebuilt on NT. 2000-09-05 20:42:26 +00:00
nelsonb%netscape.com 2f728111eb When building on NT for X86, use new mpi_x86.asm implementation. 2000-09-02 05:41:21 +00:00
nelsonb%netscape.com 1e4781793b Makefile.win - gmake Makefile for building MPI with MSVC on NT. 2000-09-02 05:38:51 +00:00
nelsonb%netscape.com 6721fd7764 mpi_x86.asm - assembly language implementation of s_mpv_ functions. 2000-09-02 05:33:15 +00:00
nelsonb%netscape.com a740caf7cb Use new assembler files.
Define MP_NO_MP_WORD on platforms that don't have 64-bit registers.
2000-09-02 01:40:41 +00:00
javi%netscape.com a4e68e2cb1 Make the S/MIME related and Java/JS tabs stay away no matter which tab on the
left side is clicked.

Plug some more memory leaks in security advisor.
2000-09-01 23:30:25 +00:00
javi%netscape.com 8e4f1a5238 Plug some memory leaks and always use PL_strdup instead of vanilla strdup. 2000-09-01 22:55:25 +00:00
javi%netscape.com 79ad10b829 Assign a ** static pointer an actual value instead of just sayin *val = NULL; 2000-09-01 22:47:22 +00:00
javi%netscape.com b2fbc90aab Make the Messenger and Java/JavaScript persistently stay away when they
should.
2000-09-01 00:54:14 +00:00
javi%netscape.com cd0a61f8ec Make the other tab stay away even if you click on one of the other left side
tabs of the Certificates pane.
2000-09-01 00:52:22 +00:00
javi%netscape.com a32eccfa78 Whomp the SECURITY_CLIENT_BRANCH onto the tip. 2000-08-31 18:31:28 +00:00
nelsonb%netscape.com 46fa09d149 Checkin a big speedup for sparc v8 CPUs when compiled with Workshop
compilers.  Be sure to use -DMP_NO_MP_WORD with v8 CPUs.
2000-08-31 04:59:05 +00:00
nelsonb%netscape.com 10de2baeb6 Fix mpi.h so that it compiles when MP_NO_MP_WORD is defined on the command
line (or prior to including mpi.h).
2000-08-31 03:59:48 +00:00
nelsonb%netscape.com e95b014e32 Add missing copyright notice. Doh! 2000-08-31 03:45:39 +00:00
nelsonb%netscape.com ac1576b1d1 Some cleanup. Check error codes for all functions that return them. 2000-08-31 02:52:23 +00:00
nelsonb%netscape.com 79db8e17f9 Big changes for performance. mp_digits are now always unsigned ints.
mp_words are used only on machines that support long long arithmetic.
s_mp_mod_d() was deleted.  It was not being used and was not part of the
public API. The code that computes squares in s_mp_sqr was broken out
into a separate new function s_mpv_sqr_add_prop(), which is a target for
assembly language optimization.  New function s_mpv_div_2dx1d(), also a
target for assembly optimization.  These changes made X86 benchmark time
go from 22.5 seconds to 8.3 seconds on my reference test system.
2000-08-31 02:51:23 +00:00
nelsonb%netscape.com abe117c1ce Add support for Linux on X86 CPUs. Use assembler code on MIPS CPUs. 2000-08-31 02:43:56 +00:00
nelsonb%netscape.com 6817ff9bb1 Gnu assembler implementations of all s_mpv_ functions for Intel X86 CPUs. 2000-08-31 02:41:20 +00:00
nelsonb%netscape.com d9081b6d4d Add implementation of s_mpv_sqr_add_prop. 2000-08-31 02:40:32 +00:00
cotter%netscape.com 44c0d61252 Updated release notes for PSM 1.3. 2000-08-30 04:33:05 +00:00
mcgreer%netscape.com def2e5fa7e added fingerprints to list of things dumped with cert, bug 45303 2000-08-30 01:07:12 +00:00
mcgreer%netscape.com 1274b527d2 moved fingerprint handling to secutil.c, see bug 45303 2000-08-30 01:06:00 +00:00
ddrinan%netscape.com b2a5956f27 Move PSM data files into psmdata directory 2000-08-30 00:25:49 +00:00
javi%netscape.com 7f960275ed Clean up the password setting routines so that forming the URL only happens in one place. 2000-08-29 23:54:26 +00:00
nelsonb%netscape.com b569e09a37 Change mpi-test to check the return values from most functions-under-test
explicitly for errors.
2000-08-29 04:26:23 +00:00
javi%netscape.com 6c01a69c97 Make the PSM project build on the tip now. 2000-08-28 22:30:33 +00:00
javi%netscape.com 57e536db00 Remove debugging alert 2000-08-28 21:37:13 +00:00
javi%netscape.com 26b98ce41d Whomp the MAC_SECURITY_BRANCH onto tip. 2000-08-28 21:13:06 +00:00
javi%netscape.com 8c2ca6b176 Update version number in properties file for About Personal Security Manager. 2000-08-28 18:25:04 +00:00
javi%netscape.com d1ac9f62e1 Update Version String. 2000-08-28 18:18:04 +00:00
javi%netscape.com e97e92f42f Update version number in psm.rc file. 2000-08-28 18:17:14 +00:00
nelsonb%netscape.com 06520dedfb Initial Checkin. 2000-08-26 23:50:58 +00:00
javi%netscape.com 675be18d88 Make PSM smart enough to only display S/MIME information when it's talking to
an agent that we know takes advantage of S/MIME reatures.
2000-08-25 22:37:34 +00:00
javi%netscape.com e7f5570974 When setting a new password, warn the user right away when they goof instead
of submitting the form and waiting for the PSM CGI to send back a response.
2000-08-24 01:19:29 +00:00
javi%netscape.com a87ec1bdf4 When changing Passwords, if there are multiple tokens, then ask the
user to select the token first. Plus other fixes/ compiler warning cleanups.
2000-08-23 23:52:34 +00:00
cotter%netscape.com 1f5d8a6bf2 Correx from John Myers & to fix bug 48065 (communicator-specific terms) 2000-08-23 18:47:23 +00:00
mcgreer%netscape.com 3f9c77b63b don't zero input to random update (RNG_SystemInfoForRNG uses environment as input). Fix for bug 49898. 2000-08-23 18:11:47 +00:00
nelsonb%netscape.com 6317469a15 Fix two uninitialized variables, found while porting to Linux. 2000-08-23 01:20:15 +00:00
nelsonb%netscape.com db39579596 des.c wants _X86_ defined for intel CPUs.
coreconf does this for windows, but not for Linux, FreeBSD, etc.
2000-08-23 00:06:08 +00:00
thayes%netscape.com 1b3a5aff70 Add SDR Context resource type. 2000-08-22 17:17:20 +00:00
nelsonb%netscape.com f9eed96546 Big changes for performance.
- In mpi-priv.h, declare new 3 argument versions of s_mp_add and s_mp_sub.
Also declare new set of s_mpv_ functions that operate on vectors (arrays)
of mp_digits instead of on mp_ints.  These functions are candidates for
implementation in assembler.
- In mpi.c reimplement mp_add and mp_sub using the new 3arg functions.
Implement 3 argument versions of s_mp_add and s_mp_sub.
This eliminates all need for temporary variables in mp_add and mp_sub.
Implement c language reference implementations of new s_mpv vector multiply
and multiply and add functions.  Change mp_mul and mp_sqr so they no longer
pre-zero the output variable.  It's no longer nececssary with the new s_mpv
functions.  s_mp_pad no longer zeros out the new padded space.
-In mpmontg.c, implement variable width exponetiation windows.  Implement
a new function to compute the multiply and Montgomery reduction in a
single pass.  This is "Improvement 2" from Dusse' and Kaliski's paper
"A Cryptographic Library for the Motorola DSP56000".  Performance impact
is negligible in this c implementation.  However, this function is another
target for assembly language optimization.
2000-08-22 01:57:34 +00:00
nelsonb%netscape.com a10342172b Overhaul Makefile. Change it to use gmake's "static pattern rules",
instead of having explicit individual rules for every program. Also,
build .o files for programs, and link them in a separate step. This
speeds building after changing a .c file in the library.
2000-08-22 01:45:25 +00:00
nelsonb%netscape.com f370516c1c Get these tests to build with the current mpi API. 2000-08-22 01:19:26 +00:00
thayes%netscape.com aaae60084b Add SDR Context resource to hold information during processing of
SDR encrypt, decrypt and change password commands.  These changes
enable use of the context field of the SDR messages by clients.
2000-08-22 01:16:42 +00:00
nelsonb%netscape.com 6df1637718 Go back to using gmake. 2000-08-22 01:15:41 +00:00
nelsonb%netscape.com d7f6307d29 MIPS assembler code to optimize inner multiply loops for mips3 CPUs. 2000-08-22 00:55:10 +00:00
mcgreer%netscape.com 067b21ba6c initial checkin of DSA implementation. 2000-08-18 18:32:33 +00:00
javi%netscape.com f75b7cd085 Remove some unnecessary access paths from the project file. 2000-08-16 00:56:53 +00:00
jgmyers%netscape.com b91d9c3e31 remove 'no acceptable authetication' dialog box: bug 31737 r=javi a=lord 2000-08-15 21:23:49 +00:00
javi%netscape.com cc55113907 Whomp the SECURITY_MAC_BRANCH onto the tip. 2000-08-15 21:10:38 +00:00
javi%netscape.com aa5ea173d8 Whomp SECURITY_MAC_BRANCH onto tip 2000-08-15 21:09:21 +00:00
mcgreer%netscape.com d6c0c14294 should be able to set negative offset during cert creation 2000-08-15 05:08:13 +00:00
mcgreer%netscape.com 218bfba6b7 wrong header 2000-08-14 22:50:36 +00:00
nelsonb%netscape.com 6444acbe78 Build des.c and desblapi.c. 2000-08-14 22:28:10 +00:00
nelsonb%netscape.com 45d78da27b The Initial Developer of the Original Code is Nelson B. Bolyard,
nelsonb@iname.com.  Portions created by Nelson B. Bolyard are
Copyright (C) 1990, 2000  Nelson B. Bolyard, All Rights Reserved.
2000-08-14 22:27:20 +00:00
mcgreer%netscape.com b44879f059 *** empty log message *** 2000-08-14 22:04:22 +00:00
nelsonb%netscape.com dfb6edc12e "clean" target will also remove primes.c from mpi. 2000-08-14 21:04:46 +00:00
thayes%netscape.com 7a10a39672 Add Pragma: no-cache to PSM UI pages. This prevents caching by the client
and avoids bugs due to missing UI Events, and display of stale content.
2000-08-11 17:32:25 +00:00
nelsonb%netscape.com 3a653785bf Add commented-out lines to build on other platforms.
Clean target now removes libmpi.a also.
2000-08-11 05:01:59 +00:00
nelsonb%netscape.com 75cb7c8b33 Change mp_add and mp_sub to not allocate a temporary variable unless it's
really necessary.
2000-08-11 01:58:20 +00:00
nelsonb%netscape.com 17b1c02a54 Replace s_mp_ispow2d with faster version. Change s_mp_mul_d to detect
multiplication by 0, 1, and powers of 2, and handle them without actual
multiplication.
2000-08-10 21:43:16 +00:00
nelsonb%netscape.com 67f59f37b5 Eliminate one more warning. Add missing f suffix to float constant. 2000-08-09 22:45:51 +00:00
wtc%netscape.com f33005ff18 Bugzilla bug #48245: removed the -mno-486 compiler flag.
Modified files: FreeBSD2.mk, Linux.mk
This bug was reported by Steven T. Hatton <hattons@bellatlantic.net>.
2000-08-09 21:53:45 +00:00
nelsonb%netscape.com 728d68e0a9 - Change mp_mul to minimize number of outer loops when multipliers are
of unequal length.
- Fix s_mp_fixup_reciprocal to not truncate the result.
- Use new macros in mpi-priv.h
2000-08-09 20:55:39 +00:00
nelsonb%netscape.com 4b3954b600 Use new MP_HOWMANY macro instead of equivalent code. 2000-08-09 20:53:25 +00:00
nelsonb%netscape.com 45d1021654 Comment out call to unimplemented function, so this will compile. 2000-08-09 20:46:59 +00:00
nelsonb%netscape.com 104c56ced4 Some unix platform kshells don't understand export VAR=value
So instead use                                VAR=value; export VAR
2000-08-09 20:44:05 +00:00
nelsonb%netscape.com fb54aa2a50 Add new macros: MP_MIN, MP_MAX, MP_HOWMANY, MP_ROUNDUP. 2000-08-09 20:42:18 +00:00
javi%netscape.com 77b646a4b1 Don't call the callback function if one is not stored. 2000-08-09 17:17:42 +00:00
javi%netscape.com 7835a5b57b Implement the poll loop on UNIX for the PKCS7 Decoder when finishing up
just in case PSM is a little slow to shove data back at us.
2000-08-08 23:08:53 +00:00
nelsonb%netscape.com 64644f1887 Emulate an SSL3 client more closely after a server negotiates down to 3.0. 2000-08-08 22:54:02 +00:00
ddrinan%netscape.com cc218bb8b8 Disable to TLS because some servers do not implement version rollback correctly 2000-08-08 21:10:20 +00:00
mcgreer%netscape.com 032f21bf04 zero the correct amount of input bytes 2000-08-08 20:30:56 +00:00
nelsonb%netscape.com 5484848ae6 Fix crash caused by zeroing a larger buffer than the caller passed in. 2000-08-08 05:56:56 +00:00
nelsonb%netscape.com a8bf3b39c9 Fix crash caused by uninitialized variable. 2000-08-08 05:56:10 +00:00
nelsonb%netscape.com d717bf096e - Change mpi private function s_mp_mul_d_add_offset into a macro.
- Declare and implement new function s_mp_mul_add, which is a candidate
  for replacement with assembler code.
- Convert mp_mul, mp_sqr, etc. to use s_mp_mul_add.
- New implementation of mp_invmod for odd moduli. Algorithm from paper
  "Fast Modular Reciprocals" by Richard Schroeppel (a.k.a. Captain Nemo).
- New function s_mp_invmod_32b in mpi.c, computes inverse mod 2**32, also
  from same paper. Used in mp_invmod and mp_exptmod.
2000-08-08 03:20:35 +00:00
javi%netscape.com d509b04f21 A fix for Windows where the client stops trying to read decrypted data back from the client before it's ready. 2000-08-08 01:26:44 +00:00
nelsonb%netscape.com 1b1b9cfa3f Platform independent performance enhancements to functions that multiply,
square, subtract, right shift, compare, mul_d_add_offset.  This lib's
Modular Exponentiation performance now compares favorably with most (not
all) other open source bignum libs on IRIX/R5000.  No assembler code is
presently being used.  Comparison on other platforms will now commence.
2000-08-05 03:37:46 +00:00
nelsonb%netscape.com 61977478c2 Minor performance tweaks. 2000-08-04 19:58:20 +00:00
nelsonb%netscape.com c533835e1c Add new signed mp_word type, mp_sword. Used to get arithmetic right
shifts when doing subtraction.
2000-08-04 19:57:24 +00:00
cotter%netscape.com 07489d18a4 Corrected date at top. 2000-08-03 17:24:43 +00:00
cotter%netscape.com b337875fc9 Updated platforms supported (deleted Solaris 2.5.1). 2000-08-03 17:23:45 +00:00
nelsonb%netscape.com adc6ebc930 mpl_rsh now calls s_mp_div_2d instead of duplicating its logic.
mpl_lsh now calls s_mp_mul_2d instead of duplicating its logic.
2000-08-02 20:52:17 +00:00
nelsonb%netscape.com 1024981bff - Implement s_mp_mul_2d, which complements s_mp_div_2d.
- Rewrite and speed up mp_sqr, most-frequently used in mp_exptmod().
- Speed up mp_sqrt by starting with a much better initial estimate.
2000-08-02 20:50:57 +00:00
nelsonb%netscape.com 9655d33804 Accept input args in hex, not decimal. Line up output into columns. 2000-08-02 20:48:28 +00:00
nelsonb%netscape.com 685eb7c683 Declare s_mp_mul_2d(), which is complementary to s_mp_div_2d(). 2000-08-02 20:47:05 +00:00
relyea%netscape.com b1624cfc3c Put modutil back into the daily builds 2000-08-02 18:42:32 +00:00
relyea%netscape.com 7804620b99 Remove old communicator stuff from libjar so modutil will build now. 2000-08-02 18:41:31 +00:00
cotter%netscape.com 143fa6b2f4 Added latest PSM license. 2000-08-02 16:46:16 +00:00
nelsonb%netscape.com c095d3c281 Reduced the number of temporary variables allocated and freed during a
modular exponentiation by over 99%.  Modified mp_mul and mp_sqr to only
allocate temporary variables when absolutely needed.  Changed mp_copy
and mp_init_copy to allocate space according to the amount allocated
in the source, reducing the need to grow the variable later.
2000-08-02 01:03:14 +00:00
nelsonb%netscape.com 9d98b785c7 Investigating allocation of temporary variables. 2000-08-02 01:01:01 +00:00
ddrinan%netscape.com 5abc2b49c5 Initialize pointer! 2000-08-02 00:20:24 +00:00
nelsonb%netscape.com 1e9c30b7ed Declare mp_int function arguments "const" as appropriate. 2000-08-01 01:38:30 +00:00
nelsonb%netscape.com f914572320 Change default value for MP_ARGCHK to depend on whether or not DEBUG is
defined.  Raise the default "precision" to reduce reallocations.
2000-08-01 01:36:30 +00:00
nelsonb%netscape.com ee16e72c2b Fix initalizers in logtab.h to be "float" values, not "double" values. 2000-07-31 20:36:41 +00:00
nelsonb%netscape.com 31580b81f8 Fix build problem caused by the fact that including stdlib.h implicitly
includes stdio.h on some platforms, but not on others.
2000-07-31 20:08:46 +00:00
nelsonb%netscape.com a94836ac67 Use Windowed computation of exponent in mp_exptmod(). 2000-07-30 06:37:14 +00:00
nelsonb%netscape.com 1ba9def58c Add function mpl_get_bits(). Returns value of contiguous subset of bits
of bignum.  Useful for windowed modular exponentiation.
2000-07-30 06:35:38 +00:00
nelsonb%netscape.com c94c22e24f MPI Arbitrary Precision Integer Arithmetic library.
The Initial Developer of the Original Code is
Michael J. Fromberger <sting@linguist.dartmouth.edu>
2000-07-30 02:05:19 +00:00
nelsonb%netscape.com 57b7d28f40 MPI Arbitrary Precision Integer Arithmetic library.
The Initial Developer of the Original Code is
Michael J. Fromberger <sting@linguist.dartmouth.edu>
2000-07-30 01:56:35 +00:00
nelsonb%netscape.com cfa6bf6660 Build mpi library files in freebl. 2000-07-29 19:07:22 +00:00
nelsonb%netscape.com ee765e93f1 Separate DH implementation for use with BSAFE and mpi-based implementation
into two files.
2000-07-29 19:06:54 +00:00
nelsonb%netscape.com 90a621288c Build libmpi.a. Include mpmontg.o in libmpi.a. Build programs with
libmpi.a.  Fix dependencies so lib is rebuilt when headers change.
2000-07-28 23:11:12 +00:00
nelsonb%netscape.com 8990002e97 Modular exponentiation with Montgomery reduction for MPI.
The Initial Developer of the Original Code is
Netscape Communications Corporation.  Portions created by Netscape are
Copyright (C) 2000 Netscape Communications Corporation.
All Rights Reserved.
2000-07-28 23:09:02 +00:00
nelsonb%netscape.com 2b5dacc569 Disambiguoate error messages in mod-expt test. 2000-07-28 23:04:23 +00:00
nelsonb%netscape.com 25fc0db080 - Renamed mp_exptmod to s_mp_exptmod. This function is now used only in
when the modulus is even. mp_exptmod is now in mpmontg.c.
- Declare and define new function s_mp_mul_d_add_offset(), which computes
the product of an mp_digit and an mp_int, shifts the product to the left
by a number of digits, and adds the shifted product to another mp_int.
Used in multiplication and Montgomery reduction.  Numerous platform
vendors have assembly language versions of this function.
- Removed some ANDs with DIGIT_MAX.  Casting to mp_digit is necessary
and sufficient.  The AND doesn't help.
2000-07-28 23:03:12 +00:00
nelsonb%netscape.com 441d0e2ac6 Use unsigned int for mp_digit instead of unsigned long when both are
32-bits.  This reduced warnings.  Use mp_size instead of unsigned int
in function declarations. Fix MP_DIGIT_FMT for 32-bit digits.
2000-07-28 22:55:56 +00:00
nelsonb%netscape.com 555e8f304b Use mp_size instead of unsigned int in function prototypes. 2000-07-28 22:49:42 +00:00
mcgreer%netscape.com 04571189a7 merge changes from 3.0 branch 2000-07-27 18:26:28 +00:00
nelsonb%netscape.com d41cdb506a Add new function s_mp_add_offset().
Very handy in Montgomery reduction using Dusse' and Kalski's method.
2000-07-27 03:02:42 +00:00
nelsonb%netscape.com 8ef7ab59cd Moved the declarations of many private defines and functions out of mpi.c
and into mpi-priv.h.  Previously, mplogic.c and mpprime.c had duplicate
copies of some of those declarations.  Now, they include mpi-priv.h
2000-07-27 02:38:54 +00:00
nelsonb%netscape.com 5f83f25ffe Fix sprintf format, can't use DIGIT_FMT. 2000-07-27 00:23:17 +00:00
wtc%netscape.com 38e0e0dee6 Bugzilla bug #46509: removed the use of -taso and the USE_64 makefile
option on OSF1.
2000-07-26 22:20:16 +00:00