aboutsummaryrefslogtreecommitdiffstats
path: root/src/trust-item.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-02-21 09:28:46 +0000
committerWerner Koch <[email protected]>2025-02-21 09:42:30 +0000
commitd54d6eaa642ba6de179ef280930525c7367c9b88 (patch)
treeb2c346be23a7981bd71322c1c0240ed42809b364 /src/trust-item.c
parentNEWS: Fix typos (diff)
downloadgpgme-d54d6eaa642ba6de179ef280930525c7367c9b88.tar.gz
gpgme-d54d6eaa642ba6de179ef280930525c7367c9b88.zip
Remove long deprecated functions.
* src/gpgme.h.in (GPGME_EXPORT_MODE_NOUID): Remove. This was a left-over from an experiment. (gpgme_attr_t,_gpgme_attr_t) Remove. Deprecated sinze 2003. (gpgme_get_sig_ulong_attr): Ditto. (gpgme_get_sig_string_attr): Ditto. (gpgme_key_get_string_attr): Ditto. (gpgme_key_get_ulong_attr): Ditto. (gpgme_key_sig_get_string_attr): Ditto. (gpgme_key_sig_get_ulong_attr): Ditto. (gpgme_trust_item_get_string_attr): Ditto. (gpgme_trust_item_get_int_attr): Ditto. * src/gpgme.def: Remove them here too. * src/libgpgme.vers: Ditto. * src/trust-item.c: Remove corresponding implementations. * src/verify.c: Ditto. * src/key.c: Ditto.
Diffstat (limited to 'src/trust-item.c')
-rw-r--r--src/trust-item.c71
1 files changed, 0 insertions, 71 deletions
diff --git a/src/trust-item.c b/src/trust-item.c
index 8f4de73b..c9eea03c 100644
--- a/src/trust-item.c
+++ b/src/trust-item.c
@@ -99,74 +99,3 @@ gpgme_trust_item_release (gpgme_trust_item_t item)
{
gpgme_trust_item_unref (item);
}
-
-/* Return the value of the attribute WHAT of ITEM, which has to be
- representable by a string. */
-const char *gpgme_trust_item_get_string_attr (gpgme_trust_item_t item,
- _gpgme_attr_t what,
- const void *reserved, int idx)
-{
- const char *val = NULL;
-
- if (!item)
- return NULL;
- if (reserved)
- return NULL;
- if (idx)
- return NULL;
-
- switch (what)
- {
- case GPGME_ATTR_KEYID:
- val = item->keyid;
- break;
-
- case GPGME_ATTR_OTRUST:
- val = item->owner_trust;
- break;
-
- case GPGME_ATTR_VALIDITY:
- val = item->validity;
- break;
-
- case GPGME_ATTR_USERID:
- val = item->name;
- break;
-
- default:
- break;
- }
- return val;
-}
-
-
-/* Return the value of the attribute WHAT of KEY, which has to be
- representable by an integer. IDX specifies a running index if the
- attribute appears more than once in the key. */
-int gpgme_trust_item_get_int_attr (gpgme_trust_item_t item, _gpgme_attr_t what,
- const void *reserved, int idx)
-{
- int val = 0;
-
- if (!item)
- return 0;
- if (reserved)
- return 0;
- if (idx)
- return 0;
-
- switch (what)
- {
- case GPGME_ATTR_LEVEL:
- val = item->level;
- break;
-
- case GPGME_ATTR_TYPE:
- val = item->type;
- break;
-
- default:
- break;
- }
- return val;
-}