bsafeerr.h

来自「IBM Lotus C++ API 7.0a for IBM Lotus Not」· C头文件 代码 · 共 932 行 · 第 1/4 页

H
932
字号
	errortext (ERR_BSAFE_BAD_KEY_LENGTH,		"Invalid cryptographic key length")
#define ERR_BSAFE_BAD_SIGNATURE					(PKG_BSAFE3+23)
	errortext (ERR_BSAFE_BAD_SIGNATURE,			"Could not verify cryptographic signature")
#define ERR_BSAFE_BAD_RANDOM_STATE				(PKG_BSAFE3+24)
	errortext (ERR_BSAFE_BAD_RANDOM_STATE,		"Bad random number generator state")
#define ERR_BSAFE_CERTCRL_NOT_FOUND				(PKG_BSAFE3+25)
	errortext (ERR_BSAFE_CERTCRL_NOT_FOUND,		"Certificate, private key or CRL was not found")
#define ERR_BSAFE_MAKING_CERT_CHAIN				(PKG_BSAFE3+26)
	errortext (ERR_BSAFE_MAKING_CERT_CHAIN,		"A certificate chain could not be constructed")
#define ERR_BSAFE_CRYPTO_UPDATE_COUNT			(PKG_BSAFE3+27)
	errortext (ERR_BSAFE_CRYPTO_UPDATE_COUNT,	"Cryptographic error: update operation called an inappropriate number of times")
#define ERR_BSAFE_DATA_STREAM					(PKG_BSAFE3+28)
	errortext (ERR_BSAFE_DATA_STREAM,			"Data streaming error encountered during cryptographic operation")
#define ERR_BSAFE_CERT_EXT_EXISTS				(PKG_BSAFE3+29)
	errortext (ERR_BSAFE_CERT_EXT_EXISTS,		"Certificate extension already exists")
#define ERR_BSAFE_GENERIC_DATA					(PKG_BSAFE3+30)
	errortext (ERR_BSAFE_GENERIC_DATA,			"Unknown data error occurred during cryptographic processing")
#define ERR_BSAFE_HARDWARE		 				(PKG_BSAFE3+31)
	errortext (ERR_BSAFE_HARDWARE,		 		"Cryptographic hardware error")

/* 		(PKG_BSAFE3:  Limited to 0-31 */


#define ERR_BSAFE_UNSUPPORTED_CERTCRLSIG		(PKG_BSAFE4+0)
	errortext (ERR_BSAFE_UNSUPPORTED_CERTCRLSIG,"Unsupported certificate or CRL signature algorithm")
#define ERR_BSAFE_UNSUPPORTED_CRYPTO_OP			(PKG_BSAFE4+1)
	errortext (ERR_BSAFE_UNSUPPORTED_CRYPTO_OP,	"An unsupported cryptographic operation was requested")
#define ERR_BSAFE_WEAK_KEY						(PKG_BSAFE4+2)
	errortext (ERR_BSAFE_WEAK_KEY,				"The data supplied would generate a known weak cryptographic key")

/*		+3 thru +6 are available  */

#define ERR_BSAFE_INVALID_PASSWORD              (PKG_BSAFE4+7)
	errortext (ERR_BSAFE_INVALID_PASSWORD,      "Password does not meet the requirement")
#define ERR_BSAFE_INSERT_SMARTCARD              (PKG_BSAFE4+8)
	errortext (ERR_BSAFE_INSERT_SMARTCARD,      "Please insert the smartcard")
#define ERR_BSAFE_SC_PIN_INVALID                (PKG_BSAFE4+9)
	errortext (ERR_BSAFE_SC_PIN_INVALID,        "Incorrect PIN")
#define ERR_BSAFE_SC_RESET                      (PKG_BSAFE4+10)
	errortext (ERR_BSAFE_SC_RESET,              "A smartcard device error has occurred. Please eject and re-insert your smartcard.")
#define ERR_BSAFE_SC_UNKNOWN                    (PKG_BSAFE4+11)
	errortext (ERR_BSAFE_SC_UNKNOWN,            "An unknown smartcard error has occurred.")
#define ERR_BSAFE_SC_INVALID_CONFIG             (PKG_BSAFE4+12)
	errortext (ERR_BSAFE_SC_INVALID_CONFIG,     "Incomplete or incorrect smartcard configuration.")
#define ERR_BSAFE_SC_UNSUPPORTED_FUNC           (PKG_BSAFE4+13)
	errortext (ERR_BSAFE_SC_UNSUPPORTED_FUNC,   "This feature is not supported by your smartcard.")
