mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 10:40:28 +09:00
added the gcrypt patch (without gcrypt as default library).
still needs tests. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@38 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -26,6 +26,7 @@ MA 02111-1307, USA. */
|
||||
#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) \
|
||||
@@ -277,6 +278,12 @@ 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(){
|
||||
|
||||
Reference in New Issue
Block a user