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_INFO,
61 STATUS_DECRYPTION_FAILED,
62 STATUS_DECRYPTION_OKAY,
63 STATUS_MISSING_PASSPHRASE,
64 STATUS_GOOD_PASSPHRASE,
71 STATUS_IMPORT_PROBLEM,
82 STATUS_BEGIN_DECRYPTION,
83 STATUS_END_DECRYPTION,
84 STATUS_BEGIN_ENCRYPTION,
85 STATUS_END_ENCRYPTION,
88 STATUS_DELETE_PROBLEM,
99 STATUS_NOTATION_FLAGS,
100 STATUS_NOTATION_DATA,
109 STATUS_KEY_CONSIDERED,
111 STATUS_ALREADY_SIGNED,
122 STATUS_SIG_SUBPACKET,
125 STATUS_PLAINTEXT_LENGTH,
126 STATUS_KEY_NOT_CREATED,
127 STATUS_NEED_PASSPHRASE_PIN,
130 STATUS_SC_OP_FAILURE,
131 STATUS_SC_OP_SUCCESS,
133 STATUS_BACKUP_KEY_CREATED,
135 STATUS_PKA_TRUST_BAD,
136 STATUS_PKA_TRUST_GOOD,
140 STATUS_TOFU_STATS_SHORT,
141 STATUS_TOFU_STATS_LONG,
147 STATUS_PINENTRY_LAUNCHED,
149 STATUS_PLAINTEXT_FOLLOWS, /* Used by g13-syshelp */
156 STATUS_INQUIRE_MAXLEN
160 const char *get_status_string (int code);
161 const char *get_inv_recpsgnr_code (gpg_error_t err);
164 #endif /*GNUPG_COMMON_STATUS_H*/