The function
gpgme_op_trustlist_startinitiates a trust item listing operation inside the context ctx. It sets everything up so that subsequent invocations ofgpgme_op_trustlist_nextreturn the trust items in the list.The string pattern contains an engine specific expression that is used to limit the list to all trust items matching the pattern. It can not be the empty string.
The argument max_level is currently ignored.
The context will be busy until either all trust items are received (and
gpgme_op_trustlist_nextreturnsGPG_ERR_EOF), orgpgme_op_trustlist_endis called to finish the operation.The function returns the error code
GPG_ERR_INV_VALUEif ctx is not a valid pointer, and passes through any errors that are reported by the crypto engine support routines.
The function
gpgme_op_trustlist_nextreturns the next trust item in the list created by a previousgpgme_op_trustlist_startoperation in the context ctx. The trust item can be destroyed withgpgme_trust_item_release. See Manipulating Trust Items.This is the only way to get at
gpgme_trust_item_tobjects in GPGME.If the last trust item in the list has already been returned,
gpgme_op_trustlist_nextreturnsGPG_ERR_EOF.The function returns the error code
GPG_ERR_INV_VALUEif ctx or r_item is not a valid pointer, andGPG_ERR_ENOMEMif there is not enough memory for the operation.
The function
gpgme_op_trustlist_nextends a pending key list operation in the context ctx.The function returns the error code
GPG_ERR_INV_VALUEif ctx is not a valid pointer, andGPG_ERR_ENOMEMif at some time during the operation there was not enough memory available.