Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
fe78f08d
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,发现更多精彩内容 >>
提交
fe78f08d
编写于
11月 18, 2014
作者:
M
Matt Caswell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add checks to the return value of EVP_Cipher to prevent silent encryption failure.
PR#1767 Reviewed-by:
N
Richard Levitte
<
levitte@openssl.org
>
上级
fc3968a2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
4 deletion
+4
-4
ssl/d1_pkt.c
ssl/d1_pkt.c
+1
-1
ssl/s3_enc.c
ssl/s3_enc.c
+2
-1
ssl/s3_pkt.c
ssl/s3_pkt.c
+1
-2
未找到文件。
ssl/d1_pkt.c
浏览文件 @
fe78f08d
...
...
@@ -1632,7 +1632,7 @@ int do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len,
if
(
eivlen
)
wr
->
length
+=
eivlen
;
s
->
method
->
ssl3_enc
->
enc
(
s
,
1
)
;
if
(
s
->
method
->
ssl3_enc
->
enc
(
s
,
1
)
<
1
)
goto
err
;
/* record length after mac and block padding */
/* if (type == SSL3_RT_APPLICATION_DATA ||
...
...
ssl/s3_enc.c
浏览文件 @
fe78f08d
...
...
@@ -556,7 +556,8 @@ int ssl3_enc(SSL *s, int send)
/* otherwise, rec->length >= bs */
}
EVP_Cipher
(
ds
,
rec
->
data
,
rec
->
input
,
l
);
if
(
EVP_Cipher
(
ds
,
rec
->
data
,
rec
->
input
,
l
)
<
1
)
return
-
1
;
if
(
EVP_MD_CTX_md
(
s
->
read_hash
)
!=
NULL
)
mac_size
=
EVP_MD_CTX_size
(
s
->
read_hash
);
...
...
ssl/s3_pkt.c
浏览文件 @
fe78f08d
...
...
@@ -1118,8 +1118,7 @@ static int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
wr
->
length
+=
eivlen
;
}
/* ssl3_enc can only have an error on read */
s
->
method
->
ssl3_enc
->
enc
(
s
,
1
);
if
(
s
->
method
->
ssl3_enc
->
enc
(
s
,
1
)
<
1
)
goto
err
;
if
(
SSL_USE_ETM
(
s
)
&&
mac_size
!=
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录