- Bug 146015: A CASAkeyring is created to add secrets to the
Gnome Keyring through CASAManger - FIXED.
This commit is contained in:
		| @@ -1,3 +1,9 @@ | |||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Thu Feb 16 07:45:20 IST 2006 - smanojna@novell.com | ||||||
|  |  | ||||||
|  | - Bug 146015: A CASAkeyring is created to add secrets to the  | ||||||
|  |   Gnome Keyring through CASAManager - FIXED. | ||||||
|  |  | ||||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ||||||
| Tue Feb 14 17:15:34 MST 2006 - jnorman@novell.com | Tue Feb 14 17:15:34 MST 2006 - jnorman@novell.com | ||||||
|  |  | ||||||
|   | |||||||
| @@ -113,7 +113,7 @@ namespace Novell.CASA.DataEngines | |||||||
|                     { |                     { | ||||||
|                     	keyElem = doc.CreateElement(ConstStrings.CCF_KEY); |                     	keyElem = doc.CreateElement(ConstStrings.CCF_KEY); | ||||||
|             	        keyIdAttr = doc.CreateAttribute(ConstStrings.CCF_ID); |             	        keyIdAttr = doc.CreateAttribute(ConstStrings.CCF_ID); | ||||||
|                 	keyIdAttr.Value = "GKPassword"; |                 	keyIdAttr.Value = "password"; | ||||||
|                     	keyElem.SetAttributeNode(keyIdAttr); |                     	keyElem.SetAttributeNode(keyIdAttr); | ||||||
|  |  | ||||||
| 	                valueElem = doc.CreateElement(ConstStrings.CCF_VALUE); | 	                valueElem = doc.CreateElement(ConstStrings.CCF_VALUE); | ||||||
| @@ -219,7 +219,7 @@ namespace Novell.CASA.DataEngines | |||||||
|                    //Get the Key |                    //Get the Key | ||||||
|                    XmlAttributeCollection at = tuple.Attributes; |                    XmlAttributeCollection at = tuple.Attributes; | ||||||
|                    String keyname = (at["ID"]).InnerText; |                    String keyname = (at["ID"]).InnerText; | ||||||
|                    if (keyname.Equals("GKPassword")) |                    if (keyname.Equals("password")) | ||||||
|                    { |                    { | ||||||
| 			password =  tuple.ChildNodes[0].InnerText; | 			password =  tuple.ChildNodes[0].InnerText; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -636,7 +636,7 @@ CreateItemInKeyring(char *keyring, int32_t itemType, char *display_name, char *s | |||||||
|                 g_array_append_val (attributes, attribute); |                 g_array_append_val (attributes, attribute); | ||||||
|         } |         } | ||||||
|          |          | ||||||
|         gnome_keyring_item_create(keyring,itemType,display_name,attributes,secret,FALSE,CreateItemCb,&cbData,NULL); |         gnome_keyring_item_create(NULL,itemType,display_name,attributes,secret,FALSE,CreateItemCb,&cbData,NULL); | ||||||
|         gnome_keyring_attribute_list_free (attributes); |         gnome_keyring_attribute_list_free (attributes); | ||||||
|         g_main_loop_run (loop); |         g_main_loop_run (loop); | ||||||
|         return cbData.result; |         return cbData.result; | ||||||
|   | |||||||
| @@ -752,7 +752,7 @@ public class GnomeKeyring : Store | |||||||
| 					NativeValues[Common.INDEX_NATIVEINFO_SYNCTYPE] = null; | 					NativeValues[Common.INDEX_NATIVEINFO_SYNCTYPE] = null; | ||||||
| 					NativeValues[Common.INDEX_NATIVEINFO_MODIFIEDTIME] = null;					 | 					NativeValues[Common.INDEX_NATIVEINFO_MODIFIEDTIME] = null;					 | ||||||
| 					 | 					 | ||||||
| 					iterSecret = tsSecretIDGnomeKeyring.AppendValues(entrySecretID.Text, Keys, Values, "CASAkeyring", NativeKeys, NativeValues); | 					iterSecret = tsSecretIDGnomeKeyring.AppendValues(entrySecretID.Text, Keys, Values, "default", NativeKeys, NativeValues); | ||||||
| 					modelSecret = tvSecretIDGnomeKeyring.Model;					 | 					modelSecret = tvSecretIDGnomeKeyring.Model;					 | ||||||
| 					 | 					 | ||||||
| 					if( Common.STATUS_SUCCESS == StoreDataInterface.UpdateStore(Common.STORE_GNOMEKEYRING, Common.OPERATION_ADD_SECRET, "", "", ref modelSecret, ref iterSecret) ) | 					if( Common.STATUS_SUCCESS == StoreDataInterface.UpdateStore(Common.STORE_GNOMEKEYRING, Common.OPERATION_ADD_SECRET, "", "", ref modelSecret, ref iterSecret) ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user