2003-04-25 Marcus Brinkmann <marcus@g10code.de>

* key.c (gpgme_key_get_string_attr): Fix validity attribute.
This commit is contained in:
Marcus Brinkmann 2003-04-25 10:59:52 +00:00
parent f0ee6af9f8
commit 8c359e5416
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-04-25 Marcus Brinkmann <marcus@g10code.de>
* key.c (gpgme_key_get_string_attr): Fix validity attribute.
2003-04-24 Marcus Brinkmann <marcus@g10code.de>
* gpgme.h (struct _gpgme_op_genkey_result): New structure.

View File

@ -739,7 +739,7 @@ gpgme_key_get_string_attr (GpgmeKey key, GpgmeAttr what,
return uid ? uid->comment_part : NULL;
case GPGME_ATTR_VALIDITY:
return validity_to_string (key->otrust);
return uid ? validity_to_string (uid->validity) : NULL;
case GPGME_ATTR_KEY_CAPS:
return subkey ? capabilities_to_string (subkey) : NULL;