GpgmePassphraseCb: no way to make difference between cancel and invalid password
Stéphane Corthésy
stephane at sente.ch
Wed Aug 21 23:22:01 CEST 2002
On Wednesday, August 21, 2002, at 07:33 PM, Miguel Coca wrote:
> On Wed, Aug 21, 2002 at 00:06:25 +0200, Stéphane Corthésy wrote:
>> Hi,
>>
>> Using gpgme 0.3.8:
>> When using a context to sign or decrypt data, according to the
>> operation
>> result (the GpgmeError value) there is no way to make the difference
>> between the two following situations:
>
> You can abort the operation from inside the callback with
> gpgme_cancel().
> Then the operation will return GPGME_Canceled.
Is it really the way to do it? IIRC, in previous releases (0.3.4 or
earlier?) we were supposed to return NULL from the callback to indicate
that user cancelled passphrase callback.
Thanks,
Stéphane
More information about the Gnupg-devel
mailing list