gnome-keyring r1530 - in trunk: . gcr



Author: nnielsen
Date: Sun Feb  8 04:56:48 2009
New Revision: 1530
URL: http://svn.gnome.org/viewvc/gnome-keyring?rev=1530&view=rev

Log:
Setup automatically log into token, and pool sessions.

Modified:
   trunk/ChangeLog
   trunk/gcr/gcr-library.c

Modified: trunk/gcr/gcr-library.c
==============================================================================
--- trunk/gcr/gcr-library.c	(original)
+++ trunk/gcr/gcr-library.c	Sun Feb  8 04:56:48 2009
@@ -121,11 +121,14 @@
 		
 		/* TODO: This needs reworking for multiple modules */
 		module = gp11_module_initialize (PKCS11_MODULE_PATH, NULL, &error);
-		if (module) 
+		if (module) {
+			gp11_module_set_pool_sessions (module, TRUE);
+			gp11_module_set_auto_authenticate (module, TRUE);
 			all_modules = g_list_prepend (all_modules, module);
-		else 
+		} else { 
 			g_warning ("couldn't initialize PKCS#11 module: %s", 
 			           error && error->message ? error->message : "");
+		}
 
 		g_once_init_leave (&gcr_initialized, 1);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]