//
// PKCS7_add_crl from 0xdceae4 to 0xdcebdc (248 bytes)
//
// 1 xrefs:
// > ??> @ 0x8c7f0
//
// 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 PKCS7_add_crl(__int64 a1, __int64 a2)
{
int v4; // w0
_QWORD *v5; // x21
__int64 v6; // x19
v4 = OBJ_obj2nid(*(_QWORD *)(a1 + 24));
if ( v4 == 22 || v4 == 24 )
{
v5 = (_QWORD *)(*(_QWORD *)(a1 + 32) + 24LL);
if ( !*v5 )
*v5 = OPENSSL_sk_new_null(0);
v6 = *v5;
if ( !*v5 )
{
ERR_put_error(33, 101, 65, (__int64)"crypto/pkcs7/pk7_lib.c", 292);
return (unsigned int)v6;
}
X509_CRL_up_ref(a2);
if ( (unsigned int)OPENSSL_sk_push(*v5, a2) )
{
LODWORD(v6) = 1;
return (unsigned int)v6;
}
X509_CRL_free(a2);
return 0;
}
else
{
ERR_put_error(33, 101, 113, (__int64)"crypto/pkcs7/pk7_lib.c", 285);
return 0;
}
}