rpki-client: fix incorrect use of ASN1_tag2str()
authortb <tb@openbsd.org>
Tue, 11 Jun 2024 10:38:40 +0000 (10:38 +0000)
committertb <tb@openbsd.org>
Tue, 11 Jun 2024 10:38:40 +0000 (10:38 +0000)
commit1731179d99a5114f9b9915e3a010e72b1f0fbc81
treeaaef7a8dd58d23ce29e3371a31e13ec21b686683
parent9032038bb3b0771c4b92980121fdb12a0718e868
rpki-client: fix incorrect use of ASN1_tag2str()

This goes back to the initial import in mft.c and was then copied to rsc.c.
ASN1_tag2str() doesn't take a nid but rather an ASN.1 tag. Use nid2str()
instead.

ok claudio (who helped me use nid2str() correctly)
usr.sbin/rpki-client/mft.c
usr.sbin/rpki-client/rsc.c