//
// OCSP_crlID_new from 0xdc4178 to 0xdc4248 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x38850
//
// 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
//
__int64 __fastcall OCSP_crlID_new(char *a1, _QWORD *a2, char *a3)
{
_QWORD *v6; // x19
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x20
v6 = (_QWORD *)OCSP_CRLID_new();
if ( v6
&& (!a1 || (v7 = ASN1_IA5STRING_new(), (*v6 = v7) != 0) && (unsigned int)ASN1_STRING_set(v7, a1, -1))
&& (!a2 || (v8 = ASN1_INTEGER_new(), (v6[1] = v8) != 0) && (unsigned int)ASN1_INTEGER_set(v8, *a2))
&& (!a3
|| (v9 = ASN1_GENERALIZEDTIME_new(), (v6[2] = v9) != 0) && (unsigned int)ASN1_GENERALIZEDTIME_set_string(v9, a3)) )
{
v10 = X509V3_EXT_i2d(367, 0, v6);
OCSP_CRLID_free((__int64)v6);
return v10;
}
else
{
OCSP_CRLID_free((__int64)v6);
return 0;
}
}