Set Enveloped data version to 2 if ktri version not zero.

This commit is contained in:
Dr. Stephen Henson 2014-05-06 14:02:17 +01:00
parent 7b7b18c57e
commit 9c5d953a07

View File

@ -185,6 +185,8 @@ CMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms,
if (flags & CMS_USE_KEYID)
{
ktri->version = 2;
if (env->version < 2)
env->version = 2;
type = CMS_RECIPINFO_KEYIDENTIFIER;
}
else