Bug 453364: Added three new error codes that are equivalent to the PKCS #11
authorwtc%google.com
Wed, 17 Aug 2011 05:01:54 +0000
changeset 10086 e3d0e9489874496c8a9f54e7dcb63b09dc92a849
parent 10085 357f3caff5f7813793451773046dfde9ffbdaa98
child 10087 663c8f8733c2d88990db79401ed9f8ca5ddcfbe0
push idunknown
push userunknown
push dateunknown
bugs453364
Bug 453364: Added three new error codes that are equivalent to the PKCS #11 error codes CKR_GENERAL_ERROR, CKR_FUNCTION_FAILED, and CKR_DEVICE_ERROR. r=nelson. Modified Files: cmd/lib/SECerrs.h lib/util/secerr.h
security/nss/lib/util/SECerrs.h
--- a/security/nss/lib/util/SECerrs.h
+++ b/security/nss/lib/util/SECerrs.h
@@ -541,8 +541,17 @@ ER3(SEC_ERROR_BAD_LDAP_RESPONSE,    		(S
 ER3(SEC_ERROR_FAILED_TO_ENCODE_DATA,    		(SEC_ERROR_BASE + 164),
 "Failed to encode data with ASN1 encoder")
 
 ER3(SEC_ERROR_BAD_INFO_ACCESS_LOCATION,    		(SEC_ERROR_BASE + 165),
 "Bad information access location in cert extension")
 
 ER3(SEC_ERROR_LIBPKIX_INTERNAL,      		(SEC_ERROR_BASE + 166),
 "Libpkix internal error occured during cert validation.")
+
+ER3(SEC_ERROR_PKCS11_GENERAL_ERROR,      		(SEC_ERROR_BASE + 167),
+"A PKCS #11 module returned CKR_GENERAL_ERROR, indicating that an unrecoverable error has occurred.")
+
+ER3(SEC_ERROR_PKCS11_FUNCTION_FAILED,      		(SEC_ERROR_BASE + 168),
+"A PKCS #11 module returned CKR_FUNCTION_FAILED, indicating that the requested function could not be performed.  Trying the same operation again might succeed.")
+
+ER3(SEC_ERROR_PKCS11_DEVICE_ERROR,      		(SEC_ERROR_BASE + 169),
+"A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot.")