alg2 can be NULL
This commit is contained in:
parent
f093794e55
commit
e62774c3b9
@ -617,13 +617,16 @@ static int rsa_item_sign(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn,
|
|||||||
/* Finally create string with pss parameter encoding. */
|
/* Finally create string with pss parameter encoding. */
|
||||||
if (!ASN1_item_pack(pss, ASN1_ITEM_rptr(RSA_PSS_PARAMS), &os1))
|
if (!ASN1_item_pack(pss, ASN1_ITEM_rptr(RSA_PSS_PARAMS), &os1))
|
||||||
goto err;
|
goto err;
|
||||||
os2 = ASN1_STRING_dup(os1);
|
if (alg2)
|
||||||
if (!os2)
|
{
|
||||||
goto err;
|
os2 = ASN1_STRING_dup(os1);
|
||||||
|
if (!os2)
|
||||||
|
goto err;
|
||||||
|
X509_ALGOR_set0(alg2, OBJ_nid2obj(NID_rsassaPss),
|
||||||
|
V_ASN1_SEQUENCE, os2);
|
||||||
|
}
|
||||||
X509_ALGOR_set0(alg1, OBJ_nid2obj(NID_rsassaPss),
|
X509_ALGOR_set0(alg1, OBJ_nid2obj(NID_rsassaPss),
|
||||||
V_ASN1_SEQUENCE, os1);
|
V_ASN1_SEQUENCE, os1);
|
||||||
X509_ALGOR_set0(alg2, OBJ_nid2obj(NID_rsassaPss),
|
|
||||||
V_ASN1_SEQUENCE, os2);
|
|
||||||
os1 = os2 = NULL;
|
os1 = os2 = NULL;
|
||||||
rv = 3;
|
rv = 3;
|
||||||
err:
|
err:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user