222 |
|
{ |
223 |
|
if (listing_client_list.head) |
224 |
|
{ |
225 |
< |
dlink_node *ptr = NULL, *ptr_next = NULL; |
226 |
< |
DLINK_FOREACH_SAFE(ptr, ptr_next, listing_client_list.head) |
227 |
< |
safe_list_channels(ptr->data, 0); |
225 |
> |
dlink_node *node = NULL, *node_next = NULL; |
226 |
> |
DLINK_FOREACH_SAFE(node, node_next, listing_client_list.head) |
227 |
> |
safe_list_channels(node->data, 0); |
228 |
|
} |
229 |
|
|
230 |
|
/* Run pending events */ |
426 |
|
const char *s = ERR_lib_error_string(ERR_get_error()); |
427 |
|
|
428 |
|
fprintf(stderr, "ERROR: Could not initialize the SSL Server context -- %s\n", s); |
429 |
< |
ilog(LOG_TYPE_IRCD, "ERROR: Could not initialize the SSL Server context -- %s\n", s); |
429 |
> |
ilog(LOG_TYPE_IRCD, "ERROR: Could not initialize the SSL Server context -- %s", s); |
430 |
|
exit(EXIT_FAILURE); |
431 |
+ |
return; /* Not reached */ |
432 |
|
} |
433 |
|
|
434 |
|
SSL_CTX_set_options(ConfigServerInfo.server_ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TICKET); |
436 |
|
SSL_CTX_set_verify(ConfigServerInfo.server_ctx, SSL_VERIFY_PEER|SSL_VERIFY_CLIENT_ONCE, |
437 |
|
always_accept_verify_cb); |
438 |
|
SSL_CTX_set_session_cache_mode(ConfigServerInfo.server_ctx, SSL_SESS_CACHE_OFF); |
439 |
+ |
SSL_CTX_set_cipher_list(ConfigServerInfo.server_ctx, "EECDH+HIGH:EDH+HIGH:HIGH:!aNULL"); |
440 |
|
|
441 |
|
#if OPENSSL_VERSION_NUMBER >= 0x009080FFL && !defined(OPENSSL_NO_ECDH) |
442 |
|
{ |
457 |
|
const char *s = ERR_lib_error_string(ERR_get_error()); |
458 |
|
|
459 |
|
fprintf(stderr, "ERROR: Could not initialize the SSL Client context -- %s\n", s); |
460 |
< |
ilog(LOG_TYPE_IRCD, "ERROR: Could not initialize the SSL Client context -- %s\n", s); |
460 |
> |
ilog(LOG_TYPE_IRCD, "ERROR: Could not initialize the SSL Client context -- %s", s); |
461 |
|
exit(EXIT_FAILURE); |
462 |
+ |
return; /* Not reached */ |
463 |
|
} |
464 |
|
|
465 |
|
SSL_CTX_set_options(ConfigServerInfo.client_ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TICKET); |
547 |
|
dbuf_init(); |
548 |
|
hash_init(); |
549 |
|
ipcache_init(); |
547 |
– |
init_host_hash(); /* Host-hashtable. */ |
550 |
|
client_init(); |
551 |
|
class_init(); |
552 |
|
whowas_init(); |