Matthew Harmsen 8a9c23e
From 22092d1bde94dc8a1f6e8198fa2fcc597c36c32f Mon Sep 17 00:00:00 2001
Matthew Harmsen 8a9c23e
From: "Endi S. Dewata" <edewata@redhat.com>
Matthew Harmsen 8a9c23e
Date: Wed, 9 Dec 2015 00:30:50 +0100
Matthew Harmsen 8a9c23e
Subject: [PATCH] Fixed build failures.
Matthew Harmsen 8a9c23e
Matthew Harmsen 8a9c23e
The Javadoc on various classes have been modified to fix build
Matthew Harmsen 8a9c23e
failures on F23 and Rawhide due to stringent requirements on
Matthew Harmsen 8a9c23e
those platforms.
Matthew Harmsen 8a9c23e
Matthew Harmsen 8a9c23e
The Debug_debug.jnot has been renamed to Debug.java to fix build
Matthew Harmsen 8a9c23e
failure in Eclipse.
Matthew Harmsen 8a9c23e
Matthew Harmsen 8a9c23e
https://bugzilla.redhat.com/show_bug.cgi?id=1289799
Matthew Harmsen 8a9c23e
---
Matthew Harmsen 8a9c23e
 .classpath                                              |  7 +++++++
Matthew Harmsen 8a9c23e
 .project                                                | 17 +++++++++++++++++
Matthew Harmsen 8a9c23e
 mozilla/security/jss/build_java.pl                      |  2 +-
Matthew Harmsen 8a9c23e
 mozilla/security/jss/org/mozilla/jss/CryptoManager.java | 14 +++++++-------
Matthew Harmsen 8a9c23e
 .../security/jss/org/mozilla/jss/asn1/ASN1Header.java   |  2 +-
Matthew Harmsen 8a9c23e
 .../security/jss/org/mozilla/jss/pkcs11/PK11Token.java  |  2 +-
Matthew Harmsen 8a9c23e
 .../security/jss/org/mozilla/jss/pkcs12/CertBag.java    |  1 +
Matthew Harmsen 8a9c23e
 .../security/jss/org/mozilla/jss/pkcs7/ContentInfo.java |  1 -
Matthew Harmsen 8a9c23e
 .../security/jss/org/mozilla/jss/pkcs7/SignerInfo.java  | 17 ++++++++++-------
Matthew Harmsen 8a9c23e
 .../jss/org/mozilla/jss/pkix/cms/ContentInfo.java       |  1 -
Matthew Harmsen 8a9c23e
 .../jss/org/mozilla/jss/pkix/cms/SignerInfo.java        | 17 ++++++++++-------
Matthew Harmsen 8a9c23e
 .../jss/org/mozilla/jss/pkix/crmf/CertReqMsg.java       |  2 +-
Matthew Harmsen 8a9c23e
 .../jss/org/mozilla/jss/ssl/SSLServerSocket.java        |  3 ---
Matthew Harmsen 8a9c23e
 .../mozilla/jss/util/{Debug_debug.jnot => Debug.java}   |  0
Matthew Harmsen 8a9c23e
 14 files changed, 56 insertions(+), 30 deletions(-)
Matthew Harmsen 8a9c23e
 create mode 100644 .classpath
Matthew Harmsen 8a9c23e
 create mode 100644 .project
Matthew Harmsen 8a9c23e
 rename mozilla/security/jss/org/mozilla/jss/util/{Debug_debug.jnot => Debug.java} (100%)
