* key.c (gpgme_key_get_string_attr): Fix validity attribute.
+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.
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;