SSLClient
v1.4.4
Add TLS 1.2 functionality to any network library.
|
Go to the source code of this file.
#define __TIME_DAYS__ CONV_STR2DEC_2(__DATE__, 4) |
#define __TIME_HOURS__ CONV_STR2DEC_2(__TIME__, 0) |
#define __TIME_MINUTES__ CONV_STR2DEC_2(__TIME__, 3) |
#define __TIME_MONTH__ GET_MONTH(__DATE__, 0) |
#define __TIME_SECONDS__ CONV_STR2DEC_2(__TIME__, 6) |
#define __TIME_YEARS__ CONV_STR2DEC_4(__DATE__, 7) |
#define _UNIX_TIMESTAMP | ( | year, | |
month, | |||
day, | |||
hour, | |||
minute, | |||
second | |||
) |
#define _UNIX_TIMESTAMP_FDAY | ( | year | ) |
#define _UNIX_TIMESTAMP_YDAY | ( | year, | |
month, | |||
day | |||
) |
#define CONV_STR2DEC_1 | ( | str, | |
i | |||
) | (str[i]>'0'?str[i]-'0':0) |
#define CONV_STR2DEC_2 | ( | str, | |
i | |||
) | (CONV_STR2DEC_1(str, i)*10 + str[i+1]-'0') |
#define CONV_STR2DEC_3 | ( | str, | |
i | |||
) | (CONV_STR2DEC_2(str, i)*10 + str[i+2]-'0') |
#define CONV_STR2DEC_4 | ( | str, | |
i | |||
) | (CONV_STR2DEC_3(str, i)*10 + str[i+3]-'0') |
#define GET_MONTH | ( | str, | |
i | |||
) |
#define PST_OFFSET (8UL) |
#define SEC_PER_DAY (86400UL) |
#define SEC_PER_HOUR (3600UL) |
#define SEC_PER_MIN (60UL) |
#define SEC_PER_YEAR (SEC_PER_DAY*365) |
#define UNIX_TIMESTAMP _UNIX_TIMESTAMP(__TIME_YEARS__, __TIME_MONTH__, __TIME_DAYS__, __TIME_HOURS__, __TIME_MINUTES__, __TIME_SECONDS__) |
#define UNIX_TIMESTAMP_UTC (UNIX_TIMESTAMP + (PST_OFFSET*SEC_PER_HOUR)) |