Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
b8565a9a
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看板
提交
b8565a9a
编写于
9月 25, 2002
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
really fix race conditions
Submitted by: "Patrick McCormick" <patrick@tellme.com> PR: 262 PR: 291
上级
94960c84
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
90 addition
and
57 deletion
+90
-57
CHANGES
CHANGES
+3
-1
ssl/s23_clnt.c
ssl/s23_clnt.c
+8
-5
ssl/s23_srvr.c
ssl/s23_srvr.c
+8
-5
ssl/s2_clnt.c
ssl/s2_clnt.c
+8
-5
ssl/s2_lib.c
ssl/s2_lib.c
+10
-6
ssl/s2_srvr.c
ssl/s2_srvr.c
+8
-5
ssl/s3_clnt.c
ssl/s3_clnt.c
+8
-5
ssl/s3_lib.c
ssl/s3_lib.c
+10
-7
ssl/s3_srvr.c
ssl/s3_srvr.c
+9
-6
ssl/t1_clnt.c
ssl/t1_clnt.c
+9
-6
ssl/t1_srvr.c
ssl/t1_srvr.c
+9
-6
未找到文件。
CHANGES
浏览文件 @
b8565a9a
...
...
@@ -1931,7 +1931,9 @@ des-cbc 3624.96k 5258.21k 5530.91k 5624.30k 5628.26k
SSLv23_client_method(), SSLv23_server_method(),
SSLv2_client_method(), SSLv2_server_method(),
SSLv3_client_method(), SSLv3_server_method(),
TLSv1_client_method(), TLSv1_server_method().
TLSv1_client_method(), TLSv1_server_method(),
ssl2_get_cipher_by_char(),
ssl3_get_cipher_by_char().
[Patrick McCormick <patrick@tellme.com>, Bodo Moeller]
*) Reorder cleanup sequence in SSL_CTX_free(): only remove the ex_data after
...
...
ssl/s23_clnt.c
浏览文件 @
b8565a9a
...
...
@@ -89,11 +89,14 @@ SSL_METHOD *SSLv23_client_method(void)
{
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL_METHOD
);
memcpy
((
char
*
)
&
SSLv23_client_data
,
(
char
*
)
sslv23_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv23_client_data
.
ssl_connect
=
ssl23_connect
;
SSLv23_client_data
.
get_ssl_method
=
ssl23_get_client_method
;
init
=
0
;
if
(
init
)
{
memcpy
((
char
*
)
&
SSLv23_client_data
,
(
char
*
)
sslv23_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv23_client_data
.
ssl_connect
=
ssl23_connect
;
SSLv23_client_data
.
get_ssl_method
=
ssl23_get_client_method
;
init
=
0
;
}
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL_METHOD
);
}
...
...
ssl/s23_srvr.c
浏览文件 @
b8565a9a
...
...
@@ -141,11 +141,14 @@ SSL_METHOD *SSLv23_server_method(void)
{
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL_METHOD
);
memcpy
((
char
*
)
&
SSLv23_server_data
,
(
char
*
)
sslv23_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv23_server_data
.
ssl_accept
=
ssl23_accept
;
SSLv23_server_data
.
get_ssl_method
=
ssl23_get_server_method
;
init
=
0
;
if
(
init
)
{
memcpy
((
char
*
)
&
SSLv23_server_data
,
(
char
*
)
sslv23_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv23_server_data
.
ssl_accept
=
ssl23_accept
;
SSLv23_server_data
.
get_ssl_method
=
ssl23_get_server_method
;
init
=
0
;
}
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL_METHOD
);
}
...
...
ssl/s2_clnt.c
浏览文件 @
b8565a9a
...
...
@@ -147,11 +147,14 @@ SSL_METHOD *SSLv2_client_method(void)
{
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL_METHOD
);
memcpy
((
char
*
)
&
SSLv2_client_data
,(
char
*
)
sslv2_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv2_client_data
.
ssl_connect
=
ssl2_connect
;
SSLv2_client_data
.
get_ssl_method
=
ssl2_get_client_method
;
init
=
0
;
if
(
init
)
{
memcpy
((
char
*
)
&
SSLv2_client_data
,(
char
*
)
sslv2_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv2_client_data
.
ssl_connect
=
ssl2_connect
;
SSLv2_client_data
.
get_ssl_method
=
ssl2_get_client_method
;
init
=
0
;
}
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL_METHOD
);
}
...
...
ssl/s2_lib.c
浏览文件 @
b8565a9a
...
...
@@ -377,15 +377,19 @@ SSL_CIPHER *ssl2_get_cipher_by_char(const unsigned char *p)
{
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL
);
for
(
i
=
0
;
i
<
SSL2_NUM_CIPHERS
;
i
++
)
sorted
[
i
]
=
&
(
ssl2_ciphers
[
i
]);
if
(
init
)
{
for
(
i
=
0
;
i
<
SSL2_NUM_CIPHERS
;
i
++
)
sorted
[
i
]
=
&
(
ssl2_ciphers
[
i
]);
qsort
(
(
char
*
)
sorted
,
SSL2_NUM_CIPHERS
,
sizeof
(
SSL_CIPHER
*
),
FP_ICC
ssl_cipher_ptr_id_cmp
);
qsort
(
(
char
*
)
sorted
,
SSL2_NUM_CIPHERS
,
sizeof
(
SSL_CIPHER
*
),
FP_ICC
ssl_cipher_ptr_id_cmp
);
init
=
0
;
}
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL
);
init
=
0
;
}
id
=
0x02000000L
|
((
unsigned
long
)
p
[
0
]
<<
16L
)
|
...
...
ssl/s2_srvr.c
浏览文件 @
b8565a9a
...
...
@@ -147,11 +147,14 @@ SSL_METHOD *SSLv2_server_method(void)
{
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL_METHOD
);
memcpy
((
char
*
)
&
SSLv2_server_data
,(
char
*
)
sslv2_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv2_server_data
.
ssl_accept
=
ssl2_accept
;
SSLv2_server_data
.
get_ssl_method
=
ssl2_get_server_method
;
init
=
0
;
if
(
init
)
{
memcpy
((
char
*
)
&
SSLv2_server_data
,(
char
*
)
sslv2_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv2_server_data
.
ssl_accept
=
ssl2_accept
;
SSLv2_server_data
.
get_ssl_method
=
ssl2_get_server_method
;
init
=
0
;
}
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL_METHOD
);
}
...
...
ssl/s3_clnt.c
浏览文件 @
b8565a9a
...
...
@@ -180,11 +180,14 @@ SSL_METHOD *SSLv3_client_method(void)
{
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL_METHOD
);
memcpy
((
char
*
)
&
SSLv3_client_data
,(
char
*
)
sslv3_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv3_client_data
.
ssl_connect
=
ssl3_connect
;
SSLv3_client_data
.
get_ssl_method
=
ssl3_get_client_method
;
init
=
0
;
if
(
init
)
{
memcpy
((
char
*
)
&
SSLv3_client_data
,(
char
*
)
sslv3_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv3_client_data
.
ssl_connect
=
ssl3_connect
;
SSLv3_client_data
.
get_ssl_method
=
ssl3_get_client_method
;
init
=
0
;
}
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL_METHOD
);
}
...
...
ssl/s3_lib.c
浏览文件 @
b8565a9a
...
...
@@ -1819,16 +1819,19 @@ SSL_CIPHER *ssl3_get_cipher_by_char(const unsigned char *p)
{
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL
);
for
(
i
=
0
;
i
<
SSL3_NUM_CIPHERS
;
i
++
)
sorted
[
i
]
=
&
(
ssl3_ciphers
[
i
]);
if
(
init
)
{
for
(
i
=
0
;
i
<
SSL3_NUM_CIPHERS
;
i
++
)
sorted
[
i
]
=
&
(
ssl3_ciphers
[
i
]);
qsort
(
(
char
*
)
sorted
,
SSL3_NUM_CIPHERS
,
sizeof
(
SSL_CIPHER
*
),
FP_ICC
ssl_cipher_ptr_id_cmp
);
qsort
(
sorted
,
SSL3_NUM_CIPHERS
,
sizeof
(
SSL_CIPHER
*
),
FP_ICC
ssl_cipher_ptr_id_cmp
);
init
=
0
;
}
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL
);
init
=
0
;
}
id
=
0x03000000L
|
((
unsigned
long
)
p
[
0
]
<<
8L
)
|
(
unsigned
long
)
p
[
1
];
...
...
ssl/s3_srvr.c
浏览文件 @
b8565a9a
...
...
@@ -183,12 +183,15 @@ SSL_METHOD *SSLv3_server_method(void)
{
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL_METHOD
);
memcpy
((
char
*
)
&
SSLv3_server_data
,(
char
*
)
sslv3_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv3_server_data
.
ssl_accept
=
ssl3_accept
;
SSLv3_server_data
.
get_ssl_method
=
ssl3_get_server_method
;
init
=
0
;
if
(
init
)
{
memcpy
((
char
*
)
&
SSLv3_server_data
,(
char
*
)
sslv3_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv3_server_data
.
ssl_accept
=
ssl3_accept
;
SSLv3_server_data
.
get_ssl_method
=
ssl3_get_server_method
;
init
=
0
;
}
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL_METHOD
);
}
return
(
&
SSLv3_server_data
);
...
...
ssl/t1_clnt.c
浏览文件 @
b8565a9a
...
...
@@ -81,12 +81,15 @@ SSL_METHOD *TLSv1_client_method(void)
{
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL_METHOD
);
memcpy
((
char
*
)
&
TLSv1_client_data
,(
char
*
)
tlsv1_base_method
(),
sizeof
(
SSL_METHOD
));
TLSv1_client_data
.
ssl_connect
=
ssl3_connect
;
TLSv1_client_data
.
get_ssl_method
=
tls1_get_client_method
;
init
=
0
;
if
(
init
)
{
memcpy
((
char
*
)
&
TLSv1_client_data
,(
char
*
)
tlsv1_base_method
(),
sizeof
(
SSL_METHOD
));
TLSv1_client_data
.
ssl_connect
=
ssl3_connect
;
TLSv1_client_data
.
get_ssl_method
=
tls1_get_client_method
;
init
=
0
;
}
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL_METHOD
);
}
return
(
&
TLSv1_client_data
);
...
...
ssl/t1_srvr.c
浏览文件 @
b8565a9a
...
...
@@ -82,12 +82,15 @@ SSL_METHOD *TLSv1_server_method(void)
{
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL_METHOD
);
memcpy
((
char
*
)
&
TLSv1_server_data
,(
char
*
)
tlsv1_base_method
(),
sizeof
(
SSL_METHOD
));
TLSv1_server_data
.
ssl_accept
=
ssl3_accept
;
TLSv1_server_data
.
get_ssl_method
=
tls1_get_server_method
;
init
=
0
;
if
(
init
)
{
memcpy
((
char
*
)
&
TLSv1_server_data
,(
char
*
)
tlsv1_base_method
(),
sizeof
(
SSL_METHOD
));
TLSv1_server_data
.
ssl_accept
=
ssl3_accept
;
TLSv1_server_data
.
get_ssl_method
=
tls1_get_server_method
;
init
=
0
;
}
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL_METHOD
);
}
return
(
&
TLSv1_server_data
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录