[Swan-commit] Changes to ref refs/heads/main
D. Hugh Redelmeier
hugh at vault.libreswan.fi
Mon May 3 17:54:41 UTC 2021
Author: D. Hugh Redelmeier <hugh at mimosa.com>
Date: Mon May 3 12:37:40 2021 -0400
libswan/ttoaddress.c: use getaddrinfo(3) instead of gethostbyname2(3)
Modernization. Much simplification.
I'm not sure if we lose support for hex representation of IP
addresses. Unit tests still pass.
I'm not sure if what happens when putitive domain names contain bad
characters. Unit tests still pass.
We always accept the first result from getaddrinfo(3). This may
change prioritization of IPv4 vs IPv6, but at least it matches RFC
3484 (according to the man page).
More information about the Swan-commit