//
// CMS_SignerInfo_set1_signer_cert from 0xe21528 to 0xe21574 (76 bytes)
//
// 3 xrefs:
// > CMS_set1_signers_certs @ 0xe216c4
// > CMS_set1_signers_certs @ 0xe216d8
// > ??> @ 0xbea28
//
// 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 CMS_SignerInfo_set1_signer_cert(__int64 a1, __int64 a2)
{
__int64 result; // x0
if ( a2 )
{
X509_up_ref(a2);
EVP_PKEY_free(*(_QWORD *)(a1 + 64));
*(_QWORD *)(a1 + 64) = X509_get_pubkey(a2);
}
result = X509_free(*(_QWORD *)(a1 + 56));
*(_QWORD *)(a1 + 56) = a2;
return result;
}