Cpp: Do not treat KEYEXPIRED as error
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 27 Jun 2016 12:47:44 +0000 (14:47 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 27 Jun 2016 12:47:44 +0000 (14:47 +0200)
* 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

index d2633b5..07dc26d 100644 (file)
@@ -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);
     }