aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-06-27 12:47:44 +0000
committerAndre Heinecke <[email protected]>2016-06-27 12:47:44 +0000
commit82d484c852d07958ac93efb3d2d7b7726fbb5231 (patch)
tree6a1a5c701c623aba94ea9814dbb773f1ff1e9fd7 /lang/cpp
parenttests: Add new test tool run-decrypt (diff)
downloadgpgme-82d484c852d07958ac93efb3d2d7b7726fbb5231.tar.gz
gpgme-82d484c852d07958ac93efb3d2d7b7726fbb5231.zip
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.
Diffstat (limited to '')
-rw-r--r--lang/cpp/src/editinteractor.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lang/cpp/src/editinteractor.cpp b/lang/cpp/src/editinteractor.cpp
index d2633b5f..07dc26d7 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);
}