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 protoc
(self)
| 895 | return pn_ssl_get_cipher_name(self._ssl, 128) |
| 896 | |
| 897 | def protocol_name(self) -> Optional[str]: |
| 898 | """ |
| 899 | Get the name of the SSL protocol that is currently in use. |
| 900 | |
| 901 | Gets a text description of the SSL protocol that is currently active, |
| 902 | or returns ``None`` if SSL is not active. |
| 903 | |
| 904 | .. note:: The protocol may change over time due to renegotiation. |
| 905 | |
| 906 | :return: The protocol name if SSL is active, or ``None`` if SSL connection |
| 907 | is not ready or active. |
| 908 | """ |
| 909 | return pn_ssl_get_protocol_name(self._ssl, 128) |
| 910 | |
| 911 | SHA1 = PN_SSL_SHA1 |
| 912 | """Produces hash that is 20 bytes long using SHA-1""" |