Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
a5ecdc6a
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,发现更多精彩内容 >>
提交
a5ecdc6a
编写于
12月 12, 2015
作者:
K
Kurt Roeckx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use OPENSSL_NO_DTLS instead of OPENSSL_NO_DTLS1
Reviewed-by:
N
Richard Levitte
<
levitte@openssl.org
>
上级
8ca8fc48
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
20 deletion
+14
-20
Configure
Configure
+1
-1
apps/openssl.c
apps/openssl.c
+2
-2
apps/s_client.c
apps/s_client.c
+2
-2
apps/s_server.c
apps/s_server.c
+9
-15
未找到文件。
Configure
浏览文件 @
a5ecdc6a
...
...
@@ -823,7 +823,7 @@ my @disablables = (
"
dh
",
"
dsa
",
"
dso
",
"
dtls
1?
",
"
dtls
",
"
dynamic[-_]engine
",
"
ec
",
"
ec2m
",
...
...
apps/openssl.c
浏览文件 @
a5ecdc6a
...
...
@@ -761,8 +761,8 @@ static void list_disabled(void)
#ifdef OPENSSL_NO_DSA
BIO_puts
(
bio_out
,
"DSA
\n
"
);
#endif
#if defined(OPENSSL_NO_DTLS
1) || defined(OPENSSL_NO_DTLS
)
BIO_puts
(
bio_out
,
"DTLS
1
\n
"
);
#if defined(OPENSSL_NO_DTLS)
BIO_puts
(
bio_out
,
"DTLS
\n
"
);
#endif
#ifdef OPENSSL_NO_EC
BIO_puts
(
bio_out
,
"EC
\n
"
);
...
...
apps/s_client.c
浏览文件 @
a5ecdc6a
...
...
@@ -567,7 +567,7 @@ OPTIONS s_client_options[] = {
#ifndef OPENSSL_NO_SSL3
{
"ssl3"
,
OPT_SSL3
,
'-'
,
"Just use SSLv3"
},
#endif
#ifndef OPENSSL_NO_DTLS
1
#ifndef OPENSSL_NO_DTLS
{
"dtls"
,
OPT_DTLS
,
'-'
},
{
"dtls1"
,
OPT_DTLS1
,
'-'
,
"Just use DTLSv1"
},
{
"dtls1_2"
,
OPT_DTLS1_2
,
'-'
},
...
...
@@ -954,7 +954,7 @@ int s_client_main(int argc, char **argv)
case
OPT_TLS1
:
meth
=
TLSv1_client_method
();
break
;
#ifndef OPENSSL_NO_DTLS
1
#ifndef OPENSSL_NO_DTLS
case
OPT_DTLS
:
meth
=
DTLS_client_method
();
socket_type
=
SOCK_DGRAM
;
...
...
apps/s_server.c
浏览文件 @
a5ecdc6a
...
...
@@ -259,7 +259,7 @@ static const char *session_id_prefix = NULL;
static
int
enable_timeouts
=
0
;
static
long
socket_mtu
;
#ifndef OPENSSL_NO_DTLS
1
#ifndef OPENSSL_NO_DTLS
static
int
cert_chain
=
0
;
#endif
static
int
dtlslisten
=
0
;
...
...
@@ -936,7 +936,7 @@ OPTIONS s_server_options[] = {
#ifndef OPENSSL_NO_SSL3
{
"ssl3"
,
OPT_SSL3
,
'-'
,
"Just talk SSLv3"
},
#endif
#ifndef OPENSSL_NO_DTLS
1
#ifndef OPENSSL_NO_DTLS
{
"dtls"
,
OPT_DTLS
,
'-'
},
{
"dtls1"
,
OPT_DTLS1
,
'-'
,
"Just talk DTLSv1"
},
{
"dtls1_2"
,
OPT_DTLS1_2
,
'-'
,
"Just talk DTLSv1.2"
},
...
...
@@ -1044,13 +1044,14 @@ int s_server_main(int argc, char *argv[])
case
OPT_PSK_HINT
:
case
OPT_PSK
:
#endif
#ifdef OPENSSL_NO_DTLS
1
#ifdef OPENSSL_NO_DTLS
case
OPT_DTLS
:
case
OPT_DTLS1
:
case
OPT_DTLS1_2
:
case
OPT_TIMEOUT
:
case
OPT_MTU
:
case
OPT_CHAIN
:
case
OPT_LISTEN
:
#endif
case
OPT_EOF
:
case
OPT_ERR
:
...
...
@@ -1355,7 +1356,7 @@ int s_server_main(int argc, char *argv[])
case
OPT_TLS1
:
meth
=
TLSv1_server_method
();
break
;
#ifndef OPENSSL_NO_DTLS
1
#ifndef OPENSSL_NO_DTLS
case
OPT_DTLS
:
meth
=
DTLS_server_method
();
socket_type
=
SOCK_DGRAM
;
...
...
@@ -1380,15 +1381,6 @@ int s_server_main(int argc, char *argv[])
case
OPT_LISTEN
:
dtlslisten
=
1
;
break
;
#else
case
OPT_DTLS
:
case
OPT_DTLS1
:
case
OPT_DTLS1_2
:
case
OPT_TIMEOUT
:
case
OPT_MTU
:
case
OPT_CHAIN
:
case
OPT_LISTEN
:
break
;
#endif
case
OPT_ID_PREFIX
:
session_id_prefix
=
opt_arg
();
...
...
@@ -1444,7 +1436,7 @@ int s_server_main(int argc, char *argv[])
argc
=
opt_num_rest
();
argv
=
opt_rest
();
#ifndef OPENSSL_NO_DTLS
1
#ifndef OPENSSL_NO_DTLS
if
(
www
&&
socket_type
==
SOCK_DGRAM
)
{
BIO_printf
(
bio_err
,
"Can't use -HTTP, -www or -WWW with DTLS
\n
"
);
goto
end
;
...
...
@@ -2419,9 +2411,11 @@ static int init_ssl_connection(SSL *con)
unsigned
next_proto_neg_len
;
#endif
unsigned
char
*
exportedkeymat
;
#ifndef OPENSSL_NO_DTLS
struct
sockaddr_storage
client
;
#endif
#ifndef OPENSSL_NO_DTLS
1
#ifndef OPENSSL_NO_DTLS
if
(
dtlslisten
)
{
i
=
DTLSv1_listen
(
con
,
&
client
);
if
(
i
>
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录