Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
13e4670c
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看板
提交
13e4670c
编写于
10月 01, 2005
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
new option "openssl ciphers -V"
上级
d08b6b44
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
41 addition
and
10 deletion
+41
-10
CHANGES
CHANGES
+4
-0
apps/ciphers.c
apps/ciphers.c
+27
-6
doc/apps/ciphers.pod
doc/apps/ciphers.pod
+10
-4
未找到文件。
CHANGES
浏览文件 @
13e4670c
...
...
@@ -4,6 +4,10 @@
Changes between 0.9.8a and 0.9.9 [xx XXX xxxx]
*) New option -V for 'openssl ciphers'. This prints the ciphersuite code
in addition to the text details.
[Bodo Moeller]
*) Very, very preliminary EXPERIMENTAL support for printing of general
ASN1 structures. This currently produces rather ugly output and doesn't
handle several customised structures at all.
...
...
apps/ciphers.c
浏览文件 @
13e4670c
...
...
@@ -71,7 +71,8 @@
static
const
char
*
ciphers_usage
[]
=
{
"usage: ciphers args
\n
"
,
" -v - verbose mode, a textual listing of the ciphers in SSLeay
\n
"
,
" -v - verbose mode, a textual listing of the SSL/TLS ciphers in OpenSSL
\n
"
,
" -V - even more verbose
\n
"
,
" -ssl2 - SSL2 mode
\n
"
,
" -ssl3 - SSL3 mode
\n
"
,
" -tls1 - TLS1 mode
\n
"
,
...
...
@@ -83,7 +84,7 @@ int MAIN(int, char **);
int
MAIN
(
int
argc
,
char
**
argv
)
{
int
ret
=
1
,
i
;
int
verbose
=
0
;
int
verbose
=
0
,
Verbose
=
0
;
const
char
**
pp
;
const
char
*
p
;
int
badops
=
0
;
...
...
@@ -121,6 +122,8 @@ int MAIN(int argc, char **argv)
{
if
(
strcmp
(
*
argv
,
"-v"
)
==
0
)
verbose
=
1
;
else
if
(
strcmp
(
*
argv
,
"-V"
)
==
0
)
verbose
=
Verbose
=
1
;
#ifndef OPENSSL_NO_SSL2
else
if
(
strcmp
(
*
argv
,
"-ssl2"
)
==
0
)
meth
=
SSLv2_client_method
();
...
...
@@ -179,15 +182,33 @@ int MAIN(int argc, char **argv)
}
BIO_printf
(
STDout
,
"
\n
"
);
}
else
else
/* verbose */
{
sk
=
SSL_get_ciphers
(
ssl
);
for
(
i
=
0
;
i
<
sk_SSL_CIPHER_num
(
sk
);
i
++
)
{
BIO_puts
(
STDout
,
SSL_CIPHER_description
(
sk_SSL_CIPHER_value
(
sk
,
i
),
buf
,
sizeof
buf
));
SSL_CIPHER
*
c
;
c
=
sk_SSL_CIPHER_value
(
sk
,
i
);
if
(
Verbose
)
{
unsigned
long
id
=
c
->
id
;
int
id0
=
(
int
)(
id
>>
24
);
int
id1
=
(
int
)((
id
>>
16
)
&
0xffL
);
int
id2
=
(
int
)((
id
>>
8
)
&
0xffL
);
int
id3
=
(
int
)(
i
&
0xffL
);
if
((
id
&
0xff000000L
)
==
0x02000000L
)
BIO_printf
(
STDout
,
" 0x%02X,0x%02X,0x%02X - "
,
id1
,
id2
,
id3
);
/* SSL2 cipher */
else
if
((
id
&
0xff000000L
)
==
0x03000000L
)
BIO_printf
(
STDout
,
" 0x%02X,0x%02X - "
,
id2
,
id3
);
/* SSL3 cipher */
else
BIO_printf
(
STDout
,
"0x%02X,0x%02X,0x%02X,0x%02X - "
,
id0
,
id1
,
id2
,
id3
);
/* whatever */
}
BIO_puts
(
STDout
,
SSL_CIPHER_description
(
c
,
buf
,
sizeof
buf
));
}
}
...
...
doc/apps/ciphers.pod
浏览文件 @
13e4670c
...
...
@@ -8,6 +8,7 @@ ciphers - SSL cipher display and cipher list tool.
B<openssl> B<ciphers>
[B<-v>]
[B<-V>]
[B<-ssl2>]
[B<-ssl3>]
[B<-tls1>]
...
...
@@ -15,7 +16,7 @@ B<openssl> B<ciphers>
=head1 DESCRIPTION
The B<cipher
list> command converts
OpenSSL cipher lists into ordered
The B<cipher
s> command converts textual
OpenSSL cipher lists into ordered
SSL cipher preference lists. It can be used as a test tool to determine
the appropriate cipherlist.
...
...
@@ -25,7 +26,7 @@ the appropriate cipherlist.
=item B<-v>
v
erbose option. List ciphers with a complete description of
V
erbose option. List ciphers with a complete description of
protocol version (SSLv2 or SSLv3; the latter includes TLS), key exchange,
authentication, encryption and mac algorithms used along with any key size
restrictions and whether the algorithm is classed as an "export" cipher.
...
...
@@ -33,6 +34,10 @@ Note that without the B<-v> option, ciphers may seem to appear twice
in a cipher list; this is when similar ciphers are available for
SSL v2 and for SSL v3/TLS v1.
=item B<-V>
Like B<-V>, but include cipher suite codes in output (hex format).
=item B<-ssl3>
only include SSL v3 ciphers.
...
...
@@ -388,7 +393,8 @@ L<s_client(1)|s_client(1)>, L<s_server(1)|s_server(1)>, L<ssl(3)|ssl(3)>
=head1 HISTORY
The B<COMPLENTOFALL> and B<COMPLEMENTOFDEFAULT> selection options were
added in version 0.9.7.
The B<COMPLENTOFALL> and B<COMPLEMENTOFDEFAULT> selection options
for cipherlist strings were added in OpenSSL 0.9.7.
The B<-V> option for the B<ciphers> command was added in OpenSSL 0.9.9.
=cut
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录