From 82d484c852d07958ac93efb3d2d7b7726fbb5231 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 27 Jun 2016 14:47:44 +0200 Subject: [PATCH] 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 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); }