π FileMgr
π
/
usr
/
lib
/
python3
/
dist-packages
/
twisted
/
test
/
__pycache__
βοΈ /usr/lib/python3/dist-packages/twisted/test/__pycache__/ssl_helpers.cpython-312.pyc
β Tutup
οΏ½ ojοΏ½ οΏ½ οΏ½οΏ½ οΏ½ d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z e e ej dοΏ½ οΏ½ j dοΏ½ j οΏ½ Z G d οΏ½ d ej οΏ½ Z G dοΏ½ dοΏ½ Zy )zοΏ½ Helper classes for twisted.test.test_ssl. They are in a separate module so they will not prevent test_ssl importing if pyOpenSSL is unavailable. οΏ½ )οΏ½annotations)οΏ½SSL)οΏ½ssl)οΏ½nativeString)οΏ½FilePathzutf-8s server.pemc οΏ½ οΏ½ e Zd ZdZdZddοΏ½Zy)οΏ½ClientTLSContextz: SSL Context Factory for client-side connections. οΏ½ c οΏ½H οΏ½ t j t j οΏ½ S )zοΏ½ Return an L{SSL.Context} to be use for client-side connections. Will not return a cached context. This is done to improve the test coverage as most implementation are caching the context. )r οΏ½ContextοΏ½ SSLv23_METHOD)οΏ½selfs οΏ½:/usr/lib/python3/dist-packages/twisted/test/ssl_helpers.pyοΏ½ getContextzClientTLSContext.getContext s οΏ½ οΏ½ οΏ½{οΏ½{οΏ½3οΏ½,οΏ½,οΏ½-οΏ½-οΏ½ NοΏ½οΏ½returnzSSL.Context)οΏ½__name__οΏ½ __module__οΏ½__qualname__οΏ½__doc__οΏ½isClientr οΏ½ r r r r s οΏ½ οΏ½οΏ½ οΏ½HοΏ½.r r c οΏ½4 οΏ½ e Zd ZdZdZedf ddοΏ½ZddοΏ½Zy)οΏ½ServerTLSContextz: SSL Context Factory for server-side connections. r Nc οΏ½D οΏ½ || _ |οΏ½t j }|| _ y )N)οΏ½filenamer r οΏ½_method)r r οΏ½methods r οΏ½__init__zServerTLSContext.__init__. s"