diff options
| -rw-r--r-- | gpgme/ChangeLog | 5 | ||||
| -rw-r--r-- | gpgme/key.c | 4 | 
2 files changed, 7 insertions, 2 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index fd6ae896..bd7da8f4 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2002-04-23  Werner Koch  <[email protected]> + +	* 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  <[email protected]>  	* gpgme.c (gpgme_get_progress_cb): Allow either return parameter diff --git a/gpgme/key.c b/gpgme/key.c index 0443668a..21996907 100644 --- a/gpgme/key.c +++ b/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;  | 
