Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
c44f7540
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看板
提交
c44f7540
编写于
1月 05, 2000
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Slight code cleanup for handling finished labels.
上级
023f7700
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
18 deletion
+17
-18
ssl/s3_both.c
ssl/s3_both.c
+1
-2
ssl/s3_clnt.c
ssl/s3_clnt.c
+2
-2
ssl/s3_pkt.c
ssl/s3_pkt.c
+5
-5
ssl/s3_srvr.c
ssl/s3_srvr.c
+2
-2
ssl/ssl3.h
ssl/ssl3.h
+2
-2
ssl/ssl_locl.h
ssl/ssl_locl.h
+5
-5
未找到文件。
ssl/s3_both.c
浏览文件 @
c44f7540
...
...
@@ -64,8 +64,7 @@
#include <openssl/x509.h>
#include "ssl_locl.h"
int
ssl3_send_finished
(
SSL
*
s
,
int
a
,
int
b
,
unsigned
char
*
sender
,
int
slen
)
int
ssl3_send_finished
(
SSL
*
s
,
int
a
,
int
b
,
const
char
*
sender
,
int
slen
)
{
unsigned
char
*
p
,
*
d
;
int
i
;
...
...
ssl/s3_clnt.c
浏览文件 @
c44f7540
...
...
@@ -325,8 +325,8 @@ int ssl3_connect(SSL *s)
case
SSL3_ST_CW_FINISHED_B
:
ret
=
ssl3_send_finished
(
s
,
SSL3_ST_CW_FINISHED_A
,
SSL3_ST_CW_FINISHED_B
,
s
->
method
->
ssl3_enc
->
client_finished
,
s
->
method
->
ssl3_enc
->
client_finished_len
);
s
->
method
->
ssl3_enc
->
client_finished
_label
,
s
->
method
->
ssl3_enc
->
client_finished_l
abel_l
en
);
if
(
ret
<=
0
)
goto
end
;
s
->
state
=
SSL3_ST_CW_FLUSH
;
...
...
ssl/s3_pkt.c
浏览文件 @
c44f7540
...
...
@@ -935,7 +935,7 @@ err:
static
int
do_change_cipher_spec
(
SSL
*
s
)
{
int
i
;
unsigned
char
*
sender
;
const
char
*
sender
;
int
slen
;
if
(
s
->
state
&
SSL_ST_ACCEPT
)
...
...
@@ -957,13 +957,13 @@ static int do_change_cipher_spec(SSL *s)
* the finished message */
if
(
s
->
state
&
SSL_ST_CONNECT
)
{
sender
=
s
->
method
->
ssl3_enc
->
server_finished
;
slen
=
s
->
method
->
ssl3_enc
->
server_finished_len
;
sender
=
s
->
method
->
ssl3_enc
->
server_finished
_label
;
slen
=
s
->
method
->
ssl3_enc
->
server_finished_l
abel_l
en
;
}
else
{
sender
=
s
->
method
->
ssl3_enc
->
client_finished
;
slen
=
s
->
method
->
ssl3_enc
->
client_finished_len
;
sender
=
s
->
method
->
ssl3_enc
->
client_finished
_label
;
slen
=
s
->
method
->
ssl3_enc
->
client_finished_l
abel_l
en
;
}
s
->
method
->
ssl3_enc
->
final_finish_mac
(
s
,
...
...
ssl/s3_srvr.c
浏览文件 @
c44f7540
...
...
@@ -425,8 +425,8 @@ int ssl3_accept(SSL *s)
case
SSL3_ST_SW_FINISHED_B
:
ret
=
ssl3_send_finished
(
s
,
SSL3_ST_SW_FINISHED_A
,
SSL3_ST_SW_FINISHED_B
,
s
->
method
->
ssl3_enc
->
server_finished
,
s
->
method
->
ssl3_enc
->
server_finished_len
);
s
->
method
->
ssl3_enc
->
server_finished
_label
,
s
->
method
->
ssl3_enc
->
server_finished_l
abel_l
en
);
if
(
ret
<=
0
)
goto
end
;
s
->
state
=
SSL3_ST_SW_FLUSH
;
if
(
s
->
hit
)
...
...
ssl/ssl3.h
浏览文件 @
c44f7540
...
...
@@ -174,8 +174,8 @@ extern "C" {
#define SSL3_RS_PART_READ 4
#define SSL3_RS_PART_WRITE 5
#define SSL3_MD_CLIENT_FINISHED_CONST
{0x43,0x4C,0x4E,0x54}
#define SSL3_MD_SERVER_FINISHED_CONST
{0x53,0x52,0x56,0x52}
#define SSL3_MD_CLIENT_FINISHED_CONST
"\x43\x4C\x4E\x54"
#define SSL3_MD_SERVER_FINISHED_CONST
"\x53\x52\x56\x52"
#define SSL3_VERSION 0x0300
#define SSL3_VERSION_MAJOR 0x03
...
...
ssl/ssl_locl.h
浏览文件 @
c44f7540
...
...
@@ -330,10 +330,10 @@ typedef struct ssl3_enc_method
int
(
*
final_finish_mac
)();
int
finish_mac_length
;
int
(
*
cert_verify_mac
)();
unsigned
char
client_finished
[
20
]
;
int
client_finished_len
;
unsigned
char
server_finished
[
20
]
;
int
server_finished_len
;
const
char
*
client_finished_label
;
int
client_finished_l
abel_l
en
;
const
char
*
server_finished_label
;
int
server_finished_l
abel_l
en
;
int
(
*
alert_value
)();
}
SSL3_ENC_METHOD
;
...
...
@@ -433,7 +433,7 @@ int ssl3_generate_master_secret(SSL *s, unsigned char *out,
unsigned
char
*
p
,
int
len
);
int
ssl3_get_req_cert_type
(
SSL
*
s
,
unsigned
char
*
p
);
long
ssl3_get_message
(
SSL
*
s
,
int
st1
,
int
stn
,
int
mt
,
long
max
,
int
*
ok
);
int
ssl3_send_finished
(
SSL
*
s
,
int
a
,
int
b
,
unsigned
char
*
sender
,
int
slen
);
int
ssl3_send_finished
(
SSL
*
s
,
int
a
,
int
b
,
const
char
*
sender
,
int
slen
);
int
ssl3_num_ciphers
(
void
);
SSL_CIPHER
*
ssl3_get_cipher
(
unsigned
int
u
);
int
ssl3_renegotiate
(
SSL
*
ssl
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录