aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-09-16 13:06:26 +0000
committerWerner Koch <[email protected]>2016-09-16 14:00:27 +0000
commit3d6340e8c59ee11a95e03fb213ad9b228be47833 (patch)
tree0972fd52980116b2f773a4d5dbed2fd0d029b57e /doc
parentpython: Release the GIL during calls into GPGME. (diff)
downloadgpgme-3d6340e8c59ee11a95e03fb213ad9b228be47833.tar.gz
gpgme-3d6340e8c59ee11a95e03fb213ad9b228be47833.zip
core: Map GPGME_STATUS_EOF to the empty string.
* src/status-table.c (_gpgme_status_to_string): Return "" for EOF. * src/engine-gpg.c (read_status): Ditto. The old code accidently used GPGME_STATUS_EOF which is the integer 0 and neiteyr NULL nor a string. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'doc')
-rw-r--r--doc/gpgme.texi13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi
index dc5a1407..18fb6d5c 100644
--- a/doc/gpgme.texi
+++ b/doc/gpgme.texi
@@ -4464,12 +4464,13 @@ could not be started.
@tindex gpgme_interact_cb_t
The @code{gpgme_interact_cb_t} type is the type of functions which
@acronym{GPGME} calls if it a key interact operation is on-going. The
-status keyword @var{status} and the argument line @var{args} are passed
-through by @acronym{GPGME} from the crypto engine. The file
-descriptor @var{fd} is -1 for normal status messages. If @var{status}
-indicates a command rather than a status message, the response to the
-command should be written to @var{fd}. The @var{handle} is provided
-by the user at start of operation.
+status keyword @var{status} and the argument line @var{args} are
+passed through by @acronym{GPGME} from the crypto engine. An empty
+string represents EOF. The file descriptor @var{fd} is -1 for normal
+status messages. If @var{status} indicates a command rather than a
+status message, the response to the command should be written to
+@var{fd}. The @var{handle} is provided by the user at start of
+operation.
The function should return @code{GPG_ERR_FALSE} if it did not handle
the status code, @code{0} for success, or any other error value.