Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
1064acaf
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看板
提交
1064acaf
编写于
4月 17, 2002
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
check return values
Submitted by: Nils Larsch
上级
ff8e412c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
14 deletion
+18
-14
CHANGES
CHANGES
+3
-0
apps/req.c
apps/req.c
+15
-14
未找到文件。
CHANGES
浏览文件 @
1064acaf
...
...
@@ -1627,6 +1627,9 @@ des-cbc 3624.96k 5258.21k 5530.91k 5624.30k 5628.26k
Changes between 0.9.6c and 0.9.6d [XX xxx 2002]
*) Check various X509_...() return values in apps/req.c.
[Nils Larsch <nla@trustcenter.de>]
*) Fix BASE64 decode (EVP_DecodeUpdate) for data with CR/LF ended lines:
an end-of-file condition would erronously be flagged, when the CRLF
was just at the end of a processed block. The bug was discovered when
...
...
apps/req.c
浏览文件 @
1064acaf
...
...
@@ -310,7 +310,7 @@ int MAIN(int argc, char **argv)
goto
end
;
}
dtmp
=
X509_get_pubkey
(
xtmp
)
;
if
((
dtmp
=
X509_get_pubkey
(
xtmp
))
==
NULL
)
goto
end
;
if
(
dtmp
->
type
==
EVP_PKEY_DSA
)
dsa_params
=
DSAparams_dup
(
dtmp
->
pkey
.
dsa
);
EVP_PKEY_free
(
dtmp
);
...
...
@@ -350,7 +350,7 @@ int MAIN(int argc, char **argv)
goto
end
;
}
dtmp
=
X509_get_pubkey
(
xtmp
)
;
if
((
dtmp
=
X509_get_pubkey
(
xtmp
))
==
NULL
)
goto
end
;
if
(
dtmp
->
type
==
EVP_PKEY_ECDSA
)
ecdsa_params
=
ECDSAParameters_dup
(
dtmp
->
pkey
.
ecdsa
);
EVP_PKEY_free
(
dtmp
);
...
...
@@ -888,19 +888,20 @@ loop:
/* Set version to V3 */
if
(
!
X509_set_version
(
x509ss
,
2
))
goto
end
;
if
(
serial
)
X509_set_serialNumber
(
x509ss
,
serial
);
{
if
(
!
X509_set_serialNumber
(
x509ss
,
serial
))
goto
end
;
}
else
ASN1_INTEGER_set
(
X509_get_serialNumber
(
x509ss
),
0L
);
X509_set_issuer_name
(
x509ss
,
X509_REQ_get_subject_name
(
req
));
X509_gmtime_adj
(
X509_get_notBefore
(
x509ss
),
0
);
X509_gmtime_adj
(
X509_get_notAfter
(
x509ss
),
(
long
)
60
*
60
*
24
*
days
);
X509_set_subject_name
(
x509ss
,
X509_REQ_get_subject_name
(
req
));
{
if
(
!
ASN1_INTEGER_set
(
X509_get_serialNumber
(
x509ss
),
0L
))
goto
end
;
}
if
(
!
X509_set_issuer_name
(
x509ss
,
X509_REQ_get_subject_name
(
req
)))
goto
end
;
if
(
!
X509_gmtime_adj
(
X509_get_notBefore
(
x509ss
),
0
))
goto
end
;
if
(
!
X509_gmtime_adj
(
X509_get_notAfter
(
x509ss
),
(
long
)
60
*
60
*
24
*
days
))
goto
end
;
if
(
!
X509_set_subject_name
(
x509ss
,
X509_REQ_get_subject_name
(
req
)))
goto
end
;
tmppkey
=
X509_REQ_get_pubkey
(
req
);
X509_set_pubkey
(
x509ss
,
tmppkey
)
;
if
(
!
tmppkey
||
!
X509_set_pubkey
(
x509ss
,
tmppkey
))
goto
end
;
EVP_PKEY_free
(
tmppkey
);
/* Set up V3 context struct */
...
...
@@ -1202,7 +1203,7 @@ static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, char *subj, int attribs,
}
if
(
!
i
)
goto
err
;
X509_REQ_set_pubkey
(
req
,
pkey
)
;
if
(
!
X509_REQ_set_pubkey
(
req
,
pkey
))
goto
err
;
ret
=
1
;
err:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录