//
// X509_set_version from 0x840920 to 0x840984 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x672ec
//
// 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 X509_set_version(int *a1, int a2)
{
int v4; // r0
if ( !a1 )
return 0;
v4 = *a1;
if ( a2 )
{
if ( v4 )
return ASN1_INTEGER_set(v4, a2);
v4 = ASN1_INTEGER_new();
*a1 = v4;
if ( v4 )
return ASN1_INTEGER_set(v4, a2);
else
return 0;
}
else
{
ASN1_INTEGER_free(v4);
*a1 = 0;
return 1;
}
}