mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
ssl: Fixed call to SSL_CTX_set_cipher_list() only when ssl_ciphers specified and warn when no cipher suite could be selected.
This commit is contained in:
parent
50e955e342
commit
349ed35ce0
1 changed files with 4 additions and 1 deletions
|
|
@ -479,7 +479,10 @@ static GIOChannel *irssi_ssl_get_iochannel(GIOChannel *handle, int port, SERVER_
|
|||
SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
|
||||
SSL_CTX_set_default_passwd_cb(ctx, get_pem_password_callback);
|
||||
SSL_CTX_set_default_passwd_cb_userdata(ctx, (void *)mypass);
|
||||
SSL_CTX_set_cipher_list(ctx, ciphers);
|
||||
if (ciphers && *ciphers) {
|
||||
if (SSL_CTX_set_cipher_list(ctx, ciphers) != 1)
|
||||
g_warning("No valid SSL cipher suite could be selected");
|
||||
}
|
||||
|
||||
if (mycert && *mycert) {
|
||||
char *scert = NULL, *spkey = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue