2012-05-27 [paul] 3.8.0cvs48
[claws.git] / src / plugins / smime / plugin.c
1 /*
2  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2012 Colin Leroy <colin@colino.net> and 
4  * the Claws Mail team
5  *
6  * This program 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 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program 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.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20
21 #ifdef HAVE_CONFIG_H
22 #  include "config.h"
23 #endif
24
25 #include <stddef.h>
26 #include <glib.h>
27 #include <glib/gi18n.h>
28
29 #include "plugin.h"
30 #include "version.h"
31 #include "common/claws.h"
32 #include "smime.h"
33
34 gint plugin_init(gchar **error)
35 {
36         if (!check_plugin_version(MAKE_NUMERIC_VERSION(2,9,2,72),
37                                 VERSION_NUMERIC, _("S/MIME"), error))
38                 return -1;
39
40         smime_init();
41
42         return 0;       
43 }
44
45 gboolean plugin_done(void)
46 {
47         smime_done();
48         return TRUE;
49 }
50
51 const gchar *plugin_name(void)
52 {
53         return _("S/MIME");
54 }
55
56 const gchar *plugin_desc(void)
57 {
58         return _("This plugin handles S/MIME signed and/or encrypted "
59                  "mails. You can decrypt mails, verify signatures or "
60                  "sign and encrypt your own mails.\n"
61                  "\n"
62                  "It can be selected as the Default Privacy System in "
63                  "/Configuration/[Account Preferences]/Privacy and when "
64                  "composing a message from /Options/Privacy System\n"
65                  "\n"
66                  "This plugin uses the GPGME library as a wrapper for GnuPG.\n"
67                  "This plugin also needs gpgsm, gnupg-agent and dirmngr "
68                  "installed and configured.\n"
69                  "\n"
70                  "Information about how to get S/MIME certificates working "
71                  "with GPGSM can be found at:\n"
72                  "http://www.claws-mail.org/faq/index.php/S/MIME_howto\n"
73                  "\n"
74                  "GPGME is copyright 2001 by Werner Koch <dd9jn@gnu.org>");
75 }
76
77 const gchar *plugin_type(void)
78 {
79         return "GTK2";
80 }
81
82 const gchar *plugin_licence(void)
83 {
84         return "GPL3+";
85 }
86
87 const gchar *plugin_version(void)
88 {
89         return VERSION;
90 }