| 432 |
|
* side effects - setups SSL context. |
| 433 |
|
*/ |
| 434 |
|
static void |
| 435 |
< |
init_ssl(void) |
| 435 |
> |
ssl_init(void) |
| 436 |
|
{ |
| 437 |
|
#ifdef HAVE_LIBCRYPTO |
| 438 |
|
SSL_load_error_strings(); |
| 466 |
|
#endif /* HAVE_LIBCRYPTO */ |
| 467 |
|
} |
| 468 |
|
|
| 469 |
– |
/* init_callbacks() |
| 470 |
– |
* |
| 471 |
– |
* inputs - nothing |
| 472 |
– |
* output - nothing |
| 473 |
– |
* side effects - setups standard hook points |
| 474 |
– |
*/ |
| 475 |
– |
static void |
| 476 |
– |
init_callbacks(void) |
| 477 |
– |
{ |
| 478 |
– |
iorecv_cb = register_callback("iorecv", iorecv_default); |
| 479 |
– |
iosend_cb = register_callback("iosend", iosend_default); |
| 480 |
– |
} |
| 481 |
– |
|
| 469 |
|
int |
| 470 |
|
main(int argc, char *argv[]) |
| 471 |
|
{ |
| 518 |
|
exit(EXIT_FAILURE); |
| 519 |
|
} |
| 520 |
|
|
| 521 |
< |
init_ssl(); |
| 521 |
> |
ssl_init(); |
| 522 |
|
|
| 523 |
|
if (!server_state.foreground) |
| 524 |
|
{ |
| 542 |
|
|
| 543 |
|
mp_pool_init(); |
| 544 |
|
init_dlink_nodes(); |
| 558 |
– |
init_callbacks(); |
| 545 |
|
initialize_message_files(); |
| 546 |
|
dbuf_init(); |
| 547 |
< |
init_hash(); |
| 547 |
> |
hash_init(); |
| 548 |
|
init_ip_hash_table(); /* client host ip hash table */ |
| 549 |
|
init_host_hash(); /* Host-hashtable. */ |
| 550 |
< |
init_client(); |
| 550 |
> |
client_init(); |
| 551 |
|
class_init(); |
| 552 |
|
whowas_init(); |
| 553 |
|
watch_init(); |
| 554 |
< |
init_auth(); /* Initialise the auth code */ |
| 554 |
> |
auth_init(); /* Initialise the auth code */ |
| 555 |
|
init_resolver(); /* Needs to be setup before the io loop */ |
| 556 |
|
modules_init(); |
| 557 |
|
read_conf_files(1); /* cold start init conf files */ |
| 558 |
|
init_uid(); |
| 559 |
|
initialize_server_capabs(); /* Set up default_server_capabs */ |
| 560 |
|
initialize_global_set_options(); |
| 561 |
< |
init_channels(); |
| 561 |
> |
channel_init(); |
| 562 |
|
|
| 563 |
|
if (EmptyString(ServerInfo.sid)) |
| 564 |
|
{ |