//
// X509_VERIFY_PARAM_set1_email from 0xdee9e8 to 0xdeea98 (176 bytes)
//
// 3 xrefs:
// > X509_VERIFY_PARAM_inherit @ 0xdeed34
// > X509_VERIFY_PARAM_inherit @ 0xdeedbc
// > ??> @ 0x2f508
//
// 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
//
void *__fastcall X509_VERIFY_PARAM_set1_email(__int64 a1, char *a2, void *a3)
{
void *v4; // x21
__int64 v5; // x23
void *result; // x0
void *v7; // x19
char *v8; // [xsp+48h] [xbp+48h]
v4 = a3;
v5 = a1 + 88;
if ( !a2 )
{
v7 = nullptr;
v4 = nullptr;
LABEL_5:
CRYPTO_free(*(void **)(a1 + 80), (__int64)"crypto/x509/x509_vpm.c", 273);
*(_QWORD *)(a1 + 80) = v7;
if ( v5 )
*(_QWORD *)(a1 + 88) = v4;
return dword_0 + 1;
}
if ( !a3 )
{
v8 = a2;
v4 = (void *)strlen(a2);
a2 = v8;
}
result = CRYPTO_memdup(a2, v4, (__int64)"crypto/x509/x509_vpm.c", 0x10Au);
v7 = result;
if ( result )
goto LABEL_5;
return result;
}