//
// OCSP_cert_to_id from 0xa33620 to 0xa33690 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x7e6fc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:06 +0000
//
char ***__fastcall OCSP_cert_to_id(void *a1, int a2, int a3)
{
void *v3; // r6
int issuer_name; // r7
int *v7; // r0
v3 = a1;
if ( !a1 )
v3 = EVP_sha1();
if ( a2 )
{
issuer_name = X509_get_issuer_name(a2);
a2 = X509_get0_serialNumber(a2);
}
else
{
issuer_name = X509_get_subject_name(a3);
}
v7 = (int *)X509_get0_pubkey_bitstr(a3);
return OCSP_cert_id_new((int)v3, issuer_name, v7, a2);
}