Lines Matching refs:text

89     server_context_t *text;
92 text = sparams->utils->malloc(sizeof(server_context_t));
93 if (text == NULL) {
98 memset(text, 0, sizeof(server_context_t));
100 text->state = 1;
102 *conn_context = text;
118 server_context_t *text = (server_context_t *) conn_context;
123 switch (text->state) {
126 text->state = 2;
153 text->username =
155 if (!text->username) {
160 strncpy(text->username, clientin, clientinlen);
161 text->username_len = clientinlen;
162 text->username[clientinlen] = '\0';
168 text->state = 3;
203 result = params->canon_user(params->utils->conn, text->username,
204 text->username_len,
246 "Invalid LOGIN server step %d\n", text->state);
256 server_context_t *text = (server_context_t *) conn_context;
258 if (!text) return;
260 if (text->username) utils->free(text->username);
262 utils->free(text);
319 client_context_t *text;
322 text = params->utils->malloc(sizeof(client_context_t));
323 if (text == NULL) {
328 memset(text, 0, sizeof(client_context_t));
330 text->state = 1;
332 *conn_context = text;
346 client_context_t *text = (client_context_t *) conn_context;
351 switch (text->state) {
383 if (text->password == NULL) {
384 pass_result = _plug_get_password(params->utils, &text->password,
385 &text->free_password, prompt_need);
402 _plug_make_prompts(params->utils, &text->h, prompt_need,
427 if (!text->password) {
456 text->state = 2;
479 if (clientoutlen) *clientoutlen = text->password->len;
480 *clientout = (char *)text->password->data;
496 "Invalid LOGIN client step %d\n", text->state);
506 client_context_t *text = (client_context_t *) conn_context;
508 if (!text) return;
511 if (text->free_password) _plug_free_secret(utils, &(text->password));
513 convert_prompt(utils, &text->h, NULL);
516 utils->free(text);