1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-01 07:16:38 +02:00

Use cipher list for connections to other servers as well

This commit is contained in:
Bram Matthys
2016-09-26 14:58:16 +02:00
parent 7f703d8991
commit 4fe7203091
+8
View File
@@ -478,6 +478,8 @@ int ssl_handshake(aClient *cptr)
*/
int ssl_client_handshake(aClient *cptr, ConfigItem_link *l)
{
char *set_ciphers = NULL;
cptr->local->ssl = SSL_new((SSL_CTX *)ctx_client);
if (!cptr->local->ssl)
{
@@ -488,7 +490,13 @@ int ssl_client_handshake(aClient *cptr, ConfigItem_link *l)
/* set_blocking(cptr->fd); */
SSL_set_fd(cptr->local->ssl, cptr->fd);
SSL_set_connect_state(cptr->local->ssl);
if (l && l->ciphers)
set_ciphers = l->ciphers;
else if (iConf.x_server_cipher_list)
set_ciphers = iConf.x_server_cipher_list;
if (set_ciphers)
{
if (SSL_set_cipher_list(cptr->local->ssl, l->ciphers) == 0)
{