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
36 lines
746 B
JavaScript
36 lines
746 B
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 provides the different code types for the gnubby
|
|
* operations.
|
|
*/
|
|
|
|
/**
|
|
* @const
|
|
* @enum {number}
|
|
*/
|
|
var GnubbyCodeTypes = {
|
|
/** Request succeeded. */
|
|
'OK': 0,
|
|
|
|
/** All plugged in devices are already enrolled. */
|
|
'ALREADY_ENROLLED': 2,
|
|
|
|
/** None of the plugged in devices are enrolled. */
|
|
'NONE_PLUGGED_ENROLLED': 3,
|
|
|
|
/** One or more devices are waiting for touch. */
|
|
'WAIT_TOUCH': 4,
|
|
|
|
/** Unknown error. */
|
|
'UNKNOWN_ERROR': 7,
|
|
|
|
/** Bad request. */
|
|
'BAD_REQUEST': 12
|
|
|
|
};
|