summaryrefslogtreecommitdiffstats
path: root/libssh/keyfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/keyfiles.c')
-rw-r--r--libssh/keyfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c
index ee0b3ec..b96cc63 100644
--- a/libssh/keyfiles.c
+++ b/libssh/keyfiles.c
@@ -208,7 +208,7 @@ int privatekey_decrypt(int algo, int mode, unsigned int key_len,
if (passphrase_len <= 0)
return 0;
passphrase_to_key(passphrase, passphrase_len, iv, key, key_len);
- if (gcry_cipher_open(&cipher, algo, mode, GCRY_CIPHER_SECURE)
+ if (gcry_cipher_open(&cipher, algo, mode, 0)
|| gcry_cipher_setkey(cipher, key, key_len)
|| gcry_cipher_setiv(cipher, iv, iv_len)
|| !(tmp = malloc(buffer_get_len(data) * sizeof (char)))