Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
11503177
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
11503177
编写于
2月 26, 2006
作者:
U
Ulf Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TS bugfixes: Do not hardcode message digest algorithms; fix ASN1 decoding.
Submitted by: Zoltan Glozik <zglozik@opentsa.org>
上级
9ab899a6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
15 deletion
+11
-15
apps/ts.c
apps/ts.c
+4
-10
crypto/ts/ts_asn1.c
crypto/ts/ts_asn1.c
+2
-2
doc/apps/ts.pod
doc/apps/ts.pod
+5
-3
未找到文件。
apps/ts.c
浏览文件 @
11503177
...
...
@@ -191,16 +191,6 @@ int MAIN(int argc, char **argv)
if
(
argc
--
<
1
)
goto
usage
;
digest
=
*++
argv
;
}
else
if
(
strcmp
(
*
argv
,
"-md2"
)
==
0
||
strcmp
(
*
argv
,
"-md4"
)
==
0
||
strcmp
(
*
argv
,
"-md5"
)
==
0
||
strcmp
(
*
argv
,
"-sha"
)
==
0
||
strcmp
(
*
argv
,
"-sha1"
)
==
0
||
strcmp
(
*
argv
,
"-mdc2"
)
==
0
||
strcmp
(
*
argv
,
"-ripemd160"
)
==
0
)
{
md
=
EVP_get_digestbyname
(
*
argv
+
1
);
}
else
if
(
strcmp
(
*
argv
,
"-rand"
)
==
0
)
{
if
(
argc
--
<
1
)
goto
usage
;
...
...
@@ -296,6 +286,10 @@ int MAIN(int argc, char **argv)
if
(
argc
--
<
1
)
goto
usage
;
engine
=
*++
argv
;
}
else
if
((
md
=
EVP_get_digestbyname
(
*
argv
+
1
))
!=
NULL
)
{
/* empty. */
}
else
goto
usage
;
}
...
...
crypto/ts/ts_asn1.c
浏览文件 @
11503177
...
...
@@ -89,7 +89,7 @@ ASN1_SEQUENCE(TS_REQ) = {
ASN1_SIMPLE
(
TS_REQ
,
msg_imprint
,
TS_MSG_IMPRINT
),
ASN1_OPT
(
TS_REQ
,
policy_id
,
ASN1_OBJECT
),
ASN1_OPT
(
TS_REQ
,
nonce
,
ASN1_INTEGER
),
ASN1_OPT
(
TS_REQ
,
cert_req
,
ASN1_BOOLEAN
),
ASN1_OPT
(
TS_REQ
,
cert_req
,
ASN1_
F
BOOLEAN
),
ASN1_IMP_SEQUENCE_OF_OPT
(
TS_REQ
,
extensions
,
X509_EXTENSION
,
0
)
}
ASN1_SEQUENCE_END
(
TS_REQ
)
...
...
@@ -134,7 +134,7 @@ ASN1_SEQUENCE(TS_TST_INFO) = {
ASN1_SIMPLE
(
TS_TST_INFO
,
serial
,
ASN1_INTEGER
),
ASN1_SIMPLE
(
TS_TST_INFO
,
time
,
ASN1_GENERALIZEDTIME
),
ASN1_OPT
(
TS_TST_INFO
,
accuracy
,
TS_ACCURACY
),
ASN1_OPT
(
TS_TST_INFO
,
ordering
,
ASN1_BOOLEAN
),
ASN1_OPT
(
TS_TST_INFO
,
ordering
,
ASN1_
F
BOOLEAN
),
ASN1_OPT
(
TS_TST_INFO
,
nonce
,
ASN1_INTEGER
),
ASN1_EXP_OPT
(
TS_TST_INFO
,
tsa
,
GENERAL_NAME
,
0
),
ASN1_IMP_SEQUENCE_OF_OPT
(
TS_TST_INFO
,
extensions
,
X509_EXTENSION
,
1
)
...
...
doc/apps/ts.pod
浏览文件 @
11503177
...
...
@@ -12,7 +12,7 @@ B<-query>
[B<-config> configfile]
[B<-data> file_to_hash]
[B<-digest> digest_bytes]
[B<-md2>|B<-md4>|B<-md5>|B<-sha>|B<-sha1>|B<-mdc2>|B<-ripemd160>]
[B<-md2>|B<-md4>|B<-md5>|B<-sha>|B<-sha1>|B<-mdc2>|B<-ripemd160>
|B<...>
]
[B<-policy> object_id]
[B<-no_nonce>]
[B<-cert>]
...
...
@@ -124,9 +124,11 @@ per byte, the bytes optionally separated by colons (e.g. 1A:F6:01:... or
1AF601...). The number of bytes must match the message digest algorithm
in use. (Optional)
=item B<-md2>|B<-md4>|B<-md5>|B<-sha>|B<-sha1>|B<-mdc2>|B<-ripemd160>
=item B<-md2>|B<-md4>|B<-md5>|B<-sha>|B<-sha1>|B<-mdc2>|B<-ripemd160>
|B<...>
The message digest to apply to the data file. The default is SHA-1. (Optional)
The message digest to apply to the data file, it supports all the message
digest algorithms that are supported by the openssl B<dgst> command.
The default is SHA-1. (Optional)
=item B<-policy> object_id
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录