Lines Matching defs:auth
9 #include "master-auth.h"
18 struct master_auth *auth;
46 struct master_auth *auth;
49 pool = pool_alloconly_create("master auth", 1024);
50 auth = p_new(pool, struct master_auth, 1);
51 auth->pool = pool;
52 auth->service = service;
53 auth->default_path = p_strdup(pool, path);
54 hash_table_create_direct(&auth->connections, pool, 0);
55 return auth;
66 hash_table_remove(conn->auth->connections,
85 struct master_auth *auth = *_auth;
92 iter = hash_table_iterate_init(auth->connections);
93 while (hash_table_iterate(iter, auth->connections, &key, &conn)) {
98 hash_table_destroy(&auth->connections);
99 pool_unref(&auth->pool);
151 void master_auth_request_full(struct master_auth *auth,
166 conn->auth = auth;
170 i_strdup(params->socket_path) : i_strdup(auth->default_path);
173 req.tag = ++auth->tag_counter;
175 req.tag = ++auth->tag_counter;
178 i_fatal("fstat(auth dest fd) failed: %m");
214 i_assert(hash_table_lookup(auth->connections, POINTER_CAST(req.tag)) == NULL);
215 hash_table_insert(auth->connections, POINTER_CAST(req.tag), conn);
219 void master_auth_request(struct master_auth *auth, int fd,
232 master_auth_request_full(auth, ¶ms, callback, context, tag_r);
235 void master_auth_request_abort(struct master_auth *auth, unsigned int tag)
239 conn = hash_table_lookup(auth->connections, POINTER_CAST(tag));