Home | History | Annotate | Download | only in cryptotoken
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 /**
      6  * @fileoverview This provides the different code types for the gnubby
      7  * operations.
      8  */
      9 
     10 /**
     11  * @const
     12  * @enum {number}
     13  */
     14 var GnubbyCodeTypes = {
     15   /** Request succeeded. */
     16   'OK': 0,
     17 
     18   /** All plugged in devices are already enrolled. */
     19   'ALREADY_ENROLLED': 2,
     20 
     21   /** None of the plugged in devices are enrolled. */
     22   'NONE_PLUGGED_ENROLLED': 3,
     23 
     24   /** One or more devices are waiting for touch. */
     25   'WAIT_TOUCH': 4,
     26 
     27   /** Unknown error. */
     28   'UNKNOWN_ERROR': 7,
     29 
     30   /** Bad request. */
     31   'BAD_REQUEST': 12
     32 };
     33