//
// PKCS7_add_attrib_smimecap from 0x10e4250 to 0x10e42dc (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x53518
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:50 +0000
//
__int64 __fastcall PKCS7_add_attrib_smimecap(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x19
v4 = ASN1_STRING_new();
v5 = v4;
if ( v4 )
{
*(_DWORD *)v4 = ASN1_item_i2d(a2, (__int64 *)(v4 + 8), (__int64)&X509_ALGORS_it);
return PKCS7_add_signed_attribute(a1, 0xA7u, 0x10u, v5);
}
else
{
ERR_put_error(33, 118, 65, (__int64)"crypto/pkcs7/pk7_attr.c", 26);
return 0;
}
}