diff dropbearkey.c @ 1336:efad433418c4

Use atomic key generation in all cases
author Matt Johnston <matt@ucc.asn.au>
date Sat, 19 Nov 2016 00:31:21 +0800
parents 2bb4c662d1c2
children 8747c2b19152
line wrap: on
line diff
--- a/dropbearkey.c	Wed May 11 12:35:06 2016 +0200
+++ b/dropbearkey.c	Sat Nov 19 00:31:21 2016 +0800
@@ -241,7 +241,7 @@
 	}
 
 	fprintf(stderr, "Generating key, this may take a while...\n");
-	if (signkey_generate(keytype, bits, filename) == DROPBEAR_FAILURE)
+	if (signkey_generate(keytype, bits, filename, 0) == DROPBEAR_FAILURE)
 	{
 		dropbear_exit("Failed to generate key.\n");
 	}