//
// OCSP_cert_to_id from 0x1042960 to 0x10429f0 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x80d88
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:31 +0000
//
_QWORD *__fastcall OCSP_cert_to_id(unsigned int *a1, __int64 a2, __int64 a3)
{
unsigned int *v3; // x20
__int64 issuer_name; // x22
__int64 v6; // x19
int *v7; // x0
unsigned int *v9; // x0
__int64 v10; // [xsp+38h] [xbp+38h]
__int64 v11; // [xsp+38h] [xbp+38h]
v3 = a1;
if ( !a1 )
{
v11 = a2;
v9 = (unsigned int *)EVP_sha1();
a2 = v11;
v3 = v9;
}
if ( a2 )
{
v10 = a2;
issuer_name = X509_get_issuer_name(a2);
v6 = X509_get0_serialNumber(v10);
}
else
{
v6 = 0;
issuer_name = X509_get_subject_name(a3);
}
v7 = (int *)X509_get0_pubkey_bitstr(a3);
return OCSP_cert_id_new(v3, issuer_name, v7, v6);
}