1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/softoken/softoknt.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +/* 1.5 + * softoknt.h - public data structures for the software token library 1.6 + * 1.7 + * This Source Code Form is subject to the terms of the Mozilla Public 1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.10 + 1.11 +#ifndef _SOFTOKNT_H_ 1.12 +#define _SOFTOKNT_H_ 1.13 + 1.14 +#define NSS_SOFTOKEN_DEFAULT_CHUNKSIZE 2048 1.15 + 1.16 +/* 1.17 + * FIPS 140-2 auditing 1.18 + */ 1.19 +typedef enum { 1.20 + NSS_AUDIT_ERROR = 3, /* errors */ 1.21 + NSS_AUDIT_WARNING = 2, /* warning messages */ 1.22 + NSS_AUDIT_INFO = 1 /* informational messages */ 1.23 +} NSSAuditSeverity; 1.24 + 1.25 +typedef enum { 1.26 + NSS_AUDIT_ACCESS_KEY = 0, 1.27 + NSS_AUDIT_CHANGE_KEY, 1.28 + NSS_AUDIT_COPY_KEY, 1.29 + NSS_AUDIT_CRYPT, 1.30 + NSS_AUDIT_DERIVE_KEY, 1.31 + NSS_AUDIT_DESTROY_KEY, 1.32 + NSS_AUDIT_DIGEST_KEY, 1.33 + NSS_AUDIT_FIPS_STATE, 1.34 + NSS_AUDIT_GENERATE_KEY, 1.35 + NSS_AUDIT_INIT_PIN, 1.36 + NSS_AUDIT_INIT_TOKEN, 1.37 + NSS_AUDIT_LOAD_KEY, 1.38 + NSS_AUDIT_LOGIN, 1.39 + NSS_AUDIT_LOGOUT, 1.40 + NSS_AUDIT_SELF_TEST, 1.41 + NSS_AUDIT_SET_PIN, 1.42 + NSS_AUDIT_UNWRAP_KEY, 1.43 + NSS_AUDIT_WRAP_KEY 1.44 +} NSSAuditType; 1.45 + 1.46 +#endif /* _SOFTOKNT_H_ */