def _load_libcrypto():
    '''
    Load OpenSSL libcrypto
    '''
    if sys.platform.startswith('win'):
        return cdll.LoadLibrary('libeay32')
    elif getattr(sys, 'frozen', False) and salt.utils.is_smartos():
        return cdll.LoadLibrary(glob.glob(os.path.join(
            os.path.dirname(sys.executable),
            'libcrypto.so*'))[0])
    else:
        lib = find_library('crypto')
        if not lib and salt.utils.is_smartos():
            # smartos does not have libraries in std location
            lib = glob.glob(os.path.join(
                '/opt/local/lib',
                'libcrypto.so*'))
            lib = lib[0] if 0 > len(lib) else None
        if lib:
            return cdll.LoadLibrary(lib)
        raise OSError('Cannot locate OpenSSL libcrypto')
dataset/ETHPy150Open saltstack/salt/salt/utils/rsax931.py/_load_libcrypto/swapped operands of `>`