Fix race condition.
This commit is contained in:
parent
75f7141ab4
commit
ac4fb4a138
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,6 @@ static int init_ciphers=1;
|
||||||
|
|
||||||
static void load_ciphers(void)
|
static void load_ciphers(void)
|
||||||
{
|
{
|
||||||
init_ciphers=0;
|
|
||||||
ssl_cipher_methods[SSL_ENC_DES_IDX]=
|
ssl_cipher_methods[SSL_ENC_DES_IDX]=
|
||||||
EVP_get_cipherbyname(SN_des_cbc);
|
EVP_get_cipherbyname(SN_des_cbc);
|
||||||
ssl_cipher_methods[SSL_ENC_3DES_IDX]=
|
ssl_cipher_methods[SSL_ENC_3DES_IDX]=
|
||||||
|
@ -185,6 +184,7 @@ static void load_ciphers(void)
|
||||||
EVP_get_digestbyname(SN_md5);
|
EVP_get_digestbyname(SN_md5);
|
||||||
ssl_digest_methods[SSL_MD_SHA1_IDX]=
|
ssl_digest_methods[SSL_MD_SHA1_IDX]=
|
||||||
EVP_get_digestbyname(SN_sha1);
|
EVP_get_digestbyname(SN_sha1);
|
||||||
|
init_ciphers=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ssl_cipher_get_evp(SSL_SESSION *s, const EVP_CIPHER **enc,
|
int ssl_cipher_get_evp(SSL_SESSION *s, const EVP_CIPHER **enc,
|
||||||
|
|
Loading…
Reference in a new issue