X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconnection.c;h=d25159e6438c2102b4d7747377ed0e3eba7dac01;hb=2956559f7d12caa9779207525419801e0e9ab3e3;hp=02e1a84de4a8f96834401c7d0c2591828396189e;hpb=158cbe99f972a1613b7d4d95abfe5fe48e019e67;p=meshlink diff --git a/src/connection.c b/src/connection.c index 02e1a84d..d25159e6 100644 --- a/src/connection.c +++ b/src/connection.c @@ -25,7 +25,6 @@ #include "connection.h" #include "list.h" #include "logger.h" -#include "rsa.h" #include "utils.h" #include "xalloc.h" @@ -52,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);