| 32 |
32 |
| 33 static gboolean |
33 static gboolean |
| 34 probe_ssl_plugins(PurplePlugin *my_plugin, GError **error) |
34 probe_ssl_plugins(PurplePlugin *my_plugin, GError **error) |
| 35 { |
35 { |
| 36 PurplePlugin *plugin; |
36 PurplePlugin *plugin; |
| |
37 PurplePluginInfo *info; |
| 37 GList *plugins, *l; |
38 GList *plugins, *l; |
| 38 |
39 |
| 39 ssl_plugin = NULL; |
40 ssl_plugin = NULL; |
| 40 |
41 |
| 41 plugins = purple_plugins_find_all(); |
42 plugins = purple_plugins_find_all(); |
| 42 |
43 |
| 43 for (l = plugins; l != NULL; l = l->next) |
44 for (l = plugins; l != NULL; l = l->next) |
| 44 { |
45 { |
| 45 plugin = PURPLE_PLUGIN(l->data); |
46 plugin = PURPLE_PLUGIN(l->data); |
| 46 |
|
| 47 if (plugin == my_plugin) |
47 if (plugin == my_plugin) |
| 48 continue; |
48 continue; |
| 49 |
49 |
| 50 if (strncmp(purple_plugin_info_get_id(purple_plugin_get_info(plugin)), |
50 info = purple_plugin_get_info(plugin); |
| 51 "ssl-", 4) == 0) |
51 if (!info) |
| |
52 continue; |
| |
53 |
| |
54 if (strncmp(purple_plugin_info_get_id(info), "ssl-", 4) == 0) |
| 52 { |
55 { |
| 53 if (purple_plugin_load(plugin, NULL)) |
56 if (purple_plugin_load(plugin, NULL)) |
| 54 { |
57 { |
| 55 ssl_plugin = plugin; |
58 ssl_plugin = plugin; |
| 56 |
|
| 57 break; |
59 break; |
| 58 } |
60 } |
| 59 } |
61 } |
| 60 } |
62 } |
| 61 |
63 |