def cipher_name(self) -> Optional[str]: """ Get the name of the Cipher that is currently in use. Gets a text description of the cipher that is currently active, or returns ``None`` if SSL is not active (no cipher). .. note:: The cipher in use may change over time due to renegotiation or other changes to the SSL state. :return: The cypher name, or ``None`` if no cipher in use. """ rc, name = pn_ssl_get_cipher_name(self._ssl, 128) if rc: return name return None
def cipher_name(self): rc, name = pn_ssl_get_cipher_name(self._ssl, 128) if rc: return name return None