Rework how various OIDs are compared in the code.
authorclaudio <claudio@openbsd.org>
Thu, 9 Sep 2021 14:15:49 +0000 (14:15 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 9 Sep 2021 14:15:49 +0000 (14:15 +0000)
commitd2e465bb280e6135e858181ab3cb4a0a53336e09
tree470bdfd6eb085ac574fcf4a72f30dd40252f2fc6
parent0b5b934721ba9a4677b17c207dc955cae91d17e2
Rework how various OIDs are compared in the code.

Instead of converting the ASN1_OBJECT into a string and comparing the
strings, convert the string into an ASN1_OBJECT once and then compare
these objects with OBJ_cmp().

Makes the code a bit easier to read and removes some repetitive conversions.
With input and OK tb@
usr.sbin/rpki-client/cert.c
usr.sbin/rpki-client/cms.c
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/gbr.c
usr.sbin/rpki-client/mft.c
usr.sbin/rpki-client/roa.c