def on_ssl(self, client_hello):

        # Check for anon ciphers, these don't verify the identity of the
        # endpoint
        anon_ciphers = [str(c) for c in client_hello.ciphers if "_anon_" in str(c)]
        if anon_ciphers:
            self._handle_bad_ciphers(anon_ciphers,
                "Client enabled anonymous TLS/SSL cipher suites %s" %
                (", ".join(anon_ciphers)))

        # Check for NULL encryption ciphers
        null_ciphers = [str(c) for c in client_hello.ciphers if "_WITH_NULL_" in str(c)]
        if null_ciphers:
            self._handle_bad_ciphers(null_ciphers,
                "Client enabled NULL encryption TLS/SSL cipher suites %s" %
                (", ".join(null_ciphers)))

        # Check for NULL integrity ciphers
        integ_ciphers =  [str(c) for c in client_hello.ciphers if str(c).endswith("_NULL")]
        if integ_ciphers:
            self._handle_bad_ciphers(integ_ciphers,
                "Client enabled NULL integrity TLS/SSL cipher suites %s" %
                (", ".join(integ_ciphers)))

        # Check for export ciphers since they're horribly weak
        export_ciphers = [str(c) for c in client_hello.ciphers if str(c) in "EXPORT"]
        if export_ciphers:
            self._handle_bad_ciphers(integ_ciphers,
                "Client enabled export TLS/SSL cipher suites %s" %
                (", ".join(export_ciphers)))
dataset/ETHPy150Open google/nogotofail/nogotofail/mitm/connection/handlers/data/ssl.py/InsecureCipherDetectionHandler.on_ssl/swapped operands of `in`