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
26
/* Status codes - fixme: should go into another file */
38
STATUS_TRUST_UNDEFINED,
40
STATUS_TRUST_MARGINAL,
42
STATUS_TRUST_ULTIMATE,
47
STATUS_SHM_GET_HIDDEN,
49
STATUS_NEED_PASSPHRASE,
54
STATUS_BAD_PASSPHRASE,
57
STATUS_NEED_PASSPHRASE_SYM,
58
STATUS_DECRYPTION_FAILED,
59
STATUS_DECRYPTION_OKAY,
60
STATUS_MISSING_PASSPHRASE,
61
STATUS_GOOD_PASSPHRASE,
67
STATUS_IMPORT_PROBLEM,
73
STATUS_BEGIN_DECRYPTION,
74
STATUS_END_DECRYPTION,
75
STATUS_BEGIN_ENCRYPTION,
76
STATUS_END_ENCRYPTION,
78
STATUS_DELETE_PROBLEM,
96
STATUS_ALREADY_SIGNED,
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*/