From 59774b11eb478cc714a6c5da937e89c6089fd833 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 8 Jun 2012 09:29:59 +0200 Subject: 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. --- p11-kit/pin.h | 12 ++++++------ 1 file 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 "" -- cgit v1.1