diff options
Diffstat (limited to 'src/fido/param.h')
-rw-r--r-- | src/fido/param.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fido/param.h b/src/fido/param.h index 9e12ac6..7d3c0cc 100644 --- a/src/fido/param.h +++ b/src/fido/param.h | |||
@@ -58,6 +58,11 @@ | |||
58 | #define FIDO_RANDOM_DEV "/dev/urandom" | 58 | #define FIDO_RANDOM_DEV "/dev/urandom" |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | /* Maximum message size in bytes. */ | ||
62 | #ifndef FIDO_MAXMSG | ||
63 | #define FIDO_MAXMSG 1200 | ||
64 | #endif | ||
65 | |||
61 | /* CTAP capability bits. */ | 66 | /* CTAP capability bits. */ |
62 | #define FIDO_CAP_WINK 0x01 /* if set, device supports CTAP_CMD_WINK */ | 67 | #define FIDO_CAP_WINK 0x01 /* if set, device supports CTAP_CMD_WINK */ |
63 | #define FIDO_CAP_CBOR 0x04 /* if set, device supports CTAP_CMD_CBOR */ | 68 | #define FIDO_CAP_CBOR 0x04 /* if set, device supports CTAP_CMD_CBOR */ |
@@ -80,5 +85,11 @@ | |||
80 | 85 | ||
81 | /* Supported extensions. */ | 86 | /* Supported extensions. */ |
82 | #define FIDO_EXT_HMAC_SECRET 0x01 | 87 | #define FIDO_EXT_HMAC_SECRET 0x01 |
88 | #define FIDO_EXT_CRED_PROTECT 0x02 | ||
89 | |||
90 | /* Supported credential protection policies. */ | ||
91 | #define FIDO_CRED_PROT_UV_OPTIONAL 0x01 | ||
92 | #define FIDO_CRED_PROT_UV_OPTIONAL_WITH_ID 0x02 | ||
93 | #define FIDO_CRED_PROT_UV_REQUIRED 0x03 | ||
83 | 94 | ||
84 | #endif /* !_FIDO_PARAM_H */ | 95 | #endif /* !_FIDO_PARAM_H */ |