mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-13 15:21:02 +00:00
TLS fixes for C/C 3.4.x
- Always set/unset peer certificate verification flag - Return None (instead of raising an exception) for tls connection properties if TLS is not in use - bumped version number to 1.1.11
This commit is contained in:
@ -579,14 +579,18 @@ class Connection(mariadb._mariadb.connection):
|
||||
"""TLS cipher suite if a secure connection is used."""
|
||||
|
||||
self._check_closed()
|
||||
return self._mariadb_get_info(INFO.SSL_CIPHER)
|
||||
if self._tls:
|
||||
return self._mariadb_get_info(INFO.SSL_CIPHER)
|
||||
return None
|
||||
|
||||
@property
|
||||
def tls_version(self):
|
||||
"""TLS protocol version if a secure connection is used."""
|
||||
|
||||
self._check_closed()
|
||||
return self._mariadb_get_info(INFO.TLS_VERSION)
|
||||
if self._tls:
|
||||
return self._mariadb_get_info(INFO.TLS_VERSION)
|
||||
return None
|
||||
|
||||
@property
|
||||
def server_status(self):
|
||||
|
Reference in New Issue
Block a user