code: def _init_base_objects(self, ssl_version: OpenSslVersionEnum, underlying_socket: Optional[socket.socket]) -> None:
          
          self._is_handshake_completed = False
          self._ssl_version = ssl_version
          self._ssl_ctx = self._NASSL_MODULE.SSL_CTX(ssl_version.value)
  
          # A Python socket handles transmission of the data
          self._sock = underlying_socket
docs: Setup the socket and SSL_CTX objects.