Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
1335:253c08951b96 | 1336:efad433418c4 |
---|---|
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); |