X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=7595c48e16c48ba482d32467301d705d80f8f702;hb=2ba61742d4c2ab82525efb806dc654a6d95d335e;hp=fe935e1f594ea2f998e0005f365a59a64eac94fa;hpb=303dd1e70219a7542921f6e63d9391ab326d434f;p=tinc diff --git a/src/protocol_auth.c b/src/protocol_auth.c index fe935e1f..7595c48e 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -285,10 +285,10 @@ static bool metakey_ec_h(connection_t *c, const char *request) { free(seed); - cipher_set_key(&c->incipher, mykey, true); + cipher_set_key(&c->incipher, mykey, false); digest_set_key(&c->indigest, mykey + mykeylen, mykeylen); - cipher_set_key(&c->outcipher, hiskey, false); + cipher_set_key(&c->outcipher, hiskey, true); digest_set_key(&c->outdigest, hiskey + hiskeylen, hiskeylen); c->status.decryptin = true;