Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
245206ea
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看板
提交
245206ea
编写于
1月 05, 2000
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use prototypes.
上级
c44f7540
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
17 deletion
+18
-17
ssl/s3_enc.c
ssl/s3_enc.c
+1
-1
ssl/ssl_lib.c
ssl/ssl_lib.c
+6
-5
ssl/ssl_locl.h
ssl/ssl_locl.h
+10
-10
ssl/t1_enc.c
ssl/t1_enc.c
+1
-1
未找到文件。
ssl/s3_enc.c
浏览文件 @
245206ea
...
@@ -412,7 +412,7 @@ int ssl3_cert_verify_mac(SSL *s, EVP_MD_CTX *ctx, unsigned char *p)
...
@@ -412,7 +412,7 @@ int ssl3_cert_verify_mac(SSL *s, EVP_MD_CTX *ctx, unsigned char *p)
}
}
int
ssl3_final_finish_mac
(
SSL
*
s
,
EVP_MD_CTX
*
ctx1
,
EVP_MD_CTX
*
ctx2
,
int
ssl3_final_finish_mac
(
SSL
*
s
,
EVP_MD_CTX
*
ctx1
,
EVP_MD_CTX
*
ctx2
,
unsigned
char
*
sender
,
int
len
,
unsigned
char
*
p
)
const
char
*
sender
,
int
len
,
unsigned
char
*
p
)
{
{
int
ret
;
int
ret
;
...
...
ssl/ssl_lib.c
浏览文件 @
245206ea
...
@@ -72,12 +72,13 @@ static int ssl_meth_num=0;
...
@@ -72,12 +72,13 @@ static int ssl_meth_num=0;
static
int
ssl_ctx_meth_num
=
0
;
static
int
ssl_ctx_meth_num
=
0
;
OPENSSL_GLOBAL
SSL3_ENC_METHOD
ssl3_undef_enc_method
=
{
OPENSSL_GLOBAL
SSL3_ENC_METHOD
ssl3_undef_enc_method
=
{
/* evil casts, but these functions are only called if there's a libraryr bug */
(
int
(
*
)(
SSL
*
,
int
))
ssl_undefined_function
,
(
int
(
*
)(
SSL
*
,
unsigned
char
*
,
int
))
ssl_undefined_function
,
ssl_undefined_function
,
ssl_undefined_function
,
ssl_undefined_function
,
(
int
(
*
)(
SSL
*
,
unsigned
char
*
,
unsigned
char
*
,
int
))
ssl_undefined_function
,
ssl_undefined_function
,
(
int
(
*
)(
SSL
*
,
int
))
ssl_undefined_function
,
ssl_undefined_function
,
(
int
(
*
)(
SSL
*
,
EVP_MD_CTX
*
,
EVP_MD_CTX
*
,
const
char
*
,
int
,
unsigned
char
*
))
ssl_undefined_function
ssl_undefined_function
,
ssl_undefined_function
,
};
};
int
SSL_clear
(
SSL
*
s
)
int
SSL_clear
(
SSL
*
s
)
...
...
ssl/ssl_locl.h
浏览文件 @
245206ea
...
@@ -322,19 +322,19 @@ typedef struct sess_cert_st
...
@@ -322,19 +322,19 @@ typedef struct sess_cert_st
* an opaque strucute :-) */
* an opaque strucute :-) */
typedef
struct
ssl3_enc_method
typedef
struct
ssl3_enc_method
{
{
int
(
*
enc
)();
int
(
*
enc
)(
SSL
*
,
int
);
int
(
*
mac
)();
int
(
*
mac
)(
SSL
*
,
unsigned
char
*
,
int
);
int
(
*
setup_key_block
)();
int
(
*
setup_key_block
)(
SSL
*
);
int
(
*
generate_master_secret
)();
int
(
*
generate_master_secret
)(
SSL
*
,
unsigned
char
*
,
unsigned
char
*
,
int
);
int
(
*
change_cipher_state
)();
int
(
*
change_cipher_state
)(
SSL
*
,
int
);
int
(
*
final_finish_mac
)();
int
(
*
final_finish_mac
)(
SSL
*
,
EVP_MD_CTX
*
,
EVP_MD_CTX
*
,
const
char
*
,
int
,
unsigned
char
*
);
int
finish_mac_length
;
int
finish_mac_length
;
int
(
*
cert_verify_mac
)();
int
(
*
cert_verify_mac
)(
SSL
*
,
EVP_MD_CTX
*
,
unsigned
char
*
);
const
char
*
client_finished_label
;
const
char
*
client_finished_label
;
int
client_finished_label_len
;
int
client_finished_label_len
;
const
char
*
server_finished_label
;
const
char
*
server_finished_label
;
int
server_finished_label_len
;
int
server_finished_label_len
;
int
(
*
alert_value
)();
int
(
*
alert_value
)(
int
);
}
SSL3_ENC_METHOD
;
}
SSL3_ENC_METHOD
;
/* Used for holding the relevant compression methods loaded into SSL_CTX */
/* Used for holding the relevant compression methods loaded into SSL_CTX */
...
@@ -443,7 +443,7 @@ int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len);
...
@@ -443,7 +443,7 @@ int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len);
int
ssl3_part_read
(
SSL
*
s
,
int
i
);
int
ssl3_part_read
(
SSL
*
s
,
int
i
);
int
ssl3_write_bytes
(
SSL
*
s
,
int
type
,
const
void
*
buf
,
int
len
);
int
ssl3_write_bytes
(
SSL
*
s
,
int
type
,
const
void
*
buf
,
int
len
);
int
ssl3_final_finish_mac
(
SSL
*
s
,
EVP_MD_CTX
*
ctx1
,
EVP_MD_CTX
*
ctx2
,
int
ssl3_final_finish_mac
(
SSL
*
s
,
EVP_MD_CTX
*
ctx1
,
EVP_MD_CTX
*
ctx2
,
unsigned
char
*
sender
,
int
slen
,
unsigned
char
*
p
);
const
char
*
sender
,
int
slen
,
unsigned
char
*
p
);
int
ssl3_cert_verify_mac
(
SSL
*
s
,
EVP_MD_CTX
*
in
,
unsigned
char
*
p
);
int
ssl3_cert_verify_mac
(
SSL
*
s
,
EVP_MD_CTX
*
in
,
unsigned
char
*
p
);
void
ssl3_finish_mac
(
SSL
*
s
,
const
unsigned
char
*
buf
,
int
len
);
void
ssl3_finish_mac
(
SSL
*
s
,
const
unsigned
char
*
buf
,
int
len
);
int
ssl3_enc
(
SSL
*
s
,
int
send_data
);
int
ssl3_enc
(
SSL
*
s
,
int
send_data
);
...
@@ -483,7 +483,7 @@ int tls1_change_cipher_state(SSL *s, int which);
...
@@ -483,7 +483,7 @@ int tls1_change_cipher_state(SSL *s, int which);
int
tls1_setup_key_block
(
SSL
*
s
);
int
tls1_setup_key_block
(
SSL
*
s
);
int
tls1_enc
(
SSL
*
s
,
int
snd
);
int
tls1_enc
(
SSL
*
s
,
int
snd
);
int
tls1_final_finish_mac
(
SSL
*
s
,
EVP_MD_CTX
*
in1_ctx
,
EVP_MD_CTX
*
in2_ctx
,
int
tls1_final_finish_mac
(
SSL
*
s
,
EVP_MD_CTX
*
in1_ctx
,
EVP_MD_CTX
*
in2_ctx
,
unsigned
char
*
str
,
int
slen
,
unsigned
char
*
p
);
const
char
*
str
,
int
slen
,
unsigned
char
*
p
);
int
tls1_cert_verify_mac
(
SSL
*
s
,
EVP_MD_CTX
*
in
,
unsigned
char
*
p
);
int
tls1_cert_verify_mac
(
SSL
*
s
,
EVP_MD_CTX
*
in
,
unsigned
char
*
p
);
int
tls1_mac
(
SSL
*
ssl
,
unsigned
char
*
md
,
int
snd
);
int
tls1_mac
(
SSL
*
ssl
,
unsigned
char
*
md
,
int
snd
);
int
tls1_generate_master_secret
(
SSL
*
s
,
unsigned
char
*
out
,
int
tls1_generate_master_secret
(
SSL
*
s
,
unsigned
char
*
out
,
...
...
ssl/t1_enc.c
浏览文件 @
245206ea
...
@@ -494,7 +494,7 @@ int tls1_cert_verify_mac(SSL *s, EVP_MD_CTX *in_ctx, unsigned char *out)
...
@@ -494,7 +494,7 @@ int tls1_cert_verify_mac(SSL *s, EVP_MD_CTX *in_ctx, unsigned char *out)
}
}
int
tls1_final_finish_mac
(
SSL
*
s
,
EVP_MD_CTX
*
in1_ctx
,
EVP_MD_CTX
*
in2_ctx
,
int
tls1_final_finish_mac
(
SSL
*
s
,
EVP_MD_CTX
*
in1_ctx
,
EVP_MD_CTX
*
in2_ctx
,
unsigned
char
*
str
,
int
slen
,
unsigned
char
*
out
)
const
char
*
str
,
int
slen
,
unsigned
char
*
out
)
{
{
unsigned
int
i
;
unsigned
int
i
;
EVP_MD_CTX
ctx
;
EVP_MD_CTX
ctx
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录