Statistics
| Revision:

root / src / rfc2015.h @ 2303

History | View | Annotate | Download (2.3 kB)

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