Lines Matching +defs:diff +defs:id
299 * Trys to find the prompt with the lookingfor id in the prompt list
308 for (prompt = *promptlist; prompt->id != SASL_CB_LIST_END; ++prompt) {
309 if (prompt->id==lookingfor)
318 * Retrieve the simple string given by the callback id.
320 int _plug_get_simple(const sasl_utils_t *utils, unsigned int id, int required,
332 prompt = _plug_find_prompt(prompt_need, id);
346 ret = utils->getcallback(utils->conn, id, (sasl_callback_ft *)&simple_cb, &simple_context);
352 ret = simple_cb(simple_context, id, result, NULL);
425 * Retrieve the string given by the challenge prompt id.
427 int _plug_challenge_prompt(const sasl_utils_t *utils, unsigned int id,
439 prompt = _plug_find_prompt(prompt_need, id);
453 ret = utils->getcallback(utils->conn, id,
457 ret = chalprompt_cb(chalprompt_context, id,
555 (prompts)->id = SASL_CB_USER;
564 (prompts)->id = SASL_CB_AUTHNAME;
573 (prompts)->id = SASL_CB_PASS;
582 (prompts)->id = SASL_CB_ECHOPROMPT;
591 (prompts)->id = SASL_CB_GETREALM;
600 (prompts)->id = SASL_CB_LIST_END;
633 unsigned diff;
677 diff = text->size - text->cursize; /* bytes needed for full packet */
679 if (inputlen < diff) { /* not a complete packet, need more input */
686 memcpy(text->buffer + text->cursize, input, diff);
687 input += diff;
688 inputlen -= diff;