//
// X509_PUBKEY_get0 from 0xdf209c to 0xdf2114 (120 bytes)
//
// 4 xrefs:
// > X509_get0_pubkey @ 0xde6a70
// > X509_PUBKEY_get @ 0xdf2120
// > X509_REQ_get0_pubkey @ 0xe6f0d0
// > ??> @ 0x36378
//
// 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_PUBKEY_get0(__int64 a1)
{
__int64 v1; // x19
__int64 v3; // [xsp+28h] [xbp+28h] BYREF
v3 = 0;
if ( !a1 || !*(_QWORD *)(a1 + 8) )
return 0;
v1 = *(_QWORD *)(a1 + 16);
if ( !v1 )
{
sub_DF1DE0(&v3, (__int64 **)a1);
if ( v3 )
{
ERR_put_error(11, 119, 68, (__int64)"crypto/x509/x_pubkey.c", 161);
EVP_PKEY_free(v3);
return v1;
}
return 0;
}
return v1;
}