mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 10:26:47 +09:00
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:
@@ -354,7 +354,7 @@ static void torture_pki_ecdsa_write_privkey(void **state)
|
||||
unlink(LIBSSH_ECDSA_TESTKEY);
|
||||
|
||||
rc = ssh_pki_export_privkey_file(origkey,
|
||||
"",
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
LIBSSH_ECDSA_TESTKEY);
|
||||
|
||||
Reference in New Issue
Block a user