search for: mech_login_auth_free

Displaying 1 result from an estimated 1 matches for "mech_login_auth_free".

2004 Jul 22
1
[PATCH] add LOGIN authentication mechanism
...] = "Username:"; + + mech_init_auth_client_reply(&reply); + reply.id = request->id; + reply.result = AUTH_CLIENT_RESULT_CONTINUE; + + reply.reply_idx = 0; + reply.data_size = strlen(prompt1); + callback(&reply, prompt1, auth_request->conn); + + return TRUE; +} + +static void mech_login_auth_free(struct auth_request *auth_request) +{ + pool_unref(auth_request->pool); +} + +static struct auth_request *mech_login_auth_new(void) +{ + struct auth_request *auth; + pool_t pool; + + pool = pool_alloconly_create("login_auth_request", 256); + auth = p_new(pool, struct auth_request, 1);...