//
// X509_signature_print from 0x83d340 to 0x83d428 (232 bytes)
//
// 6 xrefs:
// > sub_64231C @ 0x6424de
// > OCSP_REQUEST_print @ 0x81f200
// > OCSP_RESPONSE_print @ 0x81f71c
// > X509_print_ex @ 0x83d970
// > X509_print_ex @ 0x83dc58
// > ??> @ 0x54cfc
//
// 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_signature_print(int a1, int *a2, int *a3)
{
int v6; // r2
int v7; // r3
char *v8; // r0
int v10; // r0
int (__fastcall *v11)(int, int *, int *, int, _DWORD); // r12
int v12; // [sp+8h] [bp-8h] BYREF
int v13; // [sp+Ch] [bp-4h] BYREF
if ( BIO_puts(a1, (int)" Signature Algorithm: ") <= 0 || i2a_ASN1_OBJECT(a1, *a2, v6, v7) <= 0 )
return 0;
v8 = OBJ_obj2nid(*a2);
if ( v8 )
{
if ( OBJ_find_sigid_algs((int)v8, &v13, &v12) )
{
v10 = EVP_PKEY_asn1_find(nullptr, v12);
if ( v10 )
{
v11 = *(int (__fastcall **)(int, int *, int *, int, _DWORD))(v10 + 84);
if ( v11 )
return v11(a1, a2, a3, 9, 0);
}
}
}
if ( a3 )
return X509_signature_dump(a1, a3, 9);
return BIO_puts(a1, (int)"\n") > 0;
}