Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
ba1c6022
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ba1c6022
编写于
10月 25, 2001
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Assume TLS 1.0 when ClientHello fragment is too short.
上级
cfc781be
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
7 deletion
+21
-7
CHANGES
CHANGES
+9
-0
ssl/s23_srvr.c
ssl/s23_srvr.c
+12
-7
未找到文件。
CHANGES
浏览文件 @
ba1c6022
...
...
@@ -12,6 +12,15 @@
*) applies to 0.9.6a/0.9.6b/0.9.6c and 0.9.7
+) applies to 0.9.7 only
*) Change ssl23_get_client_hello (ssl/s23_srvr.c) behaviour when
faced with a pathologically small ClientHello fragment that does
not contain client_version: Instead of aborting with an error,
simply choose the highest available protocol version (i.e.,
TLS 1.0 unless it is disabled). In practice, ClientHello
messages are never sent like this, but this change gives us
strictly correct behaviour at least for TLS.
[Bodo Moeller]
+) Change all functions with names starting with des_ to be starting
with DES_ instead. This because there are increasing clashes with
libdes and other des libraries that are currently used by other
...
...
ssl/s23_srvr.c
浏览文件 @
ba1c6022
...
...
@@ -232,9 +232,9 @@ int ssl23_accept(SSL *s)
}
}
end:
s
->
in_handshake
--
;
if
(
cb
!=
NULL
)
cb
(
s
,
SSL_CB_ACCEPT_EXIT
,
ret
);
s
->
in_handshake
--
;
return
(
ret
);
}
...
...
@@ -339,17 +339,22 @@ int ssl23_get_client_hello(SSL *s)
/* We must look at client_version inside the Client Hello message
* to get the correct minor version.
* However if we have only a pathologically small fragment of the
* Client Hello message, this would be difficult, we'd have
* to read
at least one additional record
to find out.
*
This doesn't usually happen in real life, so we just complain
*
for now.
*/
* Client Hello message, this would be difficult,
and
we'd have
* to read
more records
to find out.
*
No known SSL 3.0 client fragments ClientHello like this,
*
so we simply assume TLS 1.0 to avoid protocol version downgrade
*
attacks. *
/
if
(
p
[
3
]
==
0
&&
p
[
4
]
<
6
)
{
#if 0
SSLerr(SSL_F_SSL23_GET_CLIENT_HELLO,SSL_R_RECORD_TOO_SMALL);
goto err;
#else
v
[
1
]
=
TLS1_VERSION_MINOR
;
#endif
}
v
[
1
]
=
p
[
10
];
/* minor version according to client_version */
else
v
[
1
]
=
p
[
10
];
/* minor version according to client_version */
if
(
v
[
1
]
>=
TLS1_VERSION_MINOR
)
{
if
(
!
(
s
->
options
&
SSL_OP_NO_TLSv1
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录