+
    üÐjæ  ã                  óð   € R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ]! ]
! ]P                  R4      4      P                  R4      P                  4      t ! R R	]P                   4      t ! R
 R4      tR# )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                  ó*   € ] tR t^tRt^tR R ltRtR# )ÚClientTLSContextz2
SSL Context Factory for client-side connections.
c               ó   € V ^8„  d   QhRR/# ©é   ÚreturnzSSL.Context© )Úformats   "Ú:/usr/lib/python3/dist-packages/twisted/test/ssl_helpers.pyÚ__annotate__ÚClientTLSContext.__annotate__   s   € ÷ .ñ .˜Kñ .ó    c                óJ   € \         P                  ! \         P                  4      # )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   &r   Ú
getContextÚClientTLSContext.getContext   s   € ô �{Š{œ3×,Ñ,Ó-Ð-r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚisClientr   Ú__static_attributes__r   r   r   r   r      s   † ñð €H÷.ñ .r   r   c                  ó>   € ] tR t^'tRt^ t]R3R R lltR R ltRt	R# )ÚServerTLSContextz2
SSL Context Factory for server-side connections.
Nc               ó$   € V ^8„  d   QhRRRRRR/# )r   Úfilenamezstr | bytesÚmethodz
int | Noner   ÚNoner   )r   s   "r   r   ÚServerTLSContext.__annotate__.   s$   € ÷ ñ Ø#ðØ8Bðà	ñr   c                	óF   € Wn         Vf   \        P                  pW n        R # )N)r#   r   r   Ú_method)r   r#   r$   s   &&&r   Ú__init__ÚServerTLSContext.__init__.   s   € ð !ŒØŠ>Ü×&Ñ&ˆFàŽr   c               ó   € V ^8„  d   QhRR/# r
   r   )r   s   "r   r   r&   7   s   € ÷ ñ ˜Kñ r   c                ó²   € \         P                  ! V P                  4      pVP                  V P                  4       VP                  V P                  4       V# )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   r   r   r   r   r   ÚcertPathr)   r   r   r   r   r   r!   r!   '   s$   † ñð €Hð '/ÀT÷÷ñ r   r!   N)r   Ú
__future__r   ÚOpenSSLr   Útwisted.internetr   Útwisted.python.compatr   Útwisted.python.filepathr   Ú__file__ÚencodeÚsiblingÚpathr1   ÚClientContextFactoryr   r!   r   r   r   Ú<module>r<      s`   ðñõ #å å  Ý .Ý ,á™ §¡°Ó!9Ó:×BÑBÀ=ÓQ×VÑVÓW€ô.�s×/Ñ/ô .÷$ó r   