comparison src/core/ngx_parse_time.h @ 6180:8b6fa4842133

Moved ngx_http_parse_time() to core, renamed accordingly. The function is now called ngx_parse_http_time(), and can be used by any code to parse HTTP-style date and time. In particular, it will be used for OCSP stapling. For compatibility, a macro to map ngx_http_parse_time() to the new name provided for a while.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 11 Jun 2015 20:42:31 +0300
parents
children
comparison
equal deleted inserted replaced
6179:c61210e2e081 6180:8b6fa4842133
1
2 /*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Nginx, Inc.
5 */
6
7
8 #ifndef _NGX_PARSE_TIME_H_INCLUDED_
9 #define _NGX_PARSE_TIME_H_INCLUDED_
10
11
12 #include <ngx_config.h>
13 #include <ngx_core.h>
14
15
16 time_t ngx_parse_http_time(u_char *value, size_t len);
17
18 /* compatibility */
19 #define ngx_http_parse_time(value, len) ngx_parse_http_time(value, len)
20
21
22 #endif /* _NGX_PARSE_TIME_H_INCLUDED_ */