Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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_ */