Write secret key out first (more likely to fail).

pull/2/head
Christopher Wellons 2017-03-07 09:23:53 -05:00
parent 2cb2c2d2cb
commit fcb4873498
1 changed files with 1 additions and 1 deletions

View File

@ -911,8 +911,8 @@ command_keygen(struct optparse *options)
}
compute_public(public, secret);
write_pubkey(pubfile, public);
write_seckey(secfile, secret, protect ? key_derive_iterations : 0);
write_pubkey(pubfile, public);
}
static void