{"record":{"id":"1b2463b99874ea14","repo":"sqlmapproject/sqlmap","slug":"this-python-openssl-build-does-not-support-alpn","errorCode":null,"errorMessage":"this Python/OpenSSL build does not support ALPN","messagePattern":"this Python/OpenSSL build does not support ALPN","errorType":"exception","errorClass":"H2Error","httpStatus":null,"severity":"error","filePath":"lib/request/http2.py","lineNumber":662,"sourceCode":"                context = creator()\n            else:\n                context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)\n                context.verify_mode = ssl.CERT_NONE\n    tls_version = getattr(ssl, \"TLSVersion\", None)\n    if tls_version is not None and hasattr(context, \"minimum_version\"):\n        if context.minimum_version < tls_version.TLSv1_2:\n            context.minimum_version = tls_version.TLSv1_2\n    else:\n        for option_name in (\"OP_NO_SSLv2\", \"OP_NO_SSLv3\", \"OP_NO_TLSv1\", \"OP_NO_TLSv1_1\"):\n            option = getattr(ssl, option_name, 0)\n            if option:\n                context.options |= option\n    no_compression = getattr(ssl, \"OP_NO_COMPRESSION\", 0)\n    if no_compression:\n        context.options |= no_compression\n    setter = getattr(context, \"set_alpn_protocols\", None)\n    if setter is None:\n        raise H2Error(\"this Python/OpenSSL build does not support ALPN\")\n    setter([\"h2\"])\n    return context\n\n\ndef _iter_header_items(headers):\n    if headers is None:\n        return []\n    if hasattr(headers, \"items\"):\n        return list(headers.items())\n    return list(headers)\n\n\ndef _validate_regular_name(name):\n    if not name or name.startswith(b\":\"):\n        raise H2ProtocolError(\"invalid regular field name\")\n    for item in bytearray(name):\n        if item not in _TOKEN_BYTES:\n            raise H2ProtocolError(\"invalid HTTP field name %r\" % name)","sourceCodeStart":644,"sourceCodeEnd":680,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/request/http2.py#L644-L680","documentation":"Error \"this Python/OpenSSL build does not support ALPN\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/request/http2.py:662 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}