comparison plugins/ssl/ssl-nss.c @ 10519:bec9130b24d2

[gaim-migrate @ 11833] Leak fixes, round #2. And some minor MSN tweaks suggested by Felipe. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 17 Jan 2005 00:33:30 +0000
parents 1668fcab5968
children 50224ac8184d
comparison
equal deleted inserted replaced
10518:8ae540ad42e7 10519:bec9130b24d2
55 static PRDescIdentity _identity; 55 static PRDescIdentity _identity;
56 56
57 static void 57 static void
58 ssl_nss_init_nss(void) 58 ssl_nss_init_nss(void)
59 { 59 {
60 char *lib;
60 PR_Init(PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1); 61 PR_Init(PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1);
61 NSS_NoDB_Init(NULL); 62 NSS_NoDB_Init(NULL);
62 63
63 /* TODO: Fix this so autoconf does the work trying to find this lib. */ 64 /* TODO: Fix this so autoconf does the work trying to find this lib. */
64 SECMOD_AddNewModule("Builtins",
65 #ifndef _WIN32 65 #ifndef _WIN32
66 g_strdup(BR_LIBDIR("/libnssckbi.so")), 66 lib = g_strdup(BR_LIBDIR("/libnssckbi.so"));
67 /* this might leak, and looks wrong in general */
68 #else 67 #else
69 "nssckbi.dll", 68 lib = g_strdup("nssckbi.dll");
70 #endif 69 #endif
71 0, 0); 70 SECMOD_AddNewModule("Builtins", lib, 0, 0);
71 g_free(lib);
72 NSS_SetDomesticPolicy(); 72 NSS_SetDomesticPolicy();
73 73
74 _identity = PR_GetUniqueIdentity("Gaim"); 74 _identity = PR_GetUniqueIdentity("Gaim");
75 _nss_methods = PR_GetDefaultIOMethods(); 75 _nss_methods = PR_GetDefaultIOMethods();
76 } 76 }