diff options
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; +} |