curl/tests/libtest
Patrick Monnerat e44ddfd477 mime: clone mime tree upon easy handle duplication.
A mime tree attached to an easy handle using CURLOPT_MIMEPOST is
strongly bound to the handle: there is a pointer to the easy handle in
each item of the mime tree and following the parent pointer list
of mime items ends in a dummy part stored within the handle.

Because of this binding, a mime tree cannot be shared between different
easy handles, thus it needs to be cloned upon easy handle duplication.

There is no way for the caller to get the duplicated mime tree
handle: it is then set to be automatically destroyed upon freeing the
new easy handle.

New test 654 checks proper mime structure duplication/release.

Add a warning note in curl_mime_data_cb() documentation about sharing
user data between duplicated handles.

Closes #2235
2018-01-14 19:43:12 +01:00
..
.gitignore
chkhostname.c
CMakeLists.txt
first.c
lib500.c
lib501.c
lib502.c
lib503.c
lib504.c
lib505.c
lib506.c
lib507.c
lib508.c
lib509.c
lib510.c
lib511.c
lib512.c
lib513.c code style: use spaces around equals signs 2017-09-11 09:29:50 +02:00
lib514.c
lib515.c
lib516.c
lib517.c code style: use spaces around equals signs 2017-09-11 09:29:50 +02:00
lib518.c
lib519.c checksrc: warn for assignments within if() expressions 2016-12-14 01:29:44 +01:00
lib520.c
lib521.c
lib523.c checksrc: warn for assignments within if() expressions 2016-12-14 01:29:44 +01:00
lib524.c
lib525.c
lib526.c
lib530.c
lib533.c
lib536.c
lib537.c
lib539.c
lib540.c
lib541.c
lib542.c
lib543.c tests: Make sure libtests call curl_global_cleanup() 2017-08-19 21:42:47 +02:00
lib544.c
lib547.c code style: use spaces around equals signs 2017-09-11 09:29:50 +02:00
lib549.c
lib552.c
lib553.c
lib554.c
lib555.c code style: use spaces around pluses 2017-09-11 09:29:50 +02:00
lib556.c
lib557.c
lib558.c
lib559.c
lib560.c
lib562.c
lib564.c code style: use spaces around pluses 2017-09-11 09:29:50 +02:00
lib566.c
lib567.c
lib568.c
lib569.c code style: use spaces around equals signs 2017-09-11 09:29:50 +02:00
lib570.c
lib571.c
lib572.c
lib573.c
lib574.c
lib575.c
lib576.c
lib578.c
lib579.c code style: use spaces around equals signs 2017-09-11 09:29:50 +02:00
lib582.c
lib583.c
lib586.c
lib589.c
lib590.c
lib591.c
lib597.c
lib598.c
lib599.c
lib643.c
lib650.c
lib651.c test651: curl_formadd with huge COPYCONTENTS 2017-10-13 07:55:47 +02:00
lib652.c
lib653.c
lib654.c mime: clone mime tree upon easy handle duplication. 2018-01-14 19:43:12 +01:00
lib1500.c
lib1501.c
lib1502.c
lib1506.c
lib1507.c
lib1508.c
lib1509.c
lib1510.c
lib1511.c
lib1512.c
lib1513.c
lib1514.c
lib1515.c
lib1517.c
lib1520.c
lib1525.c
lib1526.c
lib1527.c
lib1528.c
lib1529.c
lib1530.c
lib1531.c
lib1532.c
lib1533.c
lib1534.c
lib1535.c
lib1536.c
lib1537.c
lib1538.c
lib1540.c
lib1550.c
lib1551.c
lib1552.c
lib1553.c
lib1554.c
lib1900.c
libauthretry.c
libntlmconnect.c
Makefile.am
Makefile.inc mime: clone mime tree upon easy handle duplication. 2018-01-14 19:43:12 +01:00
mk-lib1521.pl scripts: allow all perl scripts to be run directly 2018-01-07 15:42:11 -05:00
notexists.pl
sethostname.c
sethostname.h
stub_gssapi.c
stub_gssapi.h
test75.pl
test307.pl
test610.pl
test613.pl
test1013.pl
test1022.pl
test.h
testtrace.c
testtrace.h
testutil.c
testutil.h