//
// X509v3_get_ext_by_NID from 0x8417a4 to 0x8417d8 (52 bytes)
//
// 9 xrefs:
// > OCSP_REQUEST_get_ext_by_NID @ 0x81e118
// > OCSP_ONEREQ_get_ext_by_NID @ 0x81e170
// > OCSP_BASICRESP_get_ext_by_NID @ 0x81e1c8
// > OCSP_SINGLERESP_get_ext_by_NID @ 0x81e220
// > X509_CRL_get_ext_by_NID @ 0x83f250
// > X509_get_ext_by_NID @ 0x83f2a8
// > X509_REVOKED_get_ext_by_NID @ 0x83f300
// > X509V3_add1_i2d @ 0x857850
// > ??> @ 0x6490c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall X509v3_get_ext_by_NID(_DWORD *a1, unsigned int a2, int a3)
{
char **v5; // r1
v5 = OBJ_nid2obj(a2);
if ( v5 )
return X509v3_get_ext_by_OBJ(a1, (int)v5, a3);
else
return -2;
}