projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
typo
[openssl.git]
/
crypto
/
asn1
/
a_sign.c
diff --git
a/crypto/asn1/a_sign.c
b/crypto/asn1/a_sign.c
index 018edaead76c315e15234194cba2514a39c44dd4..27deb8913792459c8b2b4c7ee549cfefe560da3d 100644
(file)
--- 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_Digest
Verify
Init(&ctx, NULL, type, NULL, pkey)
+ if (!EVP_Digest
Sign
Init(&ctx, NULL, type, NULL, pkey)
|| !EVP_DigestSignUpdate(&ctx, buf_in, inl)
|| !EVP_DigestSignFinal(&ctx, buf_out, &outl))
{