def protocol_name(self) -> Optional[str]: """ Get the name of the SSL protocol that is currently in use. Gets a text description of the SSL protocol that is currently active, or returns ``None`` if SSL is not active. .. note:: The protocol may change over time due to renegotiation. :return: The protocol name if SSL is active, or ``None`` if SSL connection is not ready or active. """ rc, name = pn_ssl_get_protocol_name(self._ssl, 128) if rc: return name return None
def protocol_name(self): rc, name = pn_ssl_get_protocol_name(self._ssl, 128) if rc: return name return None