Lines Matching refs:line
35 static const char *reply_line_hide_pass(const char *line)
40 if (strstr(line, "pass") == NULL)
41 return line;
43 newline = t_str_new(strlen(line));
45 const char *const *fields = t_strsplit(line, "\t");
169 auth_line_hide_pass(struct auth_client_connection *conn, const char *line)
173 p = strstr(line, "\tresp=");
175 return line;
179 return t_strconcat(line, AUTH_DEBUG_SENSITIVE_SUFFIX, NULL);
182 return t_strconcat(t_strdup_until(line, p), PASSWORD_HIDDEN_STR,
187 cont_line_hide_pass(struct auth_client_connection *conn, const char *line)
192 return t_strconcat(line, AUTH_DEBUG_SENSITIVE_SUFFIX, NULL);
194 p = strchr(line, '\t');
196 return line;
198 return t_strconcat(t_strdup_until(line, p), PASSWORD_HIDDEN_STR, NULL);
202 auth_client_cancel(struct auth_client_connection *conn, const char *line)
206 if (str_to_uint(line, &client_id) < 0) {
216 auth_client_handle_line(struct auth_client_connection *conn, const char *line)
218 if (strncmp(line, "AUTH\t", 5) == 0) {
221 auth_line_hide_pass(conn, line));
224 line + 5);
226 if (strncmp(line, "CONT\t", 5) == 0) {
229 cont_line_hide_pass(conn, line));
232 line + 5);
234 if (strncmp(line, "CANCEL\t", 7) == 0) {
236 i_debug("client in: %s", line);
237 return auth_client_cancel(conn, line + 7);
241 str_sanitize(line, 80));
247 char *line;
267 line = i_stream_next_line(conn->input);
268 if (line == NULL)
275 /* split the version line */
276 if (strncmp(line, "VERSION\t", 8) != 0 ||
277 str_parse_uint(line + 8, &vmajor, &p) < 0 ||
280 "sent invalid VERSION line: %s", line);
297 if (strncmp(line, "CPID\t", 5) == 0) {
298 if (!auth_client_input_cpid(conn, line + 5)) {
305 str_sanitize(line, 80));
312 while ((line = i_stream_next_line(conn->input)) != NULL) {
314 ret = auth_client_handle_line(conn, line);
315 safe_memset(line, 0, strlen(line));