From 9ef6fe8c2e9d67ede553a6ce9e154b179600ede5 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 7 Mar 2010 15:37:37 +0000 Subject: [PATCH] typo --- crypto/asn1/a_sign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/asn1/a_sign.c b/crypto/asn1/a_sign.c index 018edaead7..27deb89137 100644 --- a/crypto/asn1/a_sign.c +++ b/crypto/asn1/a_sign.c @@ -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)) { -- 2.25.1