Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
0d3b0afe
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看板
提交
0d3b0afe
编写于
5月 17, 2000
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Typesafety Thought Police last part.
上级
abc9400e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
6 deletion
+10
-6
crypto/x509v3/v3_lib.c
crypto/x509v3/v3_lib.c
+8
-6
crypto/x509v3/x509v3.h
crypto/x509v3/x509v3.h
+2
-0
未找到文件。
crypto/x509v3/v3_lib.c
浏览文件 @
0d3b0afe
...
...
@@ -64,18 +64,18 @@
#include "ext_dat.h"
static
STACK
*
ext_list
=
NULL
;
static
STACK
_OF
(
X509V3_EXT_METHOD
)
*
ext_list
=
NULL
;
static
int
ext_cmp
(
X509V3_EXT_METHOD
**
a
,
X509V3_EXT_METHOD
**
b
);
static
void
ext_list_free
(
X509V3_EXT_METHOD
*
ext
);
int
X509V3_EXT_add
(
X509V3_EXT_METHOD
*
ext
)
{
if
(
!
ext_list
&&
!
(
ext_list
=
sk_
new
((
int
(
*
)(
const
void
*
,
const
void
*
))
ext_cmp
)))
{
if
(
!
ext_list
&&
!
(
ext_list
=
sk_
X509V3_EXT_METHOD_new
(
ext_cmp
)))
{
X509V3err
(
X509V3_F_X509V3_EXT_ADD
,
ERR_R_MALLOC_FAILURE
);
return
0
;
}
if
(
!
sk_
push
(
ext_list
,
(
char
*
)
ext
))
{
if
(
!
sk_
X509V3_EXT_METHOD_push
(
ext_list
,
ext
))
{
X509V3err
(
X509V3_F_X509V3_EXT_ADD
,
ERR_R_MALLOC_FAILURE
);
return
0
;
}
...
...
@@ -98,9 +98,9 @@ X509V3_EXT_METHOD *X509V3_EXT_get_nid(int nid)
sizeof
(
X509V3_EXT_METHOD
*
),
(
int
(
*
)(
const
void
*
,
const
void
*
))
ext_cmp
);
if
(
ret
)
return
*
ret
;
if
(
!
ext_list
)
return
NULL
;
idx
=
sk_
find
(
ext_list
,
(
char
*
)
&
tmp
);
idx
=
sk_
X509V3_EXT_METHOD_find
(
ext_list
,
&
tmp
);
if
(
idx
==
-
1
)
return
NULL
;
return
(
X509V3_EXT_METHOD
*
)
sk
_value
(
ext_list
,
idx
);
return
sk_X509V3_EXT_METHOD
_value
(
ext_list
,
idx
);
}
X509V3_EXT_METHOD
*
X509V3_EXT_get
(
X509_EXTENSION
*
ext
)
...
...
@@ -137,7 +137,7 @@ int X509V3_EXT_add_alias(int nid_to, int nid_from)
void
X509V3_EXT_cleanup
(
void
)
{
sk_
pop_free
(
ext_list
,
(
void
(
*
)(
void
*
))
ext_list_free
);
sk_
X509V3_EXT_METHOD_pop_free
(
ext_list
,
ext_list_free
);
ext_list
=
NULL
;
}
...
...
@@ -219,3 +219,5 @@ void *X509V3_get_d2i(STACK_OF(X509_EXTENSION) *x, int nid, int *crit, int *idx)
if
(
crit
)
*
crit
=
-
1
;
return
NULL
;
}
IMPLEMENT_STACK_OF
(
X509V3_EXT_METHOD
)
crypto/x509v3/x509v3.h
浏览文件 @
0d3b0afe
...
...
@@ -131,6 +131,8 @@ void *db;
typedef
struct
v3_ext_method
X509V3_EXT_METHOD
;
typedef
struct
v3_ext_ctx
X509V3_CTX
;
DECLARE_STACK_OF
(
X509V3_EXT_METHOD
)
/* ext_flags values */
#define X509V3_EXT_DYNAMIC 0x1
#define X509V3_EXT_CTX_DEP 0x2
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录