[Pkg-gnupg-commit] [gpgme] 185/412: Cpp: Do not treat KEYEXPIRED as error

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:26:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit 82d484c852d07958ac93efb3d2d7b7726fbb5231
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Mon Jun 27 14:47:44 2016 +0200

    Cpp: Do not treat KEYEXPIRED as error
    
    * lang/cpp/src/editinteractor.cpp (status_to_error): No error
    for KEYEXPIRED.
    
    --
    As keyexpired status is sent even if a subkey is expired
    we can not treat it as a global error.
---
 lang/cpp/src/editinteractor.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lang/cpp/src/editinteractor.cpp b/lang/cpp/src/editinteractor.cpp
index d2633b5..07dc26d 100644
--- a/lang/cpp/src/editinteractor.cpp
+++ b/lang/cpp/src/editinteractor.cpp
@@ -222,8 +222,6 @@ Error status_to_error(unsigned int status)
         return Error::fromCode(GPG_ERR_NO_PASSPHRASE);
     case GPGME_STATUS_ALREADY_SIGNED:
         return Error::fromCode(GPG_ERR_ALREADY_SIGNED);
-    case GPGME_STATUS_KEYEXPIRED:
-        return Error::fromCode(GPG_ERR_CERT_EXPIRED);
     case GPGME_STATUS_SIGEXPIRED:
         return Error::fromCode(GPG_ERR_SIG_EXPIRED);
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list