Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
7f3c9036
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
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看板
提交
7f3c9036
编写于
8月 21, 2005
作者:
N
Nils Larsch
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
initialize cipher/digest methods table in SSL_library_init() and hence remove the need for a lock
上级
725111f7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
11 deletion
+4
-11
ssl/ssl_algs.c
ssl/ssl_algs.c
+2
-0
ssl/ssl_ciph.c
ssl/ssl_ciph.c
+1
-11
ssl/ssl_locl.h
ssl/ssl_locl.h
+1
-0
未找到文件。
ssl/ssl_algs.c
浏览文件 @
7f3c9036
...
...
@@ -115,6 +115,8 @@ int SSL_library_init(void)
be discarded safely */
(
void
)
SSL_COMP_get_compression_methods
();
#endif
/* initialize cipher/digest methods table */
ssl_load_ciphers
();
return
(
1
);
}
ssl/ssl_ciph.c
浏览文件 @
7f3c9036
...
...
@@ -165,9 +165,7 @@ static const SSL_CIPHER cipher_aliases[]={
{
0
,
SSL_TXT_HIGH
,
0
,
0
,
SSL_HIGH
,
0
,
0
,
0
,
0
,
SSL_STRONG_MASK
},
};
static
int
init_ciphers
=
1
;
static
void
load_ciphers
(
void
)
void
ssl_load_ciphers
(
void
)
{
ssl_cipher_methods
[
SSL_ENC_DES_IDX
]
=
EVP_get_cipherbyname
(
SN_des_cbc
);
...
...
@@ -192,7 +190,6 @@ static void load_ciphers(void)
EVP_get_digestbyname
(
SN_md5
);
ssl_digest_methods
[
SSL_MD_SHA1_IDX
]
=
EVP_get_digestbyname
(
SN_sha1
);
init_ciphers
=
0
;
}
static
int
sk_comp_cmp
(
const
SSL_COMP
*
const
*
a
,
...
...
@@ -816,13 +813,6 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(const SSL_METHOD *ssl_method,
if
(
rule_str
==
NULL
||
cipher_list
==
NULL
||
cipher_list_by_id
==
NULL
)
return
NULL
;
if
(
init_ciphers
)
{
CRYPTO_w_lock
(
CRYPTO_LOCK_SSL
);
if
(
init_ciphers
)
load_ciphers
();
CRYPTO_w_unlock
(
CRYPTO_LOCK_SSL
);
}
/*
* To reduce the work to do we only want to process the compiled
* in algorithms, so we first get the mask of disabled ciphers.
...
...
ssl/ssl_locl.h
浏览文件 @
7f3c9036
...
...
@@ -736,6 +736,7 @@ int ssl_cert_type(X509 *x,EVP_PKEY *pkey);
void
ssl_set_cert_masks
(
CERT
*
c
,
SSL_CIPHER
*
cipher
);
STACK_OF
(
SSL_CIPHER
)
*
ssl_get_ciphers_by_id
(
SSL
*
s
);
int
ssl_verify_alarm_type
(
long
type
);
void
ssl_load_ciphers
(
void
);
int
ssl2_enc_init
(
SSL
*
s
,
int
client
);
int
ssl2_generate_key_material
(
SSL
*
s
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录