diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2018-02-06 18:09:16 +0100 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2018-02-06 18:09:16 +0100 |
commit | 3bc256b482e7ce59386264737e05c529d2f5df35 (patch) | |
tree | 253297267cfda8fed2a3f7f523179ebacaa3dbb8 /test/sip/user.c | |
parent | a9da88169dbfbc3aedc72770c9e708dbfce0effb (diff) |
test: make 'struct user' opaque
avoid conflict with struct user defined in <sys/user.h>
Diffstat (limited to 'test/sip/user.c')
-rw-r--r-- | test/sip/user.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/sip/user.c b/test/sip/user.c index 99fb47d..73a101e 100644 --- a/test/sip/user.c +++ b/test/sip/user.c @@ -7,6 +7,13 @@ #include "sipsrv.h" +struct user { + struct le he; + uint8_t ha1[MD5_SIZE]; + char *name; +}; + + static void destructor(void *arg) { struct user *usr = arg; @@ -71,3 +78,9 @@ struct user *user_find(struct hash *ht, const struct pl *name) return NULL; } + + +const uint8_t *user_ha1(const struct user *usr) +{ + return usr ? usr->ha1 : NULL; +} |