// Clear libcurl's verifypeer and verifyhost bits when a connection copies its SSL settings. // Why the executable: dagor.http and yuplay2 requests ignore network.blk enableSslCertCheck. // Without it: redirected HTTPS requests (GJN purchases, item_info, redeem codes) fail the TLS handshake. { "id": "online/accept-local-tls-certificate", "title": "让客户端的 HTTPS 连接接受本地服务器的自签证书", "features": [ "A-No Gaijin connections", "G-Store", "G-Redeem codes" ], "requires": [ "online/network-hook-library" ], "variants": [ // libcurl Curl_clone_primary_ssl_config from entry to the cert_blob null check, 176 bytes; branch targets are wildcards. // 2.61.0.37: unique hit at 0x56463c0, edited instruction at +0x52 (0x5646412). { "written_for": "2.61.0.37", "locate": { "method": "signature", "section": ".text", "pattern": "56 57 53 48 83 ec 20 48 89 d6 48 89 cf 8b 82 98 00 00 00 83 c8 20 89 82 98 00 00 00 0f b6 89 95 00 00 00 88 8a 95 00 00 00 8b 8f 90 00 00 00 89 8a 90 00 00 00 8b 8f 98 00 00 00 83 e1 01 83 e0 fe 09 c8 89 82 98 00 00 00 8b 8f 98 00 00 00 83 e1 02 83 e0 fd 09 c8 89 82 98 00 00 00 8b 8f 98 00 00 00 83 e1 04 83 e0 fb 09 c8 89 82 98 00 00 00 8b 8f 98 00 00 00 83 e1 08 83 e0 f7 09 c8 89 82 98 00 00 00 8b 8f 98 00 00 00 83 e1 10 83 e0 ef 09 c8 89 82 98 00 00 00 0f b6 87 94 00 00 00 88 82 94 00 00 00 48 8b 5f 68 48 85 db 74 ??" }, "edit": { "offset": 82, "asm": [ "and eax, -4", "nop", "nop" ], "bytes": "83 e0 fc 90 90", "expect_original": "83 e0 fd 09 c8" } } ] }