aboutsummaryrefslogtreecommitdiff
path: root/libssh/keyfiles.c
diff options
context:
space:
mode:
authorJean-Philippe Garcia Ballester <giga@le-pec.org>2006-03-01 16:32:22 +0000
committerJean-Philippe Garcia Ballester <giga@le-pec.org>2006-03-01 16:32:22 +0000
commit770e73d8b7d0ca1e3fd8faab08cb88307d1b1c99 (patch)
tree22b77de706cd0e0506159db40be970f949bc17bb /libssh/keyfiles.c
parent10b1a631e8794932a57c84b41a6bf3870416a4cd (diff)
downloadlibssh-770e73d8b7d0ca1e3fd8faab08cb88307d1b1c99.tar.gz
libssh-770e73d8b7d0ca1e3fd8faab08cb88307d1b1c99.tar.xz
libssh-770e73d8b7d0ca1e3fd8faab08cb88307d1b1c99.zip
keyfiles.c and wrapper.c: Remove useless secure memory flag (for libgcrypt)
dh.c: Initialize libgcrypt only if not done before client.c: Remove cleanup of cryptograhpic library. This needs to be put somewhere, like in a crypto_finish function or something. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@70 7dcaeef0-15fb-0310-b436-a5af3365683c
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 ee0b3ec4..b96cc63e 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)))