summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-devtools/python/python-gevent/0002-gevent-eat-ssl-self-cert-errors.patch
blob: 36990e8512928e4a97161cfa88bcfaf0298eb493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/gevent/ssl.py	2016-11-02 13:17:37.917401795 -0500
+++ b/gevent/newssl.py	2016-11-02 13:17:23.085401962 -0500
@@ -334,6 +334,8 @@ class SSLSocket(socket):
                         raise
                     sys.exc_clear()
                     self._wait(self._write_event, timeout_exc=_SSLErrorHandshakeTimeout)
+                elif ex.reason in ['SSLV3_ALERT_CERTIFICATE_EXPIRED', 'TLSV1_ALERT_UNKNOWN_CA']:
+                    return None
                 else:
                     raise

     def connect(self, addr):
         """Connects to remote ADDR, and then wraps the connection in
OpenPOWER on IntegriCloud