projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the TAP-Win32 reader thread.
[tinc]
/
src
/
connection.c
diff --git
a/src/connection.c
b/src/connection.c
index
4798c5a
..
496f674
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-1,6
+1,6
@@
/*
connection.c -- connection list management
/*
connection.c -- connection list management
- Copyright (C) 2000-201
2
Guus Sliepen <guus@tinc-vpn.org>,
+ Copyright (C) 2000-201
3
Guus Sliepen <guus@tinc-vpn.org>,
2000-2005 Ivo Timmermans
2008 Max Rijevski <maksuf@gmail.com>
2000-2005 Ivo Timmermans
2008 Max Rijevski <maksuf@gmail.com>
@@
-27,6
+27,7
@@
#include "control_common.h"
#include "list.h"
#include "logger.h"
#include "control_common.h"
#include "list.h"
#include "logger.h"
+#include "rsa.h"
#include "subnet.h"
#include "utils.h"
#include "xalloc.h"
#include "subnet.h"
#include "utils.h"
#include "xalloc.h"
@@
-47,21
+48,21
@@
void exit_connections(void) {
}
connection_t *new_connection(void) {
}
connection_t *new_connection(void) {
- return x
malloc_and_zero
(sizeof(connection_t));
+ return x
zalloc
(sizeof(connection_t));
}
void free_connection(connection_t *c) {
if(!c)
return;
}
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);
+ cipher_close(c->incipher);
+ digest_close(c->indigest);
+ cipher_close(c->outcipher);
+ digest_close(c->outdigest);
sptps_stop(&c->sptps);
sptps_stop(&c->sptps);
- ecdsa_free(
&
c->ecdsa);
- rsa_free(
&
c->rsa);
+ ecdsa_free(c->ecdsa);
+ rsa_free(c->rsa);
free(c->hischallenge);
free(c->hischallenge);