summaryrefslogtreecommitdiff
path: root/vchat-client.c
diff options
context:
space:
mode:
authorerdgeist <>2007-06-27 21:59:32 +0000
committererdgeist <>2007-06-27 21:59:32 +0000
commit3c11bea99886b006ca499e1be6a3a17d225cedc7 (patch)
tree687a3e0e762669af85c5858420856b49686795cd /vchat-client.c
parentd4861ca31f0406f5c49023bc2c3bc4cfa54e3693 (diff)
Introducing new ssl code
Diffstat (limited to 'vchat-client.c')
-rwxr-xr-xvchat-client.c13
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);