typo
authorDr. Stephen Henson <steve@openssl.org>
Sun, 7 Mar 2010 15:37:37 +0000 (15:37 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 7 Mar 2010 15:37:37 +0000 (15:37 +0000)
crypto/asn1/a_sign.c

index 018edae..27deb89 100644 (file)
@@ -270,7 +270,7 @@ int ASN1_item_sign(const ASN1_ITEM *it, X509_ALGOR *algor1, X509_ALGOR *algor2,
                goto err;
                }
 
-       if (!EVP_DigestVerifyInit(&ctx, NULL, type, NULL, pkey)
+       if (!EVP_DigestSignInit(&ctx, NULL, type, NULL, pkey)
                || !EVP_DigestSignUpdate(&ctx, buf_in, inl)
                || !EVP_DigestSignFinal(&ctx, buf_out, &outl))
                {