diff options
Diffstat (limited to 'vchat-client.c')
-rwxr-xr-x | vchat-client.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/vchat-client.c b/vchat-client.c index e0fc214..56cc721 100755 --- a/vchat-client.c +++ b/vchat-client.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <fcntl.h> | 25 | #include <fcntl.h> |
26 | #include <signal.h> | 26 | #include <signal.h> |
27 | #include <readline/readline.h> | 27 | #include <readline/readline.h> |
28 | #include <openssl/ssl.h> | ||
29 | #ifndef NO_LOCALE | 28 | #ifndef NO_LOCALE |
30 | #include <locale.h> | 29 | #include <locale.h> |
31 | #endif | 30 | #endif |
@@ -509,15 +508,11 @@ main (int argc, char **argv) | |||
509 | loadformats(GLOBAL_FORMAT_FILE); | 508 | loadformats(GLOBAL_FORMAT_FILE); |
510 | loadformats(getstroption (CF_FORMFILE)); | 509 | loadformats(getstroption (CF_FORMFILE)); |
511 | 510 | ||
512 | if (!getintoption(CF_USESSL)) { | 511 | if (!getintoption(CF_USESSL)) |
513 | setstroption(CF_SERVERHOST,"localhost"); | 512 | setstroption(CF_SERVERPORT,"2323"); |
514 | setstroption(CF_SERVERPORT,"2323"); | 513 | else |
515 | } else { | 514 | setstroption(CF_SERVERPORT,"2325"); |
516 | SSL_library_init (); | ||
517 | SSL_load_error_strings (); | ||
518 | } | ||
519 | 515 | ||
520 | |||
521 | /* install signal handler */ | 516 | /* install signal handler */ |
522 | signal (SIGINT, cleanup); | 517 | signal (SIGINT, cleanup); |
523 | signal (SIGHUP, cleanup); | 518 | signal (SIGHUP, cleanup); |