Matthew Harmsen 8a9c23e
Matthew Harmsen 8a9c23e
diff --git a/.classpath b/.classpath
Matthew Harmsen 8a9c23e
new file mode 100644
Matthew Harmsen 8a9c23e
index 0000000000000000000000000000000000000000..df092d3f7d8df936b753bea75c11bf4003e1a77f
Matthew Harmsen 8a9c23e
--- /dev/null
Matthew Harmsen 8a9c23e
+++ b/.classpath
Matthew Harmsen 8a9c23e
@@ -0,0 +1,7 @@
Matthew Harmsen 8a9c23e
+
Matthew Harmsen 8a9c23e
+<classpath>
Matthew Harmsen 8a9c23e
+	<classpathentry excluding="samples/" kind="src" path="mozilla/security/jss"/>
Matthew Harmsen 8a9c23e
+	<classpathentry kind="src" path="mozilla/security/jss/samples"/>
Matthew Harmsen 8a9c23e
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
Matthew Harmsen 8a9c23e
+	<classpathentry kind="output" path="bin"/>
Matthew Harmsen 8a9c23e
+</classpath>
Matthew Harmsen 8a9c23e
diff --git a/.project b/.project
Matthew Harmsen 8a9c23e
new file mode 100644
Matthew Harmsen 8a9c23e
index 0000000000000000000000000000000000000000..c0b616e95c7512076c9976374bda14e11d7cdd8c
Matthew Harmsen 8a9c23e
--- /dev/null
Matthew Harmsen 8a9c23e
+++ b/.project
Matthew Harmsen 8a9c23e
@@ -0,0 +1,17 @@
Matthew Harmsen 8a9c23e
+
Matthew Harmsen 8a9c23e
+<projectDescription>
Matthew Harmsen 8a9c23e
+	<name>jss-4.2</name>
Matthew Harmsen 8a9c23e
+	<comment></comment>
Matthew Harmsen 8a9c23e
+	<projects>
Matthew Harmsen 8a9c23e
+	</projects>
Matthew Harmsen 8a9c23e
+	<buildSpec>
Matthew Harmsen 8a9c23e
+		<buildCommand>
Matthew Harmsen 8a9c23e
+			<name>org.eclipse.jdt.core.javabuilder</name>
Matthew Harmsen 8a9c23e
+			<arguments>
Matthew Harmsen 8a9c23e
+			</arguments>
Matthew Harmsen 8a9c23e
+		</buildCommand>
Matthew Harmsen 8a9c23e
+	</buildSpec>
Matthew Harmsen 8a9c23e
+	<natures>
Matthew Harmsen 8a9c23e
+		<nature>org.eclipse.jdt.core.javanature</nature>
Matthew Harmsen 8a9c23e
+	</natures>
Matthew Harmsen 8a9c23e
+</projectDescription>
Matthew Harmsen 8a9c23e
diff --git a/mozilla/security/jss/build_java.pl b/mozilla/security/jss/build_java.pl
Matthew Harmsen 8a9c23e
index c34473e0eec883323b6b100e671018a9edafe442..379a5e05dbc0599c95d2228bd14f659d3e493d0b 100644
Matthew Harmsen 8a9c23e
--- a/mozilla/security/jss/build_java.pl
Matthew Harmsen 8a9c23e
+++ b/mozilla/security/jss/build_java.pl
Matthew Harmsen 8a9c23e
@@ -137,7 +137,7 @@ sub setup_vars {
Matthew Harmsen 8a9c23e
         $class_jar = "$dist_dir/$cmdline_vars{XPCLASS_DBG_JAR}";
Matthew Harmsen 8a9c23e
         $class_release_dir .= "/$cmdline_vars{SOURCE_RELEASE_CLASSES_DBG_DIR}";
Matthew Harmsen 8a9c23e
         $javac_opt_flag = "-g";
Matthew Harmsen 8a9c23e
-        $debug_source_file = "org/mozilla/jss/util/Debug_debug.jnot";
Matthew Harmsen 8a9c23e
+        $debug_source_file = "org/mozilla/jss/util/Debug.java";
Matthew Harmsen 8a9c23e
     }
Matthew Harmsen 8a9c23e
     $jni_header_dir = "$dist_dir/private/jss/_jni";
Matthew Harmsen 8a9c23e
 
Matthew Harmsen 8a9c23e
diff --git a/mozilla/security/jss/org/mozilla/jss/CryptoManager.java b/mozilla/security/jss/org/mozilla/jss/CryptoManager.java
Matthew Harmsen 8a9c23e
index 08aad8fe3c3a62ae8e233fc1035723690adf4581..6ef0256a3b777db48461f19da0fa64ec7857ed6b 100644
Matthew Harmsen 8a9c23e
--- a/mozilla/security/jss/org/mozilla/jss/CryptoManager.java
Matthew Harmsen 8a9c23e
+++ b/mozilla/security/jss/org/mozilla/jss/CryptoManager.java
Matthew Harmsen 8a9c23e
@@ -600,7 +600,7 @@ public final class CryptoManager implements TokenSupplier
Matthew Harmsen 8a9c23e
      * loaded cryptographic modules for the token.
Matthew Harmsen 8a9c23e
      *
Matthew Harmsen 8a9c23e
      * @param name The name of the token.
Matthew Harmsen 8a9c23e
-     * @exception org.mozilla.jss.crypto.NoSuchTokenException If no token
Matthew Harmsen 8a9c23e
+     * @exception NoSuchTokenException If no token
Matthew Harmsen 8a9c23e
      *  is found with the given name.
Matthew Harmsen 8a9c23e
      */
Matthew Harmsen 8a9c23e
     public synchronized CryptoToken getTokenByName(String name)
Matthew Harmsen 8a9c23e
@@ -855,9 +855,9 @@ public final class CryptoManager implements TokenSupplier
Matthew Harmsen 8a9c23e
      * initialize().
Matthew Harmsen 8a9c23e
      *
Matthew Harmsen 8a9c23e
      * @param configDir The directory containing the security databases.
Matthew Harmsen 8a9c23e
-     * @exception org.mozilla.jss.util.KeyDatabaseException Unable to open
Matthew Harmsen 8a9c23e
+     * @exception KeyDatabaseException Unable to open
Matthew Harmsen 8a9c23e
      *  the key database, or it was currupted.
Matthew Harmsen 8a9c23e
-     * @exception org.mozilla.jss.util.CertDatabaseException Unable
Matthew Harmsen 8a9c23e
+     * @exception CertDatabaseException Unable
Matthew Harmsen 8a9c23e
      *  to open the certificate database, or it was currupted.
Matthew Harmsen 8a9c23e
      **/
Matthew Harmsen 8a9c23e
     public static synchronized void initialize( String configDir )
Matthew Harmsen 8a9c23e
@@ -878,9 +878,9 @@ public final class CryptoManager implements TokenSupplier
Matthew Harmsen 8a9c23e
      * initialize().
Matthew Harmsen 8a9c23e
      *
Matthew Harmsen 8a9c23e
      * @param values The options with which to initialize CryptoManager.
Matthew Harmsen 8a9c23e
-     * @exception org.mozilla.jss.util.KeyDatabaseException Unable to open
Matthew Harmsen 8a9c23e
+     * @exception KeyDatabaseException Unable to open
Matthew Harmsen 8a9c23e
      *  the key database, or it was currupted.
Matthew Harmsen 8a9c23e
-     * @exception org.mozilla.jss.util.CertDatabaseException Unable
Matthew Harmsen 8a9c23e
+     * @exception CertDatabaseException Unable
Matthew Harmsen 8a9c23e
      *  to open the certificate database, or it was currupted.
Matthew Harmsen 8a9c23e
      **/
Matthew Harmsen 8a9c23e
     public static synchronized void initialize( InitializationValues values )
Matthew Harmsen 8a9c23e
@@ -1021,7 +1021,7 @@ public final class CryptoManager implements TokenSupplier
Matthew Harmsen 8a9c23e
      * @return The leaf certificate from the chain.
Matthew Harmsen 8a9c23e
      * @exception CertificateEncodingException If the package encoding
Matthew Harmsen 8a9c23e
      *      was not recognized.
Matthew Harmsen 8a9c23e
-     * @exception CertificateNicknameConflictException If the leaf certificate
Matthew Harmsen 8a9c23e
+     * @exception NicknameConflictException If the leaf certificate
Matthew Harmsen 8a9c23e
      *      is a user certificate, and another certificate already has the
Matthew Harmsen 8a9c23e
      *      given nickname.
Matthew Harmsen 8a9c23e
      * @exception UserCertConflictException If the leaf certificate
Matthew Harmsen 8a9c23e
@@ -1059,7 +1059,7 @@ public final class CryptoManager implements TokenSupplier
Matthew Harmsen 8a9c23e
      * @return The leaf certificate from the chain.
Matthew Harmsen 8a9c23e
      * @exception CertificateEncodingException If the package encoding
Matthew Harmsen 8a9c23e
      *      was not recognized.
Matthew Harmsen 8a9c23e
-     * @exception CertificateNicknameConflictException If the leaf certificate
Matthew Harmsen 8a9c23e
+     * @exception NicknameConflictException If the leaf certificate
Matthew Harmsen 8a9c23e
      *      another certificate already has the given nickname.
Matthew Harmsen 8a9c23e
      * @exception UserCertConflictException If the leaf certificate
Matthew Harmsen 8a9c23e
      *      has already been imported.
