Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
6938c954
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,发现更多精彩内容 >>
提交
6938c954
编写于
11月 25, 2015
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove unused cert_verify_mac code
Reviewed-by:
N
Andy Polyakov
<
appro@openssl.org
>
上级
f6739c3d
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
0 addition
and
47 deletion
+0
-47
ssl/d1_lib.c
ssl/d1_lib.c
+0
-2
ssl/s3_enc.c
ssl/s3_enc.c
+0
-5
ssl/s3_lib.c
ssl/s3_lib.c
+0
-1
ssl/ssl_lib.c
ssl/ssl_lib.c
+0
-1
ssl/ssl_locl.h
ssl/ssl_locl.h
+0
-5
ssl/t1_enc.c
ssl/t1_enc.c
+0
-30
ssl/t1_lib.c
ssl/t1_lib.c
+0
-3
未找到文件。
ssl/d1_lib.c
浏览文件 @
6938c954
...
...
@@ -90,7 +90,6 @@ const SSL3_ENC_METHOD DTLSv1_enc_data = {
tls1_change_cipher_state
,
tls1_final_finish_mac
,
TLS1_FINISH_MAC_LENGTH
,
tls1_cert_verify_mac
,
TLS_MD_CLIENT_FINISH_CONST
,
TLS_MD_CLIENT_FINISH_CONST_SIZE
,
TLS_MD_SERVER_FINISH_CONST
,
TLS_MD_SERVER_FINISH_CONST_SIZE
,
tls1_alert_code
,
...
...
@@ -109,7 +108,6 @@ const SSL3_ENC_METHOD DTLSv1_2_enc_data = {
tls1_change_cipher_state
,
tls1_final_finish_mac
,
TLS1_FINISH_MAC_LENGTH
,
tls1_cert_verify_mac
,
TLS_MD_CLIENT_FINISH_CONST
,
TLS_MD_CLIENT_FINISH_CONST_SIZE
,
TLS_MD_SERVER_FINISH_CONST
,
TLS_MD_SERVER_FINISH_CONST_SIZE
,
tls1_alert_code
,
...
...
ssl/s3_enc.c
浏览文件 @
6938c954
...
...
@@ -560,11 +560,6 @@ int ssl3_digest_cached_records(SSL *s, int keep)
return
1
;
}
int
ssl3_cert_verify_mac
(
SSL
*
s
,
int
md_nid
,
unsigned
char
*
p
)
{
return
(
ssl3_handshake_mac
(
s
,
md_nid
,
NULL
,
0
,
p
));
}
int
ssl3_final_finish_mac
(
SSL
*
s
,
const
char
*
sender
,
int
len
,
unsigned
char
*
p
)
{
...
...
ssl/s3_lib.c
浏览文件 @
6938c954
...
...
@@ -3809,7 +3809,6 @@ const SSL3_ENC_METHOD SSLv3_enc_data = {
ssl3_change_cipher_state
,
ssl3_final_finish_mac
,
MD5_DIGEST_LENGTH
+
SHA_DIGEST_LENGTH
,
ssl3_cert_verify_mac
,
SSL3_MD_CLIENT_FINISHED_CONST
,
4
,
SSL3_MD_SERVER_FINISHED_CONST
,
4
,
ssl3_alert_code
,
...
...
ssl/ssl_lib.c
浏览文件 @
6938c954
...
...
@@ -176,7 +176,6 @@ SSL3_ENC_METHOD ssl3_undef_enc_method = {
(
int
(
*
)(
SSL
*
,
const
char
*
,
int
,
unsigned
char
*
))
ssl_undefined_function
,
0
,
/* finish_mac_length */
(
int
(
*
)(
SSL
*
,
int
,
unsigned
char
*
))
ssl_undefined_function
,
NULL
,
/* client_finished_label */
0
,
/* client_finished_label_len */
NULL
,
/* server_finished_label */
...
...
ssl/ssl_locl.h
浏览文件 @
6938c954
...
...
@@ -1266,8 +1266,6 @@ typedef struct ssl3_state_st {
int
num_renegotiations
;
int
in_read_app_data
;
struct
{
/* actually needs to be 32+32+64 for GOST */
unsigned
char
cert_verify_md
[
EVP_MAX_MD_SIZE
*
2
];
/* actually only need to be 16+20 for SSLv3 and 12 for TLS */
unsigned
char
finish_md
[
EVP_MAX_MD_SIZE
*
2
];
int
finish_md_len
;
...
...
@@ -1685,7 +1683,6 @@ typedef struct ssl3_enc_method {
int
(
*
change_cipher_state
)
(
SSL
*
,
int
);
int
(
*
final_finish_mac
)
(
SSL
*
,
const
char
*
,
int
,
unsigned
char
*
);
int
finish_mac_length
;
int
(
*
cert_verify_mac
)
(
SSL
*
,
int
,
unsigned
char
*
);
const
char
*
client_finished_label
;
int
client_finished_label_len
;
const
char
*
server_finished_label
;
...
...
@@ -1948,7 +1945,6 @@ int ssl3_renegotiate_check(SSL *ssl);
__owur
int
ssl3_dispatch_alert
(
SSL
*
s
);
__owur
int
ssl3_final_finish_mac
(
SSL
*
s
,
const
char
*
sender
,
int
slen
,
unsigned
char
*
p
);
__owur
int
ssl3_cert_verify_mac
(
SSL
*
s
,
int
md_nid
,
unsigned
char
*
p
);
void
ssl3_finish_mac
(
SSL
*
s
,
const
unsigned
char
*
buf
,
int
len
);
void
ssl3_free_digest_list
(
SSL
*
s
);
__owur
unsigned
long
ssl3_output_cert_chain
(
SSL
*
s
,
CERT_PKEY
*
cpk
);
...
...
@@ -2032,7 +2028,6 @@ __owur int tls1_change_cipher_state(SSL *s, int which);
__owur
int
tls1_setup_key_block
(
SSL
*
s
);
__owur
int
tls1_final_finish_mac
(
SSL
*
s
,
const
char
*
str
,
int
slen
,
unsigned
char
*
p
);
__owur
int
tls1_cert_verify_mac
(
SSL
*
s
,
int
md_nid
,
unsigned
char
*
p
);
__owur
int
tls1_generate_master_secret
(
SSL
*
s
,
unsigned
char
*
out
,
unsigned
char
*
p
,
int
len
);
__owur
int
tls1_export_keying_material
(
SSL
*
s
,
unsigned
char
*
out
,
size_t
olen
,
...
...
ssl/t1_enc.c
浏览文件 @
6938c954
...
...
@@ -698,36 +698,6 @@ int tls1_setup_key_block(SSL *s)
return
(
ret
);
}
int
tls1_cert_verify_mac
(
SSL
*
s
,
int
md_nid
,
unsigned
char
*
out
)
{
unsigned
int
ret
;
EVP_MD_CTX
ctx
,
*
d
=
NULL
;
int
i
;
if
(
!
ssl3_digest_cached_records
(
s
,
0
))
return
0
;
for
(
i
=
0
;
i
<
SSL_MAX_DIGEST
;
i
++
)
{
if
(
s
->
s3
->
handshake_dgst
[
i
]
&&
EVP_MD_CTX_type
(
s
->
s3
->
handshake_dgst
[
i
])
==
md_nid
)
{
d
=
s
->
s3
->
handshake_dgst
[
i
];
break
;
}
}
if
(
!
d
)
{
SSLerr
(
SSL_F_TLS1_CERT_VERIFY_MAC
,
SSL_R_NO_REQUIRED_DIGEST
);
return
0
;
}
EVP_MD_CTX_init
(
&
ctx
);
if
(
EVP_MD_CTX_copy_ex
(
&
ctx
,
d
)
<=
0
||
EVP_DigestFinal_ex
(
&
ctx
,
out
,
&
ret
)
<=
0
)
ret
=
0
;
EVP_MD_CTX_cleanup
(
&
ctx
);
return
((
int
)
ret
);
}
int
tls1_final_finish_mac
(
SSL
*
s
,
const
char
*
str
,
int
slen
,
unsigned
char
*
out
)
{
...
...
ssl/t1_lib.c
浏览文件 @
6938c954
...
...
@@ -135,7 +135,6 @@ SSL3_ENC_METHOD const TLSv1_enc_data = {
tls1_change_cipher_state
,
tls1_final_finish_mac
,
TLS1_FINISH_MAC_LENGTH
,
tls1_cert_verify_mac
,
TLS_MD_CLIENT_FINISH_CONST
,
TLS_MD_CLIENT_FINISH_CONST_SIZE
,
TLS_MD_SERVER_FINISH_CONST
,
TLS_MD_SERVER_FINISH_CONST_SIZE
,
tls1_alert_code
,
...
...
@@ -154,7 +153,6 @@ SSL3_ENC_METHOD const TLSv1_1_enc_data = {
tls1_change_cipher_state
,
tls1_final_finish_mac
,
TLS1_FINISH_MAC_LENGTH
,
tls1_cert_verify_mac
,
TLS_MD_CLIENT_FINISH_CONST
,
TLS_MD_CLIENT_FINISH_CONST_SIZE
,
TLS_MD_SERVER_FINISH_CONST
,
TLS_MD_SERVER_FINISH_CONST_SIZE
,
tls1_alert_code
,
...
...
@@ -173,7 +171,6 @@ SSL3_ENC_METHOD const TLSv1_2_enc_data = {
tls1_change_cipher_state
,
tls1_final_finish_mac
,
TLS1_FINISH_MAC_LENGTH
,
tls1_cert_verify_mac
,
TLS_MD_CLIENT_FINISH_CONST
,
TLS_MD_CLIENT_FINISH_CONST_SIZE
,
TLS_MD_SERVER_FINISH_CONST
,
TLS_MD_SERVER_FINISH_CONST_SIZE
,
tls1_alert_code
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录