From: Klas Lindfors Date: Mon, 3 Dec 2012 11:12:49 +0000 (+0100) Subject: update ykdef flags for mode X-Git-Tag: v1.10.0~20^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57768f09ebbad1b900f80af0cf9b33d44af70cb2;p=yubikey-personalization update ykdef flags for mode --- diff --git a/ykcore/ykdef.h b/ykcore/ykdef.h index 25171ac..36650a9 100644 --- a/ykcore/ykdef.h +++ b/ykcore/ykdef.h @@ -222,9 +222,9 @@ struct device_config_st { #define MODE_OTP 0x00 /* OTP only */ #define MODE_CCID 0x01 /* CCID only, no eject */ #define MODE_OTP_CCID 0x02 /* OTP + CCID composite */ -#define MODE_MASK 0x0f /* Mask for mode bits */ +#define MODE_MASK 0x03 /* Mask for mode bits */ -#define MODE_FLAG_EJECT 0x10 /* CCID device supports eject (mode 1 only) */ +#define MODE_FLAG_EJECT 0x80 /* CCID device supports eject (mode 1 only) */ #define DEFAULT_CHAL_TIMEOUT 15 /* Default challenge timeout in seconds */