ó
    ×›‘hæ  ã                  óî   • S r SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  \" \
" \R                  S5      5      R                  S5      R                  5      r " S	 S
\R                   5      r " S S5      rg)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)ÚFilePathzutf-8s
   server.pemc                  ó&   • \ rS rSrSrSrSS jrSrg)ÚClientTLSContexté   z2
SSL Context Factory for client-side connections.
é   c                óJ   • [         R                  " [         R                  5      $ )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    Ú\C:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\twisted/test/ssl_helpers.pyÚ
getContextÚClientTLSContext.getContext   s   € ô �{Š{œ3×,Ñ,Ó-Ð-ó    © N©ÚreturnzSSL.Context)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚisClientr   Ú__static_attributes__r   r   r   r	   r	      s   † ñð €H÷.r   r	   c                  óB   • \ rS rSrSrSr\S4     SS jjrS	S jrSr	g)
ÚServerTLSContexté'   z2
SSL Context Factory for server-side connections.
r   Nc                óB   • Xl         Uc  [        R                  nX l        g )N)Úfilenamer   r   Ú_method)r   r"   Úmethods      r   Ú__init__ÚServerTLSContext.__init__.   s   € ð !ŒØ‰>Ü×&Ñ&ˆFà�r   c                ó²   • [         R                  " U R                  5      nUR                  U R                  5        UR                  U R                  5        U$ )z¾
Return an L{SSL.Context} to be use for server-side connections.

Will not return a cached context.
This is done to improve the test coverage as most implementation
are caching the context.
)r   r   r#   Úuse_certificate_filer"   Úuse_privatekey_file)r   Úctxs     r   r   ÚServerTLSContext.getContext7   s?   € ô �kŠk˜$Ÿ,™,Ó'ˆØ× Ñ  §¡Ô/Ø×Ñ §¡Ô.Øˆ
r   )r#   r"   )r"   zstr | bytesr$   z
int | Noner   ÚNoner   )
r   r   r   r   r   r   ÚcertPathr%   r   r   r   r   r   r   r   '   s7   † ñð €Hð '/ÀTðØ#ðØ8Bðà	õ÷r   r   N)r   Ú
__future__r   ÚOpenSSLr   Útwisted.internetr   Útwisted.python.compatr   Útwisted.python.filepathr   Ú__file__ÚencodeÚsiblingÚpathr-   ÚClientContextFactoryr	   r   r   r   r   Ú<module>r8      s`   ðñõ #å å  Ý .Ý ,á™ §¡°Ó!9Ó:×BÑBÀ=ÓQ×VÑVÓW€ô.�s×/Ñ/ô .÷$ò r   