* key.c (gpgme_key_get_ulong_attr): Swapped use of can_encrypt and
authorWerner Koch <wk@gnupg.org>
Tue, 23 Apr 2002 09:06:22 +0000 (09:06 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 23 Apr 2002 09:06:22 +0000 (09:06 +0000)
can_certify to return the requested values.

gpgme/ChangeLog
gpgme/key.c

index fd6ae89644984c9cfa3116b309b36fb21154b726..bd7da8f43538a8bb8765cadb584069ceaafed74a 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-23  Werner Koch  <wk@gnupg.org>
+
+       * key.c (gpgme_key_get_ulong_attr): Swapped use of can_encrypt and
+       can_certify to return the requested values.
+
 2002-04-23  Marcus Brinkmann  <marcus@g10code.de>
 
        * gpgme.c (gpgme_get_progress_cb): Allow either return parameter
index 0443668a02a1fdb9438f6aabb07982b273483f29..21996907ab8a861330dcb9ade6f25022a3db1fed 100644 (file)
@@ -976,13 +976,13 @@ gpgme_key_get_ulong_attr ( GpgmeKey key, GpgmeAttr what,
             val = u->invalid;
         break;
       case GPGME_ATTR_CAN_ENCRYPT:
-        val = key->gloflags.can_certify;
+        val = key->gloflags.can_encrypt;
         break;
       case GPGME_ATTR_CAN_SIGN:
         val = key->gloflags.can_sign;
         break;
       case GPGME_ATTR_CAN_CERTIFY:
-        val = key->gloflags.can_encrypt;
+        val = key->gloflags.can_certify;
         break;
       default:
         break;