summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-06-08 09:29:59 +0200
committerStef Walter <stefw@gnome.org>2012-06-08 09:32:16 +0200
commit59774b11eb478cc714a6c5da937e89c6089fd833 (patch)
tree4bf8776869bf037b8bd3695f1fac98dbcd9be036
parentcaa953cba4d2d0cdd4823eb2f1c4f24bbf18a231 (diff)
downloadp11-kit-59774b11eb478cc714a6c5da937e89c6089fd833.tar.gz
Fix the flags in pin.h
* Due to a brain fart the P11_KIT_PIN_* flags were not bit flags but decimal numbers. * This necessarily breaks API/ABI for users of the P11_KIT_PIN_FLAGS_RETRY, P11_KIT_PIN_FLAGS_MANY_TRIES and P11_KIT_PIN_FLAGS_FINAL_TRY flags. But those wouldn't have worked anyway.
-rw-r--r--p11-kit/pin.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/p11-kit/pin.h b/p11-kit/pin.h
index bc342b1..3b6806d 100644
--- a/p11-kit/pin.h
+++ b/p11-kit/pin.h
@@ -44,12 +44,12 @@ extern "C" {
typedef struct p11_kit_pin P11KitPin;
typedef enum {
- P11_KIT_PIN_FLAGS_USER_LOGIN = 1,
- P11_KIT_PIN_FLAGS_SO_LOGIN = 2,
- P11_KIT_PIN_FLAGS_CONTEXT_LOGIN = 4,
- P11_KIT_PIN_FLAGS_RETRY = 10,
- P11_KIT_PIN_FLAGS_MANY_TRIES = 20,
- P11_KIT_PIN_FLAGS_FINAL_TRY = 40
+ P11_KIT_PIN_FLAGS_USER_LOGIN = 1<<0,
+ P11_KIT_PIN_FLAGS_SO_LOGIN = 1<<1,
+ P11_KIT_PIN_FLAGS_CONTEXT_LOGIN = 1<<2,
+ P11_KIT_PIN_FLAGS_RETRY = 1<<3,
+ P11_KIT_PIN_FLAGS_MANY_TRIES = 1<<4,
+ P11_KIT_PIN_FLAGS_FINAL_TRY = 1<<5
} P11KitPinFlags;
#define P11_KIT_PIN_FALLBACK ""