From 4b718f963d4263365ffffc3e0675a3487bc0b8af Mon Sep 17 00:00:00 2001 From: Louis Collard Date: Mon, 7 Jan 2019 10:08:51 +0800 Subject: ec: Move some U2F constants from u2f_impl.h to u2f.h These constants are extensions to the U2F protocol, and as such, form part of the API. Moving them to u2f.h so they can be re-used by U2F clients. TEST=build BUG=b:112603199 BRANCH=none Change-Id: I1cad417bfbd109c253876cbb762f5119ff39da06 Signed-off-by: Louis Collard Reviewed-on: https://chromium-review.googlesource.com/1397099 Commit-Ready: ChromeOS CL Exonerator Bot Reviewed-by: Andrey Pronin --- include/u2f_impl.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'include/u2f_impl.h') diff --git a/include/u2f_impl.h b/include/u2f_impl.h index 0effc2dd8d..8e4e80fa4f 100644 --- a/include/u2f_impl.h +++ b/include/u2f_impl.h @@ -103,17 +103,6 @@ int u2f_gen_kek_seed(int commit); /* Use non-standard extensions to the U2F protocol */ int use_g2f(void); -/* Non-standardized command status responses */ -#define U2F_SW_CLA_NOT_SUPPORTED 0x6E00 -#define U2F_SW_WRONG_LENGTH 0x6700 -#define U2F_SW_WTF 0x6f00 -/* Additional flags for the P1 fields */ -#define G2F_ATTEST 0x80 /* fixed attestation cert */ -#define G2F_CONSUME 0x02 /* consume presence */ - -/* Vendor command to enable/disable the extensions */ -#define U2F_VENDOR_MODE U2F_VENDOR_LAST - /* call extensions for unsupported U2F INS */ unsigned u2f_custom_dispatch(uint8_t ins, struct apdu apdu, uint8_t *buf, unsigned *ret_len) __attribute__((weak)); -- cgit v1.2.1