Mercurial > pidgin
comparison src/sslconn.c @ 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 | aa619031193b |
| children | 001d11a7e345 |
comparison
equal
deleted
inserted
replaced
| 7017:15733f9cfe69 | 7018:cd8a9907c779 |
|---|---|
| 29 static GaimSslOps *_ssl_ops = NULL; | 29 static GaimSslOps *_ssl_ops = NULL; |
| 30 | 30 |
| 31 static gboolean | 31 static gboolean |
| 32 ssl_init(void) | 32 ssl_init(void) |
| 33 { | 33 { |
| 34 GaimPlugin *plugin; | |
| 34 GaimSslOps *ops = gaim_ssl_get_ops(); | 35 GaimSslOps *ops = gaim_ssl_get_ops(); |
| 35 gboolean success = FALSE; | 36 gboolean success = FALSE; |
| 36 | 37 |
| 37 if (_ssl_initialized) | 38 if (_ssl_initialized) |
| 38 return FALSE; | 39 return FALSE; |
| 40 | |
| 41 plugin = gaim_plugins_find_with_id("ssl"); | |
| 42 | |
| 43 if (plugin != NULL && !gaim_plugin_is_loaded(plugin)) | |
| 44 gaim_plugin_load(plugin); | |
| 39 | 45 |
| 40 if (ops != NULL && ops->init != NULL) | 46 if (ops != NULL && ops->init != NULL) |
| 41 success = ops->init(); | 47 success = ops->init(); |
| 42 | 48 |
| 43 _ssl_initialized = success; | 49 _ssl_initialized = success; |
