]> git.ipfire.org Git - thirdparty/strongswan.git/commit
ikev1: Ensure local IP is known as identity fallback during Main Mode
authorTobias Brunner <tobias@strongswan.org>
Mon, 8 Jun 2020 15:13:50 +0000 (17:13 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 11 Jun 2020 11:29:47 +0000 (13:29 +0200)
commit364d8b2628e57e3e9630f9ce37fe5d38a826b4a1
tree925ca590b50ff5d727ec1449236c60ca1cc89116
parent12e4dbb231ede35f85406cdf2025ee04f3519b2f
ikev1: Ensure local IP is known as identity fallback during Main Mode

We usually have a local IP already via ike_sa_t::resolve_hosts() before
build_i() is called but if that's not the case, it's more likely we have
one after we processed the first response (it might also have changed).
There is a potential chance we still don't have one if the socket API
doesn't provide us with the destination address of received messages,
but that seems not very likely nowadays.
src/libcharon/sa/ikev1/tasks/main_mode.c