Lower security level to '1' and allow all ciphers for TLS 1.0/1
(*ctxs)
| 172 | |
| 173 | if is_ubuntu(): |
| 174 | def seclevel_workaround(*ctxs): |
| 175 | """Lower security level to '1' and allow all ciphers for TLS 1.0/1""" |
| 176 | for ctx in ctxs: |
| 177 | if ( |
| 178 | hasattr(ctx, "minimum_version") and |
| 179 | ctx.minimum_version <= ssl.TLSVersion.TLSv1_1 and |
| 180 | ctx.security_level > 1 |
| 181 | ): |
| 182 | ctx.set_ciphers("@SECLEVEL=1:ALL") |
| 183 | else: |
| 184 | def seclevel_workaround(*ctxs): |
| 185 | pass |
no outgoing calls
no test coverage detected
searching dependent graphs…