#define ERR_BSAFE_SC_DEVICE_MEMORY              (PKG_BSAFE4+14)
	errortext (ERR_BSAFE_SC_DEVICE_MEMORY,      "Insufficient free space on smartcard. Please contact your administrator.")
#define ERR_BSAFE_SC_PIN_LOCKED                 (PKG_BSAFE4+15)
	errortext (ERR_BSAFE_SC_PIN_LOCKED,         "Your smartcard or cryptographic device is locked. Please contact your administrator.")
#define ERR_BSAFE_RECOVERY_INFO_REMOVED			(PKG_BSAFE4+16)
	errortext (ERR_BSAFE_RECOVERY_INFO_REMOVED, "Recovery information has been removed")
#define ERR_BSAFE_SC_NOT_RECOGNIZED             (PKG_BSAFE4+17)
	errortext (ERR_BSAFE_SC_NOT_RECOGNIZED,     "This smartcard has not been initialized or is incompatible with your smartcard reader.")
#define ERR_BSAFE_SC_KEY_CREATE                 (PKG_BSAFE4+18)
	errortext (ERR_BSAFE_SC_KEY_CREATE,         "This key could not be written to your smartcard.")
#define ERR_SMIME_RECIPIENT_BAD_CERT            (PKG_BSAFE4+19)
    errortext (ERR_SMIME_RECIPIENT_BAD_CERT,	" The certificate is not usable.")
#define ERR_SMIME_RECIPIENT_CERT_CHAIN          (PKG_BSAFE4+20)
    errortext (ERR_SMIME_RECIPIENT_CERT_CHAIN,	" The certificate chain is not trusted.")
#define ERR_SMIME_RECIPIENT_ILLEGAL         	(PKG_BSAFE4+21)
    errortext (ERR_SMIME_RECIPIENT_ILLEGAL,		" You are not allowed to encrypt for this recipient.")
#define ERR_SMIME_RECIPIENT_ADD_FAILURE         (PKG_BSAFE4+22)
    errortext (ERR_SMIME_RECIPIENT_ADD_FAILURE,	" You cannot encrypt a message to this recipient.")
#define ERR_SMIME_RECIPIENT_BAD_EMAIL           (PKG_BSAFE4+23)
    errortext (ERR_SMIME_RECIPIENT_BAD_EMAIL,	" This recipient's email address was not found in the certificate.")
#define ERR_SMIME_RECIPIENT_CERT_REVOKED        (PKG_BSAFE4+24)
    errortext (ERR_SMIME_RECIPIENT_CERT_REVOKED,"This recipient's certificate had been revoked.")
#define ERR_SMIME_RECIPIENT_EMAIL_MISMATCH      (PKG_BSAFE4+25)
    errortext (ERR_SMIME_RECIPIENT_EMAIL_MISMATCH," This recipient's email address in the directory did not match what was found in the certificate.")
#define ERR_SMIME_RECIPIENT_CERT_EXPIRED        (PKG_BSAFE4+26)
    errortext (ERR_SMIME_RECIPIENT_CERT_EXPIRED," This recipient's certificate is expired.")
#define ERR_SMIME_SENDER_SIGNING_CERT_EXPIRED   (PKG_BSAFE4+27)
    errortext (ERR_SMIME_SENDER_SIGNING_CERT_EXPIRED," The certificate used to send signed mail is expired.")
#define ERR_LTPA_TOKEN_SHOULD_RENEW				(PKG_BSAFE4+28)
	errortext (ERR_LTPA_TOKEN_SHOULD_RENEW,		"Single Sign-On token should be renewed.")
#define ERR_BSAFE_CERT_EXPIRES_SERVER				(PKG_BSAFE4+29)
	errortext(ERR_BSAFE_CERT_EXPIRES_SERVER,		"WARNING:  Server certificate issued to %s by %s will expire on %s. Contact your Domino administrator.  %s")
#define ERR_BSAFE_CERT_EXPIRED_SERVER				(PKG_BSAFE4+30)
	errortext(ERR_BSAFE_CERT_EXPIRED_SERVER,		"WARNING:  Server certificate issued to %s by %s expired on %s and can no longer be used.  Contact your Domino administrator.")

/* 		PKG_BSAFE4:  Limited to 0-31 */


#define ERR_BSAFE_RECOVERY_INFO_TOO_OLD         (PKG_BSAFE5+0)
    errortext (ERR_BSAFE_RECOVERY_INFO_TOO_OLD, "The recovery information was not accepted because it is the same or older than your current recovery information")
