ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/gvpectrl.C
(Generate patch)

Comparing gvpe/src/gvpectrl.C (file contents):
Revision 1.21 by root, Wed Nov 2 05:58:53 2016 UTC vs.
Revision 1.24 by root, Thu Oct 25 03:13:13 2018 UTC

1/* 1/*
2 gvpectrl.C -- the main file for gvpectrl 2 gvpectrl.C -- the main file for gvpectrl
3 Copyright (C) 1998-2002 Ivo Timmermans <ivo@o2w.nl> 3 Copyright (C) 1998-2002 Ivo Timmermans <ivo@o2w.nl>
4 2000-2002 Guus Sliepen <guus@sliepen.eu.org> 4 2000-2002 Guus Sliepen <guus@sliepen.eu.org>
5 2003-2013 Marc Lehmann <gvpe@schmorp.de> 5 2003-2016 Marc Lehmann <gvpe@schmorp.de>
6 6
7 This file is part of GVPE. 7 This file is part of GVPE.
8 8
9 GVPE is free software; you can redistribute it and/or modify it 9 GVPE is free software; you can redistribute it and/or modify it
10 under the terms of the GNU General Public License as published by the 10 under the terms of the GNU General Public License as published by the
347static int 347static int
348keygen_one (const char *pubname) 348keygen_one (const char *pubname)
349{ 349{
350 char *privname; 350 char *privname;
351 351
352 asprintf (&privname, "%s.key", pubname); 352 asprintf (&privname, "%s.privkey", pubname);
353 353
354 int status = keygen (pubname, privname); 354 int status = keygen (pubname, privname);
355 355
356 if (status == 0) 356 if (status == 0)
357 { 357 {
362 { 362 {
363 fprintf (stderr, _("'%s' keypair already exists, not generating key.\n"), pubname); 363 fprintf (stderr, _("'%s' keypair already exists, not generating key.\n"), pubname);
364 exit (EXIT_FAILURE); 364 exit (EXIT_FAILURE);
365 } 365 }
366 366
367 free(privname); 367 free (privname);
368
369 return 0;
368} 370}
369 371
370int 372int
371main (int argc, char **argv, char **envp) 373main (int argc, char **argv, char **envp)
372{ 374{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines