Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
16363c01
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
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看板
提交
16363c01
编写于
12月 10, 2011
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
implement -attime option as a verify parameter then it works with all relevant applications
上级
7ffa48ad
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
24 addition
and
0 deletion
+24
-0
apps/apps.c
apps/apps.c
+24
-0
未找到文件。
apps/apps.c
浏览文件 @
16363c01
...
...
@@ -2257,6 +2257,7 @@ int args_verify(char ***pargs, int *pargc,
char
**
oldargs
=
*
pargs
;
char
*
arg
=
**
pargs
,
*
argn
=
(
*
pargs
)[
1
];
const
X509_VERIFY_PARAM
*
vpm
=
NULL
;
time_t
at_time
=
0
;
if
(
!
strcmp
(
arg
,
"-policy"
))
{
if
(
!
argn
)
...
...
@@ -2324,6 +2325,26 @@ int args_verify(char ***pargs, int *pargc,
}
(
*
pargs
)
++
;
}
else
if
(
strcmp
(
arg
,
"-attime"
)
==
0
)
{
if
(
!
argn
)
*
badarg
=
1
;
else
{
long
timestamp
;
/* interpret argument as seconds since Epoch */
if
(
sscanf
(
argn
,
"%li"
,
&
timestamp
)
!=
1
)
{
BIO_printf
(
bio_err
,
"Error parsing timestamp %s
\n
"
,
argn
);
*
badarg
=
1
;
}
/* on some platforms time_t may be a float */
at_time
=
(
time_t
)
timestamp
;
}
(
*
pargs
)
++
;
}
else
if
(
!
strcmp
(
arg
,
"-ignore_critical"
))
flags
|=
X509_V_FLAG_IGNORE_CRITICAL
;
else
if
(
!
strcmp
(
arg
,
"-issuer_checks"
))
...
...
@@ -2383,6 +2404,9 @@ int args_verify(char ***pargs, int *pargc,
if
(
depth
>=
0
)
X509_VERIFY_PARAM_set_depth
(
*
pm
,
depth
);
if
(
at_time
)
X509_VERIFY_PARAM_set_time
(
*
pm
,
at_time
);
end:
(
*
pargs
)
++
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录