📄 pgperr.h
字号:
/*
* pgpErr.h -- This file contains the list of PGP errno values (i.e., the
* the error values that are returned from functions returning
* an error)
*
* Copyright (C) 1995-1997 Pretty Good Privacy, Inc. All rights reserved.
*
* The errors are grouped into blocks of codes for specific functions, and
* they should all be negative!
*
* Written by: Colin Plumb and Derek Atkins <warlord@MIT.EDU>
*
* This is a Public API Definition Header.
*
* $Id: pgpErr.h,v 1.21.2.13 1997/06/24 13:26:06 quark Exp $
*/
#ifndef PGPERR_H
#define PGPERR_H
/*
* Code to translate error codes to strings can define this macro and
* #include this file to perform some sort of lookup table initialization.
* Please update this in the obvious way when you change this file.
*/
#ifndef PGPERR /* [ */
#define PGPERR(num, string) /*nothing*/
/* Only include declarations if we're not doing preprocessor magic */
#ifdef __cplusplus
extern "C" {
#endif
char const PGPExport *pgperrString(int error);
typedef int PGPError; /* XXX Most places still use int directly, by the way */
#ifdef __cplusplus
}
#endif
#endif /* ] PGPERR */
/*
* All messages with a negative error code should be printed. Some positive
* "error codes" are used as severity levels to control masking of inessential
* messages.
*/
#define PGPERR_VERBOSE_0 0
#define PGPERR_VERBOSE_1 1
#define PGPERR_VERBOSE_2 2
#define PGPERR_VERBOSE_3 3
#define PGPERR_OK 0
PGPERR (PGPERR_OK, "No errors")
/*
* Avoid using this code - if it appears, it means that the programmer was
* too lazy to find the right one. It's usually written in the source as
* just plain "-1".
*/
#define PGPERR_GENERIC -1
PGPERR (PGPERR_GENERIC, "Generic error (should be changed)")
#define PGPERR_NOMEM -2
PGPERR (PGPERR_NOMEM, "Out of Memory")
#define PGPERR_BADPARAM -3
PGPERR (PGPERR_BADPARAM, "Invalid Parameter")
#define PGPERR_NO_FILE -5
PGPERR (PGPERR_NO_FILE, "Cannot open file")
#define PGPERR_NO_KEYBITS -6
PGPERR (PGPERR_NO_KEYBITS, "Internal keyring bits exhausted")
#define PGPERR_BAD_HASHNUM -10
PGPERR (PGPERR_BAD_HASHNUM, "Unknown hash number")
#define PGPERR_BAD_CIPHERNUM -15
PGPERR (PGPERR_BAD_CIPHERNUM, "Unknown cipher number")
#define PGPERR_BAD_KEYLEN -16
PGPERR (PGPERR_BAD_KEYLEN, "Illegal key length for cipher")
#define PGPERR_SIZEADVISE -20
PGPERR (PGPERR_SIZEADVISE, "SizeAdvise promise not kept")
#define PGPERR_CONFIG -100
PGPERR (PGPERR_CONFIG, "Error parsing configuration")
#define PGPERR_CONFIG_BADFUNC -101
PGPERR (PGPERR_CONFIG_BADFUNC, "Invalid configuration function")
#define PGPERR_CONFIG_BADOPT -102
PGPERR (PGPERR_CONFIG_BADOPT, "Unknown configuration option")
#define PGPERR_STRING_NOT_FOUND -105
PGPERR (PGPERR_STRING_NOT_FOUND, "Requested string not found")
#define PGPERR_STRING_NOT_IN_LANGUAGE -106
PGPERR (PGPERR_STRING_NOT_IN_LANGUAGE, "Requested string not in language")
#define PGPERR_KEY_ISLOCKED -110
PGPERR (PGPERR_KEY_ISLOCKED, "Key requires passphrase to unlock")
#define PGPERR_KEY_UNUNLOCKABLE -111
PGPERR (PGPERR_KEY_UNUNLOCKABLE, "Key requires passphrase each time")
#define PGPERR_SIG_ERROR -120
PGPERR (PGPERR_SIG_ERROR, "Error while processing signature")
#define PGPERR_ADDSIG_ERROR -121
PGPERR (PGPERR_ADDSIG_ERROR, "Cannot add signature")
#define PGPERR_CANNOT_DECRYPT -125
PGPERR (PGPERR_CANNOT_DECRYPT, "Cannot decrypt message")
#define PGPERR_ADDESK_ERROR -126
PGPERR (PGPERR_ADDESK_ERROR, "Cannot add encrypted session key")
#define PGPERR_UNK_STRING2KEY -127
PGPERR (PGPERR_UNK_STRING2KEY, "Don't know how to convert pass"
" phrase to key")
#define PGPERR_BAD_STRING2KEY -128
PGPERR (PGPERR_BAD_STRING2KEY, "Invalid conversion from pass"
" phrase to key")
#define PGPERR_ESK_BADTYPE -130
PGPERR (PGPERR_ESK_BADTYPE, "Unknown encrypted session key type")
#define PGPERR_ESK_TOOSHORT -131
PGPERR (PGPERR_ESK_TOOSHORT, "Encrypted session key too short")
#define PGPERR_ESK_TOOLONG -132
PGPERR (PGPERR_ESK_TOOLONG, "Encrypted session key too long")
#define PGPERR_ESK_BADVERSION -133
PGPERR (PGPERR_ESK_BADVERSION, "Encrypted session key version"
" unknown")
#define PGPERR_ESK_BADALGORITHM -134
PGPERR (PGPERR_ESK_BADALGORITHM, "Encrypted session key algorithm"
" unknown")
#define PGPERR_ESK_BITSWRONG -135
PGPERR (PGPERR_ESK_BITSWRONG, "Wrong number of bits in ESK")
#define PGPERR_ESK_NOKEY -136
PGPERR (PGPERR_ESK_NOKEY, "Can't find key to decrypt session key")
#define PGPERR_ESK_NODECRYPT -137
PGPERR (PGPERR_ESK_NODECRYPT, "Can't decrypt this session key")
#define PGPERR_ESK_BADPASS -138
PGPERR (PGPERR_ESK_BADPASS, "Passphrase incorrect")
#define PGPERR_SIG_BADTYPE -140
PGPERR (PGPERR_SIG_BADTYPE, "Unknown signature type")
#define PGPERR_SIG_TOOSHORT -141
PGPERR (PGPERR_SIG_TOOSHORT, "Signature too short")
#define PGPERR_SIG_TOOLONG -142
PGPERR (PGPERR_SIG_TOOLONG, "Signature too long")
#define PGPERR_SIG_BADVERSION -143
PGPERR (PGPERR_SIG_BADVERSION, "Signature version unknown")
#define PGPERR_SIG_BADALGORITHM -144
PGPERR (PGPERR_SIG_BADALGORITHM, "Signature algorithm unknown")
#define PGPERR_SIG_BITSWRONG -145
PGPERR (PGPERR_SIG_BITSWRONG, "Wrong number of bits in signature")
#define PGPERR_SIG_NOKEY -146
PGPERR (PGPERR_SIG_NOKEY, "Can't find necessary key to check sig")
#define PGPERR_SIG_BADEXTRA -147
PGPERR (PGPERR_SIG_BADEXTRA, "Invalid Extra Data for Signature")
#define PGPERR_NO_PUBKEY -150
PGPERR (PGPERR_NO_PUBKEY, "No public key found")
#define PGPERR_NO_SECKEY -151
PGPERR (PGPERR_NO_SECKEY, "No secret key found")
#define PGPERR_UNKNOWN_KEYID -152
PGPERR (PGPERR_UNKNOWN_KEYID, "No matching keyid found")
#define PGPERR_NO_RECOVERYKEY -153
PGPERR (PGPERR_NO_RECOVERYKEY, "Requested message recovery key"
" not found")
#define PGPERR_COMMIT_INVALID -155
PGPERR (PGPERR_COMMIT_INVALID, "Invalid commit response")
#define PGPERR_CANNOT_HASH -156
PGPERR (PGPERR_CANNOT_HASH, "Cannot hash message")
#define PGPERR_UNBALANCED_SCOPE -160
PGPERR (PGPERR_UNBALANCED_SCOPE, "Unbalanced scope")
#define PGPERR_WRONG_SCOPE -161
PGPERR (PGPERR_WRONG_SCOPE, "Data sent in wrong scope")
#define PGPERR_UI_INVALID -165
PGPERR (PGPERR_UI_INVALID, "Invalid UI Callback Object")
#define PGPERR_CB_INVALID -166
PGPERR (PGPERR_CB_INVALID, "Invalid Parser Callback")
#define PGPERR_INTERRUPTED -167
PGPERR (PGPERR_INTERRUPTED, "Interrupted encrypt/decrypt"
" operation")
#define PGPERR_PUBKEY_TOOSMALL -170
PGPERR (PGPERR_PUBKEY_TOOSMALL, "Public Key too small for data")
#define PGPERR_PUBKEY_TOOBIG -171
PGPERR (PGPERR_PUBKEY_TOOBIG, "Public key is too big for this version")
#define PGPERR_PUBKEY_UNIMP -172
PGPERR (PGPERR_PUBKEY_UNIMP, "Unimplemented public key operation")
#define PGPERR_RSA_CORRUPT -175
PGPERR (PGPERR_RSA_CORRUPT, "Corrupt data decrypting RSA block")
#define PGPERR_PK_CORRUPT -176
PGPERR (PGPERR_PK_CORRUPT, "Corrupt data decrypting public"
" key block")
#define PGPERR_CMD_TOOBIG -180
PGPERR (PGPERR_CMD_TOOBIG, "Command to Buffer too big")
#define PGPERR_FIFO_READ -181
PGPERR (PGPERR_FIFO_READ, "Incomplete read from Fifo")
#define PGPERR_VRFYSIG_WRITE -185
PGPERR (PGPERR_VRFYSIG_WRITE, "Data illegally written into"
" signature pipe")
#define PGPERR_VRFYSIG_BADANN -186
PGPERR (PGPERR_VRFYSIG_BADANN, "Invalid annotation to signature"
" verifier")
#define PGPERR_ADDHDR_FLUSH -190
PGPERR (PGPERR_ADDHDR_FLUSH, "Cannot flush buffer until size"
" is known")
#define PGPERR_JOIN_BADANN -195
PGPERR (PGPERR_JOIN_BADANN, "Invalid annotation to join module")
#define PGPERR_RANDSEED_TOOSMALL -200
PGPERR (PGPERR_RANDSEED_TOOSMALL, "Not enough data in randseed file")
#define PGPERR_ENV_LOWPRI -205
PGPERR (PGPERR_ENV_LOWPRI, "Env Var not set: priority too low")
#define PGPERR_ENV_BADVAR -206
PGPERR (PGPERR_ENV_BADVAR, "Invalid environment variable")
#define PGPERR_CHARMAP_UNKNOWN -210
PGPERR (PGPERR_CHARMAP_UNKNOWN, "Unknown Charset")
#define PGPERR_FILE_PERMISSIONS -213
PGPERR (PGPERR_FILE_PERMISSIONS, "Unsufficient file permissions")
#define PGPERR_FILE_WRITELOCKED -214
PGPERR (PGPERR_FILE_WRITELOCKED, "File already open for writing")
#define PGPERR_FILE_BADOP -215
PGPERR (PGPERR_FILE_BADOP, "Invalid PgpFile Operation")
#define PGPERR_FILE_OPFAIL -216
PGPERR (PGPERR_FILE_OPFAIL, "PgpFile Operation Failed")
#define PGPERR_IMMUTABLE -217
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -