Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
237d7b6c
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
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看板
提交
237d7b6c
编写于
3月 15, 2009
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix from stable branch.
上级
854a225a
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
20 addition
and
5 deletion
+20
-5
CHANGES
CHANGES
+5
-0
crypto/cms/cms_smime.c
crypto/cms/cms_smime.c
+1
-1
crypto/pkcs7/pk7_smime.c
crypto/pkcs7/pk7_smime.c
+1
-2
crypto/x509/x509_vpm.c
crypto/x509/x509_vpm.c
+13
-2
未找到文件。
CHANGES
浏览文件 @
237d7b6c
...
...
@@ -748,6 +748,11 @@
Changes between 0.9.8j and 0.9.8k [xx XXX xxxx]
*) Set S/MIME signing as the default purpose rather than setting it
unconditionally. This allows applications to override it at the store
level.
[Steve Henson]
*) Permit restricted recursion of ASN1 strings. This is needed in practice
to handle some structures.
[Steve Henson]
...
...
crypto/cms/cms_smime.c
浏览文件 @
237d7b6c
...
...
@@ -292,7 +292,7 @@ static int cms_signerinfo_verify_cert(CMS_SignerInfo *si,
CMS_R_STORE_INIT_ERROR
);
goto
err
;
}
X509_STORE_CTX_set_
purpose
(
&
ctx
,
X509_PURPOSE_SMIME_SIGN
);
X509_STORE_CTX_set_
default
(
&
cert_ctx
,
"smime_sign"
);
if
(
crls
)
X509_STORE_CTX_set0_crls
(
&
ctx
,
crls
);
...
...
crypto/pkcs7/pk7_smime.c
浏览文件 @
237d7b6c
...
...
@@ -327,8 +327,7 @@ int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store,
sk_X509_free
(
signers
);
return
0
;
}
X509_STORE_CTX_set_purpose
(
&
cert_ctx
,
X509_PURPOSE_SMIME_SIGN
);
X509_STORE_CTX_set_default
(
&
cert_ctx
,
"smime_sign"
);
}
else
if
(
!
X509_STORE_CTX_init
(
&
cert_ctx
,
store
,
signer
,
NULL
))
{
PKCS7err
(
PKCS7_F_PKCS7_VERIFY
,
ERR_R_X509_LIB
);
sk_X509_free
(
signers
);
...
...
crypto/x509/x509_vpm.c
浏览文件 @
237d7b6c
...
...
@@ -74,7 +74,8 @@ static void x509_verify_param_zero(X509_VERIFY_PARAM *param)
param
->
name
=
NULL
;
param
->
purpose
=
0
;
param
->
trust
=
0
;
param
->
inh_flags
=
X509_VP_FLAG_DEFAULT
;
/*param->inh_flags = X509_VP_FLAG_DEFAULT;*/
param
->
inh_flags
=
0
;
param
->
flags
=
0
;
param
->
depth
=
-
1
;
if
(
param
->
policies
)
...
...
@@ -324,7 +325,17 @@ static const X509_VERIFY_PARAM default_table[] = {
NULL
/* policies */
},
{
"pkcs7"
,
/* SSL/TLS client parameters */
"pkcs7"
,
/* S/MIME sign parameters */
0
,
/* Check time */
0
,
/* internal flags */
0
,
/* flags */
X509_PURPOSE_SMIME_SIGN
,
/* purpose */
X509_TRUST_EMAIL
,
/* trust */
-
1
,
/* depth */
NULL
/* policies */
},
{
"smime_sign"
,
/* S/MIME sign parameters */
0
,
/* Check time */
0
,
/* internal flags */
0
,
/* flags */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录