//
// CMS_SignerInfo_set1_signer_cert from 0x876c28 to 0x876c64 (60 bytes)
//
// 3 xrefs:
// > CMS_set1_signers_certs @ 0x876d9c
// > CMS_set1_signers_certs @ 0x876dbc
// > ??> @ 0x6a5ac
//
// 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
//
_DWORD *__fastcall CMS_SignerInfo_set1_signer_cert(int a1, int a2)
{
_DWORD *result; // r0
if ( a2 )
{
X509_up_ref(a2);
EVP_PKEY_free(*(_DWORD *)(a1 + 32));
*(_DWORD *)(a1 + 32) = X509_get_pubkey(a2);
}
result = X509_free(*(_DWORD **)(a1 + 28));
*(_DWORD *)(a1 + 28) = a2;
return result;
}