PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/cheroot/ssl/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/cheroot/ssl/__init__.py |
"""Implementation of the SSL adapter base interface.""" from abc import ABCMeta, abstractmethod class Adapter(metaclass=ABCMeta): """Base class for SSL driver library adapters. Required methods: * ``wrap(sock) -> (wrapped socket, ssl environ dict)`` * ``makefile(sock, mode='r', bufsize=DEFAULT_BUFFER_SIZE) -> socket file object`` """ @abstractmethod def __init__( self, certificate, private_key, certificate_chain=None, ciphers=None, ): """Set up certificates, private key ciphers and reset context.""" self.certificate = certificate self.private_key = private_key self.certificate_chain = certificate_chain self.ciphers = ciphers self.context = None @abstractmethod def bind(self, sock): """Wrap and return the given socket.""" return sock @abstractmethod def wrap(self, sock): """Wrap and return the given socket, plus WSGI environ entries.""" raise NotImplementedError # pragma: no cover @abstractmethod def get_environ(self): """Return WSGI environ entries to be merged into each request.""" raise NotImplementedError # pragma: no cover @abstractmethod def makefile(self, sock, mode='r', bufsize=-1): """Return socket file object.""" raise NotImplementedError # pragma: no cover