dav/config.c

changeset 472
08d2d1263429
parent 470
6bf798ad3aec
child 606
aa49966e4e85
equal deleted inserted replaced
471:d8e883bd1fd8 472:08d2d1263429
101 context = ctx; 101 context = ctx;
102 // TODO: free the config somewhere 102 // TODO: free the config somewhere
103 repos = ucx_map_new(16); 103 repos = ucx_map_new(16);
104 keys = ucx_map_new(16); 104 keys = ucx_map_new(16);
105 105
106 char *pwfile = util_concat_path(ENV_HOME, ".dav/pw.crypt"); 106 char *pwfile = util_concat_path(ENV_HOME, ".dav/secrets.crypt");
107 pstore = pwdstore_open(pwfile); 107 pstore = pwdstore_open(pwfile);
108 free(pwfile); 108 free(pwfile);
109 109
110 char *file = util_concat_path(ENV_HOME, ".dav/config.xml"); 110 char *file = util_concat_path(ENV_HOME, ".dav/config.xml");
111 111
764 PwdStore* get_pwdstore(void) { 764 PwdStore* get_pwdstore(void) {
765 return pstore; 765 return pstore;
766 } 766 }
767 767
768 int pwdstore_save(PwdStore *pwdstore) { 768 int pwdstore_save(PwdStore *pwdstore) {
769 char *pwfile = util_concat_path(ENV_HOME, ".dav/pw.crypt"); 769 char *pwfile = util_concat_path(ENV_HOME, ".dav/secrets.crypt");
770 int ret = pwdstore_store(pwdstore, pwfile); 770 int ret = pwdstore_store(pwdstore, pwfile);
771 free(pwfile); 771 free(pwfile);
772 return ret; 772 return ret;
773 } 773 }

mercurial