Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
2869e79f
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看板
提交
2869e79f
编写于
9月 15, 2015
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change X509_VAL in X509 structure to embedded.
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
de17bd5d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
14 deletion
+14
-14
crypto/asn1/x_x509.c
crypto/asn1/x_x509.c
+1
-1
crypto/x509/x509_r2x.c
crypto/x509/x509_r2x.c
+2
-2
crypto/x509/x509_set.c
crypto/x509/x509_set.c
+10
-10
include/openssl/x509.h
include/openssl/x509.h
+1
-1
未找到文件。
crypto/asn1/x_x509.c
浏览文件 @
2869e79f
...
...
@@ -68,7 +68,7 @@ ASN1_SEQUENCE_enc(X509_CINF, enc, 0) = {
ASN1_SIMPLE
(
X509_CINF
,
serialNumber
,
ASN1_INTEGER
),
ASN1_SIMPLE
(
X509_CINF
,
signature
,
X509_ALGOR
),
ASN1_SIMPLE
(
X509_CINF
,
issuer
,
X509_NAME
),
ASN1_
SIMPLE
(
X509_CINF
,
validity
,
X509_VAL
),
ASN1_
EMBED
(
X509_CINF
,
validity
,
X509_VAL
),
ASN1_SIMPLE
(
X509_CINF
,
subject
,
X509_NAME
),
ASN1_SIMPLE
(
X509_CINF
,
key
,
X509_PUBKEY
),
ASN1_IMP_OPT
(
X509_CINF
,
issuerUID
,
ASN1_BIT_STRING
,
1
),
...
...
crypto/x509/x509_r2x.c
浏览文件 @
2869e79f
...
...
@@ -95,9 +95,9 @@ X509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey)
if
(
X509_set_issuer_name
(
ret
,
X509_NAME_dup
(
xn
))
==
0
)
goto
err
;
if
(
X509_gmtime_adj
(
xi
->
validity
->
notBefore
,
0
)
==
NULL
)
if
(
X509_gmtime_adj
(
xi
->
validity
.
notBefore
,
0
)
==
NULL
)
goto
err
;
if
(
X509_gmtime_adj
(
xi
->
validity
->
notAfter
,
(
long
)
60
*
60
*
24
*
days
)
==
if
(
X509_gmtime_adj
(
xi
->
validity
.
notAfter
,
(
long
)
60
*
60
*
24
*
days
)
==
NULL
)
goto
err
;
...
...
crypto/x509/x509_set.c
浏览文件 @
2869e79f
...
...
@@ -114,14 +114,14 @@ int X509_set_notBefore(X509 *x, const ASN1_TIME *tm)
{
ASN1_TIME
*
in
;
if
(
(
x
==
NULL
)
||
(
x
->
cert_info
->
validity
==
NULL
)
)
if
(
x
==
NULL
)
return
(
0
);
in
=
x
->
cert_info
->
validity
->
notBefore
;
in
=
x
->
cert_info
->
validity
.
notBefore
;
if
(
in
!=
tm
)
{
in
=
ASN1_STRING_dup
(
tm
);
if
(
in
!=
NULL
)
{
ASN1_TIME_free
(
x
->
cert_info
->
validity
->
notBefore
);
x
->
cert_info
->
validity
->
notBefore
=
in
;
ASN1_TIME_free
(
x
->
cert_info
->
validity
.
notBefore
);
x
->
cert_info
->
validity
.
notBefore
=
in
;
}
}
return
(
in
!=
NULL
);
...
...
@@ -131,14 +131,14 @@ int X509_set_notAfter(X509 *x, const ASN1_TIME *tm)
{
ASN1_TIME
*
in
;
if
(
(
x
==
NULL
)
||
(
x
->
cert_info
->
validity
==
NULL
)
)
if
(
x
==
NULL
)
return
(
0
);
in
=
x
->
cert_info
->
validity
->
notAfter
;
in
=
x
->
cert_info
->
validity
.
notAfter
;
if
(
in
!=
tm
)
{
in
=
ASN1_STRING_dup
(
tm
);
if
(
in
!=
NULL
)
{
ASN1_TIME_free
(
x
->
cert_info
->
validity
->
notAfter
);
x
->
cert_info
->
validity
->
notAfter
=
in
;
ASN1_TIME_free
(
x
->
cert_info
->
validity
.
notAfter
);
x
->
cert_info
->
validity
.
notAfter
=
in
;
}
}
return
(
in
!=
NULL
);
...
...
@@ -163,12 +163,12 @@ long X509_get_version(X509 *x)
ASN1_TIME
*
X509_get_notBefore
(
X509
*
x
)
{
return
x
->
cert_info
->
validity
->
notBefore
;
return
x
->
cert_info
->
validity
.
notBefore
;
}
ASN1_TIME
*
X509_get_notAfter
(
X509
*
x
)
{
return
x
->
cert_info
->
validity
->
notAfter
;
return
x
->
cert_info
->
validity
.
notAfter
;
}
int
X509_get_signature_type
(
const
X509
*
x
)
...
...
include/openssl/x509.h
浏览文件 @
2869e79f
...
...
@@ -169,7 +169,7 @@ typedef struct x509_cinf_st {
ASN1_INTEGER
*
serialNumber
;
X509_ALGOR
*
signature
;
X509_NAME
*
issuer
;
X509_VAL
*
validity
;
X509_VAL
validity
;
X509_NAME
*
subject
;
X509_PUBKEY
*
key
;
ASN1_BIT_STRING
*
issuerUID
;
/* [ 1 ] optional in v2 */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录