projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b7b18c
)
Set Enveloped data version to 2 if ktri version not zero.
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 6 May 2014 13:02:17 +0000
(14:02 +0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Tue, 6 May 2014 13:02:38 +0000
(14:02 +0100)
crypto/cms/cms_env.c
patch
|
blob
|
history
diff --git
a/crypto/cms/cms_env.c
b/crypto/cms/cms_env.c
index be20b1c024cfca77267ce3a0824141bcce9b06ce..add00bf99cf7e011aeca23c16de6e4d5f8ed4d3c 100644
(file)
--- a/
crypto/cms/cms_env.c
+++ b/
crypto/cms/cms_env.c
@@
-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