From 1cb08a35a6eb214202b196aa2e69dafb0ef5aebd Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 17 Nov 2009 13:06:05 +0000 Subject: Fixes for the UI server engine . --- src/sign.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/sign.c') diff --git a/src/sign.c b/src/sign.c index c66f06a0..3d860da4 100644 --- a/src/sign.c +++ b/src/sign.c @@ -286,9 +286,13 @@ _gpgme_sign_status_handler (void *priv, gpgme_status_code_t code, char *args) break; case GPGME_STATUS_EOF: + /* The UI server does not send information about the created + signature. This is irrelevant for this protocol and thus we + should not check for that. */ if (opd->result.invalid_signers) err = gpg_error (GPG_ERR_UNUSABLE_SECKEY); - else if (!opd->sig_created_seen) + else if (!opd->sig_created_seen + && ctx->protocol != GPGME_PROTOCOL_UISERVER) err = gpg_error (GPG_ERR_GENERAL); break; -- cgit v1.2.3