//
// PKCS7_add0_attrib_signing_time from 0x8bbf88 to 0x8bbff4 (108 bytes)
//
// 2 xrefs:
// > PKCS7_dataFinal @ 0x82838c
// > ??> @ 0x65e3c
//
// 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
//
int __fastcall PKCS7_add0_attrib_signing_time(int a1, size_t *a2)
{
size_t *v2; // r4
v2 = a2;
if ( a2 )
return PKCS7_add_signed_attribute(a1, (char *)&dword_34, 23, (int)v2);
v2 = X509_gmtime_adj(nullptr, 0);
if ( v2 )
return PKCS7_add_signed_attribute(a1, (char *)&dword_34, 23, (int)v2);
ERR_put_error(33, 135, 65, (int)"crypto/pkcs7/pk7_attr.c", 100);
return 0;
}