//
// OCSP_request_add1_nonce from 0xa32e6c to 0xa32f6c (256 bytes)
//
// 1 xrefs:
// > ??> @ 0x7e61c
//
// 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:06 +0000
//
const void *__fastcall OCSP_request_add1_nonce(int a1, const void *a2, int a3)
{
size_t v3; // r5
void *v6; // r0
void *v8; // r0
int v9; // r0
void *v10; // r3
void *v11[3]; // [sp+Ch] [bp-14h] BYREF
void *v12; // [sp+18h] [bp-8h]
if ( a3 <= 0 )
v3 = 16;
else
v3 = a3;
v6 = (void *)ASN1_object_size(0, v3, 4);
v11[1] = v6;
if ( (int)v6 < 0 )
return nullptr;
v8 = CRYPTO_malloc(v6, (int)"crypto/ocsp/ocsp_ext.c", 262);
v12 = v8;
if ( v8 )
{
v11[0] = v8;
ASN1_put_object((_BYTE **)v11, 0, v3, 4, 0);
if ( a2 )
{
memcpy(v11[0], a2, v3);
goto LABEL_9;
}
if ( RAND_bytes(v11[0], v3) > 0 )
{
LABEL_9:
v9 = X509V3_add1_i2d(a1 + 12);
v10 = v12;
a2 = (const void *)v9;
if ( v9 )
a2 = &dword_0 + 1;
goto LABEL_11;
}
v10 = v12;
}
else
{
v10 = nullptr;
a2 = nullptr;
}
LABEL_11:
CRYPTO_free(v10, (int)"crypto/ocsp/ocsp_ext.c", 276);
return a2;
}