Next: Manipulating Trust Items, Previous: Listing Trust Items, Up: Trust Item Management [Contents][Index]
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.
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
.
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
.