andre@0: /* andre@0: * softoknt.h - public data structures for the software token library andre@0: * andre@0: * This Source Code Form is subject to the terms of the Mozilla Public andre@0: * License, v. 2.0. If a copy of the MPL was not distributed with this andre@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ andre@0: andre@0: #ifndef _SOFTOKNT_H_ andre@0: #define _SOFTOKNT_H_ andre@0: andre@0: #define NSS_SOFTOKEN_DEFAULT_CHUNKSIZE 2048 andre@0: andre@0: /* andre@0: * FIPS 140-2 auditing andre@0: */ andre@0: typedef enum { andre@0: NSS_AUDIT_ERROR = 3, /* errors */ andre@0: NSS_AUDIT_WARNING = 2, /* warning messages */ andre@0: NSS_AUDIT_INFO = 1 /* informational messages */ andre@0: } NSSAuditSeverity; andre@0: andre@0: typedef enum { andre@0: NSS_AUDIT_ACCESS_KEY = 0, andre@0: NSS_AUDIT_CHANGE_KEY, andre@0: NSS_AUDIT_COPY_KEY, andre@0: NSS_AUDIT_CRYPT, andre@0: NSS_AUDIT_DERIVE_KEY, andre@0: NSS_AUDIT_DESTROY_KEY, andre@0: NSS_AUDIT_DIGEST_KEY, andre@0: NSS_AUDIT_FIPS_STATE, andre@0: NSS_AUDIT_GENERATE_KEY, andre@0: NSS_AUDIT_INIT_PIN, andre@0: NSS_AUDIT_INIT_TOKEN, andre@0: NSS_AUDIT_LOAD_KEY, andre@0: NSS_AUDIT_LOGIN, andre@0: NSS_AUDIT_LOGOUT, andre@0: NSS_AUDIT_SELF_TEST, andre@0: NSS_AUDIT_SET_PIN, andre@0: NSS_AUDIT_UNWRAP_KEY, andre@0: NSS_AUDIT_WRAP_KEY andre@0: } NSSAuditType; andre@0: andre@0: #endif /* _SOFTOKNT_H_ */