X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconnection.c;h=d25159e6438c2102b4d7747377ed0e3eba7dac01;hb=536701ed140f716713b4ebeb3f8273fc3b676869;hp=30cee02fa98374510a917d389ee46d344dd2f398;hpb=a86faaf34711d6b0f278b670d70a229a3cf0d479;p=meshlink diff --git a/src/connection.c b/src/connection.c index 30cee02f..d25159e6 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1,8 +1,6 @@ /* connection.c -- connection list management - Copyright (C) 2000-2013 Guus Sliepen , - 2000-2005 Ivo Timmermans - 2008 Max Rijevski + Copyright (C) 2000-2013 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,7 +25,6 @@ #include "connection.h" #include "list.h" #include "logger.h" -#include "rsa.h" #include "utils.h" #include "xalloc.h" @@ -54,16 +51,8 @@ void free_connection(connection_t *c) { if(!c) return; - cipher_close(c->incipher); - digest_close(c->indigest); - cipher_close(c->outcipher); - digest_close(c->outdigest); - sptps_stop(&c->sptps); ecdsa_free(c->ecdsa); - rsa_free(c->rsa); - - free(c->hischallenge); buffer_clear(&c->inbuf); buffer_clear(&c->outbuf);