From: Marcus Brinkmann Date: Fri, 25 Apr 2003 10:59:52 +0000 (+0000) Subject: 2003-04-25 Marcus Brinkmann X-Git-Tag: gpgme-1.2.0@1385~677 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1fd59c6a001cd82390e96bdbe573604c8d1cdff9;p=gpgme.git 2003-04-25 Marcus Brinkmann * key.c (gpgme_key_get_string_attr): Fix validity attribute. --- diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 0a7c44d..0ce537c 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2003-04-25 Marcus Brinkmann + + * key.c (gpgme_key_get_string_attr): Fix validity attribute. + 2003-04-24 Marcus Brinkmann * gpgme.h (struct _gpgme_op_genkey_result): New structure. diff --git a/trunk/gpgme/key.c b/trunk/gpgme/key.c index af87ac9..e6563a8 100644 --- a/trunk/gpgme/key.c +++ b/trunk/gpgme/key.c @@ -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;