//
// OCSP_cert_to_id from 0xdc4600 to 0xdc4690 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x5e3e0
//
// 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
//
_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);
}