#define ERR_BSAFE_NOT_LEAF_CERT                 (PKG_BSAFE5+1)
    errortext (ERR_BSAFE_NOT_LEAF_CERT,         "Only leaf certificates can be deleted from the ID file")
#define ERR_BSAFE_NO_REPOSITORY_NAME            (PKG_BSAFE5+2)
    errortext (ERR_BSAFE_NO_REPOSITORY_NAME,    "You must specify a name for the backup repository address")
#define ERR_BSAFE_PKCS12_IMPORT_ADD_KEY  		(PKG_BSAFE5+3)
	errortext(ERR_BSAFE_PKCS12_IMPORT_ADD_KEY, "Cannot add key from the import file.")
#define ERR_BSAFE_PKCS12_IMPORT_ADD_CERT  		(PKG_BSAFE5+4)
	errortext(ERR_BSAFE_PKCS12_IMPORT_ADD_CERT, "Cannot add certificate from the import file.")
#define ERR_BSAFE_SC_NO_PASSWORD                (PKG_BSAFE5+5)
	errortext(ERR_BSAFE_SC_NO_PASSWORD,         "The password for this ID file is not stored on a smartcard.")
#define ERR_BSAFE_SC_NO_DLL_FOUND                (PKG_BSAFE5+6)
	errortext(ERR_BSAFE_SC_NO_DLL_FOUND,         "The path or file selected for the smartcard driver is invalid.")
#define ERR_BSAFE_ILL_CERTTAB_ITEM				(PKG_BSAFE5+7)
	errortext(ERR_BSAFE_ILL_CERTTAB_ITEM,		"A certificate table item was unrecognized")
#define ERR_BSAFE_CANT_MODIFY_ACTIVE_ID			(PKG_BSAFE5+8)
	errortext(ERR_BSAFE_CANT_MODIFY_ACTIVE_ID,	"You cannot modify the active ID file")
#define ERR_BSAFE_TOO_MANY_RO_CERTIFICATES		(PKG_BSAFE5+9)
	errortext(ERR_BSAFE_TOO_MANY_RO_CERTIFICATES, "The certificate table contains too many key rollover certificates")
#define ERR_BSAFE_KEYGEN_WRONG_STATE			(PKG_BSAFE5+10)
	errortext(ERR_BSAFE_KEYGEN_WRONG_STATE,		"Pending public keys are in the wrong state for the requested operation")
#define ERR_BSAFE_ROLLOVER_TOO_MANY				(PKG_BSAFE5+12)
	errortext(ERR_BSAFE_ROLLOVER_TOO_MANY,		"Too many key rollover certificates")
#define ERR_BSAFE_RECOVERY_CERTIFIER_NOT_ANCESTOR (PKG_BSAFE5+13)
	errortext (ERR_BSAFE_RECOVERY_CERTIFIER_NOT_ANCESTOR,	"Recovery information is from a certifier that is not an ancestor of this user")

#define ERR_BSAFE_ROLLOVER_UNKNOWN_TYPE			(PKG_BSAFE5+15)
	errortext(ERR_BSAFE_ROLLOVER_UNKNOWN_TYPE,	"Unknown key rollover object type")

/* 		PKG_BSAFE5:  Available, limited to 0-15 */

#define ERR_BSAFE_TE_UNTRUSTED_SIGNER			(PKG_BSAFE6+0)
	errortext (ERR_BSAFE_TE_UNTRUSTED_SIGNER, 	"The signer's certificate is not trusted.")
#define ERR_BSAFE_INCOMPLETE_CERT_CHAIN			(PKG_BSAFE6+1)
	errortext (ERR_BSAFE_INCOMPLETE_CERT_CHAIN,	"Cannot accept internet certificate because the certificate authority certificate is unavailable.")
#define ERR_BSAFE_MISSING_PRIVATE_KEY			(PKG_BSAFE6+2)
	errortext (ERR_BSAFE_MISSING_PRIVATE_KEY,	"Cannot accept internet certificate because the current ID file was not used to create the original request.")
#define ERR_BSAFE_CERT_ALREADY_IN_ID_FILE		(PKG_BSAFE6+3)
	errortext (ERR_BSAFE_CERT_ALREADY_IN_ID_FILE,	"Cannot accept internet certificate because the certificate is already in the ID file.")
		

/*	Note: Put here, because there was space, but these really belong
* 	elsewhere
*/

/* LATER:
*	In some cases, copies of ERR_DESK codes moved here because they can
*	be returned by the SDK. Corresponding ERR_DESK codes should be eliminated
*/

