Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
ba8e2824
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看板
提交
ba8e2824
编写于
24年前
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix to stop X509_time_adj() using GeneralizedTime.
上级
bfcec27d
无相关合并请求
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
3 deletion
+14
-3
CHANGES
CHANGES
+9
-0
crypto/x509/x509_vfy.c
crypto/x509/x509_vfy.c
+5
-3
未找到文件。
CHANGES
浏览文件 @
ba8e2824
...
...
@@ -3,6 +3,15 @@
Changes between 0.9.6 and 0.9.7 [xx XXX 2000]
*) Make X509_time_adj() cope with the new behaviour of ASN1_TIME_new().
Previously it initialised the 'type' argument to V_ASN1_UTCTIME which
effectively meant GeneralizedTime would never be used. Now it
is initialised to -1 but X509_time_adj() now has to check the value
and use ASN1_TIME_set() if the value is not V_ASN1_UTCTIME or
V_ASN1_GENERALIZEDTIME, without this it always uses GeneralizedTime.
[Steve Henson, reported by Kenneth R. Robinette
<support@securenetterm.com>]
*) Fixes to BN_to_ASN1_INTEGER when bn is zero. This would previously
result in a zero length in the ASN1_INTEGER structure which was
not consistent with the structure when d2i_ASN1_INTEGER() was used
...
...
This diff is collapsed.
Click to expand it.
crypto/x509/x509_vfy.c
浏览文件 @
ba8e2824
...
...
@@ -645,14 +645,16 @@ ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj)
ASN1_TIME
*
X509_time_adj
(
ASN1_TIME
*
s
,
long
adj
,
time_t
*
in_tm
)
{
time_t
t
;
int
type
=
-
1
;
if
(
in_tm
)
t
=
*
in_tm
;
else
time
(
&
t
);
t
+=
adj
;
if
(
!
s
)
return
ASN1_TIME_set
(
s
,
t
);
if
(
s
->
type
==
V_ASN1_UTCTIME
)
return
ASN1_UTCTIME_set
(
s
,
t
);
return
ASN1_GENERALIZEDTIME_set
(
s
,
t
);
if
(
s
)
type
=
s
->
type
;
if
(
type
==
V_ASN1_UTCTIME
)
return
ASN1_UTCTIME_set
(
s
,
t
);
if
(
type
==
V_ASN1_GENERALIZEDTIME
)
return
ASN1_GENERALIZEDTIME_set
(
s
,
t
);
return
ASN1_TIME_set
(
s
,
t
);
}
int
X509_get_pubkey_parameters
(
EVP_PKEY
*
pkey
,
STACK_OF
(
X509
)
*
chain
)
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部