示例#1
0
 def _wrap_sock(self) -> None:
     self.socket = cast(
         socket.socket,
         crypto_util.SSLSocket(self.socket,
                               cert_selection=self._cert_selection,
                               alpn_selection=getattr(
                                   self, '_alpn_selection', None),
                               method=self.method))
示例#2
0
 def _wrap_sock(self):
     self.socket = crypto_util.SSLSocket(self.socket,
                                         certs=self.certs,
                                         method=self.method)