// // ssl_cert_type from 0x7a6ec0 to 0x7a6f64 (164 bytes) // // 8 xrefs: // > sub_79B558 @ 0x79b580 // > sub_79B6F4 @ 0x79b708 // > SSL_use_PrivateKey @ 0x79bea4 // > SSL_CTX_use_PrivateKey @ 0x79c770 // > tls_process_server_certificate @ 0x7a162c // > tls_process_cert_verify @ 0x7abec4 // > tls1_check_chain @ 0x7b433c // > @ 0x5c7cc // // 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 ssl_cert_type(int a1, int a2) { int v2; // r0 bool v3; // cc int v5; // r0 if ( a2 ) { v2 = EVP_PKEY_id(a2); v3 = v2 <= 408; if ( v2 != 408 ) goto LABEL_3; return 3; } v5 = X509_get0_pubkey(a1); if ( !v5 ) return -1; v2 = EVP_PKEY_id(v5); v3 = v2 <= 408; if ( v2 == 408 ) return 3; LABEL_3: if ( v3 ) { if ( v2 == 6 ) { return 0; } else { if ( v2 != 116 ) return -1; return 2; } } else { switch ( v2 ) { case 979: return 5; case 980: return 6; case 811: return 4; default: return -1; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source