diff dropbearkey.c @ 1329:185c14fa504d

Use atomic key generation in all cases
author Matt Johnston <matt@ucc.asn.au>
date Sat, 19 Nov 2016 00:31:21 +0800
parents 750ec4ec4cbe
children bbc0a0ee3843
line wrap: on
line diff
--- a/dropbearkey.c	Fri Nov 18 23:56:22 2016 +0800
+++ 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");
 	}