⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bsafeerr.h

📁 IBM Lotus C++ API 7.0a for IBM Lotus Notes/Domino Directory Release --------- ------------------
💻 H
📖 第 1 页 / 共 4 页
字号:

#if defined(OS400) && (__OS400_TGTVRM__ >= 510)
#pragma datamodel(P128)
#endif

/*********************************************************************/
/*                                                                   */
/* Licensed Materials - Property of IBM                              */
/*                                                                   */
/* L-GHUS-5VMPGW, L-GHUS-5S3PEE                                      */
/* (C) Copyright IBM Corp. 1989, 2005  All Rights Reserved           */
/*                                                                   */
/* US Government Users Restricted Rights - Use, duplication or       */
/* disclosure restricted by GSA ADP Schedule Contract with           */
/* IBM Corp.                                                         */
/*                                                                   */
/*********************************************************************/



#ifndef BSAFE_ERR_DEFS
#define	BSAFE_ERR_DEFS


/* BSAFE (Security package) Error Code Definitions			*/

#define	ERR_BSAFE_PSW_PROMPT				(PKG_BSAFE+0)
#ifdef OS400
	errortext(ERR_BSAFE_PSW_PROMPT,			"Enter password (press the F3 key to abort): ")
#else
	errortext(ERR_BSAFE_PSW_PROMPT,			"Enter password (press the Esc key to abort): ")
#endif
#define	ERR_BSAFE_FALSE						(PKG_BSAFE+1)
	internaltext(ERR_BSAFE_FALSE,			"Do not suspend operation")
#define ERR_BSAFE_ALLOCATE					(PKG_BSAFE+2)
	internaltext(ERR_BSAFE_ALLOCATE,		"Error allocating security block")
#define ERR_BSAFE_FREE						(PKG_BSAFE+3)
	internaltext(ERR_BSAFE_FREE,			"Error freeing security block")
#define ERR_BSAFE_ENTRY						(PKG_BSAFE+4)
	internaltext(ERR_BSAFE_ENTRY,			"Error initializing security block")
#define ERR_BSAFE_EXIT						(PKG_BSAFE+5)
	internaltext(ERR_BSAFE_EXIT,			"Error cleaning up security block")
#define ERR_BSAFE_PAUSE						(PKG_BSAFE+6)
	internaltext(ERR_BSAFE_PAUSE,			"Security operation temporarily suspended")
#define ERR_BSAFE_BADKEY					(PKG_BSAFE+7)
	errortext(ERR_BSAFE_BADKEY,				"The encrypted data has been modified or the wrong key was used to decrypt it")
#define ERR_BSAFE_BADCTX					(PKG_BSAFE+8)
	errortext(ERR_BSAFE_BADCTX,				"Bad Security Context information")
#define ERR_BSAFE_BADOPCODE					(PKG_BSAFE+9)
	errortext(ERR_BSAFE_BADOPCODE,			"Illegal Security function code")
#define	ERR_BSAFE_BADCHECKSUM				(PKG_BSAFE+10)
	errortext(ERR_BSAFE_BADCHECKSUM,		"The encrypted data has been modified or the wrong key was used to decrypt it")
#define	ERR_BSAFE_BADDATA					(PKG_BSAFE+11)
	errortext(ERR_BSAFE_BADDATA,			"The encrypted data has been modified or the wrong key was used to decrypt it")

#define ERR_BSAFE_BUG_1						(PKG_BSAFE+12)
	errortext(ERR_BSAFE_BUG_1,				"BSAFE package software error #1")
#define ERR_BSAFE_POOLFULL					(PKG_BSAFE+13)
	errortext(ERR_BSAFE_POOLFULL,			"Insufficient memory - BSAFE pool is full")

#define ERR_BSAFE_CACHEFULL					(PKG_BSAFE+14)
	errortext(ERR_BSAFE_CACHEFULL,			"Insufficient memory - BSAFE Name lookup cache is full")

#define ERR_BSAFE_TOOSMALL					(PKG_BSAFE+15)
	errortext(ERR_BSAFE_TOOSMALL,			"Buffer used to receive cryptographic output was too small")
#define ERR_BSAFE_BAD_ATTRIBUTES			(PKG_BSAFE+16)
	errortext(ERR_BSAFE_BAD_ATTRIBUTES,		"Inconsistent name attributes")
