Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
6f31dd72
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,发现更多精彩内容 >>
提交
6f31dd72
编写于
11月 24, 2011
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix NPN implementation for renegotiation.
(Problem pointed out by Ben Murphy.) Submitted by: Adam Langley
上级
4521eda7
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
11 addition
and
2 deletion
+11
-2
ssl/s3_clnt.c
ssl/s3_clnt.c
+1
-1
ssl/t1_lib.c
ssl/t1_lib.c
+10
-1
未找到文件。
ssl/s3_clnt.c
浏览文件 @
6f31dd72
...
@@ -465,7 +465,7 @@ int ssl3_connect(SSL *s)
...
@@ -465,7 +465,7 @@ int ssl3_connect(SSL *s)
#if defined(OPENSSL_NO_TLSEXT) || defined(OPENSSL_NO_NEXTPROTONEG)
#if defined(OPENSSL_NO_TLSEXT) || defined(OPENSSL_NO_NEXTPROTONEG)
s
->
state
=
SSL3_ST_CW_FINISHED_A
;
s
->
state
=
SSL3_ST_CW_FINISHED_A
;
#else
#else
if
(
s
->
next_proto_negotiated
)
if
(
s
->
s3
->
next_proto_neg_seen
)
s
->
state
=
SSL3_ST_CW_NEXT_PROTO_A
;
s
->
state
=
SSL3_ST_CW_NEXT_PROTO_A
;
else
else
s
->
state
=
SSL3_ST_CW_FINISHED_A
;
s
->
state
=
SSL3_ST_CW_FINISHED_A
;
...
...
ssl/t1_lib.c
浏览文件 @
6f31dd72
...
@@ -836,6 +836,9 @@ int ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
...
@@ -836,6 +836,9 @@ int ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
s
->
servername_done
=
0
;
s
->
servername_done
=
0
;
s
->
tlsext_status_type
=
-
1
;
s
->
tlsext_status_type
=
-
1
;
#ifndef OPENSSL_NO_NEXTPROTONEG
s
->
s3
->
next_proto_neg_seen
=
0
;
#endif
if
(
data
>=
(
d
+
n
-
2
))
if
(
data
>=
(
d
+
n
-
2
))
goto
ri_check
;
goto
ri_check
;
...
@@ -1305,6 +1308,10 @@ int ssl_parse_serverhello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
...
@@ -1305,6 +1308,10 @@ int ssl_parse_serverhello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
int
tlsext_servername
=
0
;
int
tlsext_servername
=
0
;
int
renegotiate_seen
=
0
;
int
renegotiate_seen
=
0
;
#ifndef OPENSSL_NO_NEXTPROTONEG
s
->
s3
->
next_proto_neg_seen
=
0
;
#endif
if
(
data
>=
(
d
+
n
-
2
))
if
(
data
>=
(
d
+
n
-
2
))
goto
ri_check
;
goto
ri_check
;
...
@@ -1431,7 +1438,8 @@ int ssl_parse_serverhello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
...
@@ -1431,7 +1438,8 @@ int ssl_parse_serverhello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
s
->
tlsext_status_expected
=
1
;
s
->
tlsext_status_expected
=
1
;
}
}
#ifndef OPENSSL_NO_NEXTPROTONEG
#ifndef OPENSSL_NO_NEXTPROTONEG
else
if
(
type
==
TLSEXT_TYPE_next_proto_neg
)
else
if
(
type
==
TLSEXT_TYPE_next_proto_neg
&&
s
->
s3
->
tmp
.
finish_md_len
==
0
)
{
{
unsigned
char
*
selected
;
unsigned
char
*
selected
;
unsigned
char
selected_len
;
unsigned
char
selected_len
;
...
@@ -1461,6 +1469,7 @@ int ssl_parse_serverhello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
...
@@ -1461,6 +1469,7 @@ int ssl_parse_serverhello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
}
}
memcpy
(
s
->
next_proto_negotiated
,
selected
,
selected_len
);
memcpy
(
s
->
next_proto_negotiated
,
selected
,
selected_len
);
s
->
next_proto_negotiated_len
=
selected_len
;
s
->
next_proto_negotiated_len
=
selected_len
;
s
->
s3
->
next_proto_neg_seen
=
1
;
}
}
#endif
#endif
else
if
(
type
==
TLSEXT_TYPE_renegotiate
)
else
if
(
type
==
TLSEXT_TYPE_renegotiate
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录