Generalize sbgp_sia_location() to x509_location()
authortb <tb@openbsd.org>
Tue, 12 Apr 2022 08:45:34 +0000 (08:45 +0000)
committertb <tb@openbsd.org>
Tue, 12 Apr 2022 08:45:34 +0000 (08:45 +0000)
commit33e36affb48d3c88db1b4e58c5040ead002ef0e1
tree6ac40ca60c26da4aa95f84a624e06244e1af2646
parent2f6b917ad88fe6426196b2cb6e0589fde00dd818
Generalize sbgp_sia_location() to x509_location()

AIA and CRL URIs can reuse the code in sbgp_sia_location and thus get the
same checks as the SIA locations. This eliminates some more duplication
and makes the checks more stringent in that embedded NULs and "./" are no
longer allowed.

ok claudio
usr.sbin/rpki-client/cert.c
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/x509.c