aboutsummaryrefslogtreecommitdiffstats
path: root/src/sign.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-11-17 13:06:05 +0000
committerWerner Koch <[email protected]>2009-11-17 13:06:05 +0000
commit1cb08a35a6eb214202b196aa2e69dafb0ef5aebd (patch)
tree146e32d6bdb8bfba0fba7d96c3041ce563db08bf /src/sign.c
parent2009-11-10 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-1cb08a35a6eb214202b196aa2e69dafb0ef5aebd.tar.gz
gpgme-1cb08a35a6eb214202b196aa2e69dafb0ef5aebd.zip
Fixes for the UI server engine .
Diffstat (limited to 'src/sign.c')
-rw-r--r--src/sign.c6
1 files changed, 5 insertions, 1 deletions
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;