Lines Matching defs:auth_request
16 static HASH_TABLE(char *, struct auth_request *) otp_lock_table;
27 bool otp_try_lock(struct auth_request *auth_request)
29 if (hash_table_lookup(otp_lock_table, auth_request->user) != NULL)
32 hash_table_insert(otp_lock_table, auth_request->user, auth_request);
36 void otp_unlock(struct auth_request *auth_request)
39 (struct otp_auth_request *)auth_request;
44 hash_table_remove(otp_lock_table, auth_request->user);
49 struct auth_request *auth_request)
52 auth_request_success(auth_request, "", 0);
54 auth_request_internal_failure(auth_request);
55 otp_unlock(auth_request);
58 otp_unlock(auth_request);
61 void mech_otp_skey_auth_free(struct auth_request *auth_request)
63 otp_unlock(auth_request);
65 pool_unref(&auth_request->pool);