tls: Disable TLS1.1 and CBC cipher suites by default.
[pwmd.git] / src / commands.h
blob7fc3ea57cac13e878850195563a9bd7160016f46
1 /*
2 Copyright (C) 2006-2019 Ben Kibbey <bjk@luxsci.net>
4 This file is part of pwmd.
6 Pwmd 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 Pwmd 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 Pwmd. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef COMMANDS_H
20 #define COMMANDS_H
22 /* Flags needed to be retained for a client across commands. */
23 #define FLAG_NEW 0x0001
24 #define FLAG_HAS_LOCK 0x0002
25 #define FLAG_LOCK_CMD 0x0004
26 #define FLAG_NO_PINENTRY 0x0008
27 #define FLAG_OPEN 0x0010
28 #define FLAG_KEEP_LOCK 0x0020
29 #define FLAG_ACL_IGNORE 0x0040 // ATTR LIST
30 #define FLAG_ACL_ERROR 0x0080 // ...
32 gpg_error_t register_commands (assuan_context_t ctx);
33 int valid_filename (const char *filename);
34 void reset_client (struct client_s *client);
35 void init_commands ();
36 void deinit_commands ();
38 #endif