Package: libgpgme11-dev
Version: 1.0.2-1
Severity: normal

gpgme_wait(ctx, &status, 0) on timeout returns ctx instead of NULL which
makes it difficult to distinguish from a program return when ctx in not NULL.
Plus, on timeout status is unchanged instead of being forced into 0.
As a work around I set status to 0xFFFF (an impossible error code)
and check if it got changed during the call.

If this workaround is an acceptable solution, could you please document it?

But, I would like to see gpgme_wait() to do the following even when
ctx in not NULL:

return NULL, status=0 on timeouts
return NULL, status=<gpgme_wait_error> on gpgme_wait() failure
return ctx,  status=<async_call_status> on asynchornous progrem return.

Igor

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11
Locale: LANG=C, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages libgpgme11-dev depends on:
ii  libc6-dev                   2.3.2.ds1-20 GNU C Library: Development Librari
ii  libgpg-error-dev            1.0-1        library for common error values an
ii  libgpgme11                  1.0.2-1      GPGME - GnuPG Made Easy

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to