Rework the warnings on internet resources
authortb <tb@openbsd.org>
Wed, 27 Dec 2023 07:15:55 +0000 (07:15 +0000)
committertb <tb@openbsd.org>
Wed, 27 Dec 2023 07:15:55 +0000 (07:15 +0000)
commit4032f119c8feecd08b37d707cab08371c68de82b
tree6116049f5a05bbc8e254c6f1e3689b2a3798e7bc
parent5333276fe3d6261aa5e15103ecdfd4085fde40a5
Rework the warnings on internet resources

Unify the printing of warnings about AS numbers and IP address blocks to
use a call to as_warn() and ip_warn(). Fix a bug in the latter where the
upper bound of an IP range didn't take the RFC 3779 encoding into account
and passed the address directly to inet_pton() rather than filling the
missing bits with 1. Switch the argument order to match the warnings and
tweak some warning messages.

ok claudio job
usr.sbin/rpki-client/as.c
usr.sbin/rpki-client/constraints.c
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/ip.c
usr.sbin/rpki-client/validate.c