Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
50596582
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看板
提交
50596582
编写于
7月 12, 1999
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix memory leak in s3_clnt.c
上级
d9f0016b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
29 addition
and
14 deletion
+29
-14
CHANGES
CHANGES
+6
-0
apps/s_server.c
apps/s_server.c
+22
-14
ssl/s3_clnt.c
ssl/s3_clnt.c
+1
-0
未找到文件。
CHANGES
浏览文件 @
50596582
...
...
@@ -4,6 +4,12 @@
Changes between 0.9.3a and 0.9.4
*) Fix memory leaks in s3_clnt.c: All non-anonymous SSL3/TLS1 connections
without temporary keys kept an extra copy of the server key,
and connections with temporary keys did not free everything in case
of an error.
[Bodo Moeller]
*) New function RSA_check_key and new openssl rsa option -check
for verifying the consistency of RSA keys.
[Ulf Moeller, Bodo Moeller]
...
...
apps/s_server.c
浏览文件 @
50596582
...
...
@@ -226,6 +226,9 @@ static void sv_usage(void)
BIO_printf
(
bio_err
,
" -no_ssl2 - Just disable SSLv2
\n
"
);
BIO_printf
(
bio_err
,
" -no_ssl3 - Just disable SSLv3
\n
"
);
BIO_printf
(
bio_err
,
" -no_tls1 - Just disable TLSv1
\n
"
);
#ifndef NO_DH
BIO_printf
(
bio_err
,
" -no_dhe - Disable ephemeral DH
\n
"
);
#endif
BIO_printf
(
bio_err
,
" -bugs - Turn on SSL bug compatability
\n
"
);
BIO_printf
(
bio_err
,
" -www - Respond to a 'GET /' with a status page
\n
"
);
BIO_printf
(
bio_err
,
" -WWW - Respond to a 'GET /<path> HTTP/1.0' with file ./<path>
\n
"
);
...
...
@@ -393,7 +396,7 @@ int MAIN(int argc, char *argv[])
int
badop
=
0
,
bugs
=
0
;
int
ret
=
1
;
int
off
=
0
;
int
no_tmp_rsa
=
0
,
nocert
=
0
;
int
no_tmp_rsa
=
0
,
no
_dhe
=
0
,
no
cert
=
0
;
int
state
=
0
;
SSL_METHOD
*
meth
=
NULL
;
#ifndef NO_DH
...
...
@@ -518,6 +521,8 @@ int MAIN(int argc, char *argv[])
{
bugs
=
1
;
}
else
if
(
strcmp
(
*
argv
,
"-no_tmp_rsa"
)
==
0
)
{
no_tmp_rsa
=
1
;
}
else
if
(
strcmp
(
*
argv
,
"-no_dhe"
)
==
0
)
{
no_dhe
=
1
;
}
else
if
(
strcmp
(
*
argv
,
"-www"
)
==
0
)
{
www
=
1
;
}
else
if
(
strcmp
(
*
argv
,
"-WWW"
)
==
0
)
...
...
@@ -620,21 +625,24 @@ bad:
}
#ifndef NO_DH
/* EAY EAY EAY evil hack */
dh
=
load_dh_param
();
if
(
dh
!=
NULL
)
{
BIO_printf
(
bio_s_out
,
"Setting temp DH parameters
\n
"
);
}
else
if
(
!
no_dhe
)
{
BIO_printf
(
bio_s_out
,
"Using default temp DH parameters
\n
"
);
dh
=
get_dh512
();
}
(
void
)
BIO_flush
(
bio_s_out
);
/* EAY EAY EAY evil hack */
dh
=
load_dh_param
();
if
(
dh
!=
NULL
)
{
BIO_printf
(
bio_s_out
,
"Setting temp DH parameters
\n
"
);
}
else
{
BIO_printf
(
bio_s_out
,
"Using default temp DH parameters
\n
"
);
dh
=
get_dh512
();
}
(
void
)
BIO_flush
(
bio_s_out
);
SSL_CTX_set_tmp_dh
(
ctx
,
dh
);
DH_free
(
dh
);
SSL_CTX_set_tmp_dh
(
ctx
,
dh
);
DH_free
(
dh
);
}
#endif
if
(
!
set_cert_stuff
(
ctx
,
s_cert_file
,
s_key_file
))
...
...
ssl/s3_clnt.c
浏览文件 @
50596582
...
...
@@ -1336,6 +1336,7 @@ static int ssl3_send_client_key_exchange(SSL *s)
goto
err
;
}
rsa
=
pkey
->
pkey
.
rsa
;
EVP_PKEY_free
(
pkey
);
}
tmp_buf
[
0
]
=
s
->
client_version
>>
8
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录