1 /* status.h - Status codes
2 * Copyright (C) 2007 Free Software Foundation, Inc.
4 * This file is part of GnuPG.
6 * This file is free software; you can redistribute it and/or modify
7 * it under the terms of either
9 * - the GNU Lesser General Public License as published by the Free
10 * Software Foundation; either version 3 of the License, or (at
11 * your option) any later version.
15 * - the GNU General Public License as published by the Free
16 * Software Foundation; either version 2 of the License, or (at
17 * your option) any later version.
19 * or both in parallel, as here.
21 * This file is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, see <https://www.gnu.org/licenses/>.
30 #ifndef GNUPG_COMMON_STATUS_H
31 #define GNUPG_COMMON_STATUS_H
45 STATUS_TRUST_UNDEFINED,
47 STATUS_TRUST_MARGINAL,
49 STATUS_TRUST_ULTIMATE,
51 STATUS_NEED_PASSPHRASE,
56 STATUS_BAD_PASSPHRASE,
59 STATUS_NEED_PASSPHRASE_SYM,
60 STATUS_DECRYPTION_KEY,
61 STATUS_DECRYPTION_INFO,
62 STATUS_DECRYPTION_FAILED,
63 STATUS_DECRYPTION_OKAY,
64 STATUS_MISSING_PASSPHRASE,
65 STATUS_GOOD_PASSPHRASE,
72 STATUS_IMPORT_PROBLEM,
83 STATUS_BEGIN_DECRYPTION,
84 STATUS_END_DECRYPTION,
85 STATUS_BEGIN_ENCRYPTION,
86 STATUS_END_ENCRYPTION,
89 STATUS_DELETE_PROBLEM,
100 STATUS_NOTATION_FLAGS,
101 STATUS_NOTATION_DATA,
110 STATUS_KEY_CONSIDERED,
112 STATUS_ALREADY_SIGNED,
123 STATUS_SIG_SUBPACKET,
126 STATUS_PLAINTEXT_LENGTH,
127 STATUS_KEY_NOT_CREATED,
128 STATUS_NEED_PASSPHRASE_PIN,
131 STATUS_SC_OP_FAILURE,
132 STATUS_SC_OP_SUCCESS,
134 STATUS_BACKUP_KEY_CREATED,
136 STATUS_PKA_TRUST_BAD,
137 STATUS_PKA_TRUST_GOOD,
141 STATUS_TOFU_STATS_SHORT,
142 STATUS_TOFU_STATS_LONG,
148 STATUS_PINENTRY_LAUNCHED,
150 STATUS_PLAINTEXT_FOLLOWS, /* Used by g13-syshelp */
157 STATUS_INQUIRE_MAXLEN
161 const char *get_status_string (int code);
162 const char *get_inv_recpsgnr_code (gpg_error_t err);
165 #endif /*GNUPG_COMMON_STATUS_H*/