* key.c (gpgme_key_get_string_attr): Return NULL when asking for
authorWerner Koch <wk@gnupg.org>
Thu, 30 May 2002 09:06:45 +0000 (09:06 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 30 May 2002 09:06:45 +0000 (09:06 +0000)
an issuer with IDX > 0.  We don't support altIssuerNames for now.

gpgme/ChangeLog
gpgme/key.c

index 92685367285f661922f1177512367f0b60b42f1f..2cb8c77e4f51df617319e8b01cd5691b4f9e4d71 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-30  Werner Koch  <wk@gnupg.org>
+
+       * 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  <wk@gnupg.org>
 
        * engine-gpgsm.c (_gpgme_gpgsm_op_keylist_ext): Aehmm, added
index 43472dca7700c37524e568b346aad485e6fbb530..3196014cd7aff12903464a1c1738681fb41c6874 100644 (file)
@@ -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;