//
// PKCS7_add_attrib_smimecap from 0xad0d58 to 0xad0dd4 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x84f0c
//
// 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:09:23 +0000
//
int __fastcall PKCS7_add_attrib_smimecap(int a1, size_t *a2)
{
int *v4; // r0
int v5; // r4
v4 = (int *)ASN1_STRING_new();
v5 = (int)v4;
if ( v4 )
{
*v4 = ASN1_item_i2d(a2, v4 + 2, X509_ALGORS_it);
return PKCS7_add_signed_attribute(a1, (_BYTE *)&dword_A4 + 3, 16, v5);
}
else
{
ERR_put_error(33, 118, 65, (int)"crypto/pkcs7/pk7_attr.c", 26);
return 0;
}
}