Closed Bug 283383 Opened 19 years ago Closed 19 years ago

Create JSS and JSSE client/server test programs that intercommunicates to validate ciphers

Categories

(JSS Graveyard :: Tests, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Sandeep.Konchady, Assigned: Sandeep.Konchady)

Details

Attachments

(5 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910

Create a set of client and server tests for JSS and JSSE (JDK 1.4.0) such that
JSS clients communicates with JSSE server and JSSE client communicates with JSS
server to validate ciphers supported by both.  This test encompasses the following

[1] Enables all server and client implemented ciphers in JSS and JSSE
[2] Tests for common ciphers between JSS and JSSE


Reproducible: Always
Assignee: wtchang → Sandeep.Konchady
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → 4.0.1
Status: NEW → ASSIGNED
This is a great idea.  We've wanted to do this
in NSS.
Files List : cvs diff patch listing for 283383

A ClassServer.java
A Constants.java
A GenerateTestCert.java
A JSSE_SSLClient.java
A JSSE_SSLServer.java
A JSS_SSLClient.java
A JSS_SSLServer.java
M all.pl
A startJssServ.sh
A startJsseServ.sh
Attachment #178322 - Flags: superreview?(glen.beasley)
Attachment #178322 - Flags: review?(saul.edwards.bugs)
Comment on attachment 178322 [details] [diff] [review]
cvs diff patch listing for 283383 with 7 new java files, 2 shell scripts and modified all.pl

Sandeep: sorry, I should have been more clear
in the instructions I sent to you by email.

When generating a patch, always pass the -u option
to "cvs diff".	The -u option generates "unified"
diffs, which contain some context near the modified
code.

If you add new files, then you also need to pass
the -N option to "cvs diff".

So please regenerate the patch using "cvs diff -uN".
Thanks.
Attachment #178322 - Flags: superreview?(glen.beasley)
Attachment #178322 - Flags: review?(saul.edwards.bugs)
Files List : cvs diff patch listing for 283383

A ClassServer.java
A Constants.java
A GenerateTestCert.java
A JSSE_SSLClient.java
A JSSE_SSLServer.java
A JSS_SSLClient.java
A JSS_SSLServer.java
M all.pl
A startJssServ.sh
A startJsseServ.sh
Attachment #178322 - Attachment is obsolete: true
Attachment #178382 - Flags: superreview?(glen.beasley)
Attachment #178382 - Flags: review?(saul.edwards.bugs)
Attachment #178382 - Flags: review?(saul.edwards.bugs) → review+
Attachment #178382 - Flags: superreview?(glen.beasley) → superreview+
Wrong jar file was taken for test with BUILD_OPT=1
Java path and options are passed from all.pl to startJssServ.sh and
startJsseServ.sh.

(committed).
The two servers did not have a mechanism to timeout if they received no client
request.  This left the server programs hanging on some systems.  Added a
timeout mechanism which will exit the program in 120 sec (2 min).
Attachment #180403 - Flags: superreview?(glen.beasley)
Attachment #180403 - Flags: review?(saul.edwards.bugs)
Attachment #180403 - Flags: superreview?(glen.beasley) → superreview+
Comment on attachment 180403 [details] [diff] [review]
Fix for JSS and JSSE server to timeout on no client request

If your indentation is actually correct and diff is misprinting it, please use
the -t option in your diffs.  Otherwise, please fix the indentation. 
Everything else AOK.
Attachment #180403 - Flags: review?(saul.edwards.bugs) → review+
Fixed a couple of issues.
[1] Reduced JSS and JSSE server timeout from 2 min to 35 sec
[2] Added try/catch to JSSE client to detect non Sun JCA
[3] Added socket and program timeout for JSS and JSSE clients so that they exit
gracefully
Attachment #181597 - Flags: superreview?(glen.beasley)
Attachment #181597 - Flags: review?(saul.edwards.bugs)
Comment on attachment 181597 [details] [diff] [review]
Fix for JSSE and JSS client timeout issue

Making a function in the JSSE_SSL client would make it a lot easier to read -
those three sets of code only differ by the array of ciphers they are testing,
right?	Otherwise, everything looks good.
Attachment #181597 - Flags: review?(saul.edwards.bugs) → review+
Comment on attachment 181597 [details] [diff] [review]
Fix for JSSE and JSS client timeout issue

looks okay.
Attachment #181597 - Flags: superreview?(glen.beasley) → superreview+
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Sandeep, could you set the target milestone (the first
JSS version this fix will appear in)?  Thanks.
Target Milestone: --- → 4.1
Version: 4.0.1 → 4.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: