mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Port from stable branch.
This commit is contained in:
parent
9ea862e0b3
commit
2deadf1672
@ -766,13 +766,6 @@ be added to the end of this file.
|
||||
Remove VMS_strcasecmp() from apps.c, it's not used any more. And
|
||||
besides, the implementation is bogus.
|
||||
|
||||
2005-01-31 02:40 steve
|
||||
|
||||
Changed:
|
||||
crypto/asn1/a_verify.c (1.12.2.3), "Exp", lines: +7 -6
|
||||
|
||||
Avoid memory leak.
|
||||
|
||||
2005-01-31 02:46 steve
|
||||
|
||||
Changed:
|
||||
|
@ -142,6 +142,13 @@ int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRING *signat
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!EVP_VerifyInit_ex(&ctx,type, NULL))
|
||||
{
|
||||
ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_EVP_LIB);
|
||||
ret=0;
|
||||
goto err;
|
||||
}
|
||||
|
||||
inl = ASN1_item_i2d(asn, &buf_in, it);
|
||||
|
||||
if (buf_in == NULL)
|
||||
@ -150,12 +157,6 @@ int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRING *signat
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!EVP_VerifyInit_ex(&ctx,type, NULL))
|
||||
{
|
||||
ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_EVP_LIB);
|
||||
ret=0;
|
||||
goto err;
|
||||
}
|
||||
EVP_VerifyUpdate(&ctx,(unsigned char *)buf_in,inl);
|
||||
|
||||
OPENSSL_cleanse(buf_in,(unsigned int)inl);
|
||||
|
Loading…
Reference in New Issue
Block a user