| 687 } else { |
687 } else { |
| 688 add2propertylist(a, &data->remove, property); |
688 add2propertylist(a, &data->remove, property); |
| 689 } |
689 } |
| 690 } |
690 } |
| 691 |
691 |
| 692 void dav_set_encrypted_property_ns(DavResource *res, char *ns, char *name, DavXmlNode *value) { |
692 void dav_set_encrypted_property_ns(DavResource *res, const char *ns, const char *name, DavXmlNode *value) { |
| 693 const CxAllocator *a = res->session->mp->allocator; |
693 const CxAllocator *a = res->session->mp->allocator; |
| 694 DavResourceData *data = res->data; |
694 DavResourceData *data = res->data; |
| 695 |
695 |
| 696 DavProperty *property = createprop(res->session, ns, name); |
696 DavProperty *property = createprop(res->session, ns, name); |
| 697 property->value = value; // TODO: copy node? |
697 property->value = value; // TODO: copy node? |
| 698 |
698 |
| 699 add2propertylist(a, &data->crypto_set, property); |
699 add2propertylist(a, &data->crypto_set, property); |
| 700 } |
700 } |
| 701 |
701 |
| 702 void dav_set_encrypted_string_property_ns(DavResource *res, char *ns, char *name, char *value) { |
702 void dav_set_encrypted_string_property_ns(DavResource *res, const char *ns, const char *name, const char *value) { |
| 703 const CxAllocator *a = res->session->mp->allocator; |
703 const CxAllocator *a = res->session->mp->allocator; |
| 704 DavResourceData *data = res->data; |
704 DavResourceData *data = res->data; |
| 705 |
705 |
| 706 DavProperty *property = createprop(res->session, ns, name); |
706 DavProperty *property = createprop(res->session, ns, name); |
| 707 property->value = dav_text_node(res->session, value); |
707 property->value = dav_text_node(res->session, value); |
| 708 |
708 |
| 709 add2propertylist(a, &data->crypto_set, property); |
709 add2propertylist(a, &data->crypto_set, property); |
| 710 } |
710 } |
| 711 |
711 |
| 712 void dav_remove_encrypted_property_ns(DavResource *res, char *ns, char *name) { |
712 void dav_remove_encrypted_property_ns(DavResource *res, const char *ns, const char *name) { |
| 713 DavResourceData *data = res->data; |
713 DavResourceData *data = res->data; |
| 714 const CxAllocator *a = res->session->mp->allocator; |
714 const CxAllocator *a = res->session->mp->allocator; |
| 715 |
715 |
| 716 DavProperty *property = createprop(res->session, ns, name); |
716 DavProperty *property = createprop(res->session, ns, name); |
| 717 |
717 |