1 /**
2  * @file
3  * Signing/encryption multiplexor
4  *
5  * @authors
6  * Copyright (C) 2017 Richard Russon <rich@flatcap.org>
7  * Copyright (C) 2019 Pietro Cerutti <gahr@gahr.ch>
8  *
9  * @copyright
10  * This program is free software: you can redistribute it and/or modify it under
11  * the terms of the GNU General Public License as published by the Free Software
12  * Foundation, either version 2 of the License, or (at your option) any later
13  * version.
14  *
15  * This program is distributed in the hope that it will be useful, but WITHOUT
16  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License along with
21  * this program.  If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef MUTT_NCRYPT_CRYPT_H
25 #define MUTT_NCRYPT_CRYPT_H
26 
27 #include <stdbool.h>
28 
29 struct Body;
30 struct State;
31 
32 void        crypt_convert_to_7bit(struct Body *a);
33 void        crypt_current_time(struct State *s, const char *app_name);
34 const char *crypt_get_fingerprint_or_id(const char *p, const char **pphint, const char **ppl, const char **pps);
35 bool        crypt_is_numerical_keyid(const char *s);
36 int         crypt_write_signed(struct Body *a, struct State *s, const char *tempfile);
37 
38 #endif /* MUTT_NCRYPT_CRYPT_H */
39