Coverage for node / src / stigmem_node / tls.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-05-25 01:49 +0000

1"""Compatibility alias for :mod:`stigmem_node.federation.tls`.""" 

2 

3from __future__ import annotations 

4 

5import sys 

6from typing import TYPE_CHECKING 

7 

8__all__ = [ 

9 "TLS13_CIPHERS", 

10 "build_client_ssl_context", 

11 "build_server_ssl_context", 

12 "cert_watcher_task", 

13 "check_peer_san", 

14 "reload_tls_cert", 

15] 

16 

17if TYPE_CHECKING: 

18 from .federation.tls import ( 

19 TLS13_CIPHERS, 

20 build_client_ssl_context, 

21 build_server_ssl_context, 

22 cert_watcher_task, 

23 check_peer_san, 

24 reload_tls_cert, 

25 ) 

26else: 

27 from .federation import tls as _impl 

28 

29 sys.modules[__name__] = _impl