| 260 |
|
static void |
| 261 |
|
initialize_global_set_options(void) |
| 262 |
|
{ |
| 263 |
– |
memset(&GlobalSetOptions, 0, sizeof(GlobalSetOptions)); |
| 264 |
– |
|
| 263 |
|
GlobalSetOptions.autoconn = 1; |
| 264 |
|
GlobalSetOptions.spam_time = MIN_JOIN_LEAVE_TIME; |
| 265 |
|
GlobalSetOptions.spam_num = MAX_JOIN_LEAVE_COUNT; |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
GlobalSetOptions.ident_timeout = IDENT_TIMEOUT; |
| 289 |
– |
/* End of global set options */ |
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
/* initialize_server_capabs() |
| 430 |
|
ilog(LOG_TYPE_IRCD, "ERROR: Could not initialize the SSL Server context -- %s\n", s); |
| 431 |
|
} |
| 432 |
|
|
| 433 |
< |
SSL_CTX_set_options(ServerInfo.server_ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1); |
| 433 |
> |
SSL_CTX_set_options(ServerInfo.server_ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3); |
| 434 |
|
SSL_CTX_set_options(ServerInfo.server_ctx, SSL_OP_SINGLE_DH_USE); |
| 435 |
|
SSL_CTX_set_verify(ServerInfo.server_ctx, SSL_VERIFY_PEER|SSL_VERIFY_CLIENT_ONCE, |
| 436 |
|
always_accept_verify_cb); |
| 458 |
|
ilog(LOG_TYPE_IRCD, "ERROR: Could not initialize the SSL Client context -- %s\n", s); |
| 459 |
|
} |
| 460 |
|
|
| 461 |
< |
SSL_CTX_set_options(ServerInfo.client_ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1); |
| 461 |
> |
SSL_CTX_set_options(ServerInfo.client_ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3); |
| 462 |
|
SSL_CTX_set_options(ServerInfo.client_ctx, SSL_OP_SINGLE_DH_USE); |
| 463 |
|
SSL_CTX_set_verify(ServerInfo.client_ctx, SSL_VERIFY_PEER|SSL_VERIFY_CLIENT_ONCE, |
| 464 |
|
always_accept_verify_cb); |
| 541 |
|
init_isupport(); |
| 542 |
|
dbuf_init(); |
| 543 |
|
hash_init(); |
| 544 |
< |
init_ip_hash_table(); /* client host ip hash table */ |
| 544 |
> |
ipcache_init(); |
| 545 |
|
init_host_hash(); /* Host-hashtable. */ |
| 546 |
|
client_init(); |
| 547 |
|
class_init(); |
| 598 |
|
hash_add_id(&me); |
| 599 |
|
hash_add_client(&me); |
| 600 |
|
|
| 601 |
< |
/* add ourselves to global_serv_list */ |
| 605 |
< |
dlinkAdd(&me, make_dlink_node(), &global_serv_list); |
| 601 |
> |
dlinkAdd(&me, make_dlink_node(), &global_server_list); |
| 602 |
|
|
| 603 |
|
load_kline_database(); |
| 604 |
|
load_dline_database(); |