Mercurial > pidgin.yaz
comparison plugins/ssl/ssl-nss.c @ 11033:50224ac8184d
[gaim-migrate @ 12919]
Ok, this is debug window filtering. Sadrul was going to do this with a text entry, but I like this better, feel free to disagree with me. It's not the prettiest in a couple places, most notable gtkmain.c where a bunch of categories that don't currently have a home get registered. I added some plugin_(un)load functions to some plugins to place the (un)register functions. Though I didn't do that for the prpls. Comments and cleanups welcome. (Oh, I've been seeing some crashes on quit, but I haven't been able to get it to happen reliably so I'm not sure if it's my code or some transient HEAD oscar/other crash.)
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Tue, 28 Jun 2005 06:13:07 +0000 |
parents | bec9130b24d2 |
children | bb0d7b719af2 |
comparison
equal
deleted
inserted
replaced
11032:31c1c48daba1 | 11033:50224ac8184d |
---|---|
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 = |