Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
6530c490
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看板
提交
6530c490
编写于
11月 23, 2016
作者:
M
Matt Caswell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix some style issues with TLSv1.3 state machine PR
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
f5ca0b04
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
12 deletion
+10
-12
apps/s_server.c
apps/s_server.c
+4
-0
ssl/statem/statem_clnt.c
ssl/statem/statem_clnt.c
+2
-3
ssl/tls13_enc.c
ssl/tls13_enc.c
+3
-5
test/clienthellotest.c
test/clienthellotest.c
+1
-4
未找到文件。
apps/s_server.c
浏览文件 @
6530c490
...
...
@@ -553,6 +553,10 @@ static int get_ocsp_resp_from_responder(SSL *s, tlsextstatusctx *srctx,
err:
ret
=
SSL_TLSEXT_ERR_ALERT_FATAL
;
done:
/*
* If we parsed aia we need to free; otherwise they were copied and we
* don't
*/
if
(
aia
!=
NULL
)
{
OPENSSL_free
(
host
);
OPENSSL_free
(
path
);
...
...
ssl/statem/statem_clnt.c
浏览文件 @
6530c490
...
...
@@ -2190,9 +2190,8 @@ MSG_PROCESS_RETURN tls_process_cert_status(SSL *s, PACKET *pkt)
/*
* Perform miscellaneous checks and processing after we have received the
* server's initial flight. In TLS1.3 this is after the Server Finished message.
* In <=TLS1.2 this is after the ServerDone message.
*
* Returns 1 on success or 0 on failure.
* In <=TLS1.2 this is after the ServerDone message. Returns 1 on success or 0
* on failure.
*/
int
tls_process_initial_server_flight
(
SSL
*
s
,
int
*
al
)
{
...
...
ssl/tls13_enc.c
浏览文件 @
6530c490
...
...
@@ -293,6 +293,7 @@ int tls13_change_cipher_state(SSL *s, int which)
size_t
ivlen
,
keylen
,
finsecretlen
;
const
unsigned
char
*
label
;
size_t
labellen
;
int
ret
=
0
;
if
(
which
&
SSL3_CC_READ
)
{
if
(
s
->
enc_read_ctx
!=
NULL
)
{
...
...
@@ -427,14 +428,11 @@ int tls13_change_cipher_state(SSL *s, int which)
}
#endif
OPENSSL_cleanse
(
secret
,
sizeof
(
secret
));
OPENSSL_cleanse
(
key
,
sizeof
(
key
));
OPENSSL_cleanse
(
iv
,
sizeof
(
iv
));
return
1
;
ret
=
1
;
err:
OPENSSL_cleanse
(
secret
,
sizeof
(
secret
));
OPENSSL_cleanse
(
key
,
sizeof
(
key
));
OPENSSL_cleanse
(
iv
,
sizeof
(
iv
));
return
0
;
return
ret
;
}
test/clienthellotest.c
浏览文件 @
6530c490
...
...
@@ -57,10 +57,7 @@ int main(int argc, char *argv[])
testresult
=
0
;
ctx
=
SSL_CTX_new
(
TLS_method
());
/*
* This test is testing session tickets for <= TLS1.2. It isn't relevant
* for TLS1.3
*/
/* Testing for session tickets <= TLS1.2; not relevant for 1.3 */
if
(
ctx
==
NULL
||
!
SSL_CTX_set_max_proto_version
(
ctx
,
TLS1_2_VERSION
))
goto
end
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录