//
// sub_7F6BF8 from 0x7f6bf8 to 0x7f6e24 (556 bytes)
//
// 3 xrefs:
// > ENGINE_set_default_string @ 0x7f6f84
// > ENGINE_set_default_string @ 0x7f6f98
// > ??> @ 0x7f7008
//
// 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 sub_7F6BF8(const char *a1, size_t a2, int *a3)
{
if ( !a1 )
return 0;
if ( !strncmp(a1, "ALL", a2) )
{
*a3 = ~(~HIWORD(*a3) << 16);
return 1;
}
if ( !strncmp(a1, "RSA", a2) )
{
*a3 |= 1u;
return 1;
}
if ( !strncmp(a1, "DSA", a2) )
{
*a3 |= 2u;
return 1;
}
if ( !strncmp(a1, "DH", a2) )
{
*a3 |= 4u;
return 1;
}
if ( !strncmp(a1, "EC", a2) )
{
*a3 |= 0x800u;
return 1;
}
else if ( !strncmp(a1, "RAND", a2) )
{
*a3 |= 8u;
return 1;
}
else if ( !strncmp(a1, "CIPHERS", a2) )
{
*a3 |= 0x40u;
return 1;
}
else if ( !strncmp(a1, "DIGESTS", a2) )
{
*a3 |= 0x80u;
return 1;
}
else if ( !strncmp(a1, "PKEY", a2) )
{
*a3 |= 0x600u;
return 1;
}
else
{
if ( strncmp(a1, "PKEY_CRYPTO", a2) )
{
if ( !strncmp(a1, "PKEY_ASN1", a2) )
{
*a3 |= 0x400u;
return 1;
}
return 0;
}
*a3 |= 0x200u;
return 1;
}
}