CURL_SUPPORTS_TLS_1_3 = None
+ @classmethod
+ @property
+ def is_unsupported(cls):
+ mpm_module = f"mpm_{os.environ['MPM']}" if 'MPM' in os.environ else 'mpm_event'
+ return mpm_module == 'mpm_prefork'
+
@classmethod
def curl_supports_tls_1_3(cls) -> bool:
if cls.CURL_SUPPORTS_TLS_1_3 is None:
import pytest
from .conf import TlsTestConf
+from .env import TlsTestEnv
+@pytest.mark.skipif(condition=TlsTestEnv.is_unsupported, reason="h2 not supported here")
class TestAlpn:
@pytest.fixture(autouse=True, scope='class')
import pytest
from .conf import TlsTestConf
+from .env import TlsTestEnv
from pyhttpd.env import HttpdTestEnv
]
)
+ @pytest.mark.skipif(condition=TlsTestEnv.is_unsupported, reason="h2 not supported here")
def test_tls_14_proxy_ssl_h2_get(self, env):
r = env.tls_get(env.domain_b, "/proxy-h2-ssl/index.json")
assert r.exit_code == 0
import pytest
from .conf import TlsTestConf
+from .env import TlsTestEnv
from pyhttpd.env import HttpdTestEnv
@pytest.mark.skipif(condition=not HttpdTestEnv.has_shared_module("tls"), reason="no mod_tls available")
]
)
+ @pytest.mark.skipif(condition=TlsTestEnv.is_unsupported, reason="h2 not supported here")
def test_tls_15_proxy_tls_h2_get(self, env):
r = env.tls_get(env.domain_b, "/proxy-h2-tls/index.json")
assert r.exit_code == 0
("SSL_CIPHER", "TLS_CHACHA20_POLY1305_SHA256"),
("SSL_SESSION_RESUMED", "Initial"),
])
+ @pytest.mark.skipif(condition=TlsTestEnv.is_unsupported, reason="h2 not supported here")
def test_tls_15_proxy_tls_h2_vars(self, env, name: str, value: str):
r = env.tls_get(env.domain_b, f"/proxy-h2-tls/vars.py?name={name}")
assert r.exit_code == 0, r.stderr