64:98d0e2516f4e | 65:48f43130b4a2 |
---|---|
263 | 263 |
264 PwdStore* get_pwdstore(void) { | 264 PwdStore* get_pwdstore(void) { |
265 return pstore; | 265 return pstore; |
266 } | 266 } |
267 | 267 |
268 void set_pwdstore(PwdStore *newstore) { | |
269 if(pstore) { | |
270 // TODO: free | |
271 } | |
272 pstore = newstore; | |
273 } | |
274 | |
268 int pwdstore_save(PwdStore *pwdstore) { | 275 int pwdstore_save(PwdStore *pwdstore) { |
269 if(check_config_dir()) { | 276 if(check_config_dir()) { |
270 return 1; | 277 return 1; |
271 } | 278 } |
272 | 279 |