Use ECDSA to sign ECDH key exchange for UDP session keys.

The ECDSA public keys will also be included in the ANS_KEY requests,
but are only used when no ECDSA public key is known yet.
This commit is contained in:
Guus Sliepen 2011-07-16 20:21:44 +02:00
parent 03ac48ea19
commit cff27a258f
11 changed files with 116 additions and 17 deletions

View file

@ -547,7 +547,7 @@ static bool upgrade_h(connection_t *c, char *request) {
}
logger(LOG_INFO, "Got ECDSA public key from %s (%s), upgrading!", c->name, c->hostname);
append_connection_config(c, "ECDSAPublicKey", pubkey);
append_config_file(c->name, "ECDSAPublicKey", pubkey);
c->allow_request = TERMREQ;
return send_termreq(c);
}