Statistics
| Revision:

root / src / rfc2015.h @ 1

History | View | Annotate | Download (1.68 KB)

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 "procmime.h"
27

    
28
void rfc2015_disable_all                (void);
29
void rfc2015_secure_remove                (const gchar        *fname);
30
MimeInfo *rfc2015_find_signature        (MimeInfo        *mimeinfo);
31
gboolean rfc2015_has_signature                (MimeInfo        *mimeinfo);
32
void rfc2015_check_signature                (MimeInfo        *mimeinfo,
33
                                         FILE                *fp);
34
gint rfc2015_is_encrypted                (MimeInfo        *mimeinfo);
35
gboolean rfc2015_msg_is_encrypted        (const gchar        *file);
36
void rfc2015_decrypt_message                (MsgInfo        *msginfo,
37
                                         MimeInfo        *mimeinfo,
38
                                         FILE                *fp);
39
GSList *rfc2015_create_signers_list        (const gchar        *keyid);
40
gint rfc2015_encrypt                        (const gchar        *file,
41
                                         GSList                *recp_list,
42
                                         gboolean         ascii_armored);
43
gint rfc2015_sign                        (const gchar        *file,
44
                                         GSList                *key_list);
45
gint rfc2015_clearsign                        (const gchar        *file,
46
                                         GSList                *key_list);
47

    
48
#endif /* __RFC2015_H__ */