void submitRequest(AuthUserRequest::Pointer auth_user_request, RH * handler, void *data);
bool valid() const;
-
+
/** Update the cached password for a username. */
void updateCached(User *from);
virtual int32_t ttl() const;
digest_nonce_h *nonce = static_cast<digest_nonce_h *>(link->data);
if (nonce->flags.valid && nonce->noncedata.creationtime > latest_nonce)
latest_nonce = nonce->noncedata.creationtime;
-
+
link = link->next;
}
if (latest_nonce == -1)
return min(-1, global_ttl);
-
+
int32_t nonce_ttl = latest_nonce - current_time.tv_sec + static_cast<Config*>(Auth::Config::Find("digest"))->noncemaxduration;
return min(nonce_ttl, global_ttl);