#define ERR_BSAFE_MDLENGTH					(PKG_BSAFE+17)
	errortext(ERR_BSAFE_MDLENGTH,			"Bad Message Digest length")
#define ERR_BSAFE_NOT_ALLOWED				(PKG_BSAFE+18)
	errortext(ERR_BSAFE_NOT_ALLOWED,		"Attempted encryption operation is not supported by this version of Notes.")
#define	ERR_BSAFE_ILLEGAL_IDFILE			(PKG_BSAFE+19)
	errortext(ERR_BSAFE_ILLEGAL_IDFILE,		"The specified ID file may only be used inside of North America.")
#define	ERR_BSAFE_BAD_PI_VERSION			(PKG_BSAFE+20)
	errortext(ERR_BSAFE_BAD_PI_VERSION,		"The public key or certificate version stored in the Address Book is not supported.")
#define	ERR_BSAFE_BAD_PI_CHECKSUM			(PKG_BSAFE+21)
	errortext(ERR_BSAFE_BAD_PI_CHECKSUM,	"The public key or certificate stored in the Address Book has been corrupted.")
#define ERR_BSAFE_MISSING_PI				(PKG_BSAFE+22)
	errortext(ERR_BSAFE_MISSING_PI,			"There is no certificate in the Address Book.")
#define ERR_BSAFE_TABLE_MUST_BE_HI			(PKG_BSAFE+23)
	errortext(ERR_BSAFE_TABLE_MUST_BE_HI, 	"The supplied certificate table does not contain any hierarchical certificates")
#define	ERR_BSAFE_NO_COMMON_CERT			(PKG_BSAFE+24)
	errortext(ERR_BSAFE_NO_COMMON_CERT,		"No certificates in common")
#define	ERR_BSAFE_CERTTABLE_VERSION			(PKG_BSAFE+25)
	errortext(ERR_BSAFE_CERTTABLE_VERSION,	"Unrecognized certificate table version")
#define ERR_BSAFE_ILLUSE_GENID				(PKG_BSAFE+26)
	errortext(ERR_BSAFE_ILLUSE_GENID,		"Illegal use of an ID generator file")
#define	ERR_BSAFE_NOT_GENID					(PKG_BSAFE+27)
	errortext(ERR_BSAFE_NOT_GENID,			"Specified file is not an ID generator file")
#define	ERR_BSAFE_NOSUCH_PRVKEY				(PKG_BSAFE+28)
	errortext(ERR_BSAFE_NOSUCH_PRVKEY,		"Specified private key does not exist")
#define ERR_BSAFE_NOSUCH_ESCROW				(PKG_BSAFE+29)
	errortext(ERR_BSAFE_NOSUCH_ESCROW,		"This version of the software does not know the key of a required escrow authority")
#define	ERR_BSAFE_NETFILE					(PKG_BSAFE+30)
	errortext(ERR_BSAFE_NETFILE,			"WARNING: Network-based ID files should be password protected!")
#define	ERR_BSAFE_BAD_IDFILE_VERSION 		(PKG_BSAFE+31)
	errortext(ERR_BSAFE_BAD_IDFILE_VERSION,	"Unsupported ID file version.")
#define	ERR_BSAFE_NOSUCH_PUBKEY				(PKG_BSAFE+32)
	errortext(ERR_BSAFE_NOSUCH_PUBKEY,		"Specified public key does not exist")
#define ERR_BSAFE_PROC_NOT_INITED			(PKG_BSAFE+33)
	errortext(ERR_BSAFE_PROC_NOT_INITED,	"Process has not initialized with the security package")
#define ERR_BSAFE_SUBPROCESS				(PKG_BSAFE+34)
	errortext(ERR_BSAFE_SUBPROCESS,			"A sub-process cannot change to a new ID file or prompt for passwords.")
#define	ERR_BSAFE_NOMEMORY					(PKG_BSAFE+35)
	errortext(ERR_BSAFE_NOMEMORY,			"Insufficient memory for attempted security operation.")
#define	ERR_BSAFE_ILLFUNC					(PKG_BSAFE+36)
	debugtext(ERR_BSAFE_ILLFUNC,			"Unknown security function code.")
#define ERR_BSAFE_NULLPARAM					(PKG_BSAFE+37)
	debugtext(ERR_BSAFE_NULLPARAM,			"Illegal null parameter passed to security function.")
