def verify_attesting_entity(self, subject_confirmation):
        """
        At least one address specification has to be correct.

        :param subject_confirmation: A SubbjectConfirmation instance
        :return: True/False
        """

        try:
            address = self.conv_info['remote_addr']
        except KeyError:
            address = '0.0.0.0'

        correct = 0
        for subject_conf in subject_confirmation:
            if subject_conf.subject_confirmation_data is None:
                correct += 1  # In reality undefined
            elif subject_conf.subject_confirmation_data.address:
                if address == '0.0.0.0':  # accept anything
                    correct += 1
                elif subject_conf.subject_confirmation_data.address == address:
                    correct += 1
            else:
                correct += 1

        if correct:
            return True
        else:
            return False
def verify_attesting_entity ( self , subject_confirmation ) : try : address = self . conv_info [ 'remote_addr' ] except KeyError : address = '0.0.0.0' correct = 0 for subject_conf in subject_confirmation : if subject_conf . subject_confirmation_data is None : correct += 1 elif subject_conf . subject_confirmation_data . address : if address == '0.0.0.0' : correct += 1 elif subject_conf . subject_confirmation_data . address == address : correct += 1 else : correct += 1 if correct : return True else : return False
At least one address specification has to be correct.

        :param subject_confirmation: A SubbjectConfirmation instance
        :return: True/False