Lines Matching defs:utils

92     text = sparams->utils->malloc(sizeof(server_context_t));
94 MEMERROR( sparams->utils );
144 params->utils->log(params->utils->conn, SASL_LOG_ERR,
147 SETERROR(params->utils, "username too long (>1024 characters)");
154 params->utils->malloc(sizeof(sasl_secret_t) + clientinlen + 1);
156 MEMERROR( params->utils );
180 params->utils->log(params->utils->conn, SASL_LOG_ERR,
183 SETERROR(params->utils,
191 params->utils->malloc(sizeof(sasl_secret_t) + clientinlen + 1);
193 MEMERROR(params->utils);
203 result = params->canon_user(params->utils->conn, text->username,
207 _plug_free_secret(params->utils, &password);
212 result = params->utils->checkpass(params->utils->conn,
217 _plug_free_secret(params->utils, &password);
222 params->transition(params->utils->conn,
226 _plug_free_secret(params->utils, &password);
245 params->utils->log(NULL, SASL_LOG_ERR,
254 const sasl_utils_t *utils)
260 if (text->username) utils->free(text->username);
262 utils->free(text);
285 int login_server_plug_init(sasl_utils_t *utils,
292 SETERROR(utils, "LOGIN version mismatch");
322 text = params->utils->malloc(sizeof(client_context_t));
324 MEMERROR(params->utils);
362 params->utils->log(params->utils->conn, SASL_LOG_ERR,
365 SETERROR( params->utils, "SSF requested of LOGIN plugin");
376 auth_result = _plug_get_authid(params->utils, &user, prompt_need);
384 pass_result = _plug_get_password(params->utils, &text->password,
393 params->utils->free(*prompt_need);
402 _plug_make_prompts(params->utils, &text->h, prompt_need,
412 _plug_make_prompts(params->utils, prompt_need,
428 PARAMERROR(params->utils);
432 result = params->canon_user(params->utils->conn, user, 0,
439 params->utils->log(params->utils->conn, SASL_LOG_ERR,
442 SETERROR( params->utils,
449 PARAMERROR( params->utils );
465 params->utils->log(params->utils->conn, SASL_LOG_ERR,
468 SETERROR( params->utils,
475 PARAMERROR(params->utils);
495 params->utils->log(NULL, SASL_LOG_ERR,
504 const sasl_utils_t *utils)
511 if (text->free_password) _plug_free_secret(utils, &(text->password));
513 convert_prompt(utils, &text->h, NULL);
516 utils->free(text);
538 int login_client_plug_init(sasl_utils_t *utils,
545 SETERROR(utils, "Version mismatch in LOGIN");