Home GnuPG
Diffusion GPGME 36a68bc5308c

python: Fix wrong use of write.

Description

python: Fix wrong use of write.

* lang/python/helpers.c (pyPassphraseCb): Use gpgme_io_writen.
(_gpg_interact_cb): Ditto.
* lang/python/helpers.h (write) [W32]: Remove bad write macro.

Using write(2) without checking for EINTR is a not a good idea.
Futher gpgme_io_writen is the correct way to send data from a
callback. This also fixed the wrong use of a simple macro for
Windows.

Details

Provenance
wernerAuthored on Tue, May 23, 3:52 PM
Parents
rMe622e36f1f32: build: Sync to libtool from libgpg-error for 64-bit Windows.
Branches
Unknown
Tags
Unknown
Tasks
T6501: Check use of write in gpgme's Python bindings