82 /* |
83 /* |
83 * map of all credentials |
84 * map of all credentials |
84 * key is the username |
85 * key is the username |
85 * value is PwdEntry* |
86 * value is PwdEntry* |
86 */ |
87 */ |
87 UcxMap *ids; |
88 CxMap *ids; |
88 |
89 |
89 /* |
90 /* |
90 * list of all credentials with location |
91 * list of all credentials with location |
91 * value is PwdIndexEntry* |
92 * value is PwdIndexEntry* |
92 */ |
93 */ |
93 UcxList *locations; |
94 CxList *locations; |
94 |
95 |
95 /* |
96 /* |
96 * list of all credentials without location |
97 * list of all credentials without location |
97 * value is PwdIndexEntry* |
98 * value is PwdIndexEntry* |
98 */ |
99 */ |
99 UcxList *noloc; |
100 CxList *noloc; |
100 |
101 |
101 /* |
102 /* |
102 * index map that contains all elements from the lists |
103 * index map that contains all elements from the lists |
103 * 'locations' and 'noloc' |
104 * 'locations' and 'noloc' |
104 */ |
105 */ |
105 UcxMap *index; |
106 CxMap *index; |
106 |
107 |
107 /* |
108 /* |
108 * a buffer containing the complete file content |
109 * a buffer containing the complete file content |
109 */ |
110 */ |
110 UcxBuffer *content; |
111 CxBuffer *content; |
111 |
112 |
112 /* |
113 /* |
113 * key used for encryption/decryption |
114 * key used for encryption/decryption |
114 */ |
115 */ |
115 DavKey *key; |
116 DavKey *key; |
177 int pwdstore_has_location(PwdStore *s, const char *location); |
178 int pwdstore_has_location(PwdStore *s, const char *location); |
178 |
179 |
179 PwdEntry* pwdstore_get(PwdStore *p, const char *id); |
180 PwdEntry* pwdstore_get(PwdStore *p, const char *id); |
180 |
181 |
181 void pwdstore_put(PwdStore *p, const char *id, const char *username, const char *password); |
182 void pwdstore_put(PwdStore *p, const char *id, const char *username, const char *password); |
182 void pwdstore_put_index(PwdStore *p, char *id, UcxList *locations); |
183 void pwdstore_put_index(PwdStore *p, char *id, CxList *locations); |
183 |
184 |
184 void pwdstore_remove_entry(PwdStore *s, const char *id); |
185 void pwdstore_remove_entry(PwdStore *s, const char *id); |
185 |
186 |
186 int pwdstore_store(PwdStore *p, const char *file); |
187 int pwdstore_store(PwdStore *p, const char *file); |
187 |
188 |