提交 c284f20f 编写于 作者: D Dr. Stephen Henson

Fix race condition when SSL ciphers are initialized.

上级 58ae65cd
......@@ -169,7 +169,6 @@ static int init_ciphers=1;
static void load_ciphers(void)
{
init_ciphers=0;
ssl_cipher_methods[SSL_ENC_DES_IDX]=
EVP_get_cipherbyname(SN_des_cbc);
ssl_cipher_methods[SSL_ENC_3DES_IDX]=
......@@ -193,6 +192,7 @@ 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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册