Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
5cc146f3
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看板
提交
5cc146f3
编写于
4月 22, 1999
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed some race conditions.
Submitted by: Reviewed by: PR:
上级
4cd401e4
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
23 addition
and
16 deletion
+23
-16
crypto/des/ecb_enc.c
crypto/des/ecb_enc.c
+1
-1
crypto/rand/md_rand.c
crypto/rand/md_rand.c
+1
-1
crypto/x509v3/v3err.c
crypto/x509v3/v3err.c
+1
-1
ssl/s23_clnt.c
ssl/s23_clnt.c
+1
-1
ssl/s23_meth.c
ssl/s23_meth.c
+1
-1
ssl/s23_srvr.c
ssl/s23_srvr.c
+1
-1
ssl/s2_clnt.c
ssl/s2_clnt.c
+1
-1
ssl/s2_lib.c
ssl/s2_lib.c
+4
-1
ssl/s2_meth.c
ssl/s2_meth.c
+1
-1
ssl/s2_srvr.c
ssl/s2_srvr.c
+1
-1
ssl/s3_lib.c
ssl/s3_lib.c
+5
-1
ssl/s3_meth.c
ssl/s3_meth.c
+1
-1
ssl/s3_srvr.c
ssl/s3_srvr.c
+1
-1
ssl/t1_clnt.c
ssl/t1_clnt.c
+1
-1
ssl/t1_meth.c
ssl/t1_meth.c
+1
-1
ssl/t1_srvr.c
ssl/t1_srvr.c
+1
-1
未找到文件。
crypto/des/ecb_enc.c
浏览文件 @
5cc146f3
...
@@ -72,7 +72,6 @@ const char *des_options(void)
...
@@ -72,7 +72,6 @@ const char *des_options(void)
{
{
const
char
*
ptr
,
*
unroll
,
*
risc
,
*
size
;
const
char
*
ptr
,
*
unroll
,
*
risc
,
*
size
;
init
=
0
;
#ifdef DES_PTR
#ifdef DES_PTR
ptr
=
"ptr"
;
ptr
=
"ptr"
;
#else
#else
...
@@ -98,6 +97,7 @@ const char *des_options(void)
...
@@ -98,6 +97,7 @@ const char *des_options(void)
else
else
size
=
"long"
;
size
=
"long"
;
sprintf
(
buf
,
"des(%s,%s,%s,%s)"
,
ptr
,
risc
,
unroll
,
size
);
sprintf
(
buf
,
"des(%s,%s,%s,%s)"
,
ptr
,
risc
,
unroll
,
size
);
init
=
0
;
}
}
return
(
buf
);
return
(
buf
);
}
}
...
...
crypto/rand/md_rand.c
浏览文件 @
5cc146f3
...
@@ -241,7 +241,6 @@ static void ssleay_rand_bytes(unsigned char *buf, int num)
...
@@ -241,7 +241,6 @@ static void ssleay_rand_bytes(unsigned char *buf, int num)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
CRYPTO_w_unlock
(
CRYPTO_LOCK_RAND
);
CRYPTO_w_unlock
(
CRYPTO_LOCK_RAND
);
/* put in some default random data, we need more than
/* put in some default random data, we need more than
* just this */
* just this */
...
@@ -281,6 +280,7 @@ static void ssleay_rand_bytes(unsigned char *buf, int num)
...
@@ -281,6 +280,7 @@ static void ssleay_rand_bytes(unsigned char *buf, int num)
memset
(
md
,
0
,
MD_DIGEST_LENGTH
);
memset
(
md
,
0
,
MD_DIGEST_LENGTH
);
#endif
#endif
CRYPTO_w_lock
(
CRYPTO_LOCK_RAND
);
CRYPTO_w_lock
(
CRYPTO_LOCK_RAND
);
init
=
0
;
}
}
st_idx
=
state_index
;
st_idx
=
state_index
;
...
...
crypto/x509v3/v3err.c
浏览文件 @
5cc146f3
...
@@ -151,7 +151,7 @@ static ERR_STRING_DATA X509V3_str_reasons[]=
...
@@ -151,7 +151,7 @@ static ERR_STRING_DATA X509V3_str_reasons[]=
#endif
#endif
void
ERR_load_X509V3_strings
(
void
)
void
ERR_load_X509V3_strings
()
{
{
static
int
init
=
1
;
static
int
init
=
1
;
...
...
ssl/s23_clnt.c
浏览文件 @
5cc146f3
...
@@ -94,11 +94,11 @@ SSL_METHOD *SSLv23_client_method(void)
...
@@ -94,11 +94,11 @@ SSL_METHOD *SSLv23_client_method(void)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
memcpy
((
char
*
)
&
SSLv23_client_data
,
memcpy
((
char
*
)
&
SSLv23_client_data
,
(
char
*
)
sslv23_base_method
(),
sizeof
(
SSL_METHOD
));
(
char
*
)
sslv23_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv23_client_data
.
ssl_connect
=
ssl23_connect
;
SSLv23_client_data
.
ssl_connect
=
ssl23_connect
;
SSLv23_client_data
.
get_ssl_method
=
ssl23_get_client_method
;
SSLv23_client_data
.
get_ssl_method
=
ssl23_get_client_method
;
init
=
0
;
}
}
return
(
&
SSLv23_client_data
);
return
(
&
SSLv23_client_data
);
}
}
...
...
ssl/s23_meth.c
浏览文件 @
5cc146f3
...
@@ -85,12 +85,12 @@ SSL_METHOD *SSLv23_method(void)
...
@@ -85,12 +85,12 @@ SSL_METHOD *SSLv23_method(void)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
memcpy
((
char
*
)
&
SSLv23_data
,(
char
*
)
sslv23_base_method
(),
memcpy
((
char
*
)
&
SSLv23_data
,(
char
*
)
sslv23_base_method
(),
sizeof
(
SSL_METHOD
));
sizeof
(
SSL_METHOD
));
SSLv23_data
.
ssl_connect
=
ssl23_connect
;
SSLv23_data
.
ssl_connect
=
ssl23_connect
;
SSLv23_data
.
ssl_accept
=
ssl23_accept
;
SSLv23_data
.
ssl_accept
=
ssl23_accept
;
SSLv23_data
.
get_ssl_method
=
ssl23_get_method
;
SSLv23_data
.
get_ssl_method
=
ssl23_get_method
;
init
=
0
;
}
}
return
(
&
SSLv23_data
);
return
(
&
SSLv23_data
);
}
}
...
...
ssl/s23_srvr.c
浏览文件 @
5cc146f3
...
@@ -92,11 +92,11 @@ SSL_METHOD *SSLv23_server_method(void)
...
@@ -92,11 +92,11 @@ SSL_METHOD *SSLv23_server_method(void)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
memcpy
((
char
*
)
&
SSLv23_server_data
,
memcpy
((
char
*
)
&
SSLv23_server_data
,
(
char
*
)
sslv23_base_method
(),
sizeof
(
SSL_METHOD
));
(
char
*
)
sslv23_base_method
(),
sizeof
(
SSL_METHOD
));
SSLv23_server_data
.
ssl_accept
=
ssl23_accept
;
SSLv23_server_data
.
ssl_accept
=
ssl23_accept
;
SSLv23_server_data
.
get_ssl_method
=
ssl23_get_server_method
;
SSLv23_server_data
.
get_ssl_method
=
ssl23_get_server_method
;
init
=
0
;
}
}
return
(
&
SSLv23_server_data
);
return
(
&
SSLv23_server_data
);
}
}
...
...
ssl/s2_clnt.c
浏览文件 @
5cc146f3
...
@@ -103,11 +103,11 @@ SSL_METHOD *SSLv2_client_method(void)
...
@@ -103,11 +103,11 @@ SSL_METHOD *SSLv2_client_method(void)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
memcpy
((
char
*
)
&
SSLv2_client_data
,(
char
*
)
sslv2_base_method
(),
memcpy
((
char
*
)
&
SSLv2_client_data
,(
char
*
)
sslv2_base_method
(),
sizeof
(
SSL_METHOD
));
sizeof
(
SSL_METHOD
));
SSLv2_client_data
.
ssl_connect
=
ssl2_connect
;
SSLv2_client_data
.
ssl_connect
=
ssl2_connect
;
SSLv2_client_data
.
get_ssl_method
=
ssl2_get_client_method
;
SSLv2_client_data
.
get_ssl_method
=
ssl2_get_client_method
;
init
=
0
;
}
}
return
(
&
SSLv2_client_data
);
return
(
&
SSLv2_client_data
);
}
}
...
...
ssl/s2_lib.c
浏览文件 @
5cc146f3
...
@@ -316,7 +316,7 @@ SSL_CIPHER *ssl2_get_cipher_by_char(const unsigned char *p)
...
@@ -316,7 +316,7 @@ SSL_CIPHER *ssl2_get_cipher_by_char(const unsigned char *p)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL
)
;
for
(
i
=
0
;
i
<
SSL2_NUM_CIPHERS
;
i
++
)
for
(
i
=
0
;
i
<
SSL2_NUM_CIPHERS
;
i
++
)
sorted
[
i
]
=
&
(
ssl2_ciphers
[
i
]);
sorted
[
i
]
=
&
(
ssl2_ciphers
[
i
]);
...
@@ -324,6 +324,9 @@ SSL_CIPHER *ssl2_get_cipher_by_char(const unsigned char *p)
...
@@ -324,6 +324,9 @@ SSL_CIPHER *ssl2_get_cipher_by_char(const unsigned char *p)
qsort
(
(
char
*
)
sorted
,
qsort
(
(
char
*
)
sorted
,
SSL2_NUM_CIPHERS
,
sizeof
(
SSL_CIPHER
*
),
SSL2_NUM_CIPHERS
,
sizeof
(
SSL_CIPHER
*
),
FP_ICC
ssl_cipher_ptr_id_cmp
);
FP_ICC
ssl_cipher_ptr_id_cmp
);
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL
);
init
=
0
;
}
}
id
=
0x02000000L
|
((
unsigned
long
)
p
[
0
]
<<
16L
)
|
id
=
0x02000000L
|
((
unsigned
long
)
p
[
0
]
<<
16L
)
|
...
...
ssl/s2_meth.c
浏览文件 @
5cc146f3
...
@@ -81,12 +81,12 @@ SSL_METHOD *SSLv2_method(void)
...
@@ -81,12 +81,12 @@ SSL_METHOD *SSLv2_method(void)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
memcpy
((
char
*
)
&
SSLv2_data
,(
char
*
)
sslv2_base_method
(),
memcpy
((
char
*
)
&
SSLv2_data
,(
char
*
)
sslv2_base_method
(),
sizeof
(
SSL_METHOD
));
sizeof
(
SSL_METHOD
));
SSLv2_data
.
ssl_connect
=
ssl2_connect
;
SSLv2_data
.
ssl_connect
=
ssl2_connect
;
SSLv2_data
.
ssl_accept
=
ssl2_accept
;
SSLv2_data
.
ssl_accept
=
ssl2_accept
;
SSLv2_data
.
get_ssl_method
=
ssl2_get_method
;
SSLv2_data
.
get_ssl_method
=
ssl2_get_method
;
init
=
0
;
}
}
return
(
&
SSLv2_data
);
return
(
&
SSLv2_data
);
}
}
...
...
ssl/s2_srvr.c
浏览文件 @
5cc146f3
...
@@ -103,11 +103,11 @@ SSL_METHOD *SSLv2_server_method(void)
...
@@ -103,11 +103,11 @@ SSL_METHOD *SSLv2_server_method(void)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
memcpy
((
char
*
)
&
SSLv2_server_data
,(
char
*
)
sslv2_base_method
(),
memcpy
((
char
*
)
&
SSLv2_server_data
,(
char
*
)
sslv2_base_method
(),
sizeof
(
SSL_METHOD
));
sizeof
(
SSL_METHOD
));
SSLv2_server_data
.
ssl_accept
=
ssl2_accept
;
SSLv2_server_data
.
ssl_accept
=
ssl2_accept
;
SSLv2_server_data
.
get_ssl_method
=
ssl2_get_server_method
;
SSLv2_server_data
.
get_ssl_method
=
ssl2_get_server_method
;
init
=
0
;
}
}
return
(
&
SSLv2_server_data
);
return
(
&
SSLv2_server_data
);
}
}
...
...
ssl/s3_lib.c
浏览文件 @
5cc146f3
...
@@ -797,7 +797,7 @@ SSL_CIPHER *ssl3_get_cipher_by_char(const unsigned char *p)
...
@@ -797,7 +797,7 @@ SSL_CIPHER *ssl3_get_cipher_by_char(const unsigned char *p)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL
)
;
for
(
i
=
0
;
i
<
SSL3_NUM_CIPHERS
;
i
++
)
for
(
i
=
0
;
i
<
SSL3_NUM_CIPHERS
;
i
++
)
sorted
[
i
]
=
&
(
ssl3_ciphers
[
i
]);
sorted
[
i
]
=
&
(
ssl3_ciphers
[
i
]);
...
@@ -805,6 +805,10 @@ SSL_CIPHER *ssl3_get_cipher_by_char(const unsigned char *p)
...
@@ -805,6 +805,10 @@ SSL_CIPHER *ssl3_get_cipher_by_char(const unsigned char *p)
qsort
(
(
char
*
)
sorted
,
qsort
(
(
char
*
)
sorted
,
SSL3_NUM_CIPHERS
,
sizeof
(
SSL_CIPHER
*
),
SSL3_NUM_CIPHERS
,
sizeof
(
SSL_CIPHER
*
),
FP_ICC
ssl_cipher_ptr_id_cmp
);
FP_ICC
ssl_cipher_ptr_id_cmp
);
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL
);
init
=
0
;
}
}
id
=
0x03000000L
|
((
unsigned
long
)
p
[
0
]
<<
8L
)
|
(
unsigned
long
)
p
[
1
];
id
=
0x03000000L
|
((
unsigned
long
)
p
[
0
]
<<
8L
)
|
(
unsigned
long
)
p
[
1
];
...
...
ssl/s3_meth.c
浏览文件 @
5cc146f3
...
@@ -81,12 +81,12 @@ SSL_METHOD *SSLv3_method(void)
...
@@ -81,12 +81,12 @@ SSL_METHOD *SSLv3_method(void)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
memcpy
((
char
*
)
&
SSLv3_data
,(
char
*
)
sslv3_base_method
(),
memcpy
((
char
*
)
&
SSLv3_data
,(
char
*
)
sslv3_base_method
(),
sizeof
(
SSL_METHOD
));
sizeof
(
SSL_METHOD
));
SSLv3_data
.
ssl_connect
=
ssl3_connect
;
SSLv3_data
.
ssl_connect
=
ssl3_connect
;
SSLv3_data
.
ssl_accept
=
ssl3_accept
;
SSLv3_data
.
ssl_accept
=
ssl3_accept
;
SSLv3_data
.
get_ssl_method
=
ssl3_get_method
;
SSLv3_data
.
get_ssl_method
=
ssl3_get_method
;
init
=
0
;
}
}
return
(
&
SSLv3_data
);
return
(
&
SSLv3_data
);
}
}
...
...
ssl/s3_srvr.c
浏览文件 @
5cc146f3
...
@@ -116,11 +116,11 @@ SSL_METHOD *SSLv3_server_method(void)
...
@@ -116,11 +116,11 @@ SSL_METHOD *SSLv3_server_method(void)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
memcpy
((
char
*
)
&
SSLv3_server_data
,(
char
*
)
sslv3_base_method
(),
memcpy
((
char
*
)
&
SSLv3_server_data
,(
char
*
)
sslv3_base_method
(),
sizeof
(
SSL_METHOD
));
sizeof
(
SSL_METHOD
));
SSLv3_server_data
.
ssl_accept
=
ssl3_accept
;
SSLv3_server_data
.
ssl_accept
=
ssl3_accept
;
SSLv3_server_data
.
get_ssl_method
=
ssl3_get_server_method
;
SSLv3_server_data
.
get_ssl_method
=
ssl3_get_server_method
;
init
=
0
;
}
}
return
(
&
SSLv3_server_data
);
return
(
&
SSLv3_server_data
);
}
}
...
...
ssl/t1_clnt.c
浏览文件 @
5cc146f3
...
@@ -84,11 +84,11 @@ SSL_METHOD *TLSv1_client_method(void)
...
@@ -84,11 +84,11 @@ SSL_METHOD *TLSv1_client_method(void)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
memcpy
((
char
*
)
&
TLSv1_client_data
,(
char
*
)
tlsv1_base_method
(),
memcpy
((
char
*
)
&
TLSv1_client_data
,(
char
*
)
tlsv1_base_method
(),
sizeof
(
SSL_METHOD
));
sizeof
(
SSL_METHOD
));
TLSv1_client_data
.
ssl_connect
=
ssl3_connect
;
TLSv1_client_data
.
ssl_connect
=
ssl3_connect
;
TLSv1_client_data
.
get_ssl_method
=
tls1_get_client_method
;
TLSv1_client_data
.
get_ssl_method
=
tls1_get_client_method
;
init
=
0
;
}
}
return
(
&
TLSv1_client_data
);
return
(
&
TLSv1_client_data
);
}
}
...
...
ssl/t1_meth.c
浏览文件 @
5cc146f3
...
@@ -81,12 +81,12 @@ SSL_METHOD *TLSv1_method(void)
...
@@ -81,12 +81,12 @@ SSL_METHOD *TLSv1_method(void)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
memcpy
((
char
*
)
&
TLSv1_data
,(
char
*
)
tlsv1_base_method
(),
memcpy
((
char
*
)
&
TLSv1_data
,(
char
*
)
tlsv1_base_method
(),
sizeof
(
SSL_METHOD
));
sizeof
(
SSL_METHOD
));
TLSv1_data
.
ssl_connect
=
ssl3_connect
;
TLSv1_data
.
ssl_connect
=
ssl3_connect
;
TLSv1_data
.
ssl_accept
=
ssl3_accept
;
TLSv1_data
.
ssl_accept
=
ssl3_accept
;
TLSv1_data
.
get_ssl_method
=
tls1_get_method
;
TLSv1_data
.
get_ssl_method
=
tls1_get_method
;
init
=
0
;
}
}
return
(
&
TLSv1_data
);
return
(
&
TLSv1_data
);
}
}
...
...
ssl/t1_srvr.c
浏览文件 @
5cc146f3
...
@@ -85,11 +85,11 @@ SSL_METHOD *TLSv1_server_method(void)
...
@@ -85,11 +85,11 @@ SSL_METHOD *TLSv1_server_method(void)
if
(
init
)
if
(
init
)
{
{
init
=
0
;
memcpy
((
char
*
)
&
TLSv1_server_data
,(
char
*
)
tlsv1_base_method
(),
memcpy
((
char
*
)
&
TLSv1_server_data
,(
char
*
)
tlsv1_base_method
(),
sizeof
(
SSL_METHOD
));
sizeof
(
SSL_METHOD
));
TLSv1_server_data
.
ssl_accept
=
ssl3_accept
;
TLSv1_server_data
.
ssl_accept
=
ssl3_accept
;
TLSv1_server_data
.
get_ssl_method
=
tls1_get_server_method
;
TLSv1_server_data
.
get_ssl_method
=
tls1_get_server_method
;
init
=
0
;
}
}
return
(
&
TLSv1_server_data
);
return
(
&
TLSv1_server_data
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录