X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=a618e63f0d9158f78ba813b0efbb660599da8684;hp=89e0c93405b697273edf84866fc14e9adb2f3fd1;hb=a08462bf845973016e061b8ca1233142d80416f6;hpb=1c2cd7ed273ee1538ff8a13d036c68aa9992c4aa diff --git a/src/tincd.c b/src/tincd.c index 89e0c934..a618e63f 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -5,6 +5,7 @@ 2008 Max Rijevski 2009 Michael Tokarev 2010 Julien Muchembled + 2010 Timothy Redaelli 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 @@ -364,6 +365,7 @@ static bool keygen(int bits) { fchmod(fileno(f), 0600); #endif + fputc('\n', f); PEM_write_RSAPrivateKey(f, rsa_key, NULL, NULL, 0, NULL, NULL); fclose(f); free(filename); @@ -381,6 +383,7 @@ static bool keygen(int bits) { if(disable_old_keys(f)) fprintf(stderr, "Warning: old key(s) found and disabled.\n"); + fputc('\n', f); PEM_write_RSAPublicKey(f, rsa_key); fclose(f); free(filename);