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 |
… | |
… | |
347 | static int |
347 | static int |
348 | keygen_one (const char *pubname) |
348 | keygen_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 | { |