Matthew Harmsen 8a9c23e
diff --git a/mozilla/security/jss/org/mozilla/jss/asn1/ASN1Header.java b/mozilla/security/jss/org/mozilla/jss/asn1/ASN1Header.java
Matthew Harmsen 8a9c23e
index bfa37c9f5eba1c5df9bb275cad16c1bf57c9c65d..d15be4922b52d16a25e3212b2b25809cd7ddf3b6 100644
Matthew Harmsen 8a9c23e
--- a/mozilla/security/jss/org/mozilla/jss/asn1/ASN1Header.java
Matthew Harmsen 8a9c23e
+++ b/mozilla/security/jss/org/mozilla/jss/asn1/ASN1Header.java
Matthew Harmsen 8a9c23e
@@ -259,7 +259,7 @@ public class ASN1Header {
Matthew Harmsen 8a9c23e
     /**
Matthew Harmsen 8a9c23e
      * This constructor is to be called when we are constructing an ASN1Value
Matthew Harmsen 8a9c23e
      * rather than decoding it.
Matthew Harmsen 8a9c23e
-     * @param contentLength Must be >=0. Although indefinite length
Matthew Harmsen 8a9c23e
+     * @param contentLength Must be >=0. Although indefinite length
Matthew Harmsen 8a9c23e
      *      decoding is supported, indefinite length encoding
Matthew Harmsen 8a9c23e
      *      is not.
Matthew Harmsen 8a9c23e
      */
Matthew Harmsen 8a9c23e
diff --git a/mozilla/security/jss/org/mozilla/jss/pkcs11/PK11Token.java b/mozilla/security/jss/org/mozilla/jss/pkcs11/PK11Token.java
Matthew Harmsen 8a9c23e
index e521b6108b90daeb7035413bba50a41e9b20ec49..98e93f0e858b09402364b4dc89c36a63e7ef0f7b 100644
Matthew Harmsen 8a9c23e
--- a/mozilla/security/jss/org/mozilla/jss/pkcs11/PK11Token.java
Matthew Harmsen 8a9c23e
+++ b/mozilla/security/jss/org/mozilla/jss/pkcs11/PK11Token.java
Matthew Harmsen 8a9c23e
@@ -236,7 +236,7 @@ public final class PK11Token implements CryptoToken {
Matthew Harmsen 8a9c23e
      *
Matthew Harmsen 8a9c23e
      * @param ssopwcb The security officer's current password callback.
Matthew Harmsen 8a9c23e
      * @param userpwcb The user's new password callback.
Matthew Harmsen 8a9c23e
-     * @exception IncorrectPinException If the security officer PIN is
Matthew Harmsen 8a9c23e
+     * @exception IncorrectPasswordException If the security officer PIN is
Matthew Harmsen 8a9c23e
      *  incorrect.
Matthew Harmsen 8a9c23e
      * @exception TokenException If the PIN was already initialized,
Matthew Harmsen 8a9c23e
      *  or there was an unspecified error in the token.
Matthew Harmsen 8a9c23e
diff --git a/mozilla/security/jss/org/mozilla/jss/pkcs12/CertBag.java b/mozilla/security/jss/org/mozilla/jss/pkcs12/CertBag.java
Matthew Harmsen 8a9c23e
index a1b08d2e9ee9dfcb4ee809e101f3074611664384..61ad979d65d5ecc6659281218c58e8ec9a48211c 100644
Matthew Harmsen 8a9c23e
--- a/mozilla/security/jss/org/mozilla/jss/pkcs12/CertBag.java
Matthew Harmsen 8a9c23e
+++ b/mozilla/security/jss/org/mozilla/jss/pkcs12/CertBag.java
Matthew Harmsen 8a9c23e
@@ -91,6 +91,7 @@ public class CertBag implements ASN1Value {
Matthew Harmsen 8a9c23e
      * 
  • If the type is SDSI_CERT_TYPE, returns
  • Matthew Harmsen 8a9c23e
          *      an IA5String.
    Matthew Harmsen 8a9c23e
          * 
  • For all other types, returns an ANY.
  • Matthew Harmsen 8a9c23e
    +     * 
    Matthew Harmsen 8a9c23e
          *
    Matthew Harmsen 8a9c23e
          * @exception InvalidBERException If the cert is not encoded correctly.
    Matthew Harmsen 8a9c23e
          */
    Matthew Harmsen 8a9c23e
    diff --git a/mozilla/security/jss/org/mozilla/jss/pkcs7/ContentInfo.java b/mozilla/security/jss/org/mozilla/jss/pkcs7/ContentInfo.java
    Matthew Harmsen 8a9c23e
    index 4db7a42c75cc21d71841e20dcb9a4c1494ff08c2..4578e9bcd8abdb4e7b6717b07aee932dd887d675 100644
    Matthew Harmsen 8a9c23e
    --- a/mozilla/security/jss/org/mozilla/jss/pkcs7/ContentInfo.java
    Matthew Harmsen 8a9c23e
    +++ b/mozilla/security/jss/org/mozilla/jss/pkcs7/ContentInfo.java
    Matthew Harmsen 8a9c23e
    @@ -169,7 +169,6 @@ public class ContentInfo implements ASN1Value {
    Matthew Harmsen 8a9c23e
          *  an OCTET_STRING will be returned.
    Matthew Harmsen 8a9c23e
          * 

    If the contentType is not one of the six standard types,

    Matthew Harmsen 8a9c23e
          *      the returned object will be an ANY.
    Matthew Harmsen 8a9c23e
    -     * 
    Matthew Harmsen 8a9c23e
          */
    Matthew Harmsen 8a9c23e
         public ASN1Value getInterpretedContent() throws InvalidBERException {
    Matthew Harmsen 8a9c23e
             if(contentType.equals(DATA)) {
    Matthew Harmsen 8a9c23e
    diff --git a/mozilla/security/jss/org/mozilla/jss/pkcs7/SignerInfo.java b/mozilla/security/jss/org/mozilla/jss/pkcs7/SignerInfo.java
    Matthew Harmsen 8a9c23e
    index 300e993cffd9dcadaf996609abeebf8627eafde8..c49107c80543ec94fbb3117a1a9a1088f851a6b3 100644
    Matthew Harmsen 8a9c23e
    --- a/mozilla/security/jss/org/mozilla/jss/pkcs7/SignerInfo.java
    Matthew Harmsen 8a9c23e
    +++ b/mozilla/security/jss/org/mozilla/jss/pkcs7/SignerInfo.java
    Matthew Harmsen 8a9c23e
    @@ -129,7 +129,7 @@ public class SignerInfo implements ASN1Value {
    Matthew Harmsen 8a9c23e
         /**
    Matthew Harmsen 8a9c23e
          * Retrieves the DigestAlgorithm used in this SignerInfo.
    Matthew Harmsen 8a9c23e
          *
    Matthew Harmsen 8a9c23e
    -     * @exception NoSuchAlgorithm If the algorithm is not recognized by JSS.
    Matthew Harmsen 8a9c23e
    +     * @exception NoSuchAlgorithmException If the algorithm is not recognized by JSS.
    Matthew Harmsen 8a9c23e
          */
    Matthew Harmsen 8a9c23e
         public DigestAlgorithm getDigestAlgorithm()
    Matthew Harmsen 8a9c23e
             throws NoSuchAlgorithmException
    Matthew Harmsen 8a9c23e
    @@ -402,10 +402,12 @@ public class SignerInfo implements ASN1Value {
    Matthew Harmsen 8a9c23e
         /**
    Matthew Harmsen 8a9c23e
          * Verifies that this SignerInfo contains a valid signature of the
    Matthew Harmsen 8a9c23e
          * given message digest.  If any authenticated attributes are present,
    Matthew Harmsen 8a9c23e
    -     * they are also validated. The verification algorithm is as follows:
      Matthew Harmsen 8a9c23e
      -     * 

      Note that this does not verify the validity of the

      Matthew Harmsen 8a9c23e
      -     *  the certificate itself, only the signature.
      Matthew Harmsen 8a9c23e
      +     * they are also validated. The verification algorithm is as follows:
      Matthew Harmsen 8a9c23e
            *
      Matthew Harmsen 8a9c23e
      +     * Note that this does not verify the validity of the
      Matthew Harmsen 8a9c23e
      +     * the certificate itself, only the signature.
      Matthew Harmsen 8a9c23e
      +     *
      Matthew Harmsen 8a9c23e
      +     * 
        Matthew Harmsen 8a9c23e
              * 
      • If no authenticated attributes are present, the content type is
      • Matthew Harmsen 8a9c23e
              *  verified to be data. Then it is verified that the message
        Matthew Harmsen 8a9c23e
              *  digest passed
        Matthew Harmsen 8a9c23e
        @@ -413,24 +415,25 @@ public class SignerInfo implements ASN1Value {
        Matthew Harmsen 8a9c23e
              *  digest in the SignerInfo.
        Matthew Harmsen 8a9c23e
              *
        Matthew Harmsen 8a9c23e
              * 
      • If authenticated attributes are present,
      • Matthew Harmsen 8a9c23e
        -     *  two particular attributes must be present: 
          Matthew Harmsen 8a9c23e
          +     *  two particular attributes must be present:
          Matthew Harmsen 8a9c23e
          +     * 
            Matthew Harmsen 8a9c23e
                  *  
          • PKCS #9 Content-Type, the type of content that is being signed.
          • Matthew Harmsen 8a9c23e
                  *      This must match the contentType parameter.
            Matthew Harmsen 8a9c23e
                  *  
          • PKCS #9 Message-Digest, the digest of the content that is being
          • Matthew Harmsen 8a9c23e
                  *      signed. This must match the messageDigest parameter.
            Matthew Harmsen 8a9c23e
                  * 
            Matthew Harmsen 8a9c23e
            +     *
            Matthew Harmsen 8a9c23e
                  * After these two attributes are verified to be both present and correct,
            Matthew Harmsen 8a9c23e
                  * the encryptedDigest field of the SignerInfo is verified to be the
            Matthew Harmsen 8a9c23e
                  * signature of the contents octets of the DER encoding of the
            Matthew Harmsen 8a9c23e
                  * authenticatedAttributes field.
            Matthew Harmsen 8a9c23e
            -     *
            Matthew Harmsen 8a9c23e
                  * 
            Matthew Harmsen 8a9c23e
                  *
            Matthew Harmsen 8a9c23e
                  * @param messageDigest The hash of the content that is signed by this
            Matthew Harmsen 8a9c23e
                  *  SignerInfo.
            Matthew Harmsen 8a9c23e
                  * @param contentType The type of the content that is signed by this
            Matthew Harmsen 8a9c23e
                  *  SignerInfo.
            Matthew Harmsen 8a9c23e
            -     * @exception NoSuchObjectException If no certificate matching the
            Matthew Harmsen 8a9c23e
            +     * @exception ObjectNotFoundException If no certificate matching the
            Matthew Harmsen 8a9c23e
                  *      the issuer name and serial number can be found.
            Matthew Harmsen 8a9c23e
                  */
            Matthew Harmsen 8a9c23e
                 public void verify(byte[] messageDigest, OBJECT_IDENTIFIER contentType)
            Matthew Harmsen 8a9c23e
            diff --git a/mozilla/security/jss/org/mozilla/jss/pkix/cms/ContentInfo.java b/mozilla/security/jss/org/mozilla/jss/pkix/cms/ContentInfo.java
            Matthew Harmsen 8a9c23e
            index 91ae770c94b3a8817c13e4cb86609c432ef682b8..9f61e605b416dffc38525ccec4dcce9f380c7dcc 100644
            Matthew Harmsen 8a9c23e
            --- a/mozilla/security/jss/org/mozilla/jss/pkix/cms/ContentInfo.java
            Matthew Harmsen 8a9c23e
            +++ b/mozilla/security/jss/org/mozilla/jss/pkix/cms/ContentInfo.java
            Matthew Harmsen 8a9c23e
            @@ -168,7 +168,6 @@ public class ContentInfo implements ASN1Value {
            Matthew Harmsen 8a9c23e
                  *  an OCTET_STRING will be returned.
            Matthew Harmsen 8a9c23e
                  * 

            If the contentType is not one of the six standard types,

            Matthew Harmsen 8a9c23e
                  *      the returned object will be an ANY.
            Matthew Harmsen 8a9c23e
            -     * 
            Matthew Harmsen 8a9c23e
                  */
            Matthew Harmsen 8a9c23e
                 public ASN1Value getInterpretedContent() throws InvalidBERException {
            Matthew Harmsen 8a9c23e
                     if(contentType.equals(DATA)) {
            Matthew Harmsen 8a9c23e
            diff --git a/mozilla/security/jss/org/mozilla/jss/pkix/cms/SignerInfo.java b/mozilla/security/jss/org/mozilla/jss/pkix/cms/SignerInfo.java
            Matthew Harmsen 8a9c23e
            index ff34a554e4d5f43b6ce18acfac01899858d62117..e7feb934dc0a78fbc40a6ff7d8db87f0af9177fe 100644
            Matthew Harmsen 8a9c23e
            --- a/mozilla/security/jss/org/mozilla/jss/pkix/cms/SignerInfo.java
            Matthew Harmsen 8a9c23e
            +++ b/mozilla/security/jss/org/mozilla/jss/pkix/cms/SignerInfo.java
            Matthew Harmsen 8a9c23e
            @@ -130,7 +130,7 @@ public class SignerInfo implements ASN1Value {
            Matthew Harmsen 8a9c23e
                 /**
            Matthew Harmsen 8a9c23e
                  * Retrieves the DigestAlgorithm used in this SignerInfo.
            Matthew Harmsen 8a9c23e
                  *
            Matthew Harmsen 8a9c23e
            -     * @exception NoSuchAlgorithm If the algorithm is not recognized by JSS.
            Matthew Harmsen 8a9c23e
            +     * @exception NoSuchAlgorithmException If the algorithm is not recognized by JSS.
            Matthew Harmsen 8a9c23e
                  */
            Matthew Harmsen 8a9c23e
                 public DigestAlgorithm getDigestAlgorithm()
            Matthew Harmsen 8a9c23e
                     throws NoSuchAlgorithmException
            Matthew Harmsen 8a9c23e
            @@ -403,10 +403,12 @@ public class SignerInfo implements ASN1Value {
            Matthew Harmsen 8a9c23e
                 /**
            Matthew Harmsen 8a9c23e
                  * Verifies that this SignerInfo contains a valid signature of the
            Matthew Harmsen 8a9c23e
                  * given message digest.  If any signed attributes are present,
            Matthew Harmsen 8a9c23e
            -     * they are also validated. The verification algorithm is as follows:
              Matthew Harmsen 8a9c23e
              -     * 

              Note that this does not verify the validity of the

              Matthew Harmsen 8a9c23e
              -     *  the certificate itself, only the signature.
              Matthew Harmsen 8a9c23e
              +     * they are also validated. The verification algorithm is as follows:
              Matthew Harmsen 8a9c23e
                    *
              Matthew Harmsen 8a9c23e
              +     * Note that this does not verify the validity of the
              Matthew Harmsen 8a9c23e
              +     * the certificate itself, only the signature.
              Matthew Harmsen 8a9c23e
              +     *
              Matthew Harmsen 8a9c23e
              +     * 
                Matthew Harmsen 8a9c23e
                      * 
              • If no signed attributes are present, the content type is
              • Matthew Harmsen 8a9c23e
                      *  verified to be data. Then it is verified that the message
                Matthew Harmsen 8a9c23e
                      *  digest passed
                Matthew Harmsen 8a9c23e
                @@ -414,24 +416,25 @@ public class SignerInfo implements ASN1Value {
                Matthew Harmsen 8a9c23e
                      *  digest in the SignerInfo.
                Matthew Harmsen 8a9c23e
                      *
                Matthew Harmsen 8a9c23e
                      * 
              • If signed attributes are present,
              • Matthew Harmsen 8a9c23e
                -     *  two particular attributes must be present: 
                  Matthew Harmsen 8a9c23e
                  +     *  two particular attributes must be present:
                  Matthew Harmsen 8a9c23e
                  +     * 
                    Matthew Harmsen 8a9c23e
                          *  
                  • PKCS #9 Content-Type, the type of content that is being signed.
                  • Matthew Harmsen 8a9c23e
                          *      This must match the contentType parameter.
                    Matthew Harmsen 8a9c23e
                          *  
                  • PKCS #9 Message-Digest, the digest of the content that is being
                  • Matthew Harmsen 8a9c23e
                          *      signed. This must match the messageDigest parameter.
                    Matthew Harmsen 8a9c23e
                          * 
                    Matthew Harmsen 8a9c23e
                    +     *
                    Matthew Harmsen 8a9c23e
                          * After these two attributes are verified to be both present and correct,
                    Matthew Harmsen 8a9c23e
                          * the encryptedDigest field of the SignerInfo is verified to be the
                    Matthew Harmsen 8a9c23e
                          * signature of the contents octets of the DER encoding of the
                    Matthew Harmsen 8a9c23e
                          * signedAttributes field.
                    Matthew Harmsen 8a9c23e
                    -     *
                    Matthew Harmsen 8a9c23e
                          * 
                    Matthew Harmsen 8a9c23e
                          *
                    Matthew Harmsen 8a9c23e
                          * @param messageDigest The hash of the content that is signed by this
                    Matthew Harmsen 8a9c23e
                          *  SignerInfo.
                    Matthew Harmsen 8a9c23e
                          * @param contentType The type of the content that is signed by this
                    Matthew Harmsen 8a9c23e
                          *  SignerInfo.
                    Matthew Harmsen 8a9c23e
                    -     * @exception NoSuchObjectException If no certificate matching the
                    Matthew Harmsen 8a9c23e
                    +     * @exception ObjectNotFoundException If no certificate matching the
                    Matthew Harmsen 8a9c23e
                          *      the issuer name and serial number can be found.
                    Matthew Harmsen 8a9c23e
                          */
                    Matthew Harmsen 8a9c23e
                         public void verify(byte[] messageDigest, OBJECT_IDENTIFIER contentType)
                    Matthew Harmsen 8a9c23e
                    diff --git a/mozilla/security/jss/org/mozilla/jss/pkix/crmf/CertReqMsg.java b/mozilla/security/jss/org/mozilla/jss/pkix/crmf/CertReqMsg.java
                    Matthew Harmsen 8a9c23e
                    index 53d162b69673caeed3e998dc9c2e221b95dfc6db..c6637039c87043f36dd1a1e449a819edbcc816e3 100644
                    Matthew Harmsen 8a9c23e
                    --- a/mozilla/security/jss/org/mozilla/jss/pkix/crmf/CertReqMsg.java
                    Matthew Harmsen 8a9c23e
                    +++ b/mozilla/security/jss/org/mozilla/jss/pkix/crmf/CertReqMsg.java
                    Matthew Harmsen 8a9c23e
                    @@ -112,7 +112,7 @@ public class CertReqMsg implements ASN1Value {
                    Matthew Harmsen 8a9c23e
                     
                    Matthew Harmsen 8a9c23e
                         /**
                    Matthew Harmsen 8a9c23e
                          * Constructs a CertReqmsg from a CertRequest and, optionally,
                    Matthew Harmsen 8a9c23e
                    -     * a pop>/i> and a regInfo.
                    Matthew Harmsen 8a9c23e
                    +     * a pop and a regInfo.
                    Matthew Harmsen 8a9c23e
                          * @param pop May be NULL.
                    Matthew Harmsen 8a9c23e
                          * @param regInfo May be NULL.
                    Matthew Harmsen 8a9c23e
                          */
                    Matthew Harmsen 8a9c23e
                    diff --git a/mozilla/security/jss/org/mozilla/jss/ssl/SSLServerSocket.java b/mozilla/security/jss/org/mozilla/jss/ssl/SSLServerSocket.java
                    Matthew Harmsen 8a9c23e
                    index 2043a598cf3e8d023287c0f7142045c1e4f68e4d..58d14496e5ad92aa91a966e119e14f470da4fd4a 100644
                    Matthew Harmsen 8a9c23e
                    --- a/mozilla/security/jss/org/mozilla/jss/ssl/SSLServerSocket.java
                    Matthew Harmsen 8a9c23e
                    +++ b/mozilla/security/jss/org/mozilla/jss/ssl/SSLServerSocket.java
                    Matthew Harmsen 8a9c23e
                    @@ -174,9 +174,6 @@ public class SSLServerSocket extends java.net.ServerSocket {
                    Matthew Harmsen 8a9c23e
                          * @return java.net.Socket Local socket for client communication
                    Matthew Harmsen 8a9c23e
                          *
                    Matthew Harmsen 8a9c23e
                          * @throws IOException  If an input or output exception occurred
                    Matthew Harmsen 8a9c23e
                    -     * @throws SocketTimeoutException  If the socket timesout trying to connect
                    Matthew Harmsen 8a9c23e
                    -     * @throws InterruptedIOException  If an input or output is interrupted
                    Matthew Harmsen 8a9c23e
                    -     * @throws SSLSocketException  JSS subclass of java.net.SocketException
                    Matthew Harmsen 8a9c23e
                          */
                    Matthew Harmsen 8a9c23e
                         public Socket accept() throws IOException {
                    Matthew Harmsen 8a9c23e
                             synchronized (acceptLock) {
                    Matthew Harmsen 8a9c23e
                    diff --git a/mozilla/security/jss/org/mozilla/jss/util/Debug_debug.jnot b/mozilla/security/jss/org/mozilla/jss/util/Debug.java
                    Matthew Harmsen 8a9c23e
                    similarity index 100%
                    Matthew Harmsen 8a9c23e
                    rename from mozilla/security/jss/org/mozilla/jss/util/Debug_debug.jnot
                    Matthew Harmsen 8a9c23e
                    rename to mozilla/security/jss/org/mozilla/jss/util/Debug.java
                    Matthew Harmsen 8a9c23e
                    -- 
                    Matthew Harmsen 8a9c23e
                    2.4.3
                    Matthew Harmsen 8a9c23e