X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=src%2Fnet_setup.c;h=12b09a91045e716af1165804ba54cf834ff67da2;hp=a6fd3d06f3729fbf6481b51c634472348293c0dc;hb=a227843b739d279b63adcf3736ebb03d856080c4;hpb=5dde6461a321ee47b06e33f8203f2acf00a31a51 diff --git a/src/net_setup.c b/src/net_setup.c index a6fd3d0..12b09a9 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -49,8 +49,6 @@ bool read_rsa_public_key(connection_t *c) { char *fname; char *key; - cp(); - if(!c->rsa_key) { c->rsa_key = RSA_new(); // RSA_blinding_on(c->rsa_key, NULL); @@ -149,8 +147,6 @@ bool read_rsa_private_key(void) { char *fname, *key, *pubkey; struct stat s; - cp(); - if(get_config_string(lookup_config(config_tree, "PrivateKey"), &key)) { if(!get_config_string(lookup_config(myself->connection->config_tree, "PublicKey"), &pubkey)) { logger(LOG_ERR, _("PrivateKey used but no PublicKey found!")); @@ -217,8 +213,6 @@ bool setup_myself(void) { bool choice; int i, err; - cp(); - myself = new_node(); myself->connection = new_connection(); init_configuration(&myself->connection->config_tree); @@ -504,8 +498,6 @@ bool setup_myself(void) { initialize network */ bool setup_network(void) { - cp(); - now = time(NULL); init_events(); @@ -545,8 +537,6 @@ void close_network_connections(void) { char *envp[5]; int i; - cp(); - for(node = connection_tree->head; node; node = next) { next = node->next; c = node->data;