Lines Matching refs:line
43 char *line, *username;
53 static void auth_input_line(const char *line, void *context);
80 const char *line;
82 while (!bail && (line = i_stream_read_next_line(conn->input)) != NULL) T_BEGIN {
84 if (!version_string_verify(line, "director-authreply-client",
86 i_error("authreply client sent invalid handshake: %s", line);
93 auth_input_line(line, conn);
111 login_connection_send_line(struct login_connection *conn, const char *line)
118 iov[0].iov_base = line;
119 iov[0].iov_len = strlen(line);
142 const char *line, *line_params;
146 if (strncmp(request->line, "OK\t", 3) == 0)
147 line_params = request->line + 3;
148 else if (strncmp(request->line, "PASS\t", 5) == 0)
149 line_params = request->line + 5;
151 i_panic("BUG: Unexpected line: %s", request->line);
155 line = t_strconcat("FAIL\t", t_strcut(line_params, '\t'),
159 line = request->line;
165 str_append(str, request->line);
176 line = str_c(str);
178 login_connection_send_line(request->conn, line);
182 i_free(request->line);
186 static void auth_input_line(const char *line, void *context)
193 if (line == NULL) {
199 strncmp(line, "OK\t", 3) == 0)
200 line_params = line + 3;
202 strncmp(line, "PASS\t", 5) == 0)
203 line_params = line + 5;
205 login_connection_send_line(conn, line);
247 login_connection_send_line(conn, line);
261 request->line = i_strdup(line);