Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
b6a5fdb8
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b6a5fdb8
编写于
4月 01, 2004
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Don't use C++ reserved word.
上级
bf5773fa
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
7 deletion
+7
-7
crypto/x509/x509_vfy.h
crypto/x509/x509_vfy.h
+1
-1
crypto/x509v3/pcy_tree.c
crypto/x509v3/pcy_tree.c
+6
-6
未找到文件。
crypto/x509/x509_vfy.h
浏览文件 @
b6a5fdb8
...
...
@@ -420,7 +420,7 @@ void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, long flags, time_t t);
void
X509_STORE_CTX_set_verify_cb
(
X509_STORE_CTX
*
ctx
,
int
(
*
verify_cb
)(
int
,
X509_STORE_CTX
*
));
int
X509_policy_check
(
X509_POLICY_TREE
**
ptree
,
int
*
explicit
,
int
X509_policy_check
(
X509_POLICY_TREE
**
ptree
,
int
*
pexplicit_policy
,
STACK_OF
(
X509
)
*
certs
,
STACK_OF
(
ASN1_OBJECT
)
*
policy_oids
,
unsigned
int
flags
);
...
...
crypto/x509v3/pcy_tree.c
浏览文件 @
b6a5fdb8
...
...
@@ -589,7 +589,7 @@ void X509_policy_tree_free(X509_POLICY_TREE *tree)
* -2 User constrained policy set empty and requireExplicit true.
*/
int
X509_policy_check
(
X509_POLICY_TREE
**
ptree
,
int
*
explicit
,
int
X509_policy_check
(
X509_POLICY_TREE
**
ptree
,
int
*
pexplicit_policy
,
STACK_OF
(
X509
)
*
certs
,
STACK_OF
(
ASN1_OBJECT
)
*
policy_oids
,
unsigned
int
flags
)
...
...
@@ -599,7 +599,7 @@ int X509_policy_check(X509_POLICY_TREE **ptree, int *explicit,
STACK_OF
(
X509_POLICY_NODE
)
*
nodes
,
*
auth_nodes
=
NULL
;
*
ptree
=
NULL
;
*
explicit
=
0
;
*
pexplicit_policy
=
0
;
ret
=
tree_init
(
&
tree
,
certs
,
flags
);
...
...
@@ -617,12 +617,12 @@ int X509_policy_check(X509_POLICY_TREE **ptree, int *explicit,
/* Tree empty requireExplicit True: Error */
case
6
:
*
explicit
=
1
;
*
pexplicit_policy
=
1
;
return
-
2
;
/* Tree OK requireExplicit True: OK and continue */
case
5
:
*
explicit
=
1
;
*
pexplicit_policy
=
1
;
break
;
/* Tree OK: continue */
...
...
@@ -640,7 +640,7 @@ int X509_policy_check(X509_POLICY_TREE **ptree, int *explicit,
if
(
ret
==
2
)
{
X509_policy_tree_free
(
tree
);
if
(
*
explicit
)
if
(
*
pexplicit_policy
)
return
-
2
;
else
return
1
;
...
...
@@ -662,7 +662,7 @@ int X509_policy_check(X509_POLICY_TREE **ptree, int *explicit,
if
(
tree
)
*
ptree
=
tree
;
if
(
*
explicit
)
if
(
*
pexplicit_policy
)
{
nodes
=
X509_policy_tree_get0_user_policies
(
tree
);
if
(
sk_X509_POLICY_NODE_num
(
nodes
)
<=
0
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录