diff options
author | Jean-Philippe Garcia Ballester <giga@le-pec.org> | 2006-03-01 16:32:22 +0000 |
---|---|---|
committer | Jean-Philippe Garcia Ballester <giga@le-pec.org> | 2006-03-01 16:32:22 +0000 |
commit | 770e73d8b7d0ca1e3fd8faab08cb88307d1b1c99 (patch) | |
tree | 22b77de706cd0e0506159db40be970f949bc17bb /libssh/client.c | |
parent | 10b1a631e8794932a57c84b41a6bf3870416a4cd (diff) | |
download | libssh-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/client.c')
-rw-r--r-- | libssh/client.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libssh/client.c b/libssh/client.c index 437edfd..bfb52f3 100644 --- a/libssh/client.c +++ b/libssh/client.c @@ -20,13 +20,11 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <stdio.h> -#include <unistd.h> #include <stdlib.h> #include <string.h> #include <netdb.h> #include "libssh/priv.h" #include "libssh/ssh2.h" -extern int connections; #define set_status(opt,status) do {\ if (opt->connect_status_function) \ @@ -316,12 +314,6 @@ void ssh_disconnect(SSH_SESSION *session){ } session->alive=0; ssh_cleanup(session); - if (!--connections) -#ifdef HAVE_LIBGCRYPT - gcry_control(GCRYCTL_TERM_SECMEM); -#elif defined HAVE_LIBCRYPTO - EVP_cleanup(); -#endif } const char *ssh_copyright(){ |