diff options
Diffstat (limited to 'lang/cpp/src/key.h')
-rw-r--r-- | lang/cpp/src/key.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/cpp/src/key.h b/lang/cpp/src/key.h index 76a0d4f4..c4edba07 100644 --- a/lang/cpp/src/key.h +++ b/lang/cpp/src/key.h @@ -98,6 +98,10 @@ public: bool isDisabled() const; bool isInvalid() const; + /*! Shorthand for isNull || isRevoked || isExpired || + * isDisabled || isInvalid */ + bool isBad() const; + bool canEncrypt() const; /*! This function contains a workaround for old gpgme's: all secret @@ -250,6 +254,10 @@ public: bool isInvalid() const; bool isDisabled() const; + /*! Shorthand for isNull || isRevoked || isExpired || + * isDisabled || isInvalid */ + bool isBad() const; + bool canEncrypt() const; bool canSign() const; bool canCertify() const; @@ -366,6 +374,9 @@ public: bool isRevoked() const; bool isInvalid() const; + /*! Shorthand for isNull || isRevoked || isInvalid */ + bool isBad() const; + /** TOFU info for this userid. * @returns The TOFU stats or a null TofuInfo. */ @@ -454,6 +465,9 @@ public: bool isExpired() const; bool isExportable() const; + /*! Shorthand for isNull || isExpired || isInvalid */ + bool isBad() const; + const char *signerUserID() const; const char *signerName() const; const char *signerEmail() const; |