curl/tests/libtest
Matthias Gatto 29c4aa00a1
aws_sigv4: fix header computation
Handle canonical headers and signed headers creation as explained here:
https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html

The algo tells that signed and canonical must contain at last host and
x-amz-date.

So we check whatever thoses are present in the curl http headers list.
If they are, we use the one enter by curl user, otherwise we generate
them.  then we to lower, and remove space from each http headers plus
host and x-amz-date, then sort them all by alphabetical order.

This patch also fix a bug with host header, which was ignoring the port.

Closes #7966
2022-10-11 14:33:46 +02:00
..
.checksrc checksrc: ban gmtime/localtime 2020-07-28 23:51:17 +02:00
.gitignore copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
chkdecimalpoint.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
chkhostname.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
CMakeLists.txt copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
first.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib500.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib501.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib502.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib503.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib504.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib505.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib506.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib507.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib508.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib509.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib510.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib511.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib512.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib513.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib514.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib515.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib516.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib517.c lib517: fix C89 constant signedness 2022-09-22 23:08:08 +02:00
lib518.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib519.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib520.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib521.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib523.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib524.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib525.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib526.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib530.c lib530: simplify realloc failure exit path 2022-08-30 15:38:20 +02:00
lib533.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib537.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib539.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib540.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib541.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib542.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib543.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib544.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib547.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib549.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib552.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib553.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib554.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib555.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib556.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib557.c config: remove the check for and use of SIZEOF_SHORT 2022-08-11 09:07:06 +02:00
lib558.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib559.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib560.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib562.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib564.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib566.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib567.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib568.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib569.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib570.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib571.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib572.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib573.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib574.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib575.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib576.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib578.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib579.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib582.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib583.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib586.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib589.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib590.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib591.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib597.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib598.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib599.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib643.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib650.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib651.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib652.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib653.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib654.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib655.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib658.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib659.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib661.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib666.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib667.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib668.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib670.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib674.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib676.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib677.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib678.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1156.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1500.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1501.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1502.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1506.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1507.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1508.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1509.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1510.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1511.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1512.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1513.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1514.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1515.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1517.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1518.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1520.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1522.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1523.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib1525.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1526.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1527.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1528.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1529.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1530.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1531.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1532.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib1533.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib1534.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib1535.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib1536.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib1537.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1538.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1540.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1541.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1542.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1550.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1551.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1552.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1553.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1554.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1555.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib1556.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1557.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1558.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib1559.c tests: several enumerated type cleanups 2022-07-23 13:39:29 +02:00
lib1560.c urlapi: reject more bad characters from the host name field 2022-09-28 08:22:42 +02:00
lib1564.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1565.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1567.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1568.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1569.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1591.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1592.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1593.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1594.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1597.c lib1597: make it C89-compliant again 2022-09-17 17:26:43 +02:00
lib1900.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1905.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1906.c misc: spelling fixes 2022-08-31 14:31:01 +00:00
lib1907.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1908.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1910.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1911.c misc: null-terminate 2022-09-17 23:19:29 +02:00
lib1912.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1913.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1915.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1916.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1918.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1919.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1933.c aws_sigv4: fix header computation 2022-10-11 14:33:46 +02:00
lib1934.c aws_sigv4: fix header computation 2022-10-11 14:33:46 +02:00
lib1935.c aws_sigv4: fix header computation 2022-10-11 14:33:46 +02:00
lib1936.c aws_sigv4: fix header computation 2022-10-11 14:33:46 +02:00
lib1937.c aws_sigv4: fix header computation 2022-10-11 14:33:46 +02:00
lib1938.c aws_sigv4: fix header computation 2022-10-11 14:33:46 +02:00
lib1939.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1940.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1945.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib1947.c headers: reset the requests counter at transfer start 2022-09-09 14:46:06 +02:00
lib1948.c test1948: verify PUT + POST reusing the same handle 2022-09-15 23:44:15 +02:00
lib1955.c aws_sigv4: fix header computation 2022-10-11 14:33:46 +02:00
lib2301.c websockets: remodeled API to support 63 bit frame sizes 2022-10-07 12:50:58 +02:00
lib2302.c websockets: remodeled API to support 63 bit frame sizes 2022-10-07 12:50:58 +02:00
lib3010.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib3025.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
lib3026.c test3026: add support for Windows using native Win32 threads 2022-07-25 21:24:57 +02:00
lib3027.c ftp: ignore a 550 response to MDTM 2022-09-07 10:26:55 +02:00
libauthretry.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
libntlmconnect.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
libprereq.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
Makefile.am copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
Makefile.inc aws_sigv4: fix header computation 2022-10-11 14:33:46 +02:00
mk-lib1521.pl copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
notexists.pl copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
sethostname.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
sethostname.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
stub_gssapi.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
stub_gssapi.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
test307.pl copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
test610.pl copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
test613.pl copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
test1013.pl copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
test1022.pl copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
test.h tests: add websockets tests 2022-09-09 15:11:14 +02:00
testtrace.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
testtrace.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
testutil.c copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
testutil.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00