//
// OCSP_REQUEST_print from 0xa33bc0 to 0xa33e60 (672 bytes)
//
// 1 xrefs:
// > ??> @ 0x7e76c
//
// 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:07 +0000
//
int __fastcall OCSP_REQUEST_print(int a1, _DWORD *a2, int a3)
{
int v6; // r0
int v7; // r6
int **v8; // r0
int *v9; // r7
int **v10; // r11
int v11; // r2
int v12; // r3
int v13; // r0
int v14; // r1
int v16; // r5
int v17; // r0
int v18; // r0
int v20; // [sp+1Ch] [bp-8h]
v20 = a2[4];
if ( BIO_write(a1, (int)"OCSP Request Data:\n", 19) <= 0 )
return 0;
v6 = ASN1_INTEGER_get(*a2);
if ( BIO_printf(a1, " Version: %lu (0x%lx)", v6 + 1, v6) <= 0 )
return 0;
if ( a2[1] )
{
if ( BIO_write(a1, (int)"\n Requestor Name: ", 21) > 0 )
{
GENERAL_NAME_print(a1, a2[1]);
goto LABEL_6;
}
return 0;
}
LABEL_6:
if ( BIO_write(a1, (int)"\n Requestor List:\n", 21) <= 0 )
return 0;
v7 = 0;
while ( 1 )
{
v13 = OPENSSL_sk_num(a2[2]);
v14 = v7;
if ( v7++ >= v13 )
break;
v8 = (int **)OPENSSL_sk_value(a2[2], v14);
v9 = *v8;
v10 = v8;
BIO_printf(a1, "%*sCertificate ID:\n", 8, &byte_BF4ECA);
BIO_printf(a1, "%*sHash Algorithm: ", 10, &byte_BF4ECA);
i2a_ASN1_OBJECT(a1, *v9, v11, v12);
BIO_printf(a1, "\n%*sIssuer Name Hash: ", 10, &byte_BF4ECA);
i2a_ASN1_STRING(a1, v9 + 2, 0);
BIO_printf(a1, "\n%*sIssuer Key Hash: ", 10, &byte_BF4ECA);
i2a_ASN1_STRING(a1, v9 + 6, 0);
BIO_printf(a1, "\n%*sSerial Number: ", 10, &byte_BF4ECA);
i2a_ASN1_INTEGER(a1, v9 + 10);
BIO_printf(a1, "\n");
if ( !X509V3_extensions_print(a1, "Request Single Extensions", v10[1], a3, 8) )
return 0;
}
if ( !X509V3_extensions_print(a1, "Request Extensions", a2[3], a3, 4) )
return 0;
if ( v20 )
{
v16 = 0;
X509_signature_print(a1, v20, *(_DWORD *)(v20 + 8));
while ( v16 < OPENSSL_sk_num(*(_DWORD *)(v20 + 12)) )
{
v17 = OPENSSL_sk_value(*(_DWORD *)(v20 + 12), v16);
X509_print(a1, v17);
v18 = OPENSSL_sk_value(*(_DWORD *)(v20 + 12), v16++);
PEM_write_bio_X509(a1, v18);
}
}
return 1;
}