diff --git a/security/jss/lib/manifest.mn b/security/jss/lib/manifest.mn index 294a96528b2..4457457411c 100644 --- a/security/jss/lib/manifest.mn +++ b/security/jss/lib/manifest.mn @@ -41,6 +41,7 @@ #/* */ #/* org/mozilla/jss/CryptoManager.java */ #/* org/mozilla/jss/CryptoManager.c */ +#/* org/mozilla/jss/JSSProvider.java */ #/* org/mozilla/jss/util/jssver.h */ #/* lib/manifest.mn */ #/* */ diff --git a/security/jss/org/mozilla/jss/CryptoManager.c b/security/jss/org/mozilla/jss/CryptoManager.c index 65964ad7b06..997d8aa5cdc 100644 --- a/security/jss/org/mozilla/jss/CryptoManager.c +++ b/security/jss/org/mozilla/jss/CryptoManager.c @@ -65,6 +65,7 @@ /* */ /* org/mozilla/jss/CryptoManager.java */ /* org/mozilla/jss/CryptoManager.c */ +/* org/mozilla/jss/JSSProvider.java */ /* org/mozilla/jss/util/jssver.h */ /* lib/manifest.mn */ /* */ diff --git a/security/jss/org/mozilla/jss/CryptoManager.java b/security/jss/org/mozilla/jss/CryptoManager.java index 6120f5d0718..d0cba3fca17 100644 --- a/security/jss/org/mozilla/jss/CryptoManager.java +++ b/security/jss/org/mozilla/jss/CryptoManager.java @@ -56,7 +56,7 @@ import org.mozilla.jss.provider.java.security.JSSMessageDigestSpi; * Initialization is done with static methods, and must be done before * an instance can be created. All other operations are done with instance * methods. - * @version $Revision: 1.36 $ $Date: 2005-09-21 21:06:54 $ + * @version $Revision: 1.37 $ $Date: 2005-10-28 04:21:08 $ */ public final class CryptoManager implements TokenSupplier { @@ -1308,6 +1308,7 @@ public final class CryptoManager implements TokenSupplier /* */ /* org/mozilla/jss/CryptoManager.java */ /* org/mozilla/jss/CryptoManager.c */ + /* org/mozilla/jss/JSSProvider.java */ /* org/mozilla/jss/util/jssver.h */ /* lib/manifest.mn */ /* */ diff --git a/security/jss/org/mozilla/jss/JSSProvider.java b/security/jss/org/mozilla/jss/JSSProvider.java index c23ffdc1ea4..1117289f529 100644 --- a/security/jss/org/mozilla/jss/JSSProvider.java +++ b/security/jss/org/mozilla/jss/JSSProvider.java @@ -37,8 +37,26 @@ package org.mozilla.jss; public final class JSSProvider extends java.security.Provider { + /********************************************************************/ + /* 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/JSSProvider.java */ + /* org/mozilla/jss/util/jssver.h */ + /* lib/manifest.mn */ + /* */ + /********************************************************************/ + + private static String JSS_MAJOR_VERSION = "4"; + private static String JSS_MINOR_VERSION = "1"; + private static String JSS_PATCH_VERSION = "1"; + private static Double JSS_VERSION = new Double(JSS_MAJOR_VERSION + + "."+JSS_MINOR_VERSION); + public JSSProvider() { - super("Mozilla-JSS", 3.3, + super("Mozilla-JSS", JSS_VERSION, "Provides Signature, Message Digesting, and RNG"); ///////////////////////////////////////////////////////////// @@ -205,4 +223,11 @@ public final class JSSProvider extends java.security.Provider { "org.mozilla.jss.provider.javax.crypto.JSSMacSpi$HmacSHA1"); put("Alg.Alias.Mac.Hmac-SHA1", "HmacSHA1"); } + + public String toString() { + return "Mozilla-JSS version " + + JSS_MAJOR_VERSION + "." + + JSS_MINOR_VERSION + "." + + JSS_PATCH_VERSION; + } } diff --git a/security/jss/org/mozilla/jss/util/jssver.h b/security/jss/org/mozilla/jss/util/jssver.h index 10dad66c696..1bccf4668b0 100644 --- a/security/jss/org/mozilla/jss/util/jssver.h +++ b/security/jss/org/mozilla/jss/util/jssver.h @@ -51,6 +51,7 @@ /* */ /* org/mozilla/jss/CryptoManager.java */ /* org/mozilla/jss/CryptoManager.c */ +/* org/mozilla/jss/JSSProvider.java */ /* org/mozilla/jss/util/jssver.h */ /* lib/manifest.mn */ /* */