//
// X509_signature_print from 0xa51f40 to 0xa52028 (232 bytes)
//
// 6 xrefs:
// > sub_85239C @ 0x85255e
// > OCSP_REQUEST_print @ 0xa33e00
// > OCSP_RESPONSE_print @ 0xa3431c
// > X509_print_ex @ 0xa52570
// > X509_print_ex @ 0xa52858
// > ??> @ 0x67c2c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:08:23 +0000
//
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;
}