mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
IRCNetwork: suppress "You can enhance...security...[with] ssl_fingerprint" notices when TLS cert validation is enabled
This commit is contained in:
parent
ab9df93898
commit
e5f817fc95
@ -1628,7 +1628,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils):
|
|||||||
|
|
||||||
def _verify_ssl(self):
|
def _verify_ssl(self):
|
||||||
"""
|
"""
|
||||||
Implements additional SSL/TLS verification (so far, only certificate fingerprints if enabled).
|
Implements additional SSL/TLS verifications (so far, only certificate fingerprints when enabled).
|
||||||
"""
|
"""
|
||||||
peercert = self._socket.getpeercert(binary_form=True)
|
peercert = self._socket.getpeercert(binary_form=True)
|
||||||
|
|
||||||
@ -1657,7 +1657,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils):
|
|||||||
else:
|
else:
|
||||||
log.info('(%s) Uplink TLS/SSL certificate fingerprint '
|
log.info('(%s) Uplink TLS/SSL certificate fingerprint '
|
||||||
'verified (%s: %r)', self.name, hashtype, fp)
|
'verified (%s: %r)', self.name, hashtype, fp)
|
||||||
else:
|
elif hasattr(self._socket, 'context') and self._socket.context.verify_mode == ssl.CERT_NONE:
|
||||||
log.info('(%s) Uplink\'s TLS/SSL certificate fingerprint (%s) '
|
log.info('(%s) Uplink\'s TLS/SSL certificate fingerprint (%s) '
|
||||||
'is %r. You can enhance the security of your '
|
'is %r. You can enhance the security of your '
|
||||||
'link by specifying this in a "ssl_fingerprint"'
|
'link by specifying this in a "ssl_fingerprint"'
|
||||||
|
Loading…
Reference in New Issue
Block a user