comparison 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
comparison
equal deleted inserted replaced
1328:c13aa2cd8d51 1329:185c14fa504d
239 239
240 check_signkey_bits(keytype, bits);; 240 check_signkey_bits(keytype, bits);;
241 } 241 }
242 242
243 fprintf(stderr, "Generating key, this may take a while...\n"); 243 fprintf(stderr, "Generating key, this may take a while...\n");
244 if (signkey_generate(keytype, bits, filename) == DROPBEAR_FAILURE) 244 if (signkey_generate(keytype, bits, filename, 0) == DROPBEAR_FAILURE)
245 { 245 {
246 dropbear_exit("Failed to generate key.\n"); 246 dropbear_exit("Failed to generate key.\n");
247 } 247 }
248 248
249 printpubfile(filename); 249 printpubfile(filename);