1# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
2# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
3#
4#    This library is free software; you can redistribute it and/or
5#    modify it under the terms of the GNU Lesser General Public
6#    License as published by the Free Software Foundation; either
7#    version 2.1 of the License, or (at your option) any later version.
8#
9#    This library is distributed in the hope that it will be useful,
10#    but WITHOUT ANY WARRANTY; without even the implied warranty of
11#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12#    Lesser General Public License for more details.
13#
14#    You should have received a copy of the GNU Lesser General Public
15#    License along with this library; if not, write to the Free Software
16#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
17
18from __future__ import absolute_import, print_function, unicode_literals
19del absolute_import, print_function, unicode_literals
20
21# GPGME 1.7 replaced gpgme_op_edit with gpgme_op_interact.  We
22# implement gpg.Context.op_edit using gpgme_op_interact, so the
23# callbacks will be called with string keywords instead of numeric
24# status messages.  Code that is using these constants will continue
25# to work.
26
27ABORT = "ABORT"
28ALREADY_SIGNED = "ALREADY_SIGNED"
29ATTRIBUTE = "ATTRIBUTE"
30BACKUP_KEY_CREATED = "BACKUP_KEY_CREATED"
31BAD_PASSPHRASE = "BAD_PASSPHRASE"
32BADARMOR = "BADARMOR"
33BADMDC = "BADMDC"
34BADSIG = "BADSIG"
35BEGIN_DECRYPTION = "BEGIN_DECRYPTION"
36BEGIN_ENCRYPTION = "BEGIN_ENCRYPTION"
37BEGIN_SIGNING = "BEGIN_SIGNING"
38BEGIN_STREAM = "BEGIN_STREAM"
39CARDCTRL = "CARDCTRL"
40DECRYPTION_FAILED = "DECRYPTION_FAILED"
41DECRYPTION_INFO = "DECRYPTION_INFO"
42DECRYPTION_OKAY = "DECRYPTION_OKAY"
43DELETE_PROBLEM = "DELETE_PROBLEM"
44ENC_TO = "ENC_TO"
45END_DECRYPTION = "END_DECRYPTION"
46END_ENCRYPTION = "END_ENCRYPTION"
47END_STREAM = "END_STREAM"
48ENTER = "ENTER"
49ERRMDC = "ERRMDC"
50ERROR = "ERROR"
51ERRSIG = "ERRSIG"
52EXPKEYSIG = "EXPKEYSIG"
53EXPSIG = "EXPSIG"
54FAILURE = "FAILURE"
55FILE_DONE = "FILE_DONE"
56FILE_ERROR = "FILE_ERROR"
57FILE_START = "FILE_START"
58GET_BOOL = "GET_BOOL"
59GET_HIDDEN = "GET_HIDDEN"
60GET_LINE = "GET_LINE"
61GOOD_PASSPHRASE = "GOOD_PASSPHRASE"
62GOODMDC = "GOODMDC"
63GOODSIG = "GOODSIG"
64GOT_IT = "GOT_IT"
65IMPORT_OK = "IMPORT_OK"
66IMPORT_PROBLEM = "IMPORT_PROBLEM"
67IMPORT_RES = "IMPORT_RES"
68IMPORTED = "IMPORTED"
69INQUIRE_MAXLEN = "INQUIRE_MAXLEN"
70INV_RECP = "INV_RECP"
71INV_SGNR = "INV_SGNR"
72KEY_CONSIDERED = "KEY_CONSIDERED"
73KEY_CREATED = "KEY_CREATED"
74KEY_NOT_CREATED = "KEY_NOT_CREATED"
75KEYEXPIRED = "KEYEXPIRED"
76KEYREVOKED = "KEYREVOKED"
77LEAVE = "LEAVE"
78MISSING_PASSPHRASE = "MISSING_PASSPHRASE"
79MOUNTPOINT = "MOUNTPOINT"
80NEED_PASSPHRASE = "NEED_PASSPHRASE"
81NEED_PASSPHRASE_PIN = "NEED_PASSPHRASE_PIN"
82NEED_PASSPHRASE_SYM = "NEED_PASSPHRASE_SYM"
83NEWSIG = "NEWSIG"
84NO_PUBKEY = "NO_PUBKEY"
85NO_RECP = "NO_RECP"
86NO_SECKEY = "NO_SECKEY"
87NO_SGNR = "NO_SGNR"
88NODATA = "NODATA"
89NOTATION_DATA = "NOTATION_DATA"
90NOTATION_FLAGS = "NOTATION_FLAGS"
91NOTATION_NAME = "NOTATION_NAME"
92PINENTRY_LAUNCHED = "PINENTRY_LAUNCHED"
93PKA_TRUST_BAD = "PKA_TRUST_BAD"
94PKA_TRUST_GOOD = "PKA_TRUST_GOOD"
95PLAINTEXT = "PLAINTEXT"
96PLAINTEXT_LENGTH = "PLAINTEXT_LENGTH"
97POLICY_URL = "POLICY_URL"
98PROGRESS = "PROGRESS"
99REVKEYSIG = "REVKEYSIG"
100RSA_OR_IDEA = "RSA_OR_IDEA"
101SC_OP_FAILURE = "SC_OP_FAILURE"
102SC_OP_SUCCESS = "SC_OP_SUCCESS"
103SESSION_KEY = "SESSION_KEY"
104SHM_GET = "SHM_GET"
105SHM_GET_BOOL = "SHM_GET_BOOL"
106SHM_GET_HIDDEN = "SHM_GET_HIDDEN"
107SHM_INFO = "SHM_INFO"
108SIG_CREATED = "SIG_CREATED"
109SIG_ID = "SIG_ID"
110SIG_SUBPACKET = "SIG_SUBPACKET"
111SIGEXPIRED = "SIGEXPIRED"
112SUCCESS = "SUCCESS"
113TOFU_STATS = "TOFU_STATS"
114TOFU_STATS_LONG = "TOFU_STATS_LONG"
115TOFU_USER = "TOFU_USER"
116TRUNCATED = "TRUNCATED"
117TRUST_FULLY = "TRUST_FULLY"
118TRUST_MARGINAL = "TRUST_MARGINAL"
119TRUST_NEVER = "TRUST_NEVER"
120TRUST_ULTIMATE = "TRUST_ULTIMATE"
121TRUST_UNDEFINED = "TRUST_UNDEFINED"
122UNEXPECTED = "UNEXPECTED"
123USERID_HINT = "USERID_HINT"
124VALIDSIG = "VALIDSIG"
125