//
// X509_TRUST_set from 0x840ea8 to 0x840f00 (88 bytes)
//
// 2 xrefs:
// > X509_VERIFY_PARAM_set_trust @ 0x846904
// > ??> @ 0x673cc
//
// 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_TRUST_set(int *a1, int a2)
{
if ( X509_TRUST_get_by_id(a2) == -1 )
{
ERR_put_error(11, 141, 123, (int)"crypto/x509/x509_trs.c", 115);
return 0;
}
else
{
*a1 = a2;
return 1;
}
}