ajenti / ajenti

Consider using in PYL-R1714
Performance
Major
6 months ago4 years old
Consider merging these comparisons with 'in' by using 'errno in (9, 10)'. Use a set instead if elements are hashable.
206        return True
207
208    def client_certificate_callback(self, connection, x509, errno, depth, result):
209        if depth == 0 and (errno == 9 or errno == 10):210            return False  # expired / not yet valid
211        if not aj.config.data['ssl']['client_auth']['force']:
212            return True