summaryrefslogtreecommitdiff
path: root/src/rfc2015.h
diff options
context:
space:
mode:
authorSimeon Simeonov2018-02-26 11:23:00 +0100
committerSimeon Simeonov2018-02-26 11:23:00 +0100
commit0b3cbf57875fd692e4ba0b336fefa4bee1ed00dc (patch)
treeaf916a30553c78ce9d4f2d8658656a175c5b6921 /src/rfc2015.h
Initial commit for sylpheed 3.7.0
Diffstat (limited to 'src/rfc2015.h')
-rw-r--r--src/rfc2015.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/rfc2015.h b/src/rfc2015.h
new file mode 100644
index 0000000..167f388
--- /dev/null
+++ b/src/rfc2015.h
@@ -0,0 +1,66 @@
1/*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 2001 Werner Koch (dd9jn)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20#ifndef __RFC2015_H__
21#define __RFC2015_H__
22
23#include <glib.h>
24#include <stdio.h>
25
26#include "procmsg.h"
27#include "procmime.h"
28
29void rfc2015_disable_all (void);
30gboolean rfc2015_is_available (void);
31
32void rfc2015_secure_remove (const gchar *fname);
33
34MimeInfo **rfc2015_find_signature (MimeInfo *mimeinfo);
35gboolean rfc2015_has_signature (MimeInfo *mimeinfo);
36void rfc2015_check_signature (MimeInfo *mimeinfo,
37 FILE *fp);
38gboolean rfc2015_is_pgp_signature_part (MimeInfo *mimeinfo);
39gboolean rfc2015_is_pkcs7_signature_part(MimeInfo *mimeinfo);
40gboolean rfc2015_is_signature_part (MimeInfo *mimeinfo);
41
42gint rfc2015_is_encrypted (MimeInfo *mimeinfo);
43gboolean rfc2015_msg_is_encrypted (const gchar *file);
44void rfc2015_decrypt_message (MsgInfo *msginfo,
45 MimeInfo *mimeinfo,
46 FILE *fp);
47FILE *rfc2015_open_message_decrypted (MsgInfo *msginfo,
48 MimeInfo **mimeinfo);
49
50GSList *rfc2015_create_signers_list (const gchar *keyid);
51gint rfc2015_encrypt (const gchar *file,
52 GSList *recp_list);
53gint rfc2015_encrypt_armored (const gchar *file,
54 GSList *recp_list);
55gint rfc2015_sign (const gchar *file,
56 GSList *key_list);
57gint rfc2015_clearsign (const gchar *file,
58 GSList *key_list);
59gint rfc2015_encrypt_sign (const gchar *file,
60 GSList *recp_list,
61 GSList *key_list);
62gint rfc2015_encrypt_sign_armored (const gchar *file,
63 GSList *recp_list,
64 GSList *key_list);
65
66#endif /* __RFC2015_H__ */