From 770e73d8b7d0ca1e3fd8faab08cb88307d1b1c99 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Garcia Ballester Date: Wed, 1 Mar 2006 16:32:22 +0000 Subject: 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 --- libssh/client.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'libssh/client.c') 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 -#include #include #include #include #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(){ -- cgit