Skip to content

[Bug]: enabling NO_VERIFY_OID can break compilation #10423

@DrKatieL

Description

@DrKatieL

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions