Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
e7ecc7d4
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看板
提交
e7ecc7d4
编写于
2月 21, 2000
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move ssl3_do_write from s3_pkt.c to s3_both.c.
上级
8bd5b794
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
20 deletion
+20
-20
ssl/s3_both.c
ssl/s3_both.c
+20
-0
ssl/s3_pkt.c
ssl/s3_pkt.c
+0
-20
未找到文件。
ssl/s3_both.c
浏览文件 @
e7ecc7d4
...
...
@@ -65,6 +65,26 @@
#include <openssl/x509.h>
#include "ssl_locl.h"
/* send s->init_buf in records of type 'type' */
int
ssl3_do_write
(
SSL
*
s
,
int
type
)
{
int
ret
;
ret
=
ssl3_write_bytes
(
s
,
type
,
&
s
->
init_buf
->
data
[
s
->
init_off
],
s
->
init_num
);
if
(
ret
<
0
)
return
(
-
1
);
if
(
type
==
SSL3_RT_HANDSHAKE
)
/* should not be done for 'Hello Request's, but in that case
* we'll ignore the result anyway */
ssl3_finish_mac
(
s
,
&
s
->
init_buf
->
data
[
s
->
init_off
],
ret
);
if
(
ret
==
s
->
init_num
)
return
(
1
);
s
->
init_off
+=
ret
;
s
->
init_num
-=
ret
;
return
(
0
);
}
int
ssl3_send_finished
(
SSL
*
s
,
int
a
,
int
b
,
const
char
*
sender
,
int
slen
)
{
unsigned
char
*
p
,
*
d
;
...
...
ssl/s3_pkt.c
浏览文件 @
e7ecc7d4
...
...
@@ -1117,26 +1117,6 @@ static int do_change_cipher_spec(SSL *s)
return
(
1
);
}
/* send s->init_buf in records of type 'type' */
int
ssl3_do_write
(
SSL
*
s
,
int
type
)
{
int
ret
;
ret
=
ssl3_write_bytes
(
s
,
type
,
&
s
->
init_buf
->
data
[
s
->
init_off
],
s
->
init_num
);
if
(
ret
<
0
)
return
(
-
1
);
if
(
type
==
SSL3_RT_HANDSHAKE
)
/* should not be done for 'Hello Request's, but in that case
* we'll ignore the result anyway */
ssl3_finish_mac
(
s
,
&
s
->
init_buf
->
data
[
s
->
init_off
],
ret
);
if
(
ret
==
s
->
init_num
)
return
(
1
);
s
->
init_off
+=
ret
;
s
->
init_num
-=
ret
;
return
(
0
);
}
void
ssl3_send_alert
(
SSL
*
s
,
int
level
,
int
desc
)
{
/* Map tls/ssl alert value to correct one */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录