Contact Details
No response
Version
latest master
Description
in asn.c function GetOID line 7258 actualOidSz and actualOid are defined in an #ifndef NO_VERIFY_OID block. They are then used outside a #ifndef NO_VERIFY_OID block for *oid = wc_oid_sum(actualOid, (int)actualOidSz); on line 7296. Either the oid sum shouldn't be calculated with this option defined or the variable definitions should be moved outside of the ifdef.
Reproduction steps
read asn.c GetOID.
Enable NO_VERIFY_OID and attempt to compile. (Note I'm using a WolfHSM build with a custom user_settings.h to build the library.)
Relevant log output
Contact Details
No response
Version
latest master
Description
in asn.c function GetOID line 7258 actualOidSz and actualOid are defined in an #ifndef NO_VERIFY_OID block. They are then used outside a #ifndef NO_VERIFY_OID block for *oid = wc_oid_sum(actualOid, (int)actualOidSz); on line 7296. Either the oid sum shouldn't be calculated with this option defined or the variable definitions should be moved outside of the ifdef.
Reproduction steps
read asn.c GetOID.
Enable NO_VERIFY_OID and attempt to compile. (Note I'm using a WolfHSM build with a custom user_settings.h to build the library.)
Relevant log output