#define ERR_BSAFE_INVALID_XCERT				(PKG_BSAFE+38)
	errortext(ERR_BSAFE_INVALID_XCERT,		"Invalid Cross Certificate was found for %a. This could be a possible attack, please notify your administrator. Select 'Yes' to keep the current existing Cross Certificate")
#define ERR_BSAFE_ILLUSE_SAFECOPY			(PKG_BSAFE+39)
	errortext(ERR_BSAFE_ILLUSE_SAFECOPY,	"The ID file is a safe copy and cannot be used for that purpose.")
#define ERR_BSAFE_USER_ABORT				(PKG_BSAFE+40)
	errortext(ERR_BSAFE_USER_ABORT,			"The prompt for password was aborted by user")
#define ERR_BSAFE_ID_PROTECTED				(PKG_BSAFE+41)
	errortext(ERR_BSAFE_ID_PROTECTED,		"Cannot access or create the ID file")
#define ERR_BSAFE_ID_CREATE					(PKG_BSAFE+42)
	errortext(ERR_BSAFE_ID_CREATE,			"ID file cannot be created")

#define ERR_BSAFE_ID_TRUNC					(PKG_BSAFE+43)
	errortext(ERR_BSAFE_ID_TRUNC,			"The specified ID file has been corrupted, or is not an ID file")
#define ERR_BSAFE_CORRUPTIDFILE				ERR_BSAFE_ID_TRUNC

#define ERR_BSAFE_ID_INVFILENAME			(PKG_BSAFE+44)
	errortext(ERR_BSAFE_ID_INVFILENAME,		"Illegal ID file name: too long or uses invalid syntax")
#define ERR_BSAFE_ID_WRITETRUNC				(PKG_BSAFE+45)
	errortext(ERR_BSAFE_ID_WRITETRUNC,		"Cannot write to ID file; either it is READ-ONLY or the disk is out of space")
#define ERR_BSAFE_ID_INVDRIVE				(PKG_BSAFE+46)
	errortext(ERR_BSAFE_ID_INVDRIVE,		"Invalid drive specified for ID file")
#define ERR_BSAFE_NON_EXISTENT				(PKG_BSAFE+47)
	errortext(ERR_BSAFE_NON_EXISTENT,		"The requested item does not exist")
#define ERR_BSAFE_NEK_NOT_FOUND				(PKG_BSAFE+48)
	errortext(ERR_BSAFE_NEK_NOT_FOUND,		"You don't have any of the specified encryption keys")
#define ERR_BSAFE_KEY_NOT_FOUND				(PKG_BSAFE+49)
	errortext(ERR_BSAFE_KEY_NOT_FOUND,		"The cryptographic key was not found")
#define ERR_BSAFE_KEY_INV_FORMAT			(PKG_BSAFE+50)
	errortext(ERR_BSAFE_KEY_INV_FORMAT,		"The cryptographic key's format is invalid")
#define ERR_BSAFE_NO_KEYS					(PKG_BSAFE+51)
	errortext(ERR_BSAFE_NO_KEYS, 			"Your ID file does not contain any encryption keys")
#define ERR_BSAFE_UNKNOWN_CERTIFICATE		(PKG_BSAFE+52)
	errortext(ERR_BSAFE_UNKNOWN_CERTIFICATE,"Unrecognized or unsupported certificate type")
#define ERR_BSAFE_UNKNOWN_IDFILE			(PKG_BSAFE+53)
	errortext(ERR_BSAFE_UNKNOWN_IDFILE, 	"Unrecognized or unsupported ID File type")
#define ERR_BSAFE_UNKNOWN_DOCKEY			(PKG_BSAFE+54)
	errortext(ERR_BSAFE_UNKNOWN_DOCKEY, 	"Unrecognized or unsupported document encryption key type stored in the ID file")
#define ERR_BSAFE_UNKNOWN_USERINFO			(PKG_BSAFE+55)
	errortext(ERR_BSAFE_UNKNOWN_USERINFO, 	"Unrecognized or unsupported user-information structure")
#define ERR_BSAFE_UNKNOWN_ITEM				(PKG_BSAFE+56)
	debugtext(ERR_BSAFE_UNKNOWN_ITEM,		"Internal error: unknown BSAFE-item code or version")
#define ERR_BSAFE_INV_DNAME					(PKG_BSAFE+57)
	debugtext(ERR_BSAFE_INV_DNAME,			"Invalid name syntax")

/* Note: next error message name is misleading; the error was reused for
*		exceeding a 64K buffer length in a variety of cases.
*/