#define ERR_BSAFE_ILL_IDCHAR			(PKG_BSAFE6+4)
	errortext(ERR_BSAFE_ILL_IDCHAR,		"The only allowed characters for a person, server, or certifier name are letters, numbers, ampersand, apostrophe, hyphen, period, space, and underscore")
#define ERR_BSAFE_ILL_DOMAIN			(PKG_BSAFE6+5)
	errortext(ERR_BSAFE_ILL_DOMAIN,		"The only allowed characters for a domain name are letters, numbers, ampersand, apostrophe, hyphen, space, and underscore")
#define ERR_BSAFE_NA_ENTRY_NOT_FOUND	(PKG_BSAFE6+6)
	stringtext(ERR_BSAFE_NA_ENTRY_NOT_FOUND,	"The ID was certified but there was no corresponding entry in the Address Book to be updated")
#define ERR_BSAFE_OLDNSF				(PKG_BSAFE6+7)
	errortext(ERR_BSAFE_OLDNSF,			"Unable to perform this operation; options were selected that cannot be used with this older format Notes database.")
#define ERR_BSAFE_INV_RECERT_FORM		(PKG_BSAFE6+8)
	errortext(ERR_BSAFE_INV_RECERT_FORM,"Cannot certify this entry because the form used to create it is not supported for this operation.")
#define ERR_BSAFE_NOT_IMPLEMENTED		(PKG_BSAFE6+9)
	errortext(ERR_BSAFE_NOT_IMPLEMENTED,"Operation is not yet implemented")
#define ERR_BSAFE_DUP_NAME				(PKG_BSAFE6+10)
	errortext(ERR_BSAFE_DUP_NAME,		"Duplicate name found")
#define ERR_BSAFE_ILL_CERTIFIER_NAME	(PKG_BSAFE6+11)
	errortext(ERR_BSAFE_ILL_CERTIFIER_NAME, "You specified an illegal certifier name")
#define ERR_BSAFE_NO_INET_CERTS			(PKG_BSAFE6+12)
	errortext(ERR_BSAFE_NO_INET_CERTS,	"Could not locate or process internet certificates for this ID.")
#define ERR_BSAFE_PKCS12_IMPORT_BAD_FILE_READ  	(PKG_BSAFE6+13)
	errortext(ERR_BSAFE_PKCS12_IMPORT_BAD_FILE_READ, "Import file could not be read.  Check file permissions.")
#define ERR_BSAFE_PKCS12_IMPORT_BAD_INFO  	(PKG_BSAFE6+14)
	errortext(ERR_BSAFE_PKCS12_IMPORT_BAD_INFO, "Unsupported PKCS12 version or content.  Check the import file.")
#define ERR_BSAFE_PKCS12_IMPORT_BAD_UNKNOWN  	(PKG_BSAFE6+15)
	errortext(ERR_BSAFE_PKCS12_IMPORT_BAD_UNKNOWN, "Cannot handle the import file.  Check file name and file password.")

/* 		PKG_BSAFE6:  Available, limited to 0-15 */


/*PKG_BSAFE_STR bsafe strings 0 - 127 */
#define ERR_BSAFE_DISPLAY_IDFILE			(PKG_BSAFE_STR)
	stringtext(ERR_BSAFE_DISPLAY_IDFILE,	"The ID file being used is: ")
#define STR_BSAFE_RSA_PRIMARY				(PKG_BSAFE_STR + 2)
	stringtext(STR_BSAFE_RSA_PRIMARY,		"Primary RSA")
#define STR_BSAFE_RSA_SECONDARY				(PKG_BSAFE_STR + 3)
	stringtext(STR_BSAFE_RSA_SECONDARY,		"Secondary RSA")
#define STR_BSAFE_RC2						(PKG_BSAFE_STR + 4)
	stringtext(STR_BSAFE_RC2,				"RC2")
#define STR_BSAFE_RC4						(PKG_BSAFE_STR + 5)
	stringtext(STR_BSAFE_RC4,				"RC4")
#define STR_BSAFE_USA						(PKG_BSAFE_STR + 6)
	stringtext(STR_BSAFE_USA,				"North American")
#define	STR_BSAFE_NONUSA					(PKG_BSAFE_STR + 7)
	stringtext(STR_BSAFE_NONUSA,			"International")
#define STR_BSAFE_SIGNED_MAIL				(PKG_BSAFE_STR + 8)
	stringtext(STR_BSAFE_SIGNED_MAIL,		"Signed mail using %d bit %e key")
#define STR_BSAFE_SEALED_DOC				(PKG_BSAFE_STR + 9)
	stringtext(STR_BSAFE_SEALED_DOC,		"Encrypted document using %d/%d bit %e/%e keys")
