// // SSL_add_dir_cert_subjects_to_stack from 0x791fd0 to 0x792134 (356 bytes) // // 2 xrefs: // > sub_7BB3CC @ 0x7bb3f0 // > @ 0x5b46c // // 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 // const char *__fastcall SSL_add_dir_cert_subjects_to_stack(int a1, const char *a2) { size_t v4; // r4 const char *v5; // r5 _DWORD *v6; // r0 int v8; // [sp+Ch] [bp-4h] BYREF _BYTE v9[1028]; // [sp+10h] [bp+0h] BYREF v8 = 0; while ( 1 ) { v5 = (const char *)OPENSSL_DIR_read(&v8, a2); if ( !v5 ) break; v4 = strlen(a2); if ( v4 + strlen(v5) + 2 > 0x400 ) { ERR_put_error(20, 215, 270, "ssl/ssl_cert.c", 713); LABEL_10: v5 = nullptr; goto LABEL_11; } if ( (unsigned int)(BIO_snprintf(v9, 1024, "%s/%s", a2, v5) - 1) > 0x3FE || !SSL_add_file_cert_subjects_to_stack(a1, (int)v9) ) { goto LABEL_10; } } if ( *(_DWORD *)_errno() ) { v6 = (_DWORD *)_errno(); ERR_put_error(2, 10, *v6, "ssl/ssl_cert.c", 728); ERR_add_error_data(3, "OPENSSL_DIR_read(&ctx, '", a2); ERR_put_error(20, 215, 2, "ssl/ssl_cert.c", 730); } else { v5 = (_BYTE *)(&dword_0 + 1); } LABEL_11: if ( v8 ) OPENSSL_DIR_end(&v8); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source