//
// PKCS7_add0_attrib_signing_time from 0xe664a0 to 0xe66510 (112 bytes)
//
// 2 xrefs:
// > PKCS7_dataFinal @ 0xdcdb28
// > ??> @ 0x61f80
//
// 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_add0_attrib_signing_time(__int64 a1, int *a2)
{
int *v2; // x19
v2 = a2;
if ( a2 )
return PKCS7_add_signed_attribute(a1, 0x34u, 0x17u, (__int64)v2);
v2 = X509_gmtime_adj(0, 0);
if ( v2 )
return PKCS7_add_signed_attribute(a1, 0x34u, 0x17u, (__int64)v2);
ERR_put_error(33, 135, 65, (__int64)"crypto/pkcs7/pk7_attr.c", 100);
return 0;
}