Commit Graph

364 Commits

Author SHA1 Message Date
nicolson%netscape.com
fbb8083387 Fix misspelled exception name. 2002-07-12 21:08:22 +00:00
nicolson%netscape.com
8272ce3448 add default constructor 2002-07-12 21:07:40 +00:00
nicolson%netscape.com
79ef0013a6 This test isn't working yet, but I may get it working at some point. 2002-07-12 20:33:39 +00:00
nicolson%netscape.com
528f0be217 Fix 98613: using SSLSocket after close causes crash.
Now the SSLSocket and SSLServerSocket close() methods only call PR_Close()
on the underlying fd. Freeing data structures is postponed until the
Java object is finalized.
2002-07-12 04:26:56 +00:00
nicolson%netscape.com
de40255dcc clarify error message. 2002-07-12 04:09:14 +00:00
glen.beasley%sun.com
3a0bcb0fb2 verify certificate in memory method 2002-07-04 00:36:52 +00:00
nicolson%netscape.com
5deb4aec40 Fix 120785: SSLSocket does not throw java.net.BindException. 2002-07-04 00:29:24 +00:00
nicolson%netscape.com
0e19cf236a need to include nspr.h. 2002-07-04 00:25:46 +00:00
nicolson%netscape.com
ae2a06d43f Fix 121710: throw better SSL exceptions. 2002-07-04 00:03:47 +00:00
nicolson%netscape.com
9db79236dd Print subject name instead of issuer name. 2002-07-03 23:58:58 +00:00
nicolson%netscape.com
8d5e4dc7c6 Update documentation for these functions. 2002-07-03 23:57:12 +00:00
nicolson%netscape.com
4bda169e18 deprecate old classes in favor of the JCA. 2002-07-03 23:51:20 +00:00
nicolson%netscape.com
3c7759665e moved JSSSecureRandomSpi into provider/java/security directory. 2002-07-03 23:49:32 +00:00
nicolson%netscape.com
0254942b89 Provider classes have been moved into the java/security and javax/crypto
subdirectories.
2002-07-03 23:48:53 +00:00
nicolson%netscape.com
1daf49c785 Fix 106846: Version strings in CryptoManager need updating. 2002-07-03 23:46:02 +00:00
nicolson%netscape.com
e6e1da9b32 typo in error message 2002-06-28 20:14:47 +00:00
nicolson%netscape.com
bb9ae88653 remove spurious println. 2002-06-27 21:16:42 +00:00
nicolson%netscape.com
01f5e0790f Fix 128259: Cannot get SSL trust for a CA residing on PKCS#11 module. 2002-06-21 23:53:58 +00:00
nicolson%netscape.com
fe199405d1 fix a build error in JDK 1.2. 2002-06-21 18:31:36 +00:00
nicolson%netscape.com
43274230b4 catch a null pointer and throw it back to Java, instead of crashing in C. 2002-06-19 22:59:08 +00:00
nicolson%netscape.com
ab90ccc5bf add SSLClientAuth test.
remove obsolete socketTest.
Get passwords from a file so we can run in batch mode.
2002-06-19 22:50:47 +00:00
nicolson%netscape.com
9d33093ccb Fix 112227: set SSL server without nickname
Specify the certificate to use for both server and client auth directly,
rather than by nickname.
2002-06-19 20:33:28 +00:00
nicolson%netscape.com
2d108bf4b9 add new tests. 2002-06-14 18:15:45 +00:00
nicolson%netscape.com
ec04d87172 remove broken code until bug is fixed. 2002-06-14 18:15:21 +00:00
nicolson%netscape.com
ff2ce0953a remove bogus comment. 2002-06-14 18:13:27 +00:00
nicolson%netscape.com
caac61f6c1 remove these files--there's no C code in this directory. 2002-06-12 20:18:10 +00:00
nicolson%netscape.com
98fd1b572a Grab NSS headers from directory "nss" instead of directory "security". 2002-06-12 20:11:22 +00:00
nicolson%netscape.com
d8cf3f39f6 remove makefiles for this directory, since it's only Java files. 2002-06-12 20:08:39 +00:00
nicolson%netscape.com
7c6284c42b Fix bug 112330: CryptoToken.changePassword(new ConsolePasswordCallback(), new ConsolePasswordCallback()) throws Native Exception.
We were zeroing the password after freeing it, which in some cases caused
memory corruption and crashing.
2002-05-29 21:54:14 +00:00
nicolson%netscape.com
f2f9158fd3 Fix 146515: PK11PrivKey.fromPrivateKeyInfo enables no operations for RSA keys 2002-05-23 20:32:10 +00:00
nicolson%netscape.com
3a1cd67cf6 cleanup tabs and spaces. 2002-05-23 18:45:00 +00:00
nicolson%netscape.com
d17d79e101 Various minor tweaks for code cleanliness. 2002-05-23 18:29:07 +00:00
glen.beasley%sun.com
7ef88f180e bug 144913 isCertValid addition 2002-05-23 17:52:23 +00:00
nicolson%netscape.com
411f9347cc Fix http://bugzilla.mozilla.org/show_bug.cgi?id=144934: generating DSA public key from spec is broken. 2002-05-22 02:13:31 +00:00
nicolson%netscape.com
9bd721b3fc Support DSAPrivateKey. 2002-05-14 02:21:25 +00:00
nicolson%netscape.com
3ebe79c4e3 comment out JDK 1.4 test so we can build with earlier versions 2002-05-10 00:13:19 +00:00
nicolson%netscape.com
a9fb648aec Fix 143256: SSLServerSocket.getInetAddress returns the wrong address.
Implement toString() for both socket types.
2002-05-09 17:10:06 +00:00
nicolson%netscape.com
2134638d66 add more PBE keygen algorithms. 2002-05-09 14:32:54 +00:00
nicolson%netscape.com
64576fd7fe update to work better with PBE. 2002-05-09 14:32:33 +00:00
nicolson%netscape.com
67a8c281e6 get rid of PBEKeySpec, just use PBEKeyGenParams. 2002-05-09 14:29:07 +00:00
glen.beasley%sun.com
c87a19a616 115778 return local port 2002-05-09 02:26:25 +00:00
nicolson%netscape.com
c0a935fe8a update version numbers. 2002-05-07 20:34:54 +00:00
nicolson%netscape.com
eb72e56e0a make it public so that it can be instantiated from CryptoManager. 2002-05-07 20:34:05 +00:00
nicolson%netscape.com
a62c7231f1 implement some methods in support of java.security.Key. 2002-05-07 20:33:23 +00:00
nicolson%netscape.com
e3bf596343 fix broken error message. 2002-05-07 20:32:29 +00:00
nicolson%netscape.com
e0f7d257cc Now SymmetricKey knows what KeyGenAlgorithm its associated with. 2002-05-07 20:31:52 +00:00
nicolson%netscape.com
2b7211a011 force load of SHA1 provider before installing it as a provider. 2002-05-07 20:31:14 +00:00
nicolson%netscape.com
1795a4d054 add JCE providers. 2002-05-07 20:30:38 +00:00
nicolson%netscape.com
705e4b5479 update version strings. 2002-05-07 20:24:03 +00:00
nicolson%netscape.com
3e92affe57 Renamed to JSS*. 2002-05-06 21:54:38 +00:00
nicolson%netscape.com
cb9ba101a4 Sun's PBE Key Spec is incomplete. 2002-05-06 18:58:39 +00:00
nicolson%netscape.com
314c5a982b add DESede. 2002-05-06 18:49:52 +00:00
nicolson%netscape.com
b02b8aab56 move alg-specific provider classes into generic parent classes. 2002-05-03 00:27:03 +00:00
nicolson%netscape.com
f7c27d4ae8 New provider files for JSS 3.2. 2002-05-02 20:25:15 +00:00
glen.beasley%sun.com
6ddc297e30 bug 129394 change assert to _assert 2002-05-02 04:04:23 +00:00
nicolson%netscape.com
9c53042faa JSS 3.2 features check-in. 2002-04-19 22:42:05 +00:00
nicolson%netscape.com
ad470cfd5c merge JDK 1.4 changes to the trunk. 2002-04-08 21:46:56 +00:00
nicolson%netscape.com
b24b11d263 Fix 129389: Algorithm.c treats oidIndex as short when it should be int. 2002-03-07 01:59:58 +00:00
nicolson%netscape.com
72347524cb Initial checkin of the keystore code. It's not complete yet, but
I want others to be able to see it and comment on it.
2002-02-26 04:19:33 +00:00
nicolson%netscape.com
856d45b4e1 fixes to make it work better on windows. 2002-02-21 01:23:12 +00:00
nicolson%netscape.com
6984f362d9 Fix problems caused by changing package names. 2002-01-30 20:54:24 +00:00
nicolson%netscape.com
52b9697197 move /manage subdirectory up one level to coincide with org.mozilla.jss
package name
2002-01-30 20:50:18 +00:00
nicolson%netscape.com
1dcedf59aa move this stuff up one directory to coincide with the org.mozilla.jss
package name.
2002-01-30 20:49:00 +00:00
nicolson%netscape.com
9560cbe70b update all classes to be in org.mozilla.jss.tests.package.
Improve TestKeyGen test.
2002-01-30 20:47:41 +00:00
nicolson%netscape.com
9773b96ba4 added KeyPairGenerator. 2002-01-30 20:39:09 +00:00
nicolson%netscape.com
15e0a8e116 Change default token from InternalCryptoToken to InternalKeyStorageToken. 2002-01-30 20:38:53 +00:00
nicolson%netscape.com
d035dfd0c5 Fix 122437: Memory leak in read method of SSLSocket 2002-01-30 19:52:02 +00:00
nicolson%netscape.com
41cae16a23 fix to test either dist or release builds. 2002-01-29 00:14:45 +00:00
nicolson%netscape.com
5b15bc6696 move into org.mozilla.jss.tests package. 2002-01-28 23:49:38 +00:00
nicolson%netscape.com
44df88fd96 Switch the default on removeSunProvider. The default is now "false". 2002-01-24 01:24:01 +00:00
nicolson%netscape.com
83bf03af58 Document the necessity of setting the password on the key database before
using the SecretDecoderRing.
2002-01-24 01:16:12 +00:00
nicolson%netscape.com
e06f464a38 add secret decoder ring for JSS 3.1.2, special release for CMS. 2002-01-17 22:54:00 +00:00
nicolson%netscape.com
f8a8f075f6 landing DJN_MEKAB_WORK_BRANCH 2002-01-08 20:11:11 +00:00
nicolson%netscape.com
0a650ab098 test SecretDecoderRing 2002-01-08 20:00:55 +00:00
nicolson%netscape.com
24c3efb6ab new provider classes 2002-01-08 19:58:48 +00:00
nicolson%netscape.com
60f2798fca SecretDecoderRing functionality, now appearing in JSS. 2002-01-08 19:38:47 +00:00
nicolson%netscape.com
495689eee2 PK12Token was never used. 2001-12-21 03:35:32 +00:00
nicolson%netscape.com
6cbe7b98f0 Implement KeyPairGeneratorSpi 2001-12-17 03:54:41 +00:00
nicolson%netscape.com
97a987f71b We need a TokenException that extends RuntimeException, so we can throw it without declaring it 2001-12-17 03:52:13 +00:00
nicolson%netscape.com
6f91bb1b97 Add new provider classes for JCA Compliance. 2001-12-14 20:01:33 +00:00
nicolson%netscape.com
ec44bb325c Implement RSAPrivateKey and DSAPrivateKey. 2001-12-14 20:00:36 +00:00
nicolson%netscape.com
7a0ab1dcbb Move the master provider class here to avoid circular dependencies. 2001-12-14 20:00:01 +00:00
nicolson%netscape.com
9f603bacd3 get test scripts working, add license. 2001-11-02 06:41:44 +00:00
nicolson%netscape.com
98df7a2527 Add a test target and some classes and scripts.
Now we can test with "gmake test".
2001-11-02 06:33:21 +00:00
nicolson%netscape.com
60357d9f1c Fix 103977: JSS calls non-portable snprintf
Replace snprintf() with PR_snprintf().
2001-10-10 01:31:40 +00:00
nicolson%netscape.com
bafde73210 Add reuseAddr parameter to SSLServerSocket parameter, so servers can
re-bind to a socket.
2001-09-28 22:10:11 +00:00
nicolson%netscape.com
53a3d4b336 fix SSL_RSA_FIPS_* cipher enums. 2001-09-27 17:51:30 +00:00
nicolson%netscape.com
8919270df6 Fix 96779: UserCertConflictException always gets thrown when importing user cert. 2001-09-25 21:39:21 +00:00
nicolson%netscape.com
2408313344 Emphasize that we ignore the SecureRandom parameter. 2001-09-24 18:34:18 +00:00
nicolson%netscape.com
6103c2860e Fix 100796: calling undeclared functions breaks AIX build
Workaround 100791: misspelled function prototypes in pk11func.h
2001-09-20 19:16:51 +00:00
nicolson%netscape.com
7a7b46c4b7 Fix 99375: UnsatisfiedLinkError gives misleading description 2001-09-12 18:55:03 +00:00
nicolson%netscape.com
41b9057593 More work on running an SSLSocket over a generic Socket. This is required
for JSSE compliance.
2001-09-08 01:53:38 +00:00
nicolson%netscape.com
d068352e1c copyright notice. 2001-08-31 22:35:58 +00:00
nicolson%netscape.com
f58c4de5f3 add NSPR wrapper around java socket. 2001-08-24 05:16:27 +00:00
nicolson%netscape.com
a6f4d34c4e add types and ids for NSPR wrapper around java socket. 2001-08-24 05:15:18 +00:00
nicolson%netscape.com
ba19b46475 Add getEncryptedPrivateKeyInfo. 2001-08-24 05:14:55 +00:00
nicolson%netscape.com
af6175f918 add getEncryptedPrivateKeyInfo to CryptoStore. 2001-08-24 05:14:30 +00:00
nicolson%netscape.com
838cdd08f8 remove superfluous trace message. 2001-08-21 01:59:22 +00:00
nicolson%netscape.com
9f0b7149a8 update version string to JSS 3.1, RTM. 2001-08-09 03:02:23 +00:00
nicolson%netscape.com
8ccfea9abd Fix 93382: snprintf() undefined on windows 2001-08-03 09:18:30 +00:00
nicolson%netscape.com
c1a20a54a5 Fix 88255: SSLSocket.forceHandshake should return more error information 2001-08-03 08:37:44 +00:00
nicolson%netscape.com
1cbc65ca2e Make test conform to 3.1 API 2001-08-03 07:21:09 +00:00
nicolson%netscape.com
eb3e9f941c Make the javadoc target work 2001-08-03 07:17:54 +00:00
nicolson%netscape.com
75d7fb98b5 Fix 93324: CryptoManager.getCACerts returns an empty array 2001-08-03 07:07:40 +00:00
nicolson%netscape.com
4022db02f5 Fix 93364: SSLSocket.setCipherPolicy needs to be called before using SSL 2001-08-03 07:01:52 +00:00
nicolson%netscape.com
3838f20301 Fix 93117: some SSL classes not in jss.jar 2001-08-03 06:59:41 +00:00
nicolson%netscape.com
1f36272423 Remove SSLCallbackNotifier, which no longer exists 2001-07-11 04:30:48 +00:00
nicolson%netscape.com
513072209f Fix 87807: Add library version info to the JSS shared library. 2001-07-10 01:59:44 +00:00
nicolson%netscape.com
bcf02f1d15 remove calls to deprecated CryptoManager.initialize(secmoddb, certdb, keydb); 2001-07-06 01:18:36 +00:00
nicolson%netscape.com
dc7aa55f2c Fix 88312: CryptoManager.initialize() causes nullpointerexception. 2001-07-06 01:08:08 +00:00
nicolson%netscape.com
d532122a1f Add PLAINTEXT key unwrapping algorithm, allowing us to pull in symmetric
keys from their raw, unwrapped form.
2001-07-03 23:39:33 +00:00
nicolson%netscape.com
efed69eb89 Fix the secure random provider for the DSAME folks 2001-07-03 21:17:18 +00:00
nicolson%netscape.com
4df96456a0 Make JSS releasable with "gmake release". 2001-06-29 01:54:49 +00:00
nicolson%netscape.com
34d2f25223 Fix 88063: JSS binary release must use NSPR and NSS binary releases.
Patch written (and presumably reviewed) by wtc.
2001-06-28 01:43:12 +00:00
nicolson%netscape.com
ce584de9a9 Change name and description of the provider. 2001-06-26 02:19:29 +00:00
nicolson%netscape.com
960e7f07cf Fix 64125: PKCS#7 code doesn't work with DSA. 2001-06-25 21:41:14 +00:00
nicolson%netscape.com
7df81e7e40 Fix bug 79301: SSLServerSocket constructor that takes callback args. 2001-06-25 21:32:06 +00:00
nicolson%netscape.com
53fa9f7928 Fix Bug 87650: replace slot traversal functions with list functions.
Use SECKEY_ImportDERPublicKey.
Add SecureRandom provider.
Get CERTCertificateRequestTemplate through accessor function.
2001-06-25 19:34:52 +00:00
nicolson%netscape.com
0d75721df5 NSS_Init* are idempotent, so don't check for NSS being initialized before
calling them.
2001-06-12 22:26:03 +00:00
nicolson%netscape.com
24458f0ff3 More NSS integration. 2001-06-12 21:11:33 +00:00
nicolson%netscape.com
b83ea7384f NSS/JSS integration. 2001-06-11 05:15:49 +00:00
nicolson%netscape.com
4fb2d58937 no more hclhacks now that we've integrated NSS with JSS. 2001-06-07 18:42:38 +00:00
nicolson%netscape.com
28fc2dabe7 Change initialize arguments.
Specify key usage when unwrapping a symmetric key.
2001-06-05 01:01:23 +00:00
nicolson%netscape.com
a45800a164 Remove NSS private functions. 2001-06-05 01:00:47 +00:00
nicolson%netscape.com
b69a77988a Remove private NSS functions.
Specify a key usage when unwrapping a symmetric key.
2001-06-05 01:00:05 +00:00
nicolson%netscape.com
c7842e9a55 key usages for unwrapping. 2001-06-05 00:59:29 +00:00
nicolson%netscape.com
587f18d160 When unwrapping a symkey, specify a usage. This is to conform
to NSS's api.
2001-06-05 00:59:12 +00:00
nicolson%netscape.com
7c2de03d0f Add JSS_symkeyUsage table. 2001-06-05 00:58:38 +00:00
nicolson%netscape.com
b5e5823b5b Call a proper NSS function to get the unique ID.
Mozilla bugs 77664 and 77665.
2001-05-04 23:01:19 +00:00
nicolson%netscape.com
e86aed1be7 deprecated getUniqueID, since it is implementation-dependent and probably
not being used.
2001-04-27 20:13:21 +00:00
nicolson%netscape.com
0144e82b78 get rid of workarounds for bug 323494. 2001-04-19 02:03:55 +00:00
nicolson%netscape.com
ea774ba8fe Fix bug 75490: memory bug in decodeAndImportKey causes SEGV. 2001-04-12 22:13:25 +00:00
nicolson%netscape.com
0204b3423a snprintf is called _snprintf on windows. 2001-04-11 23:46:36 +00:00
nicolson%netscape.com
6ccb52de5e Tweaks for JSS 3.1, and get it to build. 2001-04-10 17:32:30 +00:00
nicolson%netscape.com
601e50f944 just hacking. 2001-04-03 04:08:20 +00:00
nicolson%netscape.com
ffc1f28f01 Allow the option of not overriding the Sun provider, for CMS. 2001-03-23 19:50:02 +00:00
nicolson%netscape.com
92346678ce It needs to extend ServerSocket. 2001-03-10 01:56:57 +00:00
nicolson%netscape.com
2093ef5077 We need to set -DNSS_USE_STATIC_LIBS on NT because of some code in ssl.h. 2001-03-09 22:24:42 +00:00
nicolson%netscape.com
1b2b4cd997 SSL changed its callback signatures to return SECStatus. 2001-03-09 21:35:51 +00:00
nicolson%netscape.com
3eac97f0d8 Replaced javadoc in new SSL classes.
A couple of API tweaks.
2001-03-06 08:49:37 +00:00
nicolson%netscape.com
24e154d544 Add the last of the methods to SSLServerSocket for backward compatibility.
Split out common functionality into SocketBase (not the same as SocketImpl!).
2001-03-02 04:38:14 +00:00
nicolson%netscape.com
00c7c0a528 Elimintate some JDK 1.2isms so that we are still JDK1.1 compatible. 2001-02-23 23:30:08 +00:00
nicolson%netscape.com
db2edec39a update version names and numbers. 2001-02-22 06:20:44 +00:00
nicolson%netscape.com
916b43ba2c Get everything building and linking on WINNT. 2001-02-20 05:38:45 +00:00
nicolson%netscape.com
5ca7c290b7 Remove cdbhdl.h, which is now a private export. Instead we cut and paste
its contents into our file.
2001-02-20 00:13:45 +00:00
nicolson%netscape.com
a7ec7bfda5 add method for setting cipher policy. 2001-02-19 18:29:49 +00:00
nicolson%netscape.com
d5979e5bf1 Tweak library rules for WINNT 2001-02-19 18:28:55 +00:00
nicolson%netscape.com
60d1142a0d Make server-side SSL work. Put common code in common.c. 2001-02-15 05:46:33 +00:00
nicolson%netscape.com
ef3cc55525 fill out SSLSocket with more methods. 2001-02-10 02:49:33 +00:00
nicolson%netscape.com
d5e16f8892 Export the JavaVM so we can access it from SSL callbacks. 2001-02-09 21:47:29 +00:00
nicolson%netscape.com
654f153ad0 some new utilities for the SSL code. 2001-02-09 11:28:01 +00:00
nicolson%netscape.com
0be719232d build ssl now. 2001-02-09 11:27:13 +00:00
nicolson%netscape.com
a9186e6910 Checkin new SSL code. SSLClient test works. 2001-02-09 11:26:34 +00:00
nicolson%netscape.com
85c93d464c Only build archives, not .so's, at this level. 2001-01-19 02:23:47 +00:00
nicolson%netscape.com
7022353f18 remove export controls, and get things to build against NSS 3.1.1 under mozilla. 2001-01-16 23:49:57 +00:00
nicolson%netscape.com
8487361394 remove export controls. 2001-01-16 21:28:32 +00:00
nicolson%netscape.com
e97cf5f08f remove export controls 2001-01-16 21:28:09 +00:00
nicolson%netscape.com
2c533473b6 make JSS buildable. 2001-01-16 21:27:19 +00:00
nicolson%netscape.com
eadf70bda0 make JSS buildable 2001-01-16 21:26:33 +00:00
nicolson%netscape.com
da8c64f02e bye bye tabs, hello spaces. 2000-12-29 21:11:21 +00:00
nicolson%netscape.com
224edc2408 legacy code for 16-bit browser, now obsolete. 2000-12-28 18:58:22 +00:00
nicolson%netscape.com
25905cfbbc Checking in what we can off SSL. 2000-12-21 22:59:12 +00:00
nicolson%netscape.com
7d9bb7e141 Convert com.netscape.jss package names to org.mozilla.jss.
The work was done by a script.
2000-12-19 06:19:02 +00:00
nicolson%netscape.com
eea1482d41 First checkin of Network Security Services, Java version. 2000-12-15 20:53:03 +00:00