#define ERR_BSAFE_ODSCERT_TOOBIG			(PKG_BSAFE+58)
	errortext(ERR_BSAFE_ODSCERT_TOOBIG,		"Certificate object requires more than 64K bytes")
#define ERR_BSAFE_UNKNOWN_UDO				(PKG_BSAFE+59)
	errortext(ERR_BSAFE_UNKNOWN_UDO, 		"Unrecognized or unsupported user-descriptor object found in the ID file")
#define ERR_BSAFE_FILE_NOT_OPENED			(PKG_BSAFE+60)
	errortext(ERR_BSAFE_FILE_NOT_OPENED,	"You must first open the ID file before attempting that operation")

#define	ERR_BSAFE_CERTIFICATE_REVOKED		(PKG_BSAFE + 61)
	errortext (ERR_BSAFE_CERTIFICATE_REVOKED,	"The certificate was revoked")
#define	ERR_BSAFE_CERT_VALIDITY				(PKG_BSAFE + 62)
	errortext (ERR_BSAFE_CERT_VALIDITY,		"Certificate is expired or not yet valid")
#define	ERR_BSAFE_CRL_VALIDITY				(PKG_BSAFE + 63)
	errortext (ERR_BSAFE_CRL_VALIDITY,		"The CRL is expired or not yet valid")
#define	ERR_BSAFE_CRL_NOT_FOUND				(PKG_BSAFE + 64)
	errortext (ERR_BSAFE_CRL_NOT_FOUND,		"A CRL was required, but not found for the certificate")
#define	ERR_BSAFE_KEY_USAGE					(PKG_BSAFE + 65)
	errortext (ERR_BSAFE_KEY_USAGE,			"The certificate or chain is invalid due to a key usage violation")
#define	ERR_BSAFE_BASIC_CONSTRAINTS			(PKG_BSAFE + 66)
	errortext (ERR_BSAFE_BASIC_CONSTRAINTS,	"The certificate or chain is invalid due to a basic constraints violation")
#define STR_BSAFE_IDC_SUBJECT				(PKG_BSAFE+67)
	stringtext(STR_BSAFE_IDC_SUBJECT, "%A has certified the ID belonging to %A.  The certificate can be merged into your ID file by using the Actions menu 'Accept Certificate...' option.")
#define ERR_BSAFE_SENDER_SIGNING_CERT_IS_EXPIRED		(PKG_BSAFE+68)
	errortext(ERR_BSAFE_SENDER_SIGNING_CERT_IS_EXPIRED,	"Senders' signing certificate is expired")
#define ERR_BSAFE_SENDER_SIGNING_CERT_HAS_SINCE_EXPIRED	(PKG_BSAFE+69)
	errortext(ERR_BSAFE_SENDER_SIGNING_CERT_HAS_SINCE_EXPIRED,	"Senders' signing certificate has expired after this mail was signed")
#define ERR_BSAFE_INVALID_XCERT_NO_ARG		(PKG_BSAFE+70)
	errortext(ERR_BSAFE_INVALID_XCERT_NO_ARG,	"An invalid Cross Certificate was found. It may be a corrupted Cross Certificate, an attack or a new public key issued. Please notify administrator of the problem")	
#define ERR_BSAFE_CANT_CREATE_XCERT			(PKG_BSAFE+71)
	errortext(ERR_BSAFE_CANT_CREATE_XCERT,		"The requested Cross Certificate will not be issued because the subject is already trusted.")
#define ERR_BSAFE_WRONG_SUBJECT_KEY_IN_SIGNATURE	(PKG_BSAFE+72)
	errortext (ERR_BSAFE_WRONG_SUBJECT_KEY_IN_SIGNATURE, "The signer's public key found in the signature does not match the one stored in the directory")
#define ERR_BSAFE_NO_VALID_PW				(PKG_BSAFE+73)
	errortext (ERR_BSAFE_NO_VALID_PW,		"Password has not yet been validated")

#define ERR_BSAFE_ILL_PW_ALG				(PKG_BSAFE+74)
	errortext (ERR_BSAFE_ILL_PW_ALG,		"Unrecognized password object or algorithm")

/* available PKG_BSAFE+75 */
#define STR_BSAFE_SMIME_UNABLE_TO_DECODE_STREAM	(PKG_BSAFE+76)
	stringtext(STR_BSAFE_SMIME_UNABLE_TO_DECODE_STREAM,	"Unable to decode S/MIME stream")
