220 * if encryption is enabled, sets the crypto-hash property |
220 * if encryption is enabled, sets the crypto-hash property |
221 * otherwise it sets the content-hash property |
221 * otherwise it sets the content-hash property |
222 * |
222 * |
223 * hashdata must be raw sha256 data and 32 bytes long |
223 * hashdata must be raw sha256 data and 32 bytes long |
224 */ |
224 */ |
225 void sync_set_content_hash(DavResource *res, const char *hashdata); |
225 void sync_set_content_hash(DavResource *res, const unsigned char *hashdata); |
226 |
226 |
227 #ifdef __cplusplus |
227 #ifdef __cplusplus |
228 } |
228 } |
229 #endif |
229 #endif |
230 |
230 |