From 1fd59c6a001cd82390e96bdbe573604c8d1cdff9 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 25 Apr 2003 10:59:52 +0000 Subject: [PATCH] 2003-04-25 Marcus Brinkmann * key.c (gpgme_key_get_string_attr): Fix validity attribute. --- trunk/gpgme/ChangeLog | 4 ++++ trunk/gpgme/key.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.26.2