//
// X509_PURPOSE_set from 0xe00e78 to 0xe00ed8 (96 bytes)
//
// 2 xrefs:
// > X509_VERIFY_PARAM_set_purpose @ 0xdee4f0
// > ??> @ 0x90cf0
//
// 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 X509_PURPOSE_set(int *a1, int a2)
{
if ( (unsigned int)X509_PURPOSE_get_by_id(a2) == -1 )
{
ERR_put_error(34, 141, 146, (__int64)"crypto/x509v3/v3_purp.c", 99);
return 0;
}
else
{
*a1 = a2;
return 1;
}
}