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.
This commit is contained in:
Andre Heinecke 2016-06-27 14:47:44 +02:00
parent 3364549c19
commit 82d484c852

View File

@ -222,8 +222,6 @@ Error status_to_error(unsigned int status)
return Error::fromCode(GPG_ERR_NO_PASSPHRASE); return Error::fromCode(GPG_ERR_NO_PASSPHRASE);
case GPGME_STATUS_ALREADY_SIGNED: case GPGME_STATUS_ALREADY_SIGNED:
return Error::fromCode(GPG_ERR_ALREADY_SIGNED); return Error::fromCode(GPG_ERR_ALREADY_SIGNED);
case GPGME_STATUS_KEYEXPIRED:
return Error::fromCode(GPG_ERR_CERT_EXPIRED);
case GPGME_STATUS_SIGEXPIRED: case GPGME_STATUS_SIGEXPIRED:
return Error::fromCode(GPG_ERR_SIG_EXPIRED); return Error::fromCode(GPG_ERR_SIG_EXPIRED);
} }