- Added support for ADD/MODIFY/DELETE functionalities for Keyring and
Kwallet stores in A-Dlib. .....................................................................
This commit is contained in:
@@ -51,14 +51,14 @@ CreateItemInKeyring(char *keyring, int32_t itemType, char *display_name, char *s
|
||||
OperationCompleted cbData;
|
||||
|
||||
int i;
|
||||
printf("ad.gk.c : CreateItemInKeyring : Keyring %s, itemType %d displayname %s, secret %s \n",keyring,itemType, display_name,secret);
|
||||
//printf("ad.gk.c : CreateItemInKeyring : Keyring %s, itemType %d displayname %s, secret %s \n",keyring,itemType, display_name,secret);
|
||||
cbData.OperationName = "Create Item";
|
||||
loop = g_main_loop_new (NULL, FALSE);
|
||||
|
||||
attributes = gnome_keyring_attribute_list_new ();
|
||||
for (i=0; i< attrcnt; i++)
|
||||
{
|
||||
printf("as.gk.c : CreateItemInKeyring : In key %s \n", attrs[i]->key);
|
||||
//printf("as.gk.c : CreateItemInKeyring : In key %s \n", attrs[i]->key);
|
||||
attribute.name = g_strdup (attrs[i]->key);
|
||||
attribute.type = GNOME_KEYRING_ATTRIBUTE_TYPE_STRING;
|
||||
attribute.value.string = g_strdup (attrs[i]->value);
|
||||
@@ -332,15 +332,15 @@ SetItemAttributes (char *keyring, guint32 itemid, Attribute **attrs, int length)
|
||||
GnomeKeyringAttribute attribute;
|
||||
OperationCompleted cbData;
|
||||
int i;
|
||||
printf("ad_gk.c : In SetItemAttributes\n");
|
||||
printf("ad_gk.c : Keyring %s, itemid %d\n",keyring,itemid);
|
||||
//printf("ad_gk.c : In SetItemAttributes\n");
|
||||
//printf("ad_gk.c : Keyring %s, itemid %d\n",keyring,itemid);
|
||||
cbData.OperationName = "Set Item Attributes";
|
||||
loop = g_main_loop_new (NULL, FALSE);
|
||||
|
||||
attributes = gnome_keyring_attribute_list_new ();
|
||||
for (i=0; i< length; i++)
|
||||
{
|
||||
printf("ad_gk.c : In key %s \n", attrs[i]->key);
|
||||
//printf("ad_gk.c : In key %s \n", attrs[i]->key);
|
||||
attribute.name = g_strdup (attrs[i]->key);
|
||||
attribute.type = GNOME_KEYRING_ATTRIBUTE_TYPE_STRING;
|
||||
attribute.value.string = g_strdup (attrs[i]->value);
|
||||
|
||||
Reference in New Issue
Block a user