diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-16 14:04:19 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-16 14:04:19 +0000 |
commit | 1ed7c908908593346bc2e3cdf37aa26a4ac200ed (patch) | |
tree | 4f79d636f6bd04baed456097f95728da014f7efd /libssh/client.c | |
parent | 24fc1b2028ed03ac7355c05ad2c93d81f0d5497a (diff) | |
download | libssh-1ed7c908908593346bc2e3cdf37aa26a4ac200ed.tar.gz libssh-1ed7c908908593346bc2e3cdf37aa26a4ac200ed.tar.xz libssh-1ed7c908908593346bc2e3cdf37aa26a4ac200ed.zip |
Revert commit 491.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@492 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/client.c')
-rw-r--r-- | libssh/client.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libssh/client.c b/libssh/client.c index 26277f0..09f522a 100644 --- a/libssh/client.c +++ b/libssh/client.c @@ -449,11 +449,7 @@ int ssh_connect(SSH_SESSION *session) { session->alive = 0; session->client = 1; - if (ssh_crypto_init(session) < 0) { - ssh_set_error(session, SSH_FATAL, "Initializing crypto functions failed"); - leave_function(); - return SSH_ERROR; - } + ssh_crypto_init(); ssh_socket_init(); if (options->fd == -1 && options->host == NULL) { @@ -632,7 +628,6 @@ void ssh_disconnect(SSH_SESSION *session) { error: leave_function(); - ssh_crypto_finalize(session); ssh_cleanup(session); } |