Lines Matching refs:dateline
217 handle_date_line(const char *dateline, uint32_t *result) in handle_date_line() argument
238 if (strncmp("\r\nDate: ", dateline, 8)) in handle_date_line()
241 dateline += 8; in handle_date_line()
242 if (strlen(dateline) > MAX_DATE_LINE_LEN) { in handle_date_line()
246 verb("V: The alleged date is <%s>", sanitize_string(dateline)); in handle_date_line()
248 while (*dateline == ' ') in handle_date_line()
249 ++dateline; in handle_date_line()
250 while (*dateline && *dateline != ' ') in handle_date_line()
251 ++dateline; in handle_date_line()
252 while (*dateline == ' ') in handle_date_line()
253 ++dateline; in handle_date_line()
255 if (sscanf(dateline, "%d %3s %d %d:%d:%d", in handle_date_line()
257 sscanf(dateline, "%d-%3s-%d %d:%d:%d", in handle_date_line()
259 sscanf(dateline, "%3s %d %d:%d:%d %d", in handle_date_line()
306 char *dateline, *endofline; in read_http_date_from_ssl() local
316 dateline = memmem(buf, buf_len, "\r\nDate: ", 8); in read_http_date_from_ssl()
317 if (NULL == dateline) in read_http_date_from_ssl()
320 endofline = memmem(dateline+2, buf_len - (dateline-buf+2), "\r\n", 2); in read_http_date_from_ssl()
325 return handle_date_line(dateline, result); in read_http_date_from_ssl()