# Copyright (c) 2016, Yanis Guenane # Copyright (c) 2020, Felix Fontein # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later from __future__ import annotations try: import cryptography # noqa: F401, pylint: disable=unused-import HAS_CRYPTOGRAPHY = True except ImportError: # Error handled in the calling module. HAS_CRYPTOGRAPHY = False class OpenSSLObjectError(Exception): pass class OpenSSLBadPassphraseError(OpenSSLObjectError): pass