Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
2f9f0c72
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看板
提交
2f9f0c72
编写于
11月 12, 2000
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make this stuff compile.
上级
cb4ae6c0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
11 deletion
+12
-11
crypto/ocsp/ocsp.h
crypto/ocsp/ocsp.h
+1
-1
crypto/ocsp/ocsp_ext.c
crypto/ocsp/ocsp_ext.c
+11
-10
未找到文件。
crypto/ocsp/ocsp.h
浏览文件 @
2f9f0c72
...
...
@@ -430,7 +430,7 @@ OCSP_RESPONSE *OCSP_response_new(int status,
char
*
data
);
ASN1_STRING
*
ASN1_STRING_encode
(
ASN1_STRING
*
s
,
int
(
*
i2d
)(),
char
*
data
,
STACK
*
sk
);
char
*
data
,
STACK
_OF
(
ASN1_OBJECT
)
*
sk
);
X509_EXTENSION
*
OCSP_nonce_new
(
void
*
p
,
unsigned
int
len
);
...
...
crypto/ocsp/ocsp_ext.c
浏览文件 @
2f9f0c72
...
...
@@ -83,7 +83,7 @@
/* also CRL Entry Extensions */
ASN1_STRING
*
ASN1_STRING_encode
(
ASN1_STRING
*
s
,
int
(
*
i2d
)(),
char
*
data
,
STACK
*
sk
)
char
*
data
,
STACK
_OF
(
ASN1_OBJECT
)
*
sk
)
{
int
i
;
unsigned
char
*
p
,
*
b
=
NULL
;
...
...
@@ -97,11 +97,11 @@ ASN1_STRING *ASN1_STRING_encode(ASN1_STRING *s, int (*i2d)(),
}
else
if
(
sk
)
{
if
((
i
=
i2d_ASN1_SET
(
sk
,
NULL
,
i2d
,
V_ASN1_SEQUENCE
,
if
((
i
=
i2d_ASN1_SET
_OF_ASN1_OBJECT
(
sk
,
NULL
,
i2d
,
V_ASN1_SEQUENCE
,
V_ASN1_UNIVERSAL
,
IS_SEQUENCE
))
<=
0
)
goto
err
;
if
(
!
(
b
=
p
=
(
unsigned
char
*
)
OPENSSL_malloc
((
unsigned
int
)
i
)))
goto
err
;
if
(
i2d_ASN1_SET
(
sk
,
&
p
,
i2d
,
V_ASN1_SEQUENCE
,
if
(
i2d_ASN1_SET
_OF_ASN1_OBJECT
(
sk
,
&
p
,
i2d
,
V_ASN1_SEQUENCE
,
V_ASN1_UNIVERSAL
,
IS_SEQUENCE
)
<=
0
)
goto
err
;
}
else
...
...
@@ -171,11 +171,12 @@ X509_EXTENSION *OCSP_accept_responses_new(char **oids)
STACK_OF
(
ASN1_OBJECT
)
*
sk
=
NULL
;
ASN1_OBJECT
*
o
=
NULL
;
X509_EXTENSION
*
x
=
NULL
;
if
(
!
(
sk
=
sk_new
(
NULL
)))
goto
err
;
if
(
!
(
sk
=
sk_ASN1_OBJECT_new
(
NULL
)))
goto
err
;
while
(
oids
&&
*
oids
)
{
if
((
nid
=
OBJ_txt2nid
(
*
oids
))
!=
NID_undef
&&
(
o
=
OBJ_nid2obj
(
nid
)))
sk_
push
(
sk
,
(
char
*
)
o
);
sk_
ASN1_OBJECT_push
(
sk
,
o
);
oids
++
;
}
if
(
!
(
x
=
X509_EXTENSION_new
()))
goto
err
;
...
...
@@ -298,15 +299,15 @@ int OCSP_extension_print(BIO *bp,
ind
,
""
)
<=
0
)
goto
err
;
p
=
x
->
value
->
data
;
if
(
!
(
d2i_ASN1_SET
(
&
sk
,
&
p
,
x
->
value
->
length
,
(
char
*
(
*
)())
d2i_ASN1_OBJECT
,
(
void
(
*
)(
void
*
))
ASN1_OBJECT_free
,
if
(
!
(
d2i_ASN1_SET
_OF_ASN1_OBJECT
(
&
sk
,
&
p
,
x
->
value
->
length
,
d2i_ASN1_OBJECT
,
ASN1_OBJECT_free
,
V_ASN1_SEQUENCE
,
V_ASN1_UNIVERSAL
)))
goto
err
;
for
(
i
=
0
;
i
<
sk_num
(
sk
);
i
++
)
for
(
i
=
0
;
i
<
sk_
ASN1_OBJECT_
num
(
sk
);
i
++
)
{
j
=
OBJ_obj2nid
(
(
ASN1_OBJECT
*
)
sk
->
data
[
i
]
);
j
=
OBJ_obj2nid
(
sk_ASN1_OBJECT_value
(
sk
,
i
)
);
if
(
BIO_printf
(
bp
,
" %s "
,
(
j
==
NID_undef
)
?
"UNKNOWN"
:
OBJ_nid2ln
(
j
))
<=
0
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录