* key.c (gpgme_key_get_ulong_attr): Swapped use of can_encrypt and
can_certify to return the requested values.
This commit is contained in:
parent
09635ef2e6
commit
43da549e6a
@ -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>
|
2002-04-23 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* gpgme.c (gpgme_get_progress_cb): Allow either return parameter
|
* gpgme.c (gpgme_get_progress_cb): Allow either return parameter
|
||||||
|
@ -976,13 +976,13 @@ gpgme_key_get_ulong_attr ( GpgmeKey key, GpgmeAttr what,
|
|||||||
val = u->invalid;
|
val = u->invalid;
|
||||||
break;
|
break;
|
||||||
case GPGME_ATTR_CAN_ENCRYPT:
|
case GPGME_ATTR_CAN_ENCRYPT:
|
||||||
val = key->gloflags.can_certify;
|
val = key->gloflags.can_encrypt;
|
||||||
break;
|
break;
|
||||||
case GPGME_ATTR_CAN_SIGN:
|
case GPGME_ATTR_CAN_SIGN:
|
||||||
val = key->gloflags.can_sign;
|
val = key->gloflags.can_sign;
|
||||||
break;
|
break;
|
||||||
case GPGME_ATTR_CAN_CERTIFY:
|
case GPGME_ATTR_CAN_CERTIFY:
|
||||||
val = key->gloflags.can_encrypt;
|
val = key->gloflags.can_certify;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user