2 * Copyright (C) 1998 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 2 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, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
24 #define STATUS_ENTER 1
25 #define STATUS_LEAVE 2
26 #define STATUS_ABORT 3
28 #define STATUS_GOODSIG 4
29 #define STATUS_BADSIG 5
30 #define STATUS_ERRSIG 6
33 #define STATUS_BADARMOR 7
35 #define STATUS_RSA_OR_IDEA 8
36 #define STATUS_SIGEXPIRED 9
37 #define STATUS_KEYREVOKED 10
39 #define STATUS_TRUST_UNDEFINED 11
40 #define STATUS_TRUST_NEVER 12
41 #define STATUS_TRUST_MARGINAL 13
42 #define STATUS_TRUST_FULLY 14
43 #define STATUS_TRUST_ULTIMATE 15
45 #define STATUS_SHM_INFO 16
46 #define STATUS_SHM_GET 17
47 #define STATUS_SHM_GET_BOOL 18
48 #define STATUS_SHM_GET_HIDDEN 19
50 #define STATUS_NEED_PASSPHRASE 20
51 #define STATUS_VALIDSIG 21
54 void set_status_fd ( int fd );
55 int is_status_enabled ( void );
56 void write_status ( int no );
57 void write_status_text ( int no, const char *text );
59 #ifdef USE_SHM_COPROCESSING
60 void init_shm_coprocessing ( ulong requested_shm_size, int lock_mem );
61 #endif /*USE_SHM_COPROCESSING*/
63 int cpr_enabled(void);
64 char *cpr_get( const char *keyword, const char *prompt );
65 char *cpr_get_utf8( const char *keyword, const char *prompt );
66 char *cpr_get_hidden( const char *keyword, const char *prompt );
67 void cpr_kill_prompt(void);
68 int cpr_get_answer_is_yes( const char *keyword, const char *prompt );
71 #endif /*G10_STATUS_H*/