Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
0a5fe2eb
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
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,发现更多精彩内容 >>
提交
0a5fe2eb
编写于
7月 20, 2016
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add setter and getter for X509_STORE's check_policy
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
1060a50b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
22 addition
and
2 deletion
+22
-2
crypto/include/internal/x509_int.h
crypto/include/internal/x509_int.h
+1
-0
crypto/x509/x509_lcl.h
crypto/x509/x509_lcl.h
+2
-0
crypto/x509/x509_lu.c
crypto/x509/x509_lu.c
+11
-0
crypto/x509/x509_vfy.c
crypto/x509/x509_vfy.c
+5
-2
include/openssl/x509_vfy.h
include/openssl/x509_vfy.h
+3
-0
未找到文件。
crypto/include/internal/x509_int.h
浏览文件 @
0a5fe2eb
...
...
@@ -204,6 +204,7 @@ struct x509_store_ctx_st { /* X509_STORE_CTX */
int
(
*
check_crl
)
(
X509_STORE_CTX
*
ctx
,
X509_CRL
*
crl
);
/* Check certificate against CRL */
int
(
*
cert_crl
)
(
X509_STORE_CTX
*
ctx
,
X509_CRL
*
crl
,
X509
*
x
);
/* Check policy status of the chain */
int
(
*
check_policy
)
(
X509_STORE_CTX
*
ctx
);
STACK_OF
(
X509
)
*
(
*
lookup_certs
)
(
X509_STORE_CTX
*
ctx
,
X509_NAME
*
nm
);
STACK_OF
(
X509_CRL
)
*
(
*
lookup_crls
)
(
X509_STORE_CTX
*
ctx
,
X509_NAME
*
nm
);
...
...
crypto/x509/x509_lcl.h
浏览文件 @
0a5fe2eb
...
...
@@ -123,6 +123,8 @@ struct x509_store_st {
int
(
*
check_crl
)
(
X509_STORE_CTX
*
ctx
,
X509_CRL
*
crl
);
/* Check certificate against CRL */
int
(
*
cert_crl
)
(
X509_STORE_CTX
*
ctx
,
X509_CRL
*
crl
,
X509
*
x
);
/* Check policy status of the chain */
int
(
*
check_policy
)
(
X509_STORE_CTX
*
ctx
);
STACK_OF
(
X509
)
*
(
*
lookup_certs
)
(
X509_STORE_CTX
*
ctx
,
X509_NAME
*
nm
);
STACK_OF
(
X509_CRL
)
*
(
*
lookup_crls
)
(
X509_STORE_CTX
*
ctx
,
X509_NAME
*
nm
);
int
(
*
cleanup
)
(
X509_STORE_CTX
*
ctx
);
...
...
crypto/x509/x509_lu.c
浏览文件 @
0a5fe2eb
...
...
@@ -801,6 +801,17 @@ X509_STORE_CTX_cert_crl_fn X509_STORE_get_cert_crl(X509_STORE *ctx)
return
ctx
->
cert_crl
;
}
void
X509_STORE_set_check_policy
(
X509_STORE
*
ctx
,
X509_STORE_CTX_check_policy_fn
check_policy
)
{
ctx
->
check_policy
=
check_policy
;
}
X509_STORE_CTX_check_policy_fn
X509_STORE_get_check_policy
(
X509_STORE
*
ctx
)
{
return
ctx
->
check_policy
;
}
void
X509_STORE_set_lookup_certs
(
X509_STORE
*
ctx
,
X509_STORE_CTX_lookup_certs_fn
lookup_certs
)
{
...
...
crypto/x509/x509_vfy.c
浏览文件 @
0a5fe2eb
...
...
@@ -2285,6 +2285,11 @@ int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509,
else
ctx
->
cert_crl
=
cert_crl
;
if
(
store
&&
store
->
check_policy
)
ctx
->
check_policy
=
store
->
check_policy
;
else
ctx
->
check_policy
=
check_policy
;
if
(
store
&&
store
->
lookup_certs
)
ctx
->
lookup_certs
=
store
->
lookup_certs
;
else
...
...
@@ -2295,8 +2300,6 @@ int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509,
else
ctx
->
lookup_crls
=
X509_STORE_CTX_get1_crls
;
ctx
->
check_policy
=
check_policy
;
ctx
->
param
=
X509_VERIFY_PARAM_new
();
if
(
ctx
->
param
==
NULL
)
{
X509err
(
X509_F_X509_STORE_CTX_INIT
,
ERR_R_MALLOC_FAILURE
);
...
...
include/openssl/x509_vfy.h
浏览文件 @
0a5fe2eb
...
...
@@ -293,6 +293,9 @@ X509_STORE_CTX_check_crl_fn X509_STORE_get_check_crl(X509_STORE *ctx);
void
X509_STORE_set_cert_crl
(
X509_STORE
*
ctx
,
X509_STORE_CTX_cert_crl_fn
cert_crl
);
X509_STORE_CTX_cert_crl_fn
X509_STORE_get_cert_crl
(
X509_STORE
*
ctx
);
void
X509_STORE_set_check_policy
(
X509_STORE
*
ctx
,
X509_STORE_CTX_check_policy_fn
check_policy
);
X509_STORE_CTX_check_policy_fn
X509_STORE_get_check_policy
(
X509_STORE
*
ctx
);
void
X509_STORE_set_lookup_certs
(
X509_STORE
*
ctx
,
X509_STORE_CTX_lookup_certs_fn
lookup_certs
);
X509_STORE_CTX_lookup_certs_fn
X509_STORE_get_lookup_certs
(
X509_STORE
*
ctx
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录