curl/tests/libtest
Daniel Stenberg 54f6d836d8
hsts: handle unlimited expiry
When setting a blank expire string, meaning unlimited, curl would pass
TIME_T_MAX to getime_r() when creating the output, while on 64 bit
systems such a large value cannot be convetered to a tm struct making
curl to exit the loop with an error instead. It can't be converted
because the year it would represent doesn't fit in the 'int tm_year'
field!

Starting now, unlimited expiry is instead handled differently by using a
human readable expiry date spelled out as "unlimited" instead of trying
to use a distant actual date.

Test 1660 and 1915 have been updated to help verify this change.

Reported-by: Jonathan Cardoso
Fixes #7720
Closes #7721
2021-09-15 14:37:36 +02:00
..
.checksrc
.gitignore
chkdecimalpoint.c
chkhostname.c
CMakeLists.txt copyright: update copyright year ranges to 2021 2021-05-26 08:18:11 +02:00
first.c
lib500.c test500: adjust to work with hyper mode 2021-06-07 23:54:54 +02:00
lib501.c
lib502.c
lib503.c
lib504.c
lib505.c
lib506.c
lib507.c
lib508.c
lib509.c
lib510.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib511.c
lib512.c
lib513.c
lib514.c
lib515.c
lib516.c
lib517.c
lib518.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib519.c
lib520.c
lib521.c
lib523.c
lib524.c
lib525.c
lib526.c
lib533.c
lib537.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib539.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib540.c
lib541.c
lib542.c
lib543.c tests: reduce variable scopes 2021-02-10 16:47:09 +01:00
lib544.c
lib547.c
lib549.c
lib552.c
lib553.c
lib554.c
lib555.c
lib556.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib557.c msnprintf: return number of printed characters excluding null byte 2021-07-08 10:05:39 +02:00
lib558.c
lib559.c
lib560.c
lib562.c
lib564.c
lib566.c test566: adjust to work with hyper mode 2021-06-10 08:42:13 +02:00
lib567.c
lib568.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib569.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib570.c
lib571.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib572.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib573.c
lib574.c
lib575.c
lib576.c
lib578.c
lib579.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib582.c
lib583.c
lib586.c
lib589.c
lib590.c
lib591.c
lib597.c
lib598.c
lib599.c test599: adjusted to work in hyper mode 2021-06-10 08:42:19 +02:00
lib643.c
lib650.c
lib651.c
lib652.c
lib653.c
lib654.c
lib655.c
lib658.c
lib659.c
lib661.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib666.c
lib667.c
lib668.c
lib670.c
lib674.c
lib676.c cookie: CURLOPT_COOKIEFILE set to NULL switches off cookies 2021-04-14 23:09:36 +02:00
lib677.c lib677: make it survive torture testing 2021-06-27 23:20:18 +02:00
lib678.c SSL: support in-memory CA certs for some backends 2021-05-05 02:29:16 -04:00
lib1156.c http: make 416 not fail with resume + CURLOPT_FAILONERRROR 2021-03-17 08:26:46 +01:00
lib1500.c
lib1501.c
lib1502.c
lib1506.c
lib1507.c
lib1508.c
lib1509.c
lib1510.c
lib1511.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1512.c
lib1513.c
lib1514.c
lib1515.c
lib1517.c
lib1518.c test1518: adjusted to work with hyper 2021-07-01 14:25:57 +02:00
lib1520.c
lib1522.c
lib1523.c
lib1525.c
lib1526.c
lib1527.c
lib1528.c
lib1529.c
lib1530.c
lib1531.c
lib1532.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1533.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1534.c
lib1535.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1536.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1537.c copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00
lib1538.c
lib1540.c
lib1541.c
lib1550.c
lib1551.c
lib1552.c
lib1553.c
lib1554.c
lib1555.c
lib1556.c
lib1557.c
lib1558.c
lib1559.c
lib1560.c curl_url_set: reject spaces in URLs w/o CURLU_ALLOW_SPACE 2021-06-15 10:49:49 +02:00
lib1564.c copyright: update copyright year ranges to 2021 2021-05-26 08:18:11 +02:00
lib1565.c misc: update incorrect copyright year ranges 2021-08-16 11:21:47 +02:00
lib1567.c
lib1568.c
lib1569.c
lib1591.c
lib1592.c
lib1593.c
lib1594.c test1594/1595/1596: fix to work in hyper mode 2021-06-10 08:42:44 +02:00
lib1900.c
lib1905.c
lib1906.c
lib1907.c
lib1908.c
lib1910.c
lib1911.c
lib1912.c
lib1913.c
lib1915.c hsts: handle unlimited expiry 2021-09-15 14:37:36 +02:00
lib1916.c
lib1918.c
lib1933.c
lib1934.c
lib1935.c
lib1936.c
lib3010.c test3010: work with hyper mode 2021-06-10 08:42:50 +02:00
libauthretry.c
libntlmconnect.c
Makefile.am
Makefile.inc test677: IMAP CONNECT_ONLY, custom command and then exit 2021-06-24 09:07:40 +02:00
mk-lib1521.pl
notexists.pl
sethostname.c
sethostname.h
stub_gssapi.c
stub_gssapi.h
test307.pl
test610.pl
test613.pl
test1013.pl metalink: remove 2021-06-07 08:14:25 +02:00
test1022.pl
test.h
testtrace.c
testtrace.h
testutil.c misc: update incorrect copyright year ranges 2021-08-16 11:21:47 +02:00
testutil.h