diff -r 509e9e1cbdcc -r 37fb12574acd libidav/resource.h --- a/libidav/resource.h Sat Oct 03 20:10:54 2015 +0200 +++ b/libidav/resource.h Sun Oct 04 15:57:40 2015 +0200 @@ -55,6 +55,11 @@ * content length */ size_t length; + + /* + * sha256 content hash + */ + char hash[32]; }; DavResource* dav_resource_new_full(DavSession *sn, char *parent_path, char *name, char *href); @@ -70,7 +75,7 @@ char* resource_get_property_k(DavResource *res, UcxKey key); void resource_add_child(DavResource *parent, DavResource *child); void resource_add_ordered_child(DavResource *parent, DavResource *child, UcxList *ordercr); -int resource_add_crypto_info(DavSession *sn, char *href, char *name); +int resource_add_crypto_info(DavSession *sn, char *href, char *name, char *hash); UcxKey dav_property_key_a(UcxAllocator *a, char *ns, char *name);