Loading src/windows/ssl.cpp +0 −8 Original line number Diff line number Diff line Loading @@ -289,14 +289,6 @@ namespace netplus { const uint16_t ver = (uint16_t(hdr[1]) << 8) | uint16_t(hdr[2]); const uint16_t len = (uint16_t(hdr[3]) << 8) | uint16_t(hdr[4]); // TLS/SSLv3 record major must be 0x03 if (hdr[1] != 0x03) { netplus::NetException e; e[netplus::NetException::Error] << "ssl::accept: bad TLS major byte: 0x" << std::hex << int(hdr[1]); throw e; } // Accept legacy record-layer versions (very common: 0x0301 even for TLS1.2 ClientHello) // Allow: TLS1.0..TLS1.2 record versions if (ver < 0x0301 || ver > 0x0303) { Loading Loading
src/windows/ssl.cpp +0 −8 Original line number Diff line number Diff line Loading @@ -289,14 +289,6 @@ namespace netplus { const uint16_t ver = (uint16_t(hdr[1]) << 8) | uint16_t(hdr[2]); const uint16_t len = (uint16_t(hdr[3]) << 8) | uint16_t(hdr[4]); // TLS/SSLv3 record major must be 0x03 if (hdr[1] != 0x03) { netplus::NetException e; e[netplus::NetException::Error] << "ssl::accept: bad TLS major byte: 0x" << std::hex << int(hdr[1]); throw e; } // Accept legacy record-layer versions (very common: 0x0301 even for TLS1.2 ClientHello) // Allow: TLS1.0..TLS1.2 record versions if (ver < 0x0301 || ver > 0x0303) { Loading