//
// PKCS7_add_crl from 0xa3e040 to 0xa3e128 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0x7f9dc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:08:12 +0000
//
int __fastcall PKCS7_add_crl(int a1, int a2)
{
char *v4; // r0
_DWORD *v5; // r6
int v6; // r4
v4 = OBJ_obj2nid(*(_DWORD *)(a1 + 16));
if ( v4 == (_BYTE *)&dword_14 + 2 || v4 == (char *)&dword_18 )
{
v5 = (_DWORD *)(*(_DWORD *)(a1 + 20) + 12);
if ( !*v5 )
*v5 = OPENSSL_sk_new_null(v4);
v6 = *v5;
if ( *v5 )
{
X509_CRL_up_ref(a2);
if ( !OPENSSL_sk_push(*v5, a2) )
{
X509_CRL_free(a2);
return 0;
}
return 1;
}
else
{
ERR_put_error(33, 101, 65, (int)"crypto/pkcs7/pk7_lib.c", 292);
}
return v6;
}
else
{
ERR_put_error(33, 101, 113, (int)"crypto/pkcs7/pk7_lib.c", 285);
return 0;
}
}