Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
b79c82ea
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看板
提交
b79c82ea
编写于
3月 25, 2004
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix loads of warnings in policy code.
I'll remember to try to compile this with warnings enabled next time :-)
上级
69d1d5e6
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
19 addition
and
18 deletion
+19
-18
crypto/x509/x509_vfy.h
crypto/x509/x509_vfy.h
+1
-1
crypto/x509v3/pcy_cache.c
crypto/x509v3/pcy_cache.c
+4
-3
crypto/x509v3/pcy_data.c
crypto/x509v3/pcy_data.c
+1
-1
crypto/x509v3/pcy_int.h
crypto/x509v3/pcy_int.h
+4
-4
crypto/x509v3/pcy_lib.c
crypto/x509v3/pcy_lib.c
+1
-1
crypto/x509v3/pcy_map.c
crypto/x509v3/pcy_map.c
+2
-2
crypto/x509v3/pcy_node.c
crypto/x509v3/pcy_node.c
+3
-3
crypto/x509v3/pcy_tree.c
crypto/x509v3/pcy_tree.c
+3
-3
未找到文件。
crypto/x509/x509_vfy.h
浏览文件 @
b79c82ea
...
...
@@ -441,7 +441,7 @@ X509_POLICY_NODE *X509_policy_level_get0_node(X509_POLICY_LEVEL *level, int i);
const
ASN1_OBJECT
*
X509_policy_node_get0_policy
(
const
X509_POLICY_NODE
*
node
);
STACK_OF
(
POLICYQUALI
FIER
)
*
STACK_OF
(
POLICYQUALI
NFO
)
*
X509_policy_node_get0_qualifiers
(
const
X509_POLICY_NODE
*
node
);
const
X509_POLICY_NODE
*
X509_policy_node_get0_parent
(
const
X509_POLICY_NODE
*
node
);
...
...
crypto/x509v3/pcy_cache.c
浏览文件 @
b79c82ea
...
...
@@ -62,7 +62,8 @@
#include "pcy_int.h"
static
int
policy_data_cmp
(
void
*
pa
,
void
*
pb
);
static
int
policy_data_cmp
(
const
X509_POLICY_DATA
*
const
*
a
,
const
X509_POLICY_DATA
*
const
*
b
);
static
int
policy_cache_set_int
(
long
*
out
,
ASN1_INTEGER
*
value
);
/* Set cache entry according to CertificatePolicies extension.
...
...
@@ -269,9 +270,9 @@ X509_POLICY_DATA *policy_cache_find_data(const X509_POLICY_CACHE *cache,
return
sk_X509_POLICY_DATA_value
(
cache
->
data
,
idx
);
}
static
int
policy_data_cmp
(
void
*
pa
,
void
*
pb
)
static
int
policy_data_cmp
(
const
X509_POLICY_DATA
*
const
*
a
,
const
X509_POLICY_DATA
*
const
*
b
)
{
X509_POLICY_DATA
**
a
=
pa
;
X509_POLICY_DATA
**
b
=
pb
;
return
OBJ_cmp
((
*
a
)
->
valid_policy
,
(
*
b
)
->
valid_policy
);
}
...
...
crypto/x509v3/pcy_data.c
浏览文件 @
b79c82ea
...
...
@@ -69,7 +69,7 @@ void policy_data_free(X509_POLICY_DATA *data)
ASN1_OBJECT_free
(
data
->
valid_policy
);
/* Don't free qualifiers if shared */
if
(
!
(
data
->
flags
&
POLICY_DATA_FLAG_SHARED_QUALIFIERS
))
sk_POLICYINFO_pop_free
(
data
->
qualifier_set
,
sk_POLICY
QUAL
INFO_pop_free
(
data
->
qualifier_set
,
POLICYQUALINFO_free
);
sk_ASN1_OBJECT_pop_free
(
data
->
expected_policy_set
,
ASN1_OBJECT_free
);
OPENSSL_free
(
data
);
...
...
crypto/x509v3/pcy_int.h
浏览文件 @
b79c82ea
...
...
@@ -76,7 +76,7 @@ struct X509_POLICY_DATA_st
unsigned
int
flags
;
/* Policy OID and qualifiers for this data */
ASN1_OBJECT
*
valid_policy
;
STACK_OF
(
POLICYQUALI
FIER
)
*
qualifier_set
;
STACK_OF
(
POLICYQUALI
NFO
)
*
qualifier_set
;
STACK_OF
(
ASN1_OBJECT
)
*
expected_policy_set
;
};
...
...
@@ -128,7 +128,7 @@ struct X509_POLICY_CACHE_st {
/* other policy data */
STACK_OF
(
X509_POLICY_DATA
)
*
data
;
/* If policyMappings extension present a table of mapped policies */
STACK_OF
(
POLICY_REF
)
*
maps
;
STACK_OF
(
X509_
POLICY_REF
)
*
maps
;
/* If InhibitAnyPolicy present this is its value or -1 if absent. */
long
any_skip
;
/* If policyConstraints and requireExplicitPolicy present this is its
...
...
@@ -210,11 +210,11 @@ void policy_cache_free(X509_POLICY_CACHE *cache);
X509_POLICY_NODE
*
level_find_node
(
const
X509_POLICY_LEVEL
*
level
,
const
ASN1_OBJECT
*
id
);
X509_POLICY_NODE
*
tree_find_sk
(
STACK_OF
(
X509_POLICY_
TRE
E
)
*
sk
,
X509_POLICY_NODE
*
tree_find_sk
(
STACK_OF
(
X509_POLICY_
NOD
E
)
*
sk
,
const
ASN1_OBJECT
*
id
);
X509_POLICY_NODE
*
level_add_node
(
X509_POLICY_LEVEL
*
level
,
const
X509_POLICY_DATA
*
data
,
X509_POLICY_DATA
*
data
,
X509_POLICY_NODE
*
parent
,
X509_POLICY_TREE
*
tree
);
void
policy_node_free
(
X509_POLICY_NODE
*
node
);
...
...
crypto/x509v3/pcy_lib.c
浏览文件 @
b79c82ea
...
...
@@ -148,7 +148,7 @@ int X509_policy_node_get_critical(const X509_POLICY_NODE *node)
}
#endif
STACK_OF
(
POLICYQUALI
FIER
)
*
STACK_OF
(
POLICYQUALI
NFO
)
*
X509_policy_node_get0_qualifiers
(
const
X509_POLICY_NODE
*
node
)
{
if
(
!
node
)
...
...
crypto/x509v3/pcy_map.c
浏览文件 @
b79c82ea
...
...
@@ -62,9 +62,9 @@
#include "pcy_int.h"
static
int
ref_cmp
(
void
*
pa
,
void
*
pb
)
static
int
ref_cmp
(
const
X509_POLICY_REF
*
const
*
a
,
const
X509_POLICY_REF
*
const
*
b
)
{
X509_POLICY_REF
**
a
=
pa
;
X509_POLICY_REF
**
b
=
pb
;
return
OBJ_cmp
((
*
a
)
->
subjectDomainPolicy
,
(
*
b
)
->
subjectDomainPolicy
);
}
...
...
crypto/x509v3/pcy_node.c
浏览文件 @
b79c82ea
...
...
@@ -63,9 +63,9 @@
#include "pcy_int.h"
static
int
node_cmp
(
void
*
pa
,
void
*
pb
)
static
int
node_cmp
(
const
X509_POLICY_NODE
*
const
*
a
,
const
X509_POLICY_NODE
*
const
*
b
)
{
X509_POLICY_NODE
**
a
=
pa
,
**
b
=
pb
;
return
OBJ_cmp
((
*
a
)
->
data
->
valid_policy
,
(
*
b
)
->
data
->
valid_policy
);
}
...
...
@@ -99,7 +99,7 @@ X509_POLICY_NODE *level_find_node(const X509_POLICY_LEVEL *level,
}
X509_POLICY_NODE
*
level_add_node
(
X509_POLICY_LEVEL
*
level
,
const
X509_POLICY_DATA
*
data
,
X509_POLICY_DATA
*
data
,
X509_POLICY_NODE
*
parent
,
X509_POLICY_TREE
*
tree
)
{
...
...
crypto/x509v3/pcy_tree.c
浏览文件 @
b79c82ea
...
...
@@ -410,11 +410,11 @@ static int tree_add_auth_node(STACK_OF(X509_POLICY_NODE) **pnodes,
*/
static
int
tree_calculate_authority_set
(
X509_POLICY_TREE
*
tree
,
STACK_OF
(
X509_POLICY_NODE
S
)
**
pnodes
)
STACK_OF
(
X509_POLICY_NODE
)
**
pnodes
)
{
X509_POLICY_LEVEL
*
curr
;
X509_POLICY_NODE
*
node
,
*
anyptr
;
STACK_OF
(
X509_POLICY_NODE
S
)
**
addnodes
;
STACK_OF
(
X509_POLICY_NODE
)
**
addnodes
;
int
i
,
j
;
curr
=
tree
->
levels
+
tree
->
nlevel
-
1
;
...
...
@@ -596,7 +596,7 @@ int X509_policy_check(X509_POLICY_TREE **ptree, int *explicit,
{
int
ret
;
X509_POLICY_TREE
*
tree
=
NULL
;
STACK_OF
(
X509_NODE
)
*
nodes
,
*
auth_nodes
=
NULL
;
STACK_OF
(
X509_
POLICY_
NODE
)
*
nodes
,
*
auth_nodes
=
NULL
;
*
ptree
=
NULL
;
*
explicit
=
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录