mirror of
https://github.com/FeitianTech/u2f-ref-code.git
synced 2026-08-28 10:40:37 -07:00
- Require explicit user approval on registration - Embed eTLD list instead of fetching remotel - Support compressed requests (single appId and challenge) - Do not reveal to webpage if that a device is enrolled without explicit user action - Smaller bugfixes
61 lines
1.1 KiB
JavaScript
61 lines
1.1 KiB
JavaScript
// Copyright 2014 Google Inc. All rights reserved
|
|
//
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file or at
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
/**
|
|
* @fileoverview This file defines the status codes returned by the device.
|
|
*/
|
|
|
|
var DeviceStatusCodes = {};
|
|
|
|
/**
|
|
* Device operation succeeded.
|
|
* @const
|
|
*/
|
|
DeviceStatusCodes.OK_STATUS = 0;
|
|
|
|
/**
|
|
* Device operation wrong length status.
|
|
* @const
|
|
*/
|
|
DeviceStatusCodes.WRONG_LENGTH_STATUS = 0x6700;
|
|
|
|
/**
|
|
* Device operation wait touch status.
|
|
* @const
|
|
*/
|
|
DeviceStatusCodes.WAIT_TOUCH_STATUS = 0x6985;
|
|
|
|
/**
|
|
* Device operation invalid data status.
|
|
* @const
|
|
*/
|
|
DeviceStatusCodes.INVALID_DATA_STATUS = 0x6984;
|
|
|
|
/**
|
|
* Device operation wrong data status.
|
|
* @const
|
|
*/
|
|
DeviceStatusCodes.WRONG_DATA_STATUS = 0x6a80;
|
|
|
|
/**
|
|
* Device operation timeout status.
|
|
* @const
|
|
*/
|
|
DeviceStatusCodes.TIMEOUT_STATUS = -5;
|
|
|
|
/**
|
|
* Device operation busy status.
|
|
* @const
|
|
*/
|
|
DeviceStatusCodes.BUSY_STATUS = -6;
|
|
|
|
/**
|
|
* Device removed status.
|
|
* @const
|
|
*/
|
|
DeviceStatusCodes.GONE_STATUS = -8;
|
|
|