dav/config.c

changeset 731
e0358fa1a3b1
parent 730
83f832e345e0
child 732
b0eb645cd26e
equal deleted inserted replaced
730:83f832e345e0 731:e0358fa1a3b1
572 } 572 }
573 573
574 int load_secretstore(const xmlNode *node) { 574 int load_secretstore(const xmlNode *node) {
575 // currently only one secretstore is supported 575 // currently only one secretstore is supported
576 576
577 if(!pstore) {
578 return 0;
579 }
580
577 node = node->children; 581 node = node->children;
578 int error = 0; 582 int error = 0;
579 while(node) { 583 while(node) {
580 if(node->type == XML_ELEMENT_NODE) { 584 if(node->type == XML_ELEMENT_NODE) {
581 char *value = util_xml_get_text(node); 585 char *value = util_xml_get_text(node);
582 if(value) { 586 if(value) {
583 if(xstreq(node->name, "unlock-command")) { 587 if(xstreq(node->name, "unlock-command")) {
584 secretstore_unlock_cmd = strdup(value); 588 pstore->unlock_cmd = strdup(value);
585 } else if(xstreq(node->name, "lock-command")) { 589 } else if(xstreq(node->name, "lock-command")) {
586 secretstore_lock_cmd = strdup(value); 590 pstore->lock_cmd = strdup(value);
587 } 591 }
588 } 592 }
589 } 593 }
590 node = node->next; 594 node = node->next;
591 } 595 }

mercurial