security/nss/lib/softoken/softoknt.h

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 /*
     2  * softoknt.h - public data structures for the software token library
     3  *
     4  * This Source Code Form is subject to the terms of the Mozilla Public
     5  * License, v. 2.0. If a copy of the MPL was not distributed with this
     6  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     8 #ifndef _SOFTOKNT_H_
     9 #define _SOFTOKNT_H_
    11 #define NSS_SOFTOKEN_DEFAULT_CHUNKSIZE   2048
    13 /*
    14  * FIPS 140-2 auditing
    15  */
    16 typedef enum {
    17     NSS_AUDIT_ERROR = 3,    /* errors */
    18     NSS_AUDIT_WARNING = 2,  /* warning messages */
    19     NSS_AUDIT_INFO = 1      /* informational messages */
    20 } NSSAuditSeverity;
    22 typedef enum {
    23     NSS_AUDIT_ACCESS_KEY = 0,
    24     NSS_AUDIT_CHANGE_KEY,
    25     NSS_AUDIT_COPY_KEY,
    26     NSS_AUDIT_CRYPT,
    27     NSS_AUDIT_DERIVE_KEY,
    28     NSS_AUDIT_DESTROY_KEY,
    29     NSS_AUDIT_DIGEST_KEY,
    30     NSS_AUDIT_FIPS_STATE,
    31     NSS_AUDIT_GENERATE_KEY,
    32     NSS_AUDIT_INIT_PIN,
    33     NSS_AUDIT_INIT_TOKEN,
    34     NSS_AUDIT_LOAD_KEY,
    35     NSS_AUDIT_LOGIN,
    36     NSS_AUDIT_LOGOUT,
    37     NSS_AUDIT_SELF_TEST,
    38     NSS_AUDIT_SET_PIN,
    39     NSS_AUDIT_UNWRAP_KEY,
    40     NSS_AUDIT_WRAP_KEY
    41 } NSSAuditType;
    43 #endif /* _SOFTOKNT_H_ */

mercurial