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/sipsrv.h | |
parent | a9da88169dbfbc3aedc72770c9e708dbfce0effb (diff) |
test: make 'struct user' opaque
avoid conflict with struct user defined in <sys/user.h>
Diffstat (limited to 'test/sip/sipsrv.h')
-rw-r--r-- | test/sip/sipsrv.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/sip/sipsrv.h b/test/sip/sipsrv.h index a4b8bbf..1f1076c 100644 --- a/test/sip/sipsrv.h +++ b/test/sip/sipsrv.h @@ -111,12 +111,9 @@ void location_rollback(struct list *locl); * User */ -struct user { - struct le he; - uint8_t ha1[MD5_SIZE]; - char *name; -}; +struct user; int user_add(struct hash *ht, const char *username, const char *password, const char *realm); struct user *user_find(struct hash *ht, const struct pl *name); +const uint8_t *user_ha1(const struct user *usr); |