Simplify make_addressPrefix()
authortb <tb@openbsd.org>
Tue, 17 May 2022 07:50:59 +0000 (07:50 +0000)
committertb <tb@openbsd.org>
Tue, 17 May 2022 07:50:59 +0000 (07:50 +0000)
commit5a0c623b1118fb21a05d18f4e224038d5341d8a5
tree9115f037e4bfa0ba81841b2aa1cc5844846b204e
parentf1d3dddb05bf3705a5446cd4d6e233db4adec2e3
Simplify make_addressPrefix()

In order to set the BIT STRING containing an address prefix, use existing
helper functions from the ASN.1 code instead of redoing everything by
hand. Make the function single exit and rename a few variables to make
it clearer what is being done.

ok jsing
lib/libcrypto/x509/x509_addr.c