Call status_cb for an ERROR status seen in the passphrase handler.
* src/passphrase.c (_gpgme_passphrase_status_handler): Call status_cb. -- Frankly, we should have a more generic way of feeding the status_cb handler than our current ad-hoc method. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
a7dbab23ea
commit
ad46f4f655
@ -116,6 +116,18 @@ _gpgme_passphrase_status_handler (void *priv, gpgme_status_code_t code,
|
|||||||
return gpg_error (GPG_ERR_BAD_PASSPHRASE);
|
return gpg_error (GPG_ERR_BAD_PASSPHRASE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GPGME_STATUS_ERROR:
|
||||||
|
/* We abuse this status handler to forward ERROR status codes to
|
||||||
|
the caller. This should better be done in a generic handler,
|
||||||
|
but for now this is sufficient. */
|
||||||
|
if (ctx->status_cb)
|
||||||
|
{
|
||||||
|
err = ctx->status_cb (ctx->status_cb_value, "ERROR", args);
|
||||||
|
if (err)
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* Ignore all other codes. */
|
/* Ignore all other codes. */
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user