Normalize the nid printing
authortb <tb@openbsd.org>
Thu, 1 Feb 2024 15:11:38 +0000 (15:11 +0000)
committertb <tb@openbsd.org>
Thu, 1 Feb 2024 15:11:38 +0000 (15:11 +0000)
commit78de35773665c96cc0dbb081f7ba59064bb221c2
tree5c952f636f44198d0b22c70231b89de0d3d8b49c
parent6b941460852776d7795c139bd9a6ee4d236b9d40
Normalize the nid printing

OBJ_nid2* can return NULL if the gloriously consistent objects.txt
database doesn't specify a long or a short name. So try the long name
first, fall back to the short name, and if both fail, use "unknown".
Always include the nid as a decimal.

ok claudio
usr.sbin/rpki-client/cert.c
usr.sbin/rpki-client/cms.c
usr.sbin/rpki-client/crl.c
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/print.c
usr.sbin/rpki-client/validate.c
usr.sbin/rpki-client/x509.c