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 #include "claws-features.h"
24 #endif
25
26 #include <stddef.h>
27 #include <glib.h>
28 #include <glib/gi18n.h>
29
30 #include "plugin.h"
31 #include "version.h"
32 #include "common/claws.h"
33 #include "smime.h"
34
plugin_init(gchar ** error)35 gint plugin_init(gchar **error)
36 {
37 if (!check_plugin_version(MAKE_NUMERIC_VERSION(2,9,2,72),
38 VERSION_NUMERIC, _("S/MIME"), error))
39 return -1;
40
41 smime_init();
42
43 return 0;
44 }
45
plugin_done(void)46 gboolean plugin_done(void)
47 {
48 smime_done();
49 return TRUE;
50 }
51
plugin_name(void)52 const gchar *plugin_name(void)
53 {
54 return _("S/MIME");
55 }
56
plugin_desc(void)57 const gchar *plugin_desc(void)
58 {
59 return _("This plugin handles S/MIME signed and/or encrypted "
60 "mails. You can decrypt mails, verify signatures or "
61 "sign and encrypt your own mails.\n"
62 "\n"
63 "It can be selected as the Default Privacy System in "
64 "/Configuration/[Account Preferences]/Privacy and when "
65 "composing a message from /Options/Privacy System\n"
66 "\n"
67 "This plugin uses the GPGME library as a wrapper for GnuPG.\n"
68 "This plugin also needs gpgsm, gnupg-agent and dirmngr "
69 "installed and configured.\n"
70 "\n"
71 "Information about how to get S/MIME certificates working "
72 "with GPGSM can be found at:\n"
73 "http://www.claws-mail.org/faq/index.php/S/MIME_howto\n"
74 "\n"
75 "GPGME is copyright 2001 by Werner Koch <dd9jn@gnu.org>");
76 }
77
plugin_type(void)78 const gchar *plugin_type(void)
79 {
80 return "GTK2";
81 }
82
plugin_licence(void)83 const gchar *plugin_licence(void)
84 {
85 return "GPL3+";
86 }
87
plugin_version(void)88 const gchar *plugin_version(void)
89 {
90 return VERSION;
91 }
92