changeset 7018:cd8a9907c779

[gaim-migrate @ 7581] SSL is now auto-loaded from sslconn.c, removing the requirement for a prpl to set a dependency on it. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 29 Sep 2003 15:32:41 +0000
parents 15733f9cfe69
children 3fd0aeb71f95
files src/sslconn.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sslconn.c	Mon Sep 29 15:30:17 2003 +0000
+++ b/src/sslconn.c	Mon Sep 29 15:32:41 2003 +0000
@@ -31,12 +31,18 @@
 static gboolean
 ssl_init(void)
 {
+	GaimPlugin *plugin;
 	GaimSslOps *ops = gaim_ssl_get_ops();
 	gboolean success = FALSE;
 
 	if (_ssl_initialized)
 		return FALSE;
 
+	plugin = gaim_plugins_find_with_id("ssl");
+
+	if (plugin != NULL && !gaim_plugin_is_loaded(plugin))
+		gaim_plugin_load(plugin);
+
 	if (ops != NULL && ops->init != NULL)
 		success = ops->init();