Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
898ea7b8
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看板
提交
898ea7b8
编写于
7月 29, 2015
作者:
K
Kai Engert
提交者:
Rich Salz
7月 31, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
RT3742: Add xmpp_server to s_client.
Reviewed-by:
N
Matt Caswell
<
matt@openssl.org
>
上级
be0c0361
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
5 deletion
+11
-5
apps/s_client.c
apps/s_client.c
+7
-2
doc/apps/s_client.pod
doc/apps/s_client.pod
+4
-3
未找到文件。
apps/s_client.c
浏览文件 @
898ea7b8
...
...
@@ -513,7 +513,8 @@ OPTIONS s_client_options[] = {
{
"tls1"
,
OPT_TLS1
,
'-'
,
"Just use TLSv1"
},
{
"starttls"
,
OPT_STARTTLS
,
's'
,
"Use the STARTTLS command before starting TLS"
},
{
"xmpphost"
,
OPT_XMPPHOST
,
's'
,
"Host to use with
\"
-starttls xmpp
\"
"
},
{
"xmpphost"
,
OPT_XMPPHOST
,
's'
,
"Host to use with
\"
-starttls xmpp[-server]
\"
"
},
{
"rand"
,
OPT_RAND
,
's'
,
"Load the file(s) into the random number generator"
},
{
"sess_out"
,
OPT_SESS_OUT
,
'>'
,
"File to write SSL session to"
},
...
...
@@ -608,6 +609,7 @@ typedef enum PROTOCOL_choice {
PROTO_FTP
,
PROTO_TELNET
,
PROTO_XMPP
,
PROTO_XMPP_SERVER
,
PROTO_CONNECT
}
PROTOCOL_CHOICE
;
...
...
@@ -617,6 +619,7 @@ static OPT_PAIR services[] = {
{
"imap"
,
PROTO_IMAP
},
{
"ftp"
,
PROTO_FTP
},
{
"xmpp"
,
PROTO_XMPP
},
{
"xmpp-server"
,
PROTO_XMPP_SERVER
},
{
"telnet"
,
PROTO_TELNET
},
{
NULL
}
};
...
...
@@ -1548,11 +1551,13 @@ int s_client_main(int argc, char **argv)
}
break
;
case
PROTO_XMPP
:
case
PROTO_XMPP_SERVER
:
{
int
seen
=
0
;
BIO_printf
(
sbio
,
"<stream:stream "
"xmlns:stream='http://etherx.jabber.org/streams' "
"xmlns='jabber:client' to='%s' version='1.0'>"
,
"xmlns='jabber:%s' to='%s' version='1.0'>"
,
starttls_proto
==
PROTO_XMPP
?
"client"
:
"server"
,
xmpphost
?
xmpphost
:
host
);
seen
=
BIO_read
(
sbio
,
mbuf
,
BUFSIZZ
);
mbuf
[
seen
]
=
0
;
...
...
doc/apps/s_client.pod
浏览文件 @
898ea7b8
...
...
@@ -288,12 +288,13 @@ command for more information.
send the protocol-specific message(s) to switch to TLS for communication.
B<protocol> is a keyword for the intended protocol. Currently, the only
supported keywords are "smtp", "pop3", "imap", "ftp" and "xmpp".
supported keywords are "smtp", "pop3", "imap", "ftp", "xmpp",
and "xmpp-server".
=item B<-xmpphost hostname>
This option, when used with "-starttls xmpp"
, specifies the host for the
"to" attribute of the stream element.
This option, when used with "-starttls xmpp"
or "-starttls xmpp-server",
specifies the host for the
"to" attribute of the stream element.
If this option is not specified, then the host specified with "-connect"
will be used.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录