Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
31d66c2a
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
9 个月 前同步成功
通知
8
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
31d66c2a
编写于
3月 11, 2010
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update cms code to use X509_ALGOR_set_md instead of internal function
上级
ce25c720
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
3 addition
and
19 deletion
+3
-19
crypto/cms/cms_dd.c
crypto/cms/cms_dd.c
+1
-1
crypto/cms/cms_lcl.h
crypto/cms/cms_lcl.h
+0
-1
crypto/cms/cms_lib.c
crypto/cms/cms_lib.c
+0
-15
crypto/cms/cms_sd.c
crypto/cms/cms_sd.c
+2
-2
未找到文件。
crypto/cms/cms_dd.c
浏览文件 @
31d66c2a
...
...
@@ -82,7 +82,7 @@ CMS_ContentInfo *cms_DigestedData_create(const EVP_MD *md)
dd
->
version
=
0
;
dd
->
encapContentInfo
->
eContentType
=
OBJ_nid2obj
(
NID_pkcs7_data
);
cms_DigestAlgorithm_set
(
dd
->
digestAlgorithm
,
md
);
X509_ALGOR_set_md
(
dd
->
digestAlgorithm
,
md
);
return
cms
;
...
...
crypto/cms/cms_lcl.h
浏览文件 @
31d66c2a
...
...
@@ -443,7 +443,6 @@ int cms_SignerIdentifier_cert_cmp(CMS_SignerIdentifier *sid, X509 *cert);
CMS_ContentInfo
*
cms_CompressedData_create
(
int
comp_nid
);
BIO
*
cms_CompressedData_init_bio
(
CMS_ContentInfo
*
cms
);
void
cms_DigestAlgorithm_set
(
X509_ALGOR
*
alg
,
const
EVP_MD
*
md
);
BIO
*
cms_DigestAlgorithm_init_bio
(
X509_ALGOR
*
digestAlgorithm
);
int
cms_DigestAlgorithm_find_ctx
(
EVP_MD_CTX
*
mctx
,
BIO
*
chain
,
X509_ALGOR
*
mdalg
);
...
...
crypto/cms/cms_lib.c
浏览文件 @
31d66c2a
...
...
@@ -341,21 +341,6 @@ int CMS_set_detached(CMS_ContentInfo *cms, int detached)
return
0
;
}
/* Set up an X509_ALGOR DigestAlgorithmIdentifier from an EVP_MD */
void
cms_DigestAlgorithm_set
(
X509_ALGOR
*
alg
,
const
EVP_MD
*
md
)
{
int
param_type
;
if
(
md
->
flags
&
EVP_MD_FLAG_DIGALGID_ABSENT
)
param_type
=
V_ASN1_UNDEF
;
else
param_type
=
V_ASN1_NULL
;
X509_ALGOR_set0
(
alg
,
OBJ_nid2obj
(
EVP_MD_type
(
md
)),
param_type
,
NULL
);
}
/* Create a digest BIO from an X509_ALGOR structure */
BIO
*
cms_DigestAlgorithm_init_bio
(
X509_ALGOR
*
digestAlgorithm
)
...
...
crypto/cms/cms_sd.c
浏览文件 @
31d66c2a
...
...
@@ -360,7 +360,7 @@ CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms,
goto
err
;
}
cms_DigestAlgorithm_set
(
si
->
digestAlgorithm
,
md
);
X509_ALGOR_set_md
(
si
->
digestAlgorithm
,
md
);
/* See if digest is present in digestAlgorithms */
for
(
i
=
0
;
i
<
sk_X509_ALGOR_num
(
sd
->
digestAlgorithms
);
i
++
)
...
...
@@ -377,7 +377,7 @@ CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms,
alg
=
X509_ALGOR_new
();
if
(
!
alg
)
goto
merr
;
cms_DigestAlgorithm_set
(
alg
,
md
);
X509_ALGOR_set_md
(
alg
,
md
);
if
(
!
sk_X509_ALGOR_push
(
sd
->
digestAlgorithms
,
alg
))
{
X509_ALGOR_free
(
alg
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录