#define STR_BSAFE_CERTIFY					(PKG_BSAFE_STR + 10)
	stringtext(STR_BSAFE_CERTIFY, 			"Created certificate using %d bit %e key")
#define STR_BSAFE_IDFILE_ENCRYPTED			(PKG_BSAFE_STR + 11)
	stringtext(STR_BSAFE_IDFILE_ENCRYPTED,	"ID file is encrypted with %d bit %e key")
#define STR_BSAFE_FORCED_AUTH				(PKG_BSAFE_STR + 12)
	stringtext(STR_BSAFE_FORCED_AUTH,		"Authentication is being forced due to secure channel setting.")
#define STR_BSAFE_CERT_EXPIRES				(PKG_BSAFE_STR + 13)
	stringtext(STR_BSAFE_CERT_EXPIRES,		"WARNING:  Your certificate issued to %s by %s will expire on %s. To request a new certificate, you should start User Security (see File - Security - User Security) and click Renew.  %s")
#define STR_BSAFE_CERT_EXPIRED				(PKG_BSAFE_STR + 14)
	stringtext(STR_BSAFE_CERT_EXPIRED,		"WARNING:  Your certificate issued to %s by %s expired on %s and can no longer be used.  Contact your Domino administrator.")
#define STR_BSAFE_INVALID					(PKG_BSAFE_STR + 15)
	stringtext(STR_BSAFE_INVALID,			"Invalid")
#define STR_BSAFE_UNKNOWN					(PKG_BSAFE_STR + 16)
	stringtext(STR_BSAFE_UNKNOWN,			"Unknown")
#define STR_BSAFE_CERTIFYING				(PKG_BSAFE_STR + 17)
	stringtext(STR_BSAFE_CERTIFYING,		"Certifying %A")
#define	STR_BSAFE_CERTIFIED					(PKG_BSAFE_STR + 18)
	stringtext(STR_BSAFE_CERTIFIED,			"%A successfully certified")
#define STR_BSAFE_REPLACE_ANCESTRY			(PKG_BSAFE_STR + 19)
	stringtext(STR_BSAFE_REPLACE_ANCESTRY,	"A certificate hierarchy has already been assigned to this ID.  Do you wish to continue and replace it?")
#define STR_BSAFE_UPGRADETOHI				(PKG_BSAFE_STR + 20)
	stringtext(STR_BSAFE_UPGRADETOHI,		"The ID file will be upgraded to hierarchical format.  Do you wish to continue?")
#define STR_BSAFE_AUTHENTICATED				(PKG_BSAFE_STR + 21)
	stringtext(STR_BSAFE_AUTHENTICATED,		"Authenticated: %d bit Ticket, %d bit %e session key, %e on RC4 escrow.")
#define STR_BSAFE_HICERTIFIERID				(PKG_BSAFE_STR + 22)
	stringtext(STR_BSAFE_HICERTIFIERID,		"Hierarchical Certifier")
#define STR_BSAFE_UNKNOWNID					(PKG_BSAFE_STR + 23)
	stringtext(STR_BSAFE_UNKNOWNID,			"Unknown ID type")
#define STR_BSAFE_ID_FULL					(PKG_BSAFE_STR + 24)
     stringtext(STR_BSAFE_ID_FULL,			"Notes")
#define STR_BSAFE_ID_DESKTOP				(PKG_BSAFE_STR + 25)
     stringtext(STR_BSAFE_ID_DESKTOP,		"Notes Desktop")

/* Use OSLoadSubString to load substrings - english total length<80! 
*/
#define STR_BSAFE_LIST_IDFILE				(PKG_BSAFE_STR + 26)
	stringtext(STR_BSAFE_LIST_IDFILE,		"Non-Hierarchical ID|Hierarchical User or Server|Hierarchical Certifier")

#define IDX_BSAFE_IDFILE_FLAT		1
#define IDX_BSAFE_IDFILE_HIUSER		2
#define IDX_BSAFE_IDFILE_HICA		3

#define STR_BSAFE_LIST_MISCID				(PKG_BSAFE_STR + 27)
	stringtext(STR_BSAFE_LIST_MISCID,		"Safe Copy|Unknown ID type|Internet Certifier| ")

#define IDX_BSAFE_MISCID_SAFE		1
#define IDX_BSAFE_MISCID_UNKNOWN	2
#define IDX_BSAFE_MISCID_INETCA		3
#define IDX_BSAFE_MISCID_BLANK		4

#define STR_BSAFE_CROSS_CERTIFYING			(PKG_BSAFE_STR + 28)

⌨️ 快捷键说明

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