//
// PKCS7_add_attrib_smimecap from 0xe66250 to 0xe662dc (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x39360
//
// 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_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;
}
}