Set Enveloped data version to 2 if ktri version not zero.
This commit is contained in:
parent
7b7b18c57e
commit
9c5d953a07
@ -185,6 +185,8 @@ CMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms,
|
|||||||
if (flags & CMS_USE_KEYID)
|
if (flags & CMS_USE_KEYID)
|
||||||
{
|
{
|
||||||
ktri->version = 2;
|
ktri->version = 2;
|
||||||
|
if (env->version < 2)
|
||||||
|
env->version = 2;
|
||||||
type = CMS_RECIPINFO_KEYIDENTIFIER;
|
type = CMS_RECIPINFO_KEYIDENTIFIER;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user