ends a pending key list operation in the context.
After the operation completed successfully, the result of the key listing operation can be retrieved with op_keylist_result().
The function returns the error code GPG_ERR_INV_VALUE if ctx is not a valid pointer, and GPG_ERR_ENOMEM if at some time during the operation there was not enough memory available.