Skip to content

Commit 2e49e4d

Browse files
committed
Remove PAN-OS 8.0 TLS warning from 2017.
1 parent 2594f6f commit 2e49e4d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/pan/xapi.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@ def __api_request(self, query):
526526
if hasattr(error, 'code'):
527527
msg += ' code: %s' % error.code
528528
if hasattr(error, 'reason'):
529-
self._rome_warning(str(error.reason))
530529
msg += ' reason: %s' % error.reason
531530
if not (hasattr(error, 'code') or hasattr(error, 'reason')):
532531
msg += ' unknown error (Kevin heart Python)'
@@ -538,19 +537,6 @@ def __api_request(self, query):
538537

539538
return response
540539

541-
def _rome_warning(self, reason):
542-
# "Connection reset by peer" or
543-
# "EOF occurred in violation of protocol"
544-
# may indicate no TLS 1.[12]
545-
if (('Errno 54' in reason or
546-
'EOF occurred in violation of protocol' in reason) and
547-
hasattr(ssl, 'OPENSSL_VERSION_NUMBER') and
548-
ssl.OPENSSL_VERSION_NUMBER < 0x1000100):
549-
x = 'WARNING: Your SSL (%s) may not support TLS 1.1.' % \
550-
ssl.OPENSSL_VERSION
551-
x += ' PAN-OS 8.0 does not allow TLS 1.0 connections by default.'
552-
self._log(DEBUG1, x)
553-
554540
def __set_api_key(self):
555541
if self.api_key is None:
556542
self.keygen()

0 commit comments

Comments
 (0)