Sun, 15 Apr 2007 03:43:17 +0000
propagate from branch 'im.pidgin.pidgin' (head 88b7040408c88e4516c008f4eac579f98ef53e85)
to branch 'im.pidgin.rlaager.merging.msnp13-and-pidgin' (head 198222e01a7dc9f8795f68ec618a48c3478e04a8)
| 7016 | 1 | /** |
| 2 | * @file ssl-gnutls.c GNUTLS SSL plugin. | |
| 3 | * | |
| 15884 | 4 | * purple |
| 7016 | 5 | * |
| 6 | * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | |
| 7 | * | |
| 8 | * This program is free software; you can redistribute it and/or modify | |
| 9 | * it under the terms of the GNU General Public License as published by | |
| 10 | * the Free Software Foundation; either version 2 of the License, or | |
| 11 | * (at your option) any later version. | |
| 12 | * | |
| 13 | * This program is distributed in the hope that it will be useful, | |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | * GNU General Public License for more details. | |
| 17 | * | |
| 18 | * You should have received a copy of the GNU General Public License | |
| 19 | * along with this program; if not, write to the Free Software | |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 | */ | |
| 22 | #include "internal.h" | |
|
7051
8ddb8f560399
[gaim-migrate @ 7614]
Christian Hammond <chipx86@chipx86.com>
parents:
7050
diff
changeset
|
23 | #include "debug.h" |
| 7016 | 24 | #include "plugin.h" |
|
7051
8ddb8f560399
[gaim-migrate @ 7614]
Christian Hammond <chipx86@chipx86.com>
parents:
7050
diff
changeset
|
25 | #include "sslconn.h" |
| 9943 | 26 | #include "version.h" |
| 7016 | 27 | |
| 28 | #define SSL_GNUTLS_PLUGIN_ID "ssl-gnutls" | |
| 29 | ||
| 30 | #ifdef HAVE_GNUTLS | |
| 31 | ||
| 32 | #include <gnutls/gnutls.h> | |
| 33 | ||
| 34 | typedef struct | |
| 35 | { | |
| 36 | gnutls_session session; | |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
37 | guint handshake_handler; |
| 15884 | 38 | } PurpleSslGnutlsData; |
| 7016 | 39 | |
| 15884 | 40 | #define PURPLE_SSL_GNUTLS_DATA(gsc) ((PurpleSslGnutlsData *)gsc->private_data) |
| 7016 | 41 | |
| 42 | static gnutls_certificate_client_credentials xcred; | |
| 43 | ||
|
7862
9b96706e44e7
[gaim-migrate @ 8516]
Bill Tompkins <obobo@users.sourceforge.net>
parents:
7834
diff
changeset
|
44 | static void |
|
9b96706e44e7
[gaim-migrate @ 8516]
Bill Tompkins <obobo@users.sourceforge.net>
parents:
7834
diff
changeset
|
45 | ssl_gnutls_init_gnutls(void) |
| 7016 | 46 | { |
| 47 | gnutls_global_init(); | |
| 48 | ||
| 49 | gnutls_certificate_allocate_credentials(&xcred); | |
| 50 | gnutls_certificate_set_x509_trust_file(xcred, "ca.pem", | |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
51 | GNUTLS_X509_FMT_PEM); |
|
7862
9b96706e44e7
[gaim-migrate @ 8516]
Bill Tompkins <obobo@users.sourceforge.net>
parents:
7834
diff
changeset
|
52 | } |
| 7016 | 53 | |
|
7862
9b96706e44e7
[gaim-migrate @ 8516]
Bill Tompkins <obobo@users.sourceforge.net>
parents:
7834
diff
changeset
|
54 | static gboolean |
|
9b96706e44e7
[gaim-migrate @ 8516]
Bill Tompkins <obobo@users.sourceforge.net>
parents:
7834
diff
changeset
|
55 | ssl_gnutls_init(void) |
|
9b96706e44e7
[gaim-migrate @ 8516]
Bill Tompkins <obobo@users.sourceforge.net>
parents:
7834
diff
changeset
|
56 | { |
|
9b96706e44e7
[gaim-migrate @ 8516]
Bill Tompkins <obobo@users.sourceforge.net>
parents:
7834
diff
changeset
|
57 | return TRUE; |
| 7016 | 58 | } |
| 59 | ||
| 60 | static void | |
| 61 | ssl_gnutls_uninit(void) | |
| 62 | { | |
| 63 | gnutls_global_deinit(); | |
| 64 | ||
| 65 | gnutls_certificate_free_credentials(xcred); | |
| 66 | } | |
| 67 | ||
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
68 | |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
69 | static void ssl_gnutls_handshake_cb(gpointer data, gint source, |
| 15884 | 70 | PurpleInputCondition cond) |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
71 | { |
| 15884 | 72 | PurpleSslConnection *gsc = data; |
| 73 | PurpleSslGnutlsData *gnutls_data = PURPLE_SSL_GNUTLS_DATA(gsc); | |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
74 | ssize_t ret; |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
75 | |
| 15884 | 76 | purple_debug_info("gnutls", "Handshaking\n"); |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
77 | ret = gnutls_handshake(gnutls_data->session); |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
78 | |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
79 | if(ret == GNUTLS_E_AGAIN || ret == GNUTLS_E_INTERRUPTED) |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
80 | return; |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
81 | |
| 15884 | 82 | purple_input_remove(gnutls_data->handshake_handler); |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
83 | gnutls_data->handshake_handler = 0; |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
84 | |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
85 | if(ret != 0) { |
| 15884 | 86 | purple_debug_error("gnutls", "Handshake failed. Error %s\n", |
|
15846
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
87 | gnutls_strerror(ret)); |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
88 | |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
89 | if(gsc->error_cb != NULL) |
| 15884 | 90 | gsc->error_cb(gsc, PURPLE_SSL_HANDSHAKE_FAILED, |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
91 | gsc->connect_cb_data); |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
92 | |
| 15884 | 93 | purple_ssl_close(gsc); |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
94 | } else { |
| 15884 | 95 | purple_debug_info("gnutls", "Handshake complete\n"); |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
96 | |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
97 | gsc->connect_cb(gsc->connect_cb_data, gsc, cond); |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
98 | } |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
99 | |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
100 | } |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
101 | |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
102 | |
| 7016 | 103 | static void |
| 15884 | 104 | ssl_gnutls_connect(PurpleSslConnection *gsc) |
| 7016 | 105 | { |
| 15884 | 106 | PurpleSslGnutlsData *gnutls_data; |
| 7016 | 107 | static const int cert_type_priority[2] = { GNUTLS_CRT_X509, 0 }; |
| 108 | ||
| 15884 | 109 | gnutls_data = g_new0(PurpleSslGnutlsData, 1); |
| 7016 | 110 | gsc->private_data = gnutls_data; |
| 111 | ||
| 112 | gnutls_init(&gnutls_data->session, GNUTLS_CLIENT); | |
| 113 | gnutls_set_default_priority(gnutls_data->session); | |
| 114 | ||
| 115 | gnutls_certificate_type_set_priority(gnutls_data->session, | |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
116 | cert_type_priority); |
| 7016 | 117 | |
| 118 | gnutls_credentials_set(gnutls_data->session, GNUTLS_CRD_CERTIFICATE, | |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
119 | xcred); |
| 7016 | 120 | |
|
14223
c6ba4f3482de
[gaim-migrate @ 16809]
Mark Doliner <markdoliner@pidgin.im>
parents:
13985
diff
changeset
|
121 | gnutls_transport_set_ptr(gnutls_data->session, GINT_TO_POINTER(gsc->fd)); |
| 7016 | 122 | |
| 15884 | 123 | gnutls_data->handshake_handler = purple_input_add(gsc->fd, |
| 124 | PURPLE_INPUT_READ, ssl_gnutls_handshake_cb, gsc); | |
| 7016 | 125 | |
| 15884 | 126 | ssl_gnutls_handshake_cb(gsc, gsc->fd, PURPLE_INPUT_READ); |
| 7016 | 127 | } |
| 128 | ||
| 129 | static void | |
| 15884 | 130 | ssl_gnutls_close(PurpleSslConnection *gsc) |
| 7016 | 131 | { |
| 15884 | 132 | PurpleSslGnutlsData *gnutls_data = PURPLE_SSL_GNUTLS_DATA(gsc); |
| 7016 | 133 | |
| 7467 | 134 | if(!gnutls_data) |
| 135 | return; | |
| 136 | ||
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
137 | if(gnutls_data->handshake_handler) |
| 15884 | 138 | purple_input_remove(gnutls_data->handshake_handler); |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
139 | |
| 7016 | 140 | gnutls_bye(gnutls_data->session, GNUTLS_SHUT_RDWR); |
| 141 | ||
| 142 | gnutls_deinit(gnutls_data->session); | |
| 143 | ||
| 144 | g_free(gnutls_data); | |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
145 | gsc->private_data = NULL; |
| 7016 | 146 | } |
| 147 | ||
| 148 | static size_t | |
| 15884 | 149 | ssl_gnutls_read(PurpleSslConnection *gsc, void *data, size_t len) |
| 7016 | 150 | { |
| 15884 | 151 | PurpleSslGnutlsData *gnutls_data = PURPLE_SSL_GNUTLS_DATA(gsc); |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
152 | ssize_t s; |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
153 | |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
154 | s = gnutls_record_recv(gnutls_data->session, data, len); |
| 7016 | 155 | |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
156 | if(s == GNUTLS_E_AGAIN || s == GNUTLS_E_INTERRUPTED) { |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
157 | s = -1; |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
158 | errno = EAGAIN; |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
159 | } else if(s < 0) { |
| 15884 | 160 | purple_debug_error("gnutls", "receive failed: %s\n", |
|
15846
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
161 | gnutls_strerror(s)); |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
162 | s = -1; |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
163 | /* |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
164 | * TODO: Set errno to something more appropriate. Or even |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
165 | * better: allow ssl plugins to keep track of their |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
166 | * own error message, then add a new ssl_ops function |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
167 | * that returns the error message. |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
168 | */ |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
169 | errno = EIO; |
| 7834 | 170 | } |
| 7016 | 171 | |
| 172 | return s; | |
| 173 | } | |
| 174 | ||
| 175 | static size_t | |
| 15884 | 176 | ssl_gnutls_write(PurpleSslConnection *gsc, const void *data, size_t len) |
| 7016 | 177 | { |
| 15884 | 178 | PurpleSslGnutlsData *gnutls_data = PURPLE_SSL_GNUTLS_DATA(gsc); |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
179 | ssize_t s = 0; |
| 7016 | 180 | |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
181 | /* XXX: when will gnutls_data be NULL? */ |
| 7467 | 182 | if(gnutls_data) |
| 183 | s = gnutls_record_send(gnutls_data->session, data, len); | |
| 7016 | 184 | |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
185 | if(s == GNUTLS_E_AGAIN || s == GNUTLS_E_INTERRUPTED) { |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
186 | s = -1; |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
187 | errno = EAGAIN; |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
188 | } else if(s < 0) { |
| 15884 | 189 | purple_debug_error("gnutls", "send failed: %s\n", |
|
15846
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
190 | gnutls_strerror(s)); |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
191 | s = -1; |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
192 | /* |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
193 | * TODO: Set errno to something more appropriate. Or even |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
194 | * better: allow ssl plugins to keep track of their |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
195 | * own error message, then add a new ssl_ops function |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
196 | * that returns the error message. |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
197 | */ |
|
7a956b382f6c
There were a few problems here
Mark Doliner <markdoliner@pidgin.im>
parents:
15435
diff
changeset
|
198 | errno = EIO; |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
199 | } |
|
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
11513
diff
changeset
|
200 | |
| 7016 | 201 | return s; |
| 202 | } | |
| 203 | ||
| 15884 | 204 | static PurpleSslOps ssl_ops = |
| 7016 | 205 | { |
| 206 | ssl_gnutls_init, | |
| 207 | ssl_gnutls_uninit, | |
|
14223
c6ba4f3482de
[gaim-migrate @ 16809]
Mark Doliner <markdoliner@pidgin.im>
parents:
13985
diff
changeset
|
208 | ssl_gnutls_connect, |
| 7016 | 209 | ssl_gnutls_close, |
| 210 | ssl_gnutls_read, | |
| 211 | ssl_gnutls_write | |
| 212 | }; | |
| 213 | ||
| 214 | #endif /* HAVE_GNUTLS */ | |
| 215 | ||
| 216 | static gboolean | |
| 15884 | 217 | plugin_load(PurplePlugin *plugin) |
| 7016 | 218 | { |
| 219 | #ifdef HAVE_GNUTLS | |
| 15884 | 220 | if(!purple_ssl_get_ops()) { |
| 221 | purple_ssl_set_ops(&ssl_ops); | |
|
7862
9b96706e44e7
[gaim-migrate @ 8516]
Bill Tompkins <obobo@users.sourceforge.net>
parents:
7834
diff
changeset
|
222 | } |
| 7016 | 223 | |
| 11033 | 224 | /* Init GNUTLS now so others can use it even if sslconn never does */ |
| 225 | ssl_gnutls_init_gnutls(); | |
| 226 | ||
| 7016 | 227 | return TRUE; |
| 228 | #else | |
| 229 | return FALSE; | |
| 230 | #endif | |
| 231 | } | |
| 232 | ||
| 233 | static gboolean | |
| 15884 | 234 | plugin_unload(PurplePlugin *plugin) |
| 7016 | 235 | { |
|
7050
12730863b0f9
[gaim-migrate @ 7613]
Christian Hammond <chipx86@chipx86.com>
parents:
7016
diff
changeset
|
236 | #ifdef HAVE_GNUTLS |
| 15884 | 237 | if(purple_ssl_get_ops() == &ssl_ops) { |
| 238 | purple_ssl_set_ops(NULL); | |
|
7862
9b96706e44e7
[gaim-migrate @ 8516]
Bill Tompkins <obobo@users.sourceforge.net>
parents:
7834
diff
changeset
|
239 | } |
|
7050
12730863b0f9
[gaim-migrate @ 7613]
Christian Hammond <chipx86@chipx86.com>
parents:
7016
diff
changeset
|
240 | #endif |
|
12730863b0f9
[gaim-migrate @ 7613]
Christian Hammond <chipx86@chipx86.com>
parents:
7016
diff
changeset
|
241 | |
| 7016 | 242 | return TRUE; |
| 243 | } | |
| 244 | ||
| 15884 | 245 | static PurplePluginInfo info = |
| 7016 | 246 | { |
| 15884 | 247 | PURPLE_PLUGIN_MAGIC, |
| 248 | PURPLE_MAJOR_VERSION, | |
| 249 | PURPLE_MINOR_VERSION, | |
| 250 | PURPLE_PLUGIN_STANDARD, /**< type */ | |
| 7016 | 251 | NULL, /**< ui_requirement */ |
| 15884 | 252 | PURPLE_PLUGIN_FLAG_INVISIBLE, /**< flags */ |
| 7016 | 253 | NULL, /**< dependencies */ |
| 15884 | 254 | PURPLE_PRIORITY_DEFAULT, /**< priority */ |
| 7016 | 255 | |
| 256 | SSL_GNUTLS_PLUGIN_ID, /**< id */ | |
| 257 | N_("GNUTLS"), /**< name */ | |
| 258 | VERSION, /**< version */ | |
| 259 | /** summary */ | |
| 260 | N_("Provides SSL support through GNUTLS."), | |
| 261 | /** description */ | |
| 262 | N_("Provides SSL support through GNUTLS."), | |
| 263 | "Christian Hammond <chipx86@gnupdate.org>", | |
| 15884 | 264 | PURPLE_WEBSITE, /**< homepage */ |
| 7016 | 265 | |
| 266 | plugin_load, /**< load */ | |
| 267 | plugin_unload, /**< unload */ | |
| 268 | NULL, /**< destroy */ | |
| 269 | ||
| 270 | NULL, /**< ui_info */ | |
|
11513
89bf8d856291
[gaim-migrate @ 13758]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
11256
diff
changeset
|
271 | NULL, /**< extra_info */ |
|
89bf8d856291
[gaim-migrate @ 13758]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
11256
diff
changeset
|
272 | NULL, /**< prefs_info */ |
|
89bf8d856291
[gaim-migrate @ 13758]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
11256
diff
changeset
|
273 | NULL /**< actions */ |
| 7016 | 274 | }; |
| 275 | ||
| 276 | static void | |
| 15884 | 277 | init_plugin(PurplePlugin *plugin) |
| 7016 | 278 | { |
| 279 | } | |
| 280 | ||
| 15884 | 281 | PURPLE_INIT_PLUGIN(ssl_gnutls, init_plugin, info) |