aboutsummaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-09-17 00:17:45 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2011-09-18 20:34:16 +0200
commitac41a083efd64d94dfb15845c6c25ba5667ba8b8 (patch)
tree3642f3995daf89d56e99f3da2ba57950a46608be /src/session.c
parent48980573c1918034216ac307fd3e687d09d352bc (diff)
downloadlibssh-ac41a083efd64d94dfb15845c6c25ba5667ba8b8.tar.gz
libssh-ac41a083efd64d94dfb15845c6c25ba5667ba8b8.tar.xz
libssh-ac41a083efd64d94dfb15845c6c25ba5667ba8b8.zip
kex: moved KEX structures to ssh_crypto_struct
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/session.c b/src/session.c
index ba03a89b..34465dfa 100644
--- a/src/session.c
+++ b/src/session.c
@@ -197,17 +197,6 @@ void ssh_free(ssh_session session) {
#ifndef _WIN32
agent_free(session->agent);
#endif /* _WIN32 */
- if (session->client_kex.methods) {
- for (i = 0; i < 10; i++) {
- SAFE_FREE(session->client_kex.methods[i]);
- }
- }
-
- if (session->server_kex.methods) {
- for (i = 0; i < 10; i++) {
- SAFE_FREE(session->server_kex.methods[i]);
- }
- }
ssh_key_free(session->srv.dsa_key);
ssh_key_free(session->srv.rsa_key);