#define	ERR_BSAFE_IDFILE_LOCKED				(PKG_BSAFE+77)
	errortext(ERR_BSAFE_IDFILE_LOCKED,		"The ID File is in use elsewhere and cannot be modified")
#define ERR_BSAFE_NEK_EXISTS				(PKG_BSAFE+78)
	errortext(ERR_BSAFE_NEK_EXISTS,			"Cannot add the encryption key to your ID file.  A key with that name already exists.")
#define ERR_BSAFE_KFM_INVREADOPT			(PKG_BSAFE+79)
	debugtext(ERR_BSAFE_KFM_INVREADOPT,		"Software error: conflicting read ID File options")
#define ERR_BSAFE_MERGE_NONCOPY				(PKG_BSAFE+80)
	errortext(ERR_BSAFE_MERGE_NONCOPY,		"The certificate(s) have not been issued to you and cannot be merged into your ID file.  They have been issued to")
#define ERR_BSAFE_MERGE_NOPRVKEY			(PKG_BSAFE+81)
	errortext(ERR_BSAFE_MERGE_NOPRVKEY,		"The Public Key cannot be accepted since there is no matching Private Key found in the ID file.")
#define	ERR_BSAFE_NONAMECHANGE				(PKG_BSAFE+82)
	errortext(ERR_BSAFE_NONAMECHANGE,		"If you change the user name, this ID will lose all of its certificates.  When the name change is complete, this ID will need to be certified.  Do you want to continue?")
#define ERR_BSAFE_NOMERGECERT				(PKG_BSAFE+83)
	errortext(ERR_BSAFE_NOMERGECERT,		"There are no certificates to be merged into your ID file")
#define	ERR_BSAFE_INVUSERIDFILE				(PKG_BSAFE+84)
	errortext(ERR_BSAFE_INVUSERIDFILE,		"Your ID file has been corrupted, or is not an ID file.")
#define ERR_BSAFE_CORRUPTFILE				(PKG_BSAFE+85)
	errortext(ERR_BSAFE_CORRUPTFILE,		"The specified ID file has been corrupted, or is not an ID file.")
#define ERR_BSAFE_REQUIRES_NONFLATID 		(PKG_BSAFE+86)
	errortext(ERR_BSAFE_REQUIRES_NONFLATID, "This request is not supported with the version of your ID file.  An ID file containing a hierarchical name is required.")
#define ERR_BSAFE_NO_CROSS_CERT		 		(PKG_BSAFE+87)
	errortext(ERR_BSAFE_NO_CROSS_CERT,		"The Address Book does not contain a cross certificate capable of validating the public key.")
#define ERR_BSAFE_INCOMPLETE_CERTTABLE	 	(PKG_BSAFE+88)
	errortext(ERR_BSAFE_INCOMPLETE_CERTTABLE, "The certificate table does not contain enough valid certificates to verify the public key of its owner.")
#define ERR_BSAFE_ILLUSE_CERTIFIER			(PKG_BSAFE+89)
	errortext(ERR_BSAFE_ILLUSE_CERTIFIER,	"Illegal use of a Certifier ID file")
#define ERR_BSAFE_MUSTBE_CERTIFIER			(PKG_BSAFE+90)
	errortext(ERR_BSAFE_MUSTBE_CERTIFIER,	"The ID file is not a Certifier ID file and cannot be used to issue certificates")
#define ERR_BSAFE_WRITEPROTECTED			(PKG_BSAFE+91)
	errortext(ERR_BSAFE_WRITEPROTECTED,		"The ID file is write protected")
#define ERR_BSAFE_NOPSW_ON_SAFECOPY			(PKG_BSAFE+92)
	errortext(ERR_BSAFE_NOPSW_ON_SAFECOPY,	"This is a safe-copy version of an ID file and cannot be password protected")
#define ERR_BSAFE_YOU_MUST_BE_HI			(PKG_BSAFE+93)
	errortext(ERR_BSAFE_YOU_MUST_BE_HI,		"The local system cannot complete the operation because it is not running with a hierarchical name")
#define ERR_BSAFE_WRONG_SUBJECT_KEY			(PKG_BSAFE+94)
	errortext(ERR_BSAFE_WRONG_SUBJECT_KEY,	"The subject's public key found in the certificate is not the one stored in our ID file for that entity.")

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -