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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22 #ifndef GNUPG_COMMON_ERRORS_H
23 #define GNUPG_COMMON_ERRORS_H
27 /* Status codes - fixme: should go into another file */
39 STATUS_TRUST_UNDEFINED
,
41 STATUS_TRUST_MARGINAL
,
43 STATUS_TRUST_ULTIMATE
,
48 STATUS_SHM_GET_HIDDEN
,
50 STATUS_NEED_PASSPHRASE
,
55 STATUS_BAD_PASSPHRASE
,
58 STATUS_NEED_PASSPHRASE_SYM
,
59 STATUS_DECRYPTION_FAILED
,
60 STATUS_DECRYPTION_OKAY
,
61 STATUS_MISSING_PASSPHRASE
,
62 STATUS_GOOD_PASSPHRASE
,
68 STATUS_IMPORT_PROBLEM
,
74 STATUS_BEGIN_DECRYPTION
,
75 STATUS_END_DECRYPTION
,
76 STATUS_BEGIN_ENCRYPTION
,
77 STATUS_END_ENCRYPTION
,
79 STATUS_DELETE_PROBLEM
,
97 STATUS_ALREADY_SIGNED
,
108 /*-- errors.c (build by mkerror and mkerrtok) --*/
109 const char *gnupg_strerror (int err
);
110 const char *gnupg_error_token (int err
);
113 #endif /*GNUPG_COMMON_ERRORS_H*/