#include "edge.h"
#include "net.h"
#include "node.h"
-#include "compression.h"
#ifndef DISABLE_LEGACY
typedef struct legacy_crypto_t {
sptps_t sptps;
int outmaclength;
-
- union {
- compression_level_t outcompression;
- debug_t log_level; // used for REQ_LOG
- };
+ debug_t log_level; /* used for REQ_LOG */
uint8_t *hischallenge; /* The challenge we sent to him */
uint8_t *mychallenge; /* The challenge we received */
myself->incompression = COMPRESS_NONE;
}
- myself->connection->outcompression = COMPRESS_NONE;
-
/* Done */
myself->nexthop = myself;
c->status.connecting = true;
c->name = xstrdup(outgoing->node->name);
c->outmaclength = myself->connection->outmaclength;
- c->outcompression = myself->connection->outcompression;
c->last_ping_time = now.tv_sec;
connection_add(c);
c = new_connection();
c->name = xstrdup("<unknown>");
c->outmaclength = myself->connection->outmaclength;
- c->outcompression = myself->connection->outcompression;
c->address = sa;
c->hostname = sockaddr2hostname(&sa);
#include "utils.h"
#include "xalloc.h"
#include "random.h"
+#include "compression.h"
#include "ed25519/sha512.h"
#include "keys.h"
bool result = send_request(c, "%d %d %d %d %d %s", METAKEY,
cipher_get_nid(&c->legacy->out.cipher),
digest_get_nid(&c->legacy->out.digest), c->outmaclength,
- c->outcompression, hexkey);
+ COMPRESS_NONE, hexkey);
c->status.encryptout = true;
return result;