//
// X509_PURPOSE_set from 0xa6f2e8 to 0xa6f340 (88 bytes)
//
// 2 xrefs:
// > X509_VERIFY_PARAM_set_purpose @ 0xa5b4fc
// > ??> @ 0x8142c
//
// 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:08:41 +0000
//
int __fastcall X509_PURPOSE_set(int *a1, int a2)
{
if ( X509_PURPOSE_get_by_id(a2) == -1 )
{
ERR_put_error(34, 141, 146, (int)"crypto/x509v3/v3_purp.c", 99);
return 0;
}
else
{
*a1 = a2;
return 1;
}
}