Rewrite/simplify X509v3_addr_is_canonical()
authortb <tb@openbsd.org>
Tue, 28 Dec 2021 20:50:37 +0000 (20:50 +0000)
committertb <tb@openbsd.org>
Tue, 28 Dec 2021 20:50:37 +0000 (20:50 +0000)
commitb5341c5be7c09b0b87b6ade5e9fb8ee218ef8df5
tree7af42b348fb7e2283611409747695c0ae6cfe149
parentf8fec339cdfda39838207e997e4a3383198ae858
Rewrite/simplify X509v3_addr_is_canonical()

This is a more or less straightforward conversion using the new
IPAddressFamily accessor API. As a result, some checks have become
a bit stricter, which is only desirable here.

ok jsing
lib/libcrypto/x509/x509_addr.c