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
This commit is contained in:
Jean-Philippe Garcia Ballester
2006-03-01 16:32:22 +00:00
parent 10b1a631e8
commit 770e73d8b7
5 changed files with 23 additions and 36 deletions

View File

@@ -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(){