From 0171de7653dbc409f8a936e80a8c9bc3ab3d1bdb Mon Sep 17 00:00:00 2001 From: Andreas Kotes Date: Wed, 16 Apr 2014 15:20:49 +0200 Subject: version 0.19 * fixed version string display * failing on SSL verify failures * removed ignssl option * reenabled ciphers options * added verifyssl option (cert verify depth) --- vchat-client.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'vchat-client.c') diff --git a/vchat-client.c b/vchat-client.c index f5cd516..1efcd7d 100755 --- a/vchat-client.c +++ b/vchat-client.c @@ -32,7 +32,7 @@ #include "vchat-user.h" /* version of this module */ -char *vchat_cl_version = "$Id$"; +const char *vchat_cl_version = "$Id$"; /* externally used variables */ /* we're logged in */ @@ -442,6 +442,17 @@ void usage( char *name) { puts (" -n set nickname"); printf (" -f set from (default \"%s\")\n",getstroption(CF_FROM)); puts (" -h gives this help"); + puts (" -v show module versions"); +} + +void versions() { + puts (vchat_cl_version); + puts (vchat_ui_version); + puts (vchat_io_version); + puts (vchat_us_version); + puts (vchat_cm_version); + puts (vchat_ssl_version); + puts (vchat_ssl_version_external); } /* main - d'oh */ @@ -456,9 +467,12 @@ main (int argc, char **argv) loadconfig (GLOBAL_CONFIG_FILE); loadconfig (getstroption (CF_CONFIGFILE)); + /* make SSL version used visible */ + vchat_ssl_get_version_external(); + /* parse commandline */ while (cmdsunparsed) { - pchar = getopt(argc,argv,"C:F:lzs:p:c:n:f:kKL:h"); + pchar = getopt(argc,argv,"C:F:lzs:p:c:n:f:kKL:hv"); #ifdef DEBUG fprintf(stderr,"parse commandline: %d ('%c'): %s\n",pchar,pchar,optarg); #endif @@ -475,6 +489,7 @@ main (int argc, char **argv) case 'n': own_nick_set(optarg); break; case 'f': setstroption(CF_FROM,optarg); break; case 'h': usage(argv[0]); exit(0); break; + case 'v': versions(); exit(0); break; default : usage(argv[0]); exit(1); } } -- cgit v1.2.3