projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
K&R style braces
[tinc]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
22a9561
..
327cdcc
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-46,8
+46,7
@@
char *myport;
static struct event device_ev;
char *myport;
static struct event device_ev;
-bool read_rsa_public_key(connection_t *c)
-{
+bool read_rsa_public_key(connection_t *c) {
FILE *fp;
char *fname;
char *key;
FILE *fp;
char *fname;
char *key;
@@
-147,8
+146,7
@@
bool read_rsa_public_key(connection_t *c)
return false;
}
return false;
}
-bool read_rsa_private_key(void)
-{
+bool read_rsa_private_key(void) {
FILE *fp;
char *fname, *key, *pubkey;
struct stat s;
FILE *fp;
char *fname, *key, *pubkey;
struct stat s;
@@
-241,8
+239,7
@@
void regenerate_key() {
/*
Configure node_t myself and set up the local sockets (listen only)
*/
/*
Configure node_t myself and set up the local sockets (listen only)
*/
-bool setup_myself(void)
-{
+bool setup_myself(void) {
config_t *cfg;
subnet_t *subnet;
char *name, *hostname, *mode, *afname, *cipher, *digest;
config_t *cfg;
subnet_t *subnet;
char *name, *hostname, *mode, *afname, *cipher, *digest;
@@
-576,8
+573,7
@@
bool setup_myself(void)
/*
setup all initial network connections
*/
/*
setup all initial network connections
*/
-bool setup_network_connections(void)
-{
+bool setup_network_connections(void) {
cp();
init_connections();
cp();
init_connections();
@@
-612,8
+608,7
@@
bool setup_network_connections(void)
/*
close all open network connections
*/
/*
close all open network connections
*/
-void close_network_connections(void)
-{
+void close_network_connections(void) {
avl_node_t *node, *next;
connection_t *c;
char *envp[5];
avl_node_t *node, *next;
connection_t *c;
char *envp[5];