Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
fefc111a
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看板
提交
fefc111a
编写于
12月 11, 2012
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make openssl verify return errors.
上级
b204ab65
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
6 deletion
+18
-6
CHANGES
CHANGES
+4
-0
Makefile.org
Makefile.org
+1
-1
apps/verify.c
apps/verify.c
+12
-4
test/Makefile
test/Makefile
+1
-1
未找到文件。
CHANGES
浏览文件 @
fefc111a
...
...
@@ -3,6 +3,10 @@
_______________
Changes between 1.0.x and 1.1.0 [xx XXX xxxx]
*) Make openssl verify return errors.
[Chris Palmer <palmer@google.com> and Ben Laurie]
*) Fix OCSP checking.
[Rob Stradling <rob.stradling@comodo.com> and Ben Laurie]
...
...
Makefile.org
浏览文件 @
fefc111a
...
...
@@ -540,7 +540,7 @@ rehash.time: certs apps
[
-x
"apps/openssl.exe"
]
&&
OPENSSL
=
"apps/openssl.exe"
||
:
;
\
OPENSSL_DEBUG_MEMORY
=
on
;
\
export
OPENSSL OPENSSL_DEBUG_MEMORY
;
\
$(PERL)
tools/c_rehash certs
)
&&
\
$(PERL)
tools/c_rehash certs
/demo
)
&&
\
touch
rehash.time
;
\
else
:
;
fi
...
...
apps/verify.c
浏览文件 @
fefc111a
...
...
@@ -228,11 +228,19 @@ int MAIN(int argc, char **argv)
if
(
crl_download
)
store_setup_crl_download
(
cert_ctx
);
if
(
argc
<
1
)
check
(
cert_ctx
,
NULL
,
untrusted
,
trusted
,
crls
,
e
);
ret
=
0
;
if
(
argc
<
1
)
{
if
(
1
!=
check
(
cert_ctx
,
NULL
,
untrusted
,
trusted
,
crls
,
e
))
ret
=-
1
;
}
else
{
for
(
i
=
0
;
i
<
argc
;
i
++
)
check
(
cert_ctx
,
argv
[
i
],
untrusted
,
trusted
,
crls
,
e
);
ret
=
0
;
if
(
1
!=
check
(
cert_ctx
,
argv
[
i
],
untrusted
,
trusted
,
crls
,
e
))
ret
=-
1
;
}
end:
if
(
ret
==
1
)
{
BIO_printf
(
bio_err
,
"usage: verify [-verbose] [-CApath path] [-CAfile file] [-purpose purpose] [-crl_check]"
);
...
...
@@ -267,7 +275,7 @@ end:
sk_X509_pop_free
(
trusted
,
X509_free
);
sk_X509_CRL_pop_free
(
crls
,
X509_CRL_free
);
apps_shutdown
();
OPENSSL_EXIT
(
ret
);
OPENSSL_EXIT
(
ret
<
0
?
2
:
ret
);
}
static
int
check
(
X509_STORE
*
ctx
,
char
*
file
,
...
...
test/Makefile
浏览文件 @
fefc111a
...
...
@@ -294,7 +294,7 @@ test_ecdh:
test_verify
:
@
echo
"The following command should have some OK's and some failures"
@
echo
"There are definitly a few expired certificates"
../util/shlib_wrap.sh ../apps/openssl verify
-CApath
../certs
../certs
/
*
.pem
../util/shlib_wrap.sh ../apps/openssl verify
-CApath
../certs
/demo ../certs/demo
/
*
.pem
test_dh
:
@
echo
"Generate a set of DH parameters"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录