| 36 |
36 |
| 37 #include <cx/hash_map.h> |
37 #include <cx/hash_map.h> |
| 38 |
38 |
| 39 #include "keyfile_auth.h" |
39 #include "keyfile_auth.h" |
| 40 |
40 |
| 41 Keyfile* keyfile_new(CxAllocator *a) { |
41 Keyfile* keyfile_new(const CxAllocator *a) { |
| 42 Keyfile *keyfile = cxCalloc(a, 1, sizeof(Keyfile)); |
42 Keyfile *keyfile = cxCalloc(a, 1, sizeof(Keyfile)); |
| 43 if(!keyfile) { |
43 if(!keyfile) { |
| 44 return NULL; |
44 return NULL; |
| 45 } |
45 } |
| 46 keyfile->authdb.get_user = keyfile_get_user; |
46 keyfile->authdb.get_user = keyfile_get_user; |