2007-11-19 17:03:50 +01:00
|
|
|
/* status.h - Status codes
|
|
|
|
* Copyright (C) 2007 Free Software Foundation, Inc.
|
|
|
|
*
|
|
|
|
* This file is part of GnuPG.
|
|
|
|
*
|
2015-12-14 09:59:43 +01:00
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of either
|
2007-11-19 17:03:50 +01:00
|
|
|
*
|
2015-12-14 09:59:43 +01:00
|
|
|
* - the GNU Lesser General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 3 of the License, or (at
|
|
|
|
* your option) any later version.
|
|
|
|
*
|
|
|
|
* or
|
|
|
|
*
|
|
|
|
* - the GNU General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 2 of the License, or (at
|
|
|
|
* your option) any later version.
|
|
|
|
*
|
|
|
|
* or both in parallel, as here.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
2007-11-19 17:03:50 +01:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2016-11-05 12:02:19 +01:00
|
|
|
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2007-11-19 17:03:50 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GNUPG_COMMON_STATUS_H
|
|
|
|
#define GNUPG_COMMON_STATUS_H
|
|
|
|
|
2020-09-01 20:43:57 +02:00
|
|
|
#include "../common/fwddecl.h"
|
|
|
|
|
2011-02-03 20:59:01 +01:00
|
|
|
enum
|
2007-11-19 17:03:50 +01:00
|
|
|
{
|
|
|
|
STATUS_ENTER,
|
|
|
|
STATUS_LEAVE,
|
|
|
|
STATUS_ABORT,
|
2020-11-05 06:51:06 +01:00
|
|
|
STATUS_CANCELED_BY_USER,
|
2007-11-19 17:03:50 +01:00
|
|
|
|
|
|
|
STATUS_GOODSIG,
|
|
|
|
STATUS_BADSIG,
|
|
|
|
STATUS_ERRSIG,
|
|
|
|
|
|
|
|
STATUS_BADARMOR,
|
|
|
|
|
|
|
|
STATUS_TRUST_UNDEFINED,
|
|
|
|
STATUS_TRUST_NEVER,
|
|
|
|
STATUS_TRUST_MARGINAL,
|
|
|
|
STATUS_TRUST_FULLY,
|
|
|
|
STATUS_TRUST_ULTIMATE,
|
2011-02-03 20:59:01 +01:00
|
|
|
|
2007-11-19 17:03:50 +01:00
|
|
|
STATUS_NEED_PASSPHRASE,
|
|
|
|
STATUS_VALIDSIG,
|
|
|
|
STATUS_SIG_ID,
|
|
|
|
STATUS_ENC_TO,
|
|
|
|
STATUS_NODATA,
|
|
|
|
STATUS_BAD_PASSPHRASE,
|
|
|
|
STATUS_NO_PUBKEY,
|
|
|
|
STATUS_NO_SECKEY,
|
|
|
|
STATUS_NEED_PASSPHRASE_SYM,
|
2017-02-23 19:59:21 +01:00
|
|
|
STATUS_DECRYPTION_KEY,
|
2011-02-03 20:59:01 +01:00
|
|
|
STATUS_DECRYPTION_INFO,
|
2007-11-19 17:03:50 +01:00
|
|
|
STATUS_DECRYPTION_FAILED,
|
|
|
|
STATUS_DECRYPTION_OKAY,
|
|
|
|
STATUS_MISSING_PASSPHRASE,
|
|
|
|
STATUS_GOOD_PASSPHRASE,
|
|
|
|
STATUS_GOODMDC,
|
|
|
|
STATUS_BADMDC,
|
|
|
|
STATUS_ERRMDC,
|
2015-11-12 16:02:35 +01:00
|
|
|
|
2007-11-19 17:03:50 +01:00
|
|
|
STATUS_IMPORTED,
|
|
|
|
STATUS_IMPORT_OK,
|
2011-02-03 20:59:01 +01:00
|
|
|
STATUS_IMPORT_PROBLEM,
|
2007-11-19 17:03:50 +01:00
|
|
|
STATUS_IMPORT_RES,
|
|
|
|
STATUS_IMPORT_CHECK,
|
|
|
|
|
2015-11-12 17:02:18 +01:00
|
|
|
STATUS_EXPORTED,
|
2015-11-12 16:02:35 +01:00
|
|
|
STATUS_EXPORT_RES,
|
|
|
|
|
2007-11-19 17:03:50 +01:00
|
|
|
STATUS_FILE_START,
|
|
|
|
STATUS_FILE_DONE,
|
|
|
|
STATUS_FILE_ERROR,
|
2011-02-03 20:59:01 +01:00
|
|
|
|
2007-11-19 17:03:50 +01:00
|
|
|
STATUS_BEGIN_DECRYPTION,
|
|
|
|
STATUS_END_DECRYPTION,
|
|
|
|
STATUS_BEGIN_ENCRYPTION,
|
|
|
|
STATUS_END_ENCRYPTION,
|
|
|
|
STATUS_BEGIN_SIGNING,
|
2011-02-03 20:59:01 +01:00
|
|
|
|
2007-11-19 17:03:50 +01:00
|
|
|
STATUS_DELETE_PROBLEM,
|
|
|
|
|
|
|
|
STATUS_GET_BOOL,
|
|
|
|
STATUS_GET_LINE,
|
|
|
|
STATUS_GET_HIDDEN,
|
|
|
|
STATUS_GOT_IT,
|
|
|
|
|
|
|
|
STATUS_PROGRESS,
|
|
|
|
STATUS_SIG_CREATED,
|
|
|
|
STATUS_SESSION_KEY,
|
|
|
|
STATUS_NOTATION_NAME,
|
2016-05-31 15:43:51 +02:00
|
|
|
STATUS_NOTATION_FLAGS,
|
2007-11-19 17:03:50 +01:00
|
|
|
STATUS_NOTATION_DATA,
|
|
|
|
STATUS_POLICY_URL,
|
|
|
|
STATUS_KEY_CREATED,
|
|
|
|
STATUS_USERID_HINT,
|
|
|
|
STATUS_UNEXPECTED,
|
|
|
|
STATUS_INV_RECP,
|
2009-08-06 22:12:00 +02:00
|
|
|
STATUS_INV_SGNR,
|
2007-11-19 17:03:50 +01:00
|
|
|
STATUS_NO_RECP,
|
2009-08-06 22:12:00 +02:00
|
|
|
STATUS_NO_SGNR,
|
2016-05-13 16:24:59 +02:00
|
|
|
STATUS_KEY_CONSIDERED,
|
2007-11-19 17:03:50 +01:00
|
|
|
|
|
|
|
STATUS_ALREADY_SIGNED,
|
|
|
|
STATUS_KEYEXPIRED,
|
|
|
|
STATUS_KEYREVOKED,
|
|
|
|
STATUS_EXPSIG,
|
|
|
|
STATUS_EXPKEYSIG,
|
|
|
|
|
|
|
|
STATUS_ATTRIBUTE,
|
|
|
|
|
|
|
|
STATUS_REVKEYSIG,
|
|
|
|
|
|
|
|
STATUS_NEWSIG,
|
|
|
|
STATUS_SIG_SUBPACKET,
|
|
|
|
|
|
|
|
STATUS_PLAINTEXT,
|
|
|
|
STATUS_PLAINTEXT_LENGTH,
|
|
|
|
STATUS_KEY_NOT_CREATED,
|
|
|
|
STATUS_NEED_PASSPHRASE_PIN,
|
|
|
|
|
|
|
|
STATUS_CARDCTRL,
|
|
|
|
STATUS_SC_OP_FAILURE,
|
|
|
|
STATUS_SC_OP_SUCCESS,
|
|
|
|
|
|
|
|
STATUS_BACKUP_KEY_CREATED,
|
|
|
|
|
|
|
|
STATUS_PKA_TRUST_BAD,
|
|
|
|
STATUS_PKA_TRUST_GOOD,
|
|
|
|
|
2016-05-02 09:48:19 +02:00
|
|
|
STATUS_TOFU_USER,
|
|
|
|
STATUS_TOFU_STATS,
|
|
|
|
STATUS_TOFU_STATS_SHORT,
|
|
|
|
STATUS_TOFU_STATS_LONG,
|
|
|
|
|
2017-06-20 09:25:56 +02:00
|
|
|
STATUS_ENCRYPTION_COMPLIANCE_MODE,
|
2017-05-30 14:30:24 +02:00
|
|
|
STATUS_DECRYPTION_COMPLIANCE_MODE,
|
|
|
|
STATUS_VERIFICATION_COMPLIANCE_MODE,
|
|
|
|
|
2007-11-19 17:03:50 +01:00
|
|
|
STATUS_TRUNCATED,
|
2009-10-28 13:02:15 +01:00
|
|
|
STATUS_MOUNTPOINT,
|
2016-08-13 12:49:54 +02:00
|
|
|
STATUS_BLOCKDEV,
|
2009-10-28 13:02:15 +01:00
|
|
|
|
2013-01-30 12:00:29 +01:00
|
|
|
STATUS_PINENTRY_LAUNCHED,
|
|
|
|
|
2015-10-21 08:30:52 +02:00
|
|
|
STATUS_PLAINTEXT_FOLLOWS, /* Used by g13-syshelp */
|
|
|
|
|
2010-03-15 12:15:45 +01:00
|
|
|
STATUS_ERROR,
|
2016-01-08 10:33:19 +01:00
|
|
|
STATUS_WARNING,
|
2015-04-17 03:00:30 +02:00
|
|
|
STATUS_SUCCESS,
|
2015-08-25 09:03:31 +02:00
|
|
|
STATUS_FAILURE,
|
2015-04-17 03:00:30 +02:00
|
|
|
|
2015-08-25 09:03:31 +02:00
|
|
|
STATUS_INQUIRE_MAXLEN
|
|
|
|
};
|
2007-11-19 17:03:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
const char *get_status_string (int code);
|
2019-01-22 09:02:17 +01:00
|
|
|
void gnupg_set_status_fd (int fd);
|
|
|
|
void gnupg_status_printf (int no, const char *format,
|
|
|
|
...) GPGRT_ATTR_PRINTF(2,3);
|
2020-09-01 20:43:57 +02:00
|
|
|
gpg_error_t gnupg_status_strings (ctrl_t dummy, int no,
|
|
|
|
...) GPGRT_ATTR_SENTINEL(0);
|
2019-01-22 09:02:17 +01:00
|
|
|
|
2009-08-06 22:12:00 +02:00
|
|
|
const char *get_inv_recpsgnr_code (gpg_error_t err);
|
2007-11-19 17:03:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif /*GNUPG_COMMON_STATUS_H*/
|