729 Commits

Author SHA1 Message Date
nelsonb%netscape.com
ddc2c31a75 Performance benchmark for modular exponentiation.
Test modulus and exponent to be added later.


git-svn-id: svn://10.0.0.236/trunk@81836 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 23:30:50 +00:00
nelsonb%netscape.com
92b8c51f00 Functions that provide default RSA public and private key for performance
benchmarks.  Values for these keys to be supplied in next revision.


git-svn-id: svn://10.0.0.236/trunk@81772 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 00:29:09 +00:00
nelsonb%netscape.com
40254f7a50 RSA performance benchmark program, ported to blapi from NSS 2.8.
git-svn-id: svn://10.0.0.236/trunk@81765 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 23:17:54 +00:00
javi%netscape.com
5e5c810f42 Make boolean preferences work under Netscape6. It's the annoying JS bug
where you can't call top.variable when in the top most frame.

So I moved the function that was doing this to the frame that wanted to
toggle the boolean value instead of calling the top most frame to do this.


git-svn-id: svn://10.0.0.236/trunk@81746 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 18:57:06 +00:00
javi%netscape.com
292e608318 Check-in final reviewed version of sslconn.c
git-svn-id: svn://10.0.0.236/trunk@81739 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 17:23:46 +00:00
nelsonb%netscape.com
642b835b90 New implementation of mp_invmod for even moduli. 3x-500x faster than
xgcd for even moduli.


git-svn-id: svn://10.0.0.236/trunk@81677 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 21:32:53 +00:00
javi%netscape.com
727ec8413d Don't escape parameters until after we've broken down the parameters into
arrays.  This makes it so that the character '&' is properly categorized
into the array if it's a member of the string for either parameter name
or value.


git-svn-id: svn://10.0.0.236/trunk@81625 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 22:52:31 +00:00
javi%netscape.com
c6b856218c Don't assume a bitwise or will return the value 1.
git-svn-id: svn://10.0.0.236/trunk@81619 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 21:32:20 +00:00
javi%netscape.com
32c5092ea0 Check-in re-written SSL thread with fixes made so that the threads clean
up after themselves properly.


git-svn-id: svn://10.0.0.236/trunk@81607 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 18:34:48 +00:00
javi%netscape.com
e8bc965643 Make this directory build in the new world.
Add some debug output in regards as to which directory it's gonna use
for the cert db.


git-svn-id: svn://10.0.0.236/trunk@81468 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 21:14:34 +00:00
javi%netscape.com
e64f03df80 Decompose the function for the SSL Service Thread to make it easier to read.
When doing a poll, exit the service thread if there are no sockets waiting
for data to be processed.  Make the poll for data from the client and
server sockts time out after 10 minutes.  At that point there should be
nothing waiting or the connection has gone away without us knowing about it.


git-svn-id: svn://10.0.0.236/trunk@81466 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 21:03:41 +00:00
ddrinan%netscape.com
d9eac1c53a Build the component.reg file for Linux only
git-svn-id: svn://10.0.0.236/trunk@81385 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 19:02:22 +00:00
mcgreer%netscape.com
d5e90a3a90 fix for 64-bit platforms.
git-svn-id: svn://10.0.0.236/trunk@81379 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 15:41:23 +00:00
wtc%netscape.com
d4f5304321 Bugzilla bug #56442: checked in generated files as a result of a new
ckapi.perl.
Modified files: nssck.api nssckepv.h nssckft.h nssckg.h


git-svn-id: svn://10.0.0.236/trunk@81181 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 01:29:12 +00:00
wtc%netscape.com
7b4bfa1cbf Bugzilla bug #56442: the DLL name on Windows should be nssckbi.dll, not
nssckbi32.dll.


git-svn-id: svn://10.0.0.236/trunk@81155 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 22:42:53 +00:00
wtc%netscape.com
6299135bd4 Bugzilla bug #56442: struct CK_FUNCTION_LIST must have the pack pragma
on Windows.  C_GetFunctionList must be DLL exported on Windows.


git-svn-id: svn://10.0.0.236/trunk@81154 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 22:41:36 +00:00
cotter%netscape.com
cc79452f22 Corrected errors in release notes, added TLS info to help.
git-svn-id: svn://10.0.0.236/trunk@81141 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 20:49:56 +00:00
nelsonb%netscape.com
13d86005dc An enhancement to the new -N feature. When -N is selected, do NOT wait
for the first https request to finish before launching all the others.


