Typo.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 18 May 2006 17:46:56 +0000 (17:46 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 18 May 2006 17:46:56 +0000 (17:46 +0000)
crypto/pkcs7/pk7_attr.c

index 5ad6670..7df59b7 100644 (file)
@@ -170,7 +170,7 @@ int PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si,
        if (!os)
                return 0;
        if (!ASN1_STRING_set(os, md, mdlen)
-               || PKCS7_add_signed_attribute(si, NID_pkcs9_messageDigest,
+               || !PKCS7_add_signed_attribute(si, NID_pkcs9_messageDigest,
                                                V_ASN1_OCTET_STRING, os))
                {
                ASN1_OCTET_STRING_free(os);