--- gvpe/src/vpectrl.C 2003/10/16 02:41:21 1.5 +++ gvpe/src/vpectrl.C 2004/06/11 15:56:35 1.11 @@ -1,8 +1,8 @@ /* - vpectrl.C -- the main file for vpectrl + vpectrl.C -- the main file for gvpectrl Copyright (C) 1998-2002 Ivo Timmermans 2000-2002 Guus Sliepen - 2003 Marc Lehmann + 2003-2004 Marc Lehmann This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,6 +23,8 @@ #include #include +#include +#include #include #include @@ -126,8 +128,6 @@ kill_vped = SIGUSR1; else if (!strcasecmp (optarg, "USR2")) kill_vped = SIGUSR2; - else if (!strcasecmp (optarg, "WINCH")) - kill_vped = SIGWINCH; else if (!strcasecmp (optarg, "INT")) kill_vped = SIGINT; else if (!strcasecmp (optarg, "ALRM")) @@ -238,7 +238,7 @@ if (!f) { perror (fname); - exit (1); + exit (EXIT_FAILURE); } if (ftell (f)) @@ -262,7 +262,7 @@ else fprintf (stderr, _("Done.\n")); - PEM_write_RSAPublicKey (f, rsa_key); + require (PEM_write_RSAPublicKey (f, rsa_key)); fclose (f); free (fname); @@ -272,10 +272,10 @@ if (!f) { perror (fname); - exit (1); + exit (EXIT_FAILURE); } - PEM_write_RSAPrivateKey (f, rsa_key, NULL, NULL, 0, NULL, NULL); + require (PEM_write_RSAPrivateKey (f, rsa_key, NULL, NULL, 0, NULL, NULL)); fclose (f); free (fname); } @@ -299,6 +299,7 @@ { printf (_("%s version %s (built %s %s, protocol %d.%d)\n"), get_identity (), VERSION, __DATE__, __TIME__, PROTOCOL_MAJOR, PROTOCOL_MINOR); + printf (_("Built with kernel interface %s/%s.\n"), IFTYPE, IFSUBTYPE); printf (_ ("Copyright (C) 2003 Marc Lehmann and others.\n" "See the AUTHORS file for a complete list.\n\n" @@ -312,7 +313,6 @@ if (show_help) usage (0); - make_names (); conf.read_config (false); if (generate_keys) @@ -327,7 +327,7 @@ if (show_config) { conf.print (); - exit (0); + exit (EXIT_SUCCESS); } usage (1);