git-svn-id: svn://10.0.0.236/trunk@81097 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 01:25:44 +00:00
cotter%netscape.com
c681241430 Updtaed for PSM 4.1.
git-svn-id: svn://10.0.0.236/trunk@81094 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 01:12:35 +00:00
nelsonb%netscape.com
7bb5b85b3b Add -v option. v means "verbose progress messages". Formerly, this
program was always very verbose.  Now, it only outputs progress messages
when -v is specified.  This is very useful for interactive use.
Cache statistics are written to stderr.


git-svn-id: svn://10.0.0.236/trunk@81085 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:50:05 +00:00
nelsonb%netscape.com
f8dc950690 Add new -N option. N means "No session reuse." -N disables the client
session cache, forcing all SSL handshakes to be FULL RSA handshakes.


git-svn-id: svn://10.0.0.236/trunk@81084 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:47:57 +00:00
nelsonb%netscape.com
4ac0a5c799 * The Original Code is SPARC hand-optimized Montgomery multiply functions.
*
* The Initial Developer of the Original Code is Sun Microsystems Inc.
* Portions created by Sun Microsystems Inc. are
* Copyright (C) 1999-2000 Sun Microsystems Inc. All Rights Reserved.


git-svn-id: svn://10.0.0.236/trunk@81079 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:30:36 +00:00
nelsonb%netscape.com
d1c51fcf9b * inline macros for SPARC Montgomery multiply functions.
*
* The Initial Developer of the Original Code is Sun Microsystems Inc.
* Portions created by Sun Microsystems Inc. are
* Copyright (C) 1999-2000 Sun Microsystems Inc. All Rights Reserved.


git-svn-id: svn://10.0.0.236/trunk@81078 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:28:48 +00:00
nelsonb%netscape.com
2b93ca1500 * interface file for SPARC Montgomery multiply functions.
*
* The Initial Developer of the Original Code is Sun Microsystems Inc.
* Portions created by Sun Microsystems Inc. are
* Copyright (C) 1999-2000 Sun Microsystems Inc. All Rights Reserved.


git-svn-id: svn://10.0.0.236/trunk@81077 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:28:08 +00:00
nelsonb%netscape.com
fec8b0a095 * The Original Code is SPARC optimized Montgomery multiply functions.
*
* The Initial Developer of the Original Code is Sun Microsystems Inc.
* Portions created by Sun Microsystems Inc. are
* Copyright (C) 1999-2000 Sun Microsystems Inc. All Rights Reserved.


git-svn-id: svn://10.0.0.236/trunk@81076 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 00:27:04 +00:00
ddrinan%netscape.com
6a86ffc1b7 Setting version to 1.4
git-svn-id: svn://10.0.0.236/trunk@81064 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 22:53:07 +00:00
ddrinan%netscape.com
f975de779d Fix for bug 53198
git-svn-id: svn://10.0.0.236/trunk@81062 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 22:41:47 +00:00
wtc%netscape.com
2e3c2cc514 Fixed the comment.
git-svn-id: svn://10.0.0.236/trunk@80915 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 07:21:38 +00:00
mcgreer%netscape.com
5fbd7e283b also do binary on stdout DER
git-svn-id: svn://10.0.0.236/trunk@80914 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 07:12:45 +00:00
mcgreer%netscape.com
cf3a7c75cb binary output always, for now
git-svn-id: svn://10.0.0.236/trunk@80913 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 07:04:30 +00:00
mcgreer%netscape.com
fff90deec0 fix output of DER's on windows
git-svn-id: svn://10.0.0.236/trunk@80912 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 06:52:06 +00:00
wtc%netscape.com
4aa8f7ce09 Commented out 'rm -rf ${TEMPFILES}' because TEMPFILES is not defined.
git-svn-id: svn://10.0.0.236/trunk@80911 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 06:47:36 +00:00
wtc%netscape.com
b6b49443a3 Fixed the echo output to match the command.
git-svn-id: svn://10.0.0.236/trunk@80909 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 06:46:05 +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
4ff87894d0 seperate text file reads from binary reads. Change all base64 encoded ciphertexts to end in LF instead of CRLF. This caused a bug on windows when checking out from CVS.
git-svn-id: svn://10.0.0.236/trunk@80874 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 00:55:45 +00:00
nelsonb%netscape.com
2b8c08c44f Change the working directory to the test directory before running
certutil -S, which creates files in the current working directory.


