//
// PKCS7_add0_attrib_signing_time from 0xad0f88 to 0xad0ff4 (108 bytes)
//
// 2 xrefs:
// > PKCS7_dataFinal @ 0xa3cf8c
// > ??> @ 0x7f8bc
//
// 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_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;
}