--- a/dav/config.c Sat Jun 15 11:01:37 2019 +0200 +++ b/dav/config.c Sun Jun 16 13:14:24 2019 +0200 @@ -193,8 +193,10 @@ Repository *repo = calloc(1, sizeof(Repository)); repo->encrypt_name = false; repo->encrypt_content = false; + repo->encrypt_properties = false; repo->decrypt_name = false; repo->decrypt_content = true; + repo->decrypt_properties = false; repo->verification = true; repo->ssl_version = CURL_SSLVERSION_DEFAULT; repo->authmethods = CURLAUTH_BASIC; @@ -231,8 +233,10 @@ if(util_getboolean(value)) { repo->encrypt_name = true; repo->encrypt_content = true; + repo->encrypt_properties = true; repo->decrypt_name = true; repo->decrypt_content = true; + repo->decrypt_properties = true; } } else if(xstreq(key, "content-encryption")) { if(util_getboolean(value)) { @@ -576,12 +580,18 @@ if(repo->decrypt_name) { flags |= DAV_SESSION_DECRYPT_NAME; } + if(repo->decrypt_properties) { + flags |= DAV_SESSION_DECRYPT_PROPERTIES; + } if(repo->encrypt_content) { flags |= DAV_SESSION_ENCRYPT_CONTENT; } if(repo->encrypt_name) { flags |= DAV_SESSION_ENCRYPT_NAME; } + if(repo->encrypt_properties) { + flags |= DAV_SESSION_ENCRYPT_PROPERTIES; + } return flags; }