//
// OCSP_cert_to_id from 0x81ea20 to 0x81ea90 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x64c7c
//
// 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
//
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);
}