Next: , Previous: Listing Trust Items, Up: Trust Item Management


7.5.2 Information About Trust Items

The following interfaces are deprecated and only provided for backward compatibility. Don't use them. They will be removed in a future version of GPGME.

Trust items have attributes which can be queried using the interfaces below. The attribute identifiers are shared with those for key attributes. See Information About Keys.

— Function: const char * gpgme_trust_item_get_string_attr (gpgme_trust_item_t item, gpgme_attr_t what, const void *reserved, int idx)

The function gpgme_trust_item_get_string_attr returns the value of the string-representable attribute what of trust item item. The arguments idx and reserved are reserved for later use and should be 0 and NULL respectively.

The string returned is only valid as long as the key is valid.

The function returns 0 if an attribute can't be returned as a string, key is not a valid pointer, idx out of range, or reserved not NULL.

— Function: int gpgme_trust_item_get_int_attr (gpgme_trust_item_t item, gpgme_attr_t what, const void *reserved, int idx)

The function gpgme_trust_item_get_int_attr returns the value of the number-representable attribute what of trust item item. If the attribute occurs more than once in the trust item, the index is specified by idx. However, currently no such attribute exists, so idx should be 0. The argument reserved is reserved for later use and should be NULL.

The function returns 0 if the attribute can't be returned as a number, key is not a valid pointer, idx out of range, or reserved not NULL.