From: Werner Koch Date: Thu, 30 May 2002 09:06:45 +0000 (+0000) Subject: * key.c (gpgme_key_get_string_attr): Return NULL when asking for X-Git-Tag: gpgme-1.2.0@1385~979 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8872ebb0b258f2cd5d3226ae7c48f501270c1675;p=gpgme.git * key.c (gpgme_key_get_string_attr): Return NULL when asking for an issuer with IDX > 0. We don't support altIssuerNames for now. --- diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 9268536..2cb8c77 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2002-05-30 Werner Koch + + * key.c (gpgme_key_get_string_attr): Return NULL when asking for + an issuer with IDX > 0. We don't support altIssuerNames for now. + 2002-05-22 Werner Koch * engine-gpgsm.c (_gpgme_gpgsm_op_keylist_ext): Aehmm, added diff --git a/trunk/gpgme/key.c b/trunk/gpgme/key.c index 43472dc..3196014 100644 --- a/trunk/gpgme/key.c +++ b/trunk/gpgme/key.c @@ -972,7 +972,7 @@ gpgme_key_get_string_attr (GpgmeKey key, GpgmeAttr what, val = key->issuer_serial; break; case GPGME_ATTR_ISSUER: - val = key->issuer_name; + val = idx? NULL : key->issuer_name; break; case GPGME_ATTR_CHAINID: val = key->chain_id;