-int update_authfile(const char *fn, const char *tokenid, const char *id,
- const char *password, const char *nonce,
+struct _auth_obj authfile(const char *tokenid,
+ const char *userid, const char *password,
+ void (*update_nonce)(char *nonce, const int nonsize),