From 8c359e54163f4730262639fa70cde3fc395cb3c7 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. --- gpgme/ChangeLog | 4 ++++ gpgme/key.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 0a7c44d..0ce537c 100644 --- a/gpgme/ChangeLog +++ b/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/gpgme/key.c b/gpgme/key.c index af87ac9..e6563a8 100644 --- a/gpgme/key.c +++ b/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