pki_crypto: Fix private key generation with password

We need to specify a cipher when we generate a key with a password.
OpenSSH uses aes_128_cbc, so we should use the same.

Thanks to Julian Lunz for the report.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-01-09 20:20:53 +01:00
parent b0af812710
commit 67b8f3d6df
4 changed files with 6 additions and 6 deletions

View File

@@ -434,7 +434,7 @@ static void torture_pki_rsa_write_privkey(void **state)
unlink(LIBSSH_RSA_TESTKEY);
rc = ssh_pki_export_privkey_file(origkey,
"",
NULL,
NULL,
NULL,
LIBSSH_RSA_TESTKEY);