From: Werner Koch Date: Tue, 23 Apr 2002 09:06:22 +0000 (+0000) Subject: * key.c (gpgme_key_get_ulong_attr): Swapped use of can_encrypt and X-Git-Tag: gpgme-1.2.0@1385~1015 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e740f63f203c0896425f23944dcd8e4a34bcfd17;p=gpgme.git * key.c (gpgme_key_get_ulong_attr): Swapped use of can_encrypt and can_certify to return the requested values. --- diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index fd6ae89..bd7da8f 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2002-04-23 Werner Koch + + * 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 * gpgme.c (gpgme_get_progress_cb): Allow either return parameter diff --git a/trunk/gpgme/key.c b/trunk/gpgme/key.c index 0443668..2199690 100644 --- a/trunk/gpgme/key.c +++ b/trunk/gpgme/key.c @@ -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;