1 /* status.h - Status codes
2 * Copyright (C) 2007 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 3 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, see <http://www.gnu.org/licenses/>.
20 #ifndef GNUPG_COMMON_STATUS_H
21 #define GNUPG_COMMON_STATUS_H
35 STATUS_TRUST_UNDEFINED,
37 STATUS_TRUST_MARGINAL,
39 STATUS_TRUST_ULTIMATE,
41 STATUS_NEED_PASSPHRASE,
46 STATUS_BAD_PASSPHRASE,
49 STATUS_NEED_PASSPHRASE_SYM,
50 STATUS_DECRYPTION_INFO,
51 STATUS_DECRYPTION_FAILED,
52 STATUS_DECRYPTION_OKAY,
53 STATUS_MISSING_PASSPHRASE,
54 STATUS_GOOD_PASSPHRASE,
60 STATUS_IMPORT_PROBLEM,
68 STATUS_BEGIN_DECRYPTION,
69 STATUS_END_DECRYPTION,
70 STATUS_BEGIN_ENCRYPTION,
71 STATUS_END_ENCRYPTION,
74 STATUS_DELETE_PROBLEM,
95 STATUS_ALREADY_SIGNED,
106 STATUS_SIG_SUBPACKET,
109 STATUS_PLAINTEXT_LENGTH,
110 STATUS_KEY_NOT_CREATED,
111 STATUS_NEED_PASSPHRASE_PIN,
114 STATUS_SC_OP_FAILURE,
115 STATUS_SC_OP_SUCCESS,
117 STATUS_BACKUP_KEY_CREATED,
119 STATUS_PKA_TRUST_BAD,
120 STATUS_PKA_TRUST_GOOD,
125 STATUS_PINENTRY_LAUNCHED,
131 STATUS_INQUIRE_MAXLEN
135 const char *get_status_string (int code);
136 const char *get_inv_recpsgnr_code (gpg_error_t err);
139 #endif /*GNUPG_COMMON_STATUS_H*/