90 sec. Smaller timeout was causing the server to die before client connected.
sr=glen.beasley r=alexei.volkov
git-svn-id: svn://10.0.0.236/trunk@188072 18797224-902f-48f8-a5cc-f745e15eee43
Added synchronized block and isClosed for getInetAddress(),
getLocalAddress(), and getLocalPort(). sr=glen.beasley
git-svn-id: svn://10.0.0.236/trunk@185410 18797224-902f-48f8-a5cc-f745e15eee43
Missed some System.exit(0) and reverted SigTest.java to original format.
sr=glen.beasley
git-svn-id: svn://10.0.0.236/trunk@185227 18797224-902f-48f8-a5cc-f745e15eee43
4.1001 for 4.10.1 when used in the constructor. Human readable values
will still be 4.2 or 4.10.1 sr=wtc
git-svn-id: svn://10.0.0.236/trunk@184942 18797224-902f-48f8-a5cc-f745e15eee43
Added System.exit(0) and System.exit(1) where appropriate. Also removed
references to deprecated code and deprecated the test SigTest.java. This
is now replaced by JCASigTest.java. sr=Glen.Beasley
git-svn-id: svn://10.0.0.236/trunk@184609 18797224-902f-48f8-a5cc-f745e15eee43
symmetric keys and public/private key pairs. The patch is contributed by
Thomas Kwan of Red Hat. r=wtc. sr=glen.beasley.
Modified Files:
org/mozilla/jss/crypto/KeyGenerator.java
org/mozilla/jss/crypto/KeyPairGenerator.java
org/mozilla/jss/crypto/KeyPairGeneratorSpi.java
org/mozilla/jss/pkcs11/PK11KeyGenerator.c
org/mozilla/jss/pkcs11/PK11KeyGenerator.java
org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c
org/mozilla/jss/pkcs11/PK11KeyPairGenerator.java
git-svn-id: svn://10.0.0.236/trunk@184603 18797224-902f-48f8-a5cc-f745e15eee43
Rounding of double(4) + double(1)/10 to two decimal places gives 4.21.
Fixed this issue. sr=glen.beasley
git-svn-id: svn://10.0.0.236/trunk@184595 18797224-902f-48f8-a5cc-f745e15eee43
JSSProvider.java. Reflected this information in all places that needs
to be changed when there is a change in JSS version. r=wtc
git-svn-id: svn://10.0.0.236/trunk@183173 18797224-902f-48f8-a5cc-f745e15eee43
to make the new PK11_ATTR_EXTRACTABLE/PK11_ATTR_UNEXTRACTABLE flags of the
new PK11_GenerateKeyPairWithFlags function available to JSS. r=nkwan.
sr=glen.beasley.
Modified Files:
crypto/KeyPairGenerator.java crypto/KeyPairGeneratorSpi.java
pkcs11/PK11KeyPairGenerator.c pkcs11/PK11KeyPairGenerator.java
git-svn-id: svn://10.0.0.236/trunk@183140 18797224-902f-48f8-a5cc-f745e15eee43
Removed the class name and provider name of the SUN provider. Instead,
we compare our message digest result with the result of all providers that
support the message digest algorithm. The patch is contributed by Rich
Megginson of Red Hat and improved by Glen Beasley of Sun. r=wtc.
git-svn-id: svn://10.0.0.236/trunk@182517 18797224-902f-48f8-a5cc-f745e15eee43
Add an extra line to the copyright file to have the same as NSS and NSPR.
git-svn-id: svn://10.0.0.236/trunk@181257 18797224-902f-48f8-a5cc-f745e15eee43
because IBM JDK can't handle that 8-bit character in UTF8 locales. The
patch is contributed by Rich Megginson of Red Hat. r=wtc,glen.beasley.
git-svn-id: svn://10.0.0.236/trunk@180806 18797224-902f-48f8-a5cc-f745e15eee43
Added try/catch block around the method calls within toString(). Calls
such as getInetAddress(), getPort() etc does not check if the socket is
closed, and when applications use toString() on a closed socket, there
is an uncaught exception.
git-svn-id: svn://10.0.0.236/trunk@177919 18797224-902f-48f8-a5cc-f745e15eee43
#/********************************************************************/
#/* The VERSION Strings should be updated in the following */
#/* files everytime a new release of JSS is generated: */
#/* */
#/* org/mozilla/jss/CryptoManager.java */
#/* org/mozilla/jss/CryptoManager.c */
#/* org/mozilla/jss/util/jssver.h */
#/* lib/manifest.mn */
#/* */
#/********************************************************************/
git-svn-id: svn://10.0.0.236/trunk@177648 18797224-902f-48f8-a5cc-f745e15eee43
transfering large files (> 10MB). In order to test this in current and future
release, there needs to be a test client that can read a file and transfer it to
a server (remote or local) via JSS socket. The server should report the number
of bytes read and the time it took to read these bytes. There should not no
degradation in read time if there is no leak of any sort.
This is not part of all.pl, but is a client/server that uses JSS to transfer
files securely. The main purpose of this test would be to test the performance
of large file transfer using JSS.
NOTE: If bufferedStream.mark(Integer.MAX_VALUE); method is invoked then fill
method of BufferedInputStream class copies lot of data using System.arraycopy
(which in-turn use memcpy). This causes very high CPU usage. This is one of
the reasons secure large file transfer can become slow over time.
git-svn-id: svn://10.0.0.236/trunk@177558 18797224-902f-48f8-a5cc-f745e15eee43
r: Sandeep
Force Perl to do unbuffered output to avoid having Java and
Perl output out of sync.
git-svn-id: svn://10.0.0.236/trunk@174915 18797224-902f-48f8-a5cc-f745e15eee43
r=Sandeep, sr=Glen
Display the result of each test case and global pass rate.
git-svn-id: svn://10.0.0.236/trunk@174737 18797224-902f-48f8-a5cc-f745e15eee43
mustbe updated every time NSS is updated. This helps pick the right
version of NSS for JSS builds.
git-svn-id: svn://10.0.0.236/trunk@173614 18797224-902f-48f8-a5cc-f745e15eee43
to open a file and write to it instead of execing a system command.
This is in response to build failure when rsh to a Windows machine.
git-svn-id: svn://10.0.0.236/trunk@173558 18797224-902f-48f8-a5cc-f745e15eee43
version information. This is then added to xpclass(_dbg).jar using
jar -tvf in place of zip -R.
Modified all.pl to execute a new test that checks for product package
version information in jss4.jar as well as compare this to the version
of library (libjss4.so or jss4.dll) being used. This helps in consistency
check for jss jar and associated lib.
Added a new test JSSPackaeTest.java that reads MANIFEST.MF from jss jar
to fetch product version information.
git-svn-id: svn://10.0.0.236/trunk@173522 18797224-902f-48f8-a5cc-f745e15eee43
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
[4] Split TLS and SSLv3 in seperate mothods in JSSE_SSLclient.java
git-svn-id: svn://10.0.0.236/trunk@172701 18797224-902f-48f8-a5cc-f745e15eee43