2006-04-14 Marcus Brinkmann <marcus@g10code.de>
[gnupg.git] / common / errors.h
blobf34f3ba79e0e30b836cde64182e39d929100f951
1 /* errors.h - Globally used error codes
2 * Copyright (C) 2001 Free Software Foundation, Inc.
4 * This file is part of GnuPG.
6 * GnuPG is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * GnuPG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
21 #ifndef GNUPG_COMMON_ERRORS_H
22 #define GNUPG_COMMON_ERRORS_H
24 #include "util.h"
26 /* Status codes - fixme: should go into another file */
27 enum {
28 STATUS_ENTER,
29 STATUS_LEAVE,
30 STATUS_ABORT,
31 STATUS_GOODSIG,
32 STATUS_BADSIG,
33 STATUS_ERRSIG,
34 STATUS_BADARMOR,
35 STATUS_RSA_OR_IDEA,
36 STATUS_SIGEXPIRED,
37 STATUS_KEYREVOKED,
38 STATUS_TRUST_UNDEFINED,
39 STATUS_TRUST_NEVER,
40 STATUS_TRUST_MARGINAL,
41 STATUS_TRUST_FULLY,
42 STATUS_TRUST_ULTIMATE,
44 STATUS_SHM_INFO,
45 STATUS_SHM_GET,
46 STATUS_SHM_GET_BOOL,
47 STATUS_SHM_GET_HIDDEN,
49 STATUS_NEED_PASSPHRASE,
50 STATUS_VALIDSIG,
51 STATUS_SIG_ID,
52 STATUS_ENC_TO,
53 STATUS_NODATA,
54 STATUS_BAD_PASSPHRASE,
55 STATUS_NO_PUBKEY,
56 STATUS_NO_SECKEY,
57 STATUS_NEED_PASSPHRASE_SYM,
58 STATUS_DECRYPTION_FAILED,
59 STATUS_DECRYPTION_OKAY,
60 STATUS_MISSING_PASSPHRASE,
61 STATUS_GOOD_PASSPHRASE,
62 STATUS_GOODMDC,
63 STATUS_BADMDC,
64 STATUS_ERRMDC,
65 STATUS_IMPORTED,
66 STATUS_IMPORT_OK,
67 STATUS_IMPORT_PROBLEM,
68 STATUS_IMPORT_RES,
69 STATUS_FILE_START,
70 STATUS_FILE_DONE,
71 STATUS_FILE_ERROR,
73 STATUS_BEGIN_DECRYPTION,
74 STATUS_END_DECRYPTION,
75 STATUS_BEGIN_ENCRYPTION,
76 STATUS_END_ENCRYPTION,
78 STATUS_DELETE_PROBLEM,
79 STATUS_GET_BOOL,
80 STATUS_GET_LINE,
81 STATUS_GET_HIDDEN,
82 STATUS_GOT_IT,
83 STATUS_PROGRESS,
84 STATUS_SIG_CREATED,
85 STATUS_SESSION_KEY,
86 STATUS_NOTATION_NAME,
87 STATUS_NOTATION_DATA,
88 STATUS_POLICY_URL,
89 STATUS_BEGIN_STREAM,
90 STATUS_END_STREAM,
91 STATUS_KEY_CREATED,
92 STATUS_USERID_HIN,
93 STATUS_UNEXPECTED,
94 STATUS_INV_RECP,
95 STATUS_NO_RECP,
96 STATUS_ALREADY_SIGNED,
98 STATUS_EXPSIG,
99 STATUS_EXPKEYSIG,
101 STATUS_TRUNCATED,
102 STATUS_ERROR,
103 STATUS_NEWSIG
107 /*-- errors.c (build by mkerror and mkerrtok) --*/
108 const char *gnupg_strerror (int err);
109 const char *gnupg_error_token (int err);
112 #endif /*GNUPG_COMMON_ERRORS_H*/