plugins/ssl/ssl-nss.c

changeset 11033
dc68e074f10d
parent 10519
80801a34a246
child 11256
fe82a0c5e5ec
equal deleted inserted replaced
11032:8cebd16548eb 11033:dc68e074f10d
277 277
278 static gboolean 278 static gboolean
279 plugin_load(GaimPlugin *plugin) 279 plugin_load(GaimPlugin *plugin)
280 { 280 {
281 #ifdef HAVE_NSS 281 #ifdef HAVE_NSS
282 gaim_debug_register_category("nss");
283
282 if (!gaim_ssl_get_ops()) { 284 if (!gaim_ssl_get_ops()) {
283 gaim_ssl_set_ops(&ssl_ops); 285 gaim_ssl_set_ops(&ssl_ops);
284 } 286 }
285 287
286 /* Init NSS now, so others can use it even if sslconn never does */ 288 /* Init NSS now, so others can use it even if sslconn never does */
287 ssl_nss_init_nss(); 289 ssl_nss_init_nss();
290
288 return TRUE; 291 return TRUE;
289 #else 292 #else
290 return FALSE; 293 return FALSE;
291 #endif 294 #endif
292 } 295 }
297 #ifdef HAVE_NSS 300 #ifdef HAVE_NSS
298 if (gaim_ssl_get_ops() == &ssl_ops) { 301 if (gaim_ssl_get_ops() == &ssl_ops) {
299 gaim_ssl_set_ops(NULL); 302 gaim_ssl_set_ops(NULL);
300 } 303 }
301 #endif 304 #endif
305
306 gaim_debug_unregister_category("nss");
302 307
303 return TRUE; 308 return TRUE;
304 } 309 }
305 310
306 static GaimPluginInfo info = 311 static GaimPluginInfo info =

mercurial