Fix check for presence of ECDSA public key for outgoing connections.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 11 May 2013 12:04:39 +0000 (14:04 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 11 May 2013 12:04:39 +0000 (14:04 +0200)
At this point, c->config_tree may or may not be NULL, but this does not tell us whether it is an
outgoing connection or not. For incoming connections, we do not know the peer's name yet,
so we always have to claim ECDSA support. For outgoing connections, we always need to check
whether we have the peer's ECDSA public key, so that if we don't, we correctly tell the peer that
we want to upgrade.


No differences found