v3_crl_reason - getting acess to the various CRL reasons

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

v3_crl_reason - getting acess to the various CRL reasons

Dirk-Willem van Gulik
I'd like to use the

        crl_reasons

table in v3_enums.c as the single source of truth (as opposed to building this list into other tooling - because; as it skips the number 7 - is very easy to get wrong & some opensource tools do get it wrong).

Now there is a i2s_ASN1_ENUMERATED_TABLE() - but is there something the opposite ? That lets me take a string, like cessationOfOperation and get the CRL_REASON_CESSATION_OF_OPERATION value ? (As opposed to hardcoding BIT_STRING_BITNAME understanding parsing of user_data) ?

With kind regards,

Dw