def _process_custom_listener_policy(self, policy, port, elb_item):
        """
        Alerts on:
            sslv2
            sslv3
            missing server order preference
            deprecated ciphers
        """
        notes = "Policy {0} on port {1}".format(policy['name'], port)

        if policy.get('sslv2', None):
            self.add_issue(10, "SSLv2 is enabled", elb_item, notes=notes)

        if policy.get('sslv3', None):
            self.add_issue(10, "SSLv3 is enabled", elb_item, notes=notes)

        server_defined_cipher_order = policy.get('server_defined_cipher_order', None)
        if server_defined_cipher_order is False:
            self.add_issue(10, "Server Defined Cipher Order is Disabled.", elb_item, notes=notes)

        for cipher in policy['supported_ciphers']:
            if cipher in EXPORT_CIPHERS:
                c_notes = "{0} - {1}".format(notes, cipher)
                self.add_issue(10, "Export Grade Cipher Used. Vuln to FREAK attack.", elb_item, notes=c_notes)

            if cipher in DEPRECATED_CIPHERS:
                c_notes = "{0} - {1}".format(notes, cipher)
                self.add_issue(10, "Deprecated Cipher Used.", elb_item, notes=c_notes)

            if cipher in NOTRECOMMENDED_CIPHERS:
                c_notes = "{0} - {1}".format(notes, cipher)
                self.add_issue(10, "Cipher Not Recommended.", elb_item, notes=c_notes)
dataset/ETHPy150Open Netflix/security_monkey/security_monkey/auditors/elb.py/ELBAuditor._process_custom_listener_policy/original