GPG_ERR_EOF didn't return by gpgme_op_keylist_next after the last key in the list has already been returned
As the debugger shows, the acutal value it returns is 117456895. But according to the source code , GPG_ERR_EOF equals 16383 as unsigned int.
Description
Description
Details
Details
- Version
- 1.15.2
Event Timeline
Comment Actions
The error codes we use are a combination of code and location.
$ gpg-error 117456895 117456895 = (7, 16383) = (GPG_ERR_SOURCE_GPGME, GPG_ERR_EOF) = (GPGME, End of file)
You always need to use gpg_err_code totestjust the error code:
if (gpg_err_code (err) == GPG_ERR_EOF) foo();