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

(cherry picked from commit 546b1b4384)
This commit is contained in:
Dr. Stephen Henson 2014-05-05 23:56:43 +01:00
parent 9740a03695
commit 1047b8c84d

View file

@ -973,7 +973,7 @@ static void cms_env_set_version(CMS_EnvelopedData *env)
env->version = 3;
return;
}
else if (ri->type != CMS_RECIPINFO_TRANS)
else if (ri->type != CMS_RECIPINFO_TRANS || ri->d.ktri->version != 0)
{
env->version = 2;
}