Fix EXPIRE status message.
[pwmd.git] / src / status.h
blob353ca34590ba65d8e48e065b8bf39e39940761b7
1 /*
2 Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015,
3 2016, 2017
4 Ben Kibbey <bjk@luxsci.net>
6 This file is part of pwmd.
8 Pwmd is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 2 of the License, or
11 (at your option) any later version.
13 Pwmd is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with Pwmd. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef STATUS_H
22 #define STATUS_H
24 #include <gpg-error.h>
25 #include <assuan.h>
27 typedef enum
29 STATUS_CACHE,
30 STATUS_CLIENTS,
31 STATUS_LOCKED,
32 STATUS_ENCRYPT,
33 STATUS_DECRYPT,
34 STATUS_XFER,
35 STATUS_GENKEY,
36 STATUS_NEWFILE,
37 STATUS_GPGME,
38 STATUS_KEEPALIVE,
39 STATUS_STATE,
40 STATUS_EXPIRE,
41 #ifdef WITH_GNUTLS
42 STATUS_REHANDSHAKE,
43 #endif
44 } status_msg_t;
46 struct status_msg_s
48 status_msg_t s;
49 char *line;
50 struct status_msg_s *next;
53 gpg_error_t send_status (assuan_context_t ctx, status_msg_t which,
54 const char *fmt, ...);
55 void send_status_all (status_msg_t s, const char *fmt, ...);
56 void send_status_all_not_self (status_msg_t s, const char *fmt, ...);
58 #endif