Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
bd2e3a95
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,发现更多精彩内容 >>
提交
bd2e3a95
编写于
2月 02, 2015
作者:
M
Matt Caswell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Introduce macro RECORD_LAYER_setup_comp_buffer
Reviewed-by:
N
Richard Levitte
<
levitte@openssl.org
>
上级
75d40c93
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
7 addition
and
7 deletion
+7
-7
ssl/record/rec_layer.h
ssl/record/rec_layer.h
+1
-0
ssl/record/ssl3_record.c
ssl/record/ssl3_record.c
+3
-2
ssl/record/ssl3_record.h
ssl/record/ssl3_record.h
+1
-1
ssl/s3_enc.c
ssl/s3_enc.c
+1
-2
ssl/t1_enc.c
ssl/t1_enc.c
+1
-2
未找到文件。
ssl/record/rec_layer.h
浏览文件 @
bd2e3a95
...
@@ -164,6 +164,7 @@ typedef struct record_layer_st {
...
@@ -164,6 +164,7 @@ typedef struct record_layer_st {
#define RECORD_LAYER_get_wbuf(rl) (&(rl)->wbuf)
#define RECORD_LAYER_get_wbuf(rl) (&(rl)->wbuf)
#define RECORD_LAYER_get_rrec(rl) (&(rl)->rrec)
#define RECORD_LAYER_get_rrec(rl) (&(rl)->rrec)
#define RECORD_LAYER_get_wrec(rl) (&(rl)->wrec)
#define RECORD_LAYER_get_wrec(rl) (&(rl)->wrec)
#define RECORD_LAYER_setup_comp_buffer(rl) (SSL3_RECORD_setup(&(rl)->rrec))
void
RECORD_LAYER_init
(
RECORD_LAYER
*
rl
,
SSL
*
s
);
void
RECORD_LAYER_init
(
RECORD_LAYER
*
rl
,
SSL
*
s
);
void
RECORD_LAYER_clear
(
RECORD_LAYER
*
rl
);
void
RECORD_LAYER_clear
(
RECORD_LAYER
*
rl
);
...
...
ssl/record/ssl3_record.c
浏览文件 @
bd2e3a95
...
@@ -143,10 +143,11 @@ void SSL3_RECORD_release(SSL3_RECORD *r)
...
@@ -143,10 +143,11 @@ void SSL3_RECORD_release(SSL3_RECORD *r)
r
->
comp
=
NULL
;
r
->
comp
=
NULL
;
}
}
int
SSL3_RECORD_setup
(
SSL3_RECORD
*
r
,
size_t
len
)
int
SSL3_RECORD_setup
(
SSL3_RECORD
*
r
)
{
{
if
(
r
->
comp
==
NULL
)
if
(
r
->
comp
==
NULL
)
r
->
comp
=
(
unsigned
char
*
)
OPENSSL_malloc
(
len
);
r
->
comp
=
(
unsigned
char
*
)
OPENSSL_malloc
(
SSL3_RT_MAX_ENCRYPTED_LENGTH
);
if
(
r
->
comp
==
NULL
)
if
(
r
->
comp
==
NULL
)
return
0
;
return
0
;
return
1
;
return
1
;
...
...
ssl/record/ssl3_record.h
浏览文件 @
bd2e3a95
...
@@ -158,7 +158,7 @@ typedef struct ssl3_record_st {
...
@@ -158,7 +158,7 @@ typedef struct ssl3_record_st {
void
SSL3_RECORD_clear
(
SSL3_RECORD
*
r
);
void
SSL3_RECORD_clear
(
SSL3_RECORD
*
r
);
void
SSL3_RECORD_release
(
SSL3_RECORD
*
r
);
void
SSL3_RECORD_release
(
SSL3_RECORD
*
r
);
int
SSL3_RECORD_setup
(
SSL3_RECORD
*
r
,
size_t
len
);
int
SSL3_RECORD_setup
(
SSL3_RECORD
*
r
);
void
SSL3_RECORD_set_seq_num
(
SSL3_RECORD
*
r
,
const
unsigned
char
*
seq_num
);
void
SSL3_RECORD_set_seq_num
(
SSL3_RECORD
*
r
,
const
unsigned
char
*
seq_num
);
int
ssl3_get_record
(
SSL
*
s
);
int
ssl3_get_record
(
SSL
*
s
);
__owur
int
ssl3_do_compress
(
SSL
*
ssl
);
__owur
int
ssl3_do_compress
(
SSL
*
ssl
);
...
...
ssl/s3_enc.c
浏览文件 @
bd2e3a95
...
@@ -270,8 +270,7 @@ int ssl3_change_cipher_state(SSL *s, int which)
...
@@ -270,8 +270,7 @@ int ssl3_change_cipher_state(SSL *s, int which)
SSL_R_COMPRESSION_LIBRARY_ERROR
);
SSL_R_COMPRESSION_LIBRARY_ERROR
);
goto
err2
;
goto
err2
;
}
}
if
(
!
SSL3_RECORD_setup
(
RECORD_LAYER_get_rrec
(
&
s
->
rlayer
),
if
(
!
RECORD_LAYER_setup_comp_buffer
(
&
s
->
rlayer
))
SSL3_RT_MAX_PLAIN_LENGTH
))
goto
err
;
goto
err
;
}
}
#endif
#endif
...
...
ssl/t1_enc.c
浏览文件 @
bd2e3a95
...
@@ -396,8 +396,7 @@ int tls1_change_cipher_state(SSL *s, int which)
...
@@ -396,8 +396,7 @@ int tls1_change_cipher_state(SSL *s, int which)
SSL_R_COMPRESSION_LIBRARY_ERROR
);
SSL_R_COMPRESSION_LIBRARY_ERROR
);
goto
err2
;
goto
err2
;
}
}
if
(
SSL3_RECORD_setup
(
RECORD_LAYER_get_rrec
(
&
s
->
rlayer
),
if
(
!
RECORD_LAYER_setup_comp_buffer
(
&
s
->
rlayer
))
SSL3_RT_MAX_ENCRYPTED_LENGTH
))
goto
err
;
goto
err
;
}
}
#endif
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录