aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2002-07-25 16:01:55 +0000
committerMarcus Brinkmann <[email protected]>2002-07-25 16:01:55 +0000
commiteecc18a7366262ea488b09253561380b8f4aeb26 (patch)
treeb983bcbfdb81e55eaa175e989c7f8c0d763a1017
parent2002-07-25 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-eecc18a7366262ea488b09253561380b8f4aeb26.tar.gz
gpgme-eecc18a7366262ea488b09253561380b8f4aeb26.zip
2002-07-25 Marcus Brinkmann <[email protected]>
* key.c (gpgme_key_get_as_xml): Add OTRUST attribute. Requested by St�phane Corth�sy. (gpgme_key_get_string_attr): Add GPGME_ATTR_SIG_SUMMARY case to silence gcc warning.
Diffstat (limited to '')
-rw-r--r--gpgme/ChangeLog5
-rw-r--r--gpgme/key.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog
index c0c77229..8dc46cbd 100644
--- a/gpgme/ChangeLog
+++ b/gpgme/ChangeLog
@@ -6,6 +6,11 @@
* rungpg.c (_gpgme_gpg_op_keylist_ext): Skip empty string
patterns. Reported by St�phane Corth�sy.
+ * key.c (gpgme_key_get_as_xml): Add OTRUST attribute. Requested
+ by St�phane Corth�sy.
+ (gpgme_key_get_string_attr): Add GPGME_ATTR_SIG_SUMMARY case to
+ silence gcc warning.
+
2002-07-03 Marcus Brinkmann <[email protected]>
* gpgme.c (gpgme_set_io_cbs): Deal with CTX being NULL.
diff --git a/gpgme/key.c b/gpgme/key.c
index 879be144..f65568d8 100644
--- a/gpgme/key.c
+++ b/gpgme/key.c
@@ -783,6 +783,9 @@ gpgme_key_get_as_xml (GpgmeKey key)
add_tag_and_uint (d, "len", key->keys.key_len);
add_tag_and_time (d, "created", key->keys.timestamp);
add_tag_and_time (d, "expire", key->keys.expires_at);
+ add_tag_and_string (d, "otrust",
+ gpgme_key_get_string_attr (key, GPGME_ATTR_OTRUST,
+ NULL, 0));
if (key->issuer_serial)
add_tag_and_string (d, "serial", key->issuer_serial);
if (key->issuer_name)
@@ -990,6 +993,7 @@ gpgme_key_get_string_attr (GpgmeKey key, GpgmeAttr what,
val = key->chain_id;
break;
case GPGME_ATTR_SIG_STATUS:
+ case GPGME_ATTR_SIG_SUMMARY:
case GPGME_ATTR_ERRTOK:
/* Not of any use here. */
break;