Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
436d318c
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看板
提交
436d318c
编写于
2月 13, 1999
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
In the absence of feedback either way, commit the fix that looks right for
wrong keylength with export null ciphers.
上级
be560e7b
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
12 addition
and
5 deletion
+12
-5
CHANGES
CHANGES
+4
-0
ssl/s3_enc.c
ssl/s3_enc.c
+4
-3
ssl/t1_enc.c
ssl/t1_enc.c
+4
-2
未找到文件。
CHANGES
浏览文件 @
436d318c
...
...
@@ -5,6 +5,10 @@
Changes between 0.9.1c and 0.9.2
*) Correct caclulation of key length for export ciphers (too much space was
allocated for null ciphers). This has not been tested!
[Ben Laurie]
*) Modifications to the mkdef.pl for Win32 DEF file creation. The usage
message is now correct (it understands "crypto" and "ssl" on its
command line). There is also now an "update" option. This will update
...
...
ssl/s3_enc.c
浏览文件 @
436d318c
...
...
@@ -139,7 +139,7 @@ int which;
COMP_METHOD
*
comp
;
EVP_MD
*
m
;
MD5_CTX
md
;
int
exp
,
n
,
i
,
j
,
k
;
int
exp
,
n
,
i
,
j
,
k
,
cl
;
exp
=
(
s
->
s3
->
tmp
.
new_cipher
->
algorithms
&
SSL_EXPORT
)
?
1
:
0
;
c
=
s
->
s3
->
tmp
.
new_sym_enc
;
...
...
@@ -208,8 +208,9 @@ int which;
p
=
s
->
s3
->
tmp
.
key_block
;
i
=
EVP_MD_size
(
m
);
/* Should be j=exp?min(5,EVP_CIPHER_key_length(c)):EVP_CIPHER_key_length(c); ?? - Ben 30/12/98 */
j
=
(
exp
)
?
5
:
EVP_CIPHER_key_length
(
c
);
cl
=
EVP_CIPHER_key_length
(
c
);
j
=
exp
?
(
cl
<
5
?
cl
:
5
)
:
cl
;
/* Was j=(exp)?5:EVP_CIPHER_key_length(c); */
k
=
EVP_CIPHER_iv_length
(
c
);
if
(
(
which
==
SSL3_CHANGE_CIPHER_CLIENT_WRITE
)
||
(
which
==
SSL3_CHANGE_CIPHER_SERVER_READ
))
...
...
ssl/t1_enc.c
浏览文件 @
436d318c
...
...
@@ -177,7 +177,7 @@ int which;
EVP_CIPHER
*
c
;
COMP_METHOD
*
comp
;
EVP_MD
*
m
;
int
exp
,
n
,
i
,
j
,
k
,
exp_label_len
;
int
exp
,
n
,
i
,
j
,
k
,
exp_label_len
,
cl
;
exp
=
(
s
->
s3
->
tmp
.
new_cipher
->
algorithms
&
SSL_EXPORT
)
?
1
:
0
;
c
=
s
->
s3
->
tmp
.
new_sym_enc
;
...
...
@@ -244,7 +244,9 @@ int which;
p
=
s
->
s3
->
tmp
.
key_block
;
i
=
EVP_MD_size
(
m
);
j
=
(
exp
)
?
5
:
EVP_CIPHER_key_length
(
c
);
cl
=
EVP_CIPHER_key_length
(
c
);
j
=
exp
?
(
cl
<
5
?
cl
:
5
)
:
cl
;
/* Was j=(exp)?5:EVP_CIPHER_key_length(c); */
k
=
EVP_CIPHER_iv_length
(
c
);
er1
=
&
(
s
->
s3
->
client_random
[
0
]);
er2
=
&
(
s
->
s3
->
server_random
[
0
]);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录