git-svn-id: svn://10.0.0.236/trunk@80799 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 03:12:31 +00:00
wtc%netscape.com
45c91f68a1 Print NSPR and OS error codes if PR_Open fails.
git-svn-id: svn://10.0.0.236/trunk@80790 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 02:38:08 +00:00
nelsonb%netscape.com
ee37b23eff All output messages from strsclnt now begin with the string "strsclnt: ".
This makes it easier to separate mixed client and server output.


git-svn-id: svn://10.0.0.236/trunk@80789 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 02:10:25 +00:00
nelsonb%netscape.com
41fa542495 When an invalid option is encountered, print the usage message and exit.
Previously, it would simply silently stop parsing options and the program
would continue to run, leading to false successes in coverage tests.


git-svn-id: svn://10.0.0.236/trunk@80761 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 23:39:46 +00:00
nelsonb%netscape.com
f845bee819 With this change, SSL will not crash if the next lower layer's Recv
function returns more data than we asked for.  SSL will turn that event
into a PR_BUFFER_OVERFLOW_ERROR error.  iWS team asked for this.


git-svn-id: svn://10.0.0.236/trunk@80640 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 02:22:22 +00:00
nelsonb%netscape.com
f2d9c67c2f Fix a crash caused by using a null PRFileDesc * after PR_Open fails.
git-svn-id: svn://10.0.0.236/trunk@80638 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 02:16:03 +00:00
wtc%netscape.com
74faefc902 Changed //helium/dist to //iridium/components (another way to get
access to /share/builds/components from NT at Netscape/iPlanet).


git-svn-id: svn://10.0.0.236/trunk@80630 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 00:56:20 +00:00
nelsonb%netscape.com
9f8a17787d In lib/smime, detect null pointers returned by various functions.
Christian Kaiser fixed the test script to pass the right directory name
to the test program.  The test script echoes all the cmsutil test
commands so that the error messages are associated with the proper one.
And cmsutil now puts its name on the front of its error messages.


git-svn-id: svn://10.0.0.236/trunk@80613 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 23:26:12 +00:00
nelsonb%netscape.com
c9723eb5f8 Call NSS_InitReadWrite instead of SECU_PKCS11Init, and check the result
for success.  Fixes a crash.  If it turns out that cmsutil doesn't need
to modifiy the cert and/or key DBs, then it should call NSS_Init, instead.


git-svn-id: svn://10.0.0.236/trunk@80599 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 21:45:01 +00:00
nelsonb%netscape.com
ae5c056a86 Call NSS_NoDB_Init instead of that broken old SECU_PKCS11Init.
Also, test to see that the init succeeded.


git-svn-id: svn://10.0.0.236/trunk@80598 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 21:40:52 +00:00
nelsonb%netscape.com
2992ba478c Fix a crash that occurs when NSS is initialized with NSS_NoDB_Init.
git-svn-id: svn://10.0.0.236/trunk@80597 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 21:38:57 +00:00
nelsonb%netscape.com
8cbcd9386e Implement new function NSS_InitReadWrite, which is just like NSS_Init
except that it opens the files read/write.  This is to replace the
broken SECU_ routines in nss/cmd/lib.


git-svn-id: svn://10.0.0.236/trunk@80596 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 21:37:25 +00:00
nelsonb%netscape.com
8ff433f882 The SSL client cache timeout values for SSL2 and SSL3 were reversed.
This caused all SSL3 sessions to timeout after 100 seconds. Bug 55231.


git-svn-id: svn://10.0.0.236/trunk@80517 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 23:10:14 +00:00
wtc%netscape.com
4b0d98c6e3 Bugzilla bug #55267: checked in a workaround for a tight spin in
PK11_GetSlotList on 64-bit HP-UX.


git-svn-id: svn://10.0.0.236/trunk@80428 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 04:24:04 +00:00
nelsonb%netscape.com
0347ee2d5b Prefix all selfserv's output messages with "selfserv: " so we can tell
client messages apart from server messages when the two are mixed.
When the verbose option is enabled, print out the session reuse stats
right after the first PR_Read completes, so we don't miss any.


git-svn-id: svn://10.0.0.236/trunk@80426 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 04:14:44 +00:00