--- a/dav/pwd.h Sat Oct 20 13:46:32 2018 +0200 +++ b/dav/pwd.h Sat Oct 27 12:16:26 2018 +0200 @@ -53,12 +53,13 @@ * pwfunc = 1 byte * salt = 16 bytes * indexlen = uint32 - * index = { length id length location } + * index = { length id locations zero } * content = { entry } * entry = length id length username length password * length = uint32 + * zero = 4 zero bytes * id = string - * location = string + * locations = { length string } * username = string * password = string * @@ -136,7 +137,7 @@ struct PwdIndexEntry { char *id; - char *location; + UcxList *locations; }; /* @@ -165,7 +166,7 @@ PwdEntry* pwdstore_get(PwdStore *p, const char *id); void pwdstore_put(PwdStore *p, const char *id, const char *username, const char *password); -void pwdstore_put_index(PwdStore *p, const char *id, const char *location); +void pwdstore_put_index(PwdStore *p, char *id, UcxList *locations); int pwdstore_store(PwdStore *p, const char *file);