Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
fc8ee06b
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看板
提交
fc8ee06b
编写于
4月 11, 1999
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Submitted by: Reviewed by: PR:
上级
7c7c8851
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
35 addition
and
9 deletion
+35
-9
CHANGES
CHANGES
+8
-0
apps/openssl.c
apps/openssl.c
+26
-0
test/testenc
test/testenc
+1
-9
未找到文件。
CHANGES
浏览文件 @
fc8ee06b
...
...
@@ -5,6 +5,14 @@
Changes between 0.9.2b and 0.9.3
*) Bugfix: In test/testenc, don't test "openssl <cipher>" for
ciphers that were excluded, e.g. by -DNO_IDEA. Also, test
all available cipers including rc5, which was forgotten until now.
In order to let the testing shell script know which algorithms
are available, a new (up to now undocumented) command
"openssl list-cipher-commands" is used.
[Bodo Moeller]
*) Bugfix: s_client occasionally would sleep in select() when
it should have checked SSL_pending() first.
[Bodo Moeller]
...
...
apps/openssl.c
浏览文件 @
fc8ee06b
...
...
@@ -254,6 +254,10 @@ end:
EXIT
(
ret
);
}
#define LIST_STANDARD_COMMANDS "list-standard-commands"
#define LIST_MESSAGE_DIGEST_COMMANDS "list-message-digest-commands"
#define LIST_CIPHER_COMMANDS "list-cipher-commands"
static
int
do_cmd
(
prog
,
argc
,
argv
)
LHASH
*
prog
;
int
argc
;
...
...
@@ -278,6 +282,28 @@ char *argv[];
ret
=
-
1
;
goto
end
;
}
else
if
((
strcmp
(
argv
[
0
],
LIST_STANDARD_COMMANDS
)
==
0
)
||
(
strcmp
(
argv
[
0
],
LIST_MESSAGE_DIGEST_COMMANDS
)
==
0
)
||
(
strcmp
(
argv
[
0
],
LIST_CIPHER_COMMANDS
)
==
0
))
{
int
list_type
;
BIO
*
bio_stdout
;
if
(
strcmp
(
argv
[
0
],
LIST_STANDARD_COMMANDS
)
==
0
)
list_type
=
FUNC_TYPE_GENERAL
;
else
if
(
strcmp
(
argv
[
0
],
LIST_MESSAGE_DIGEST_COMMANDS
)
==
0
)
list_type
=
FUNC_TYPE_MD
;
else
/* strcmp(argv[0],LIST_CIPHER_COMMANDS) == 0 */
list_type
=
FUNC_TYPE_CIPHER
;
bio_stdout
=
BIO_new_fp
(
stdout
,
BIO_NOCLOSE
);
for
(
fp
=
functions
;
fp
->
name
!=
NULL
;
fp
++
)
if
(
fp
->
type
==
list_type
)
BIO_printf
(
bio_stdout
,
"%s
\n
"
,
fp
->
name
);
BIO_free
(
bio_stdout
);
ret
=
0
;
goto
end
;
}
else
{
BIO_printf
(
bio_err
,
"openssl:Error: '%s' is an invalid command.
\n
"
,
...
...
test/testenc
浏览文件 @
fc8ee06b
...
...
@@ -27,15 +27,7 @@ else
/bin/rm
$test
.cipher
$test
.clear
fi
for
i
in
rc4
\
des-cfb des-ede-cfb des-ede3-cfb
\
des-ofb des-ede-ofb des-ede3-ofb
\
des-ecb des-ede des-ede3 desx
\
des-cbc des-ede-cbc des-ede3-cbc
\
idea-ecb idea-cfb idea-ofb idea-cbc
\
rc2-ecb rc2-cfb rc2-ofb rc2-cbc
\
bf-ecb bf-cfb bf-ofb bf-cbc rc4
\
cast5-ecb cast5-cfb cast5-ofb cast5-cbc
for
i
in
`
$cmd
list-cipher-commands
`
do
echo
$i
$cmd
$i
-bufsize
113
-e
-k
test
<
$test
>
$test
.
$i
.cipher
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录