Compare commits
2277 Commits
curl-7_33_
...
curl-7_41_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff837422ee | ||
|
|
2e880e29bf | ||
|
|
ffc2aeec6e | ||
|
|
b3bcdaf01a | ||
|
|
03fa576833 | ||
|
|
0c050662b7 | ||
|
|
da39f380a4 | ||
|
|
e08a12dab1 | ||
|
|
92835ca5d8 | ||
|
|
5d87b1f22c | ||
|
|
5e4395eab8 | ||
|
|
689061e3f2 | ||
|
|
90314100e0 | ||
|
|
20112ed846 | ||
|
|
63b4b8c7bd | ||
|
|
633b3895d7 | ||
|
|
b723ec9905 | ||
|
|
ec80b1f414 | ||
|
|
676ac46ff5 | ||
|
|
31c8f8ac11 | ||
|
|
b1c7fc050b | ||
|
|
fce3f8f487 | ||
|
|
6f89f86c3d | ||
|
|
49655a6822 | ||
|
|
1385199e80 | ||
|
|
aba2c4dca2 | ||
|
|
c1878e8f52 | ||
|
|
ab85ac5eda | ||
|
|
d771b44e53 | ||
|
|
7eebf9a3fb | ||
|
|
20c727ec4c | ||
|
|
9956ef2d33 | ||
|
|
0daf1ef729 | ||
|
|
499024d208 | ||
|
|
761d5166af | ||
|
|
05792d6936 | ||
|
|
2a15e594ef | ||
|
|
d557da5d79 | ||
|
|
600ccb2237 | ||
|
|
45b9b62de4 | ||
|
|
d37b58274d | ||
|
|
0d41c3e46b | ||
|
|
57d6d253a1 | ||
|
|
7f1d76f7ee | ||
|
|
211d5329f4 | ||
|
|
cfc6d460cb | ||
|
|
0ebe2c15d1 | ||
|
|
28c9e1edf4 | ||
|
|
b3cbf4500d | ||
|
|
83bb07027d | ||
|
|
6b68aa989c | ||
|
|
8f027aa0bf | ||
|
|
ac100f1624 | ||
|
|
f91a7bc992 | ||
|
|
859a82a85c | ||
|
|
8f369c53cf | ||
|
|
6f494c5e34 | ||
|
|
0a7182f6ad | ||
|
|
ae9963776a | ||
|
|
7b5348415f | ||
|
|
c49e228916 | ||
|
|
957fcd9049 | ||
|
|
f826bf37ea | ||
|
|
564b7b6dd0 | ||
|
|
ca51ac4017 | ||
|
|
4161624e94 | ||
|
|
04f246f8c7 | ||
|
|
8ca3b05624 | ||
|
|
6fdc8651bd | ||
|
|
8cc70db2db | ||
|
|
c469369b86 | ||
|
|
58e39b4da5 | ||
|
|
300876a7a6 | ||
|
|
ef782d726e | ||
|
|
26d4e0ad4e | ||
|
|
e3558a551b | ||
|
|
595a66ce0f | ||
|
|
3cc9e9383b | ||
|
|
9d964e5477 | ||
|
|
153e9c0278 | ||
|
|
980ba2202c | ||
|
|
7b2012f262 | ||
|
|
ed9a4b9fc4 | ||
|
|
fe79f20957 | ||
|
|
0d24f64473 | ||
|
|
e1bb13c09f | ||
|
|
a268a804b7 | ||
|
|
5691325440 | ||
|
|
db6bcbd83f | ||
|
|
37824498a3 | ||
|
|
23c6f0a344 | ||
|
|
d1cf5d5706 | ||
|
|
e888e30476 | ||
|
|
3d5648f9ee | ||
|
|
12e45b8462 | ||
|
|
c260c9fad3 | ||
|
|
731e6a6662 | ||
|
|
eb748f159a | ||
|
|
d6c4695dcd | ||
|
|
261208d432 | ||
|
|
795f013006 | ||
|
|
71f8fdee81 | ||
|
|
6005b0d99c | ||
|
|
7a8b2885e2 | ||
|
|
79543caf90 | ||
|
|
e1ea18f90e | ||
|
|
5f09cbcdbd | ||
|
|
960b04e137 | ||
|
|
089783c838 | ||
|
|
be57f689b0 | ||
|
|
fca58f6212 | ||
|
|
2cc571f9e3 | ||
|
|
1cbc8fd3d1 | ||
|
|
9c4fa400cf | ||
|
|
b9fd757d03 | ||
|
|
3a9419f65a | ||
|
|
1d25acb038 | ||
|
|
5d5c78b47f | ||
|
|
8bb3443a21 | ||
|
|
30ef1a0779 | ||
|
|
81b98dafa1 | ||
|
|
47438daa60 | ||
|
|
36e6404228 | ||
|
|
930be07067 | ||
|
|
30eb6bbdc9 | ||
|
|
a2f8887b79 | ||
|
|
b2c01f02d5 | ||
|
|
c807ce73ed | ||
|
|
af8928a23b | ||
|
|
14a6cfaddb | ||
|
|
0b1f37e77c | ||
|
|
a4065ebf1c | ||
|
|
bd0c3b3c66 | ||
|
|
f46c6fbee0 | ||
|
|
f13669a375 | ||
|
|
3af90a6e19 | ||
|
|
5e113a18c5 | ||
|
|
5940e06f01 | ||
|
|
5c73cdef62 | ||
|
|
251a349055 | ||
|
|
5f09947d28 | ||
|
|
224cf1c274 | ||
|
|
bb12d44471 | ||
|
|
bcf07f8a4b | ||
|
|
cc28bc472e | ||
|
|
e9834808e9 | ||
|
|
710c38d7a4 | ||
|
|
d21b66835f | ||
|
|
4e58589b0e | ||
|
|
e6b4b4b66d | ||
|
|
355bf01c82 | ||
|
|
b4f13a4952 | ||
|
|
99e71e6a84 | ||
|
|
9a452ba3a1 | ||
|
|
659d252b6f | ||
|
|
c712fe01a9 | ||
|
|
5c0e66d632 | ||
|
|
acc8089bc2 | ||
|
|
34636fa47e | ||
|
|
003076e17c | ||
|
|
9ce2d70019 | ||
|
|
4ce22c607b | ||
|
|
3df8e78860 | ||
|
|
178bd7db34 | ||
|
|
f7d5ecec9c | ||
|
|
4e420600c1 | ||
|
|
9547954978 | ||
|
|
4626f31d0e | ||
|
|
c07857e063 | ||
|
|
39217edb12 | ||
|
|
241a67f73b | ||
|
|
ea93252ef1 | ||
|
|
f6b168de4c | ||
|
|
4113ad50e4 | ||
|
|
c37dcf0edb | ||
|
|
5359936d07 | ||
|
|
ea4f98dca6 | ||
|
|
f9b50910e0 | ||
|
|
84143dc57d | ||
|
|
747bad7c09 | ||
|
|
3a805c5cc1 | ||
|
|
7241527956 | ||
|
|
825b0c7968 | ||
|
|
2948954535 | ||
|
|
efb64fdf80 | ||
|
|
6416dc998b | ||
|
|
0f26148423 | ||
|
|
f460f12c9d | ||
|
|
23bb054129 | ||
|
|
d4b540f85a | ||
|
|
4967109ffc | ||
|
|
a68aa81320 | ||
|
|
0ea9381b7d | ||
|
|
1cb17b2a5d | ||
|
|
1dd57bd783 | ||
|
|
34f0bd110f | ||
|
|
a75ede4b9b | ||
|
|
a3daf542ad | ||
|
|
4bb5a351b2 | ||
|
|
43792592ca | ||
|
|
5fbcb9a1fa | ||
|
|
6e3af5424b | ||
|
|
7635577ad7 | ||
|
|
0df2ed85fd | ||
|
|
5eae12fc80 | ||
|
|
b40e37f93d | ||
|
|
ee0941a0b7 | ||
|
|
e86a6151f4 | ||
|
|
f4413ca65a | ||
|
|
7873f9bdbd | ||
|
|
920e684d40 | ||
|
|
81951d9874 | ||
|
|
4c8a053855 | ||
|
|
8a3c0fbed1 | ||
|
|
e9d0c7a6f3 | ||
|
|
56603e2770 | ||
|
|
89cce1e458 | ||
|
|
b4433a8ba6 | ||
|
|
1933f9d33c | ||
|
|
cfa0ac7aff | ||
|
|
cfc863869f | ||
|
|
4088721726 | ||
|
|
d8273e198c | ||
|
|
8f40145384 | ||
|
|
6e7904f9aa | ||
|
|
037cd0d991 | ||
|
|
6d79722d78 | ||
|
|
0d037cfdce | ||
|
|
9459ee99ae | ||
|
|
29726951b0 | ||
|
|
097fc121e6 | ||
|
|
325a64d8a2 | ||
|
|
e9e48a6ff2 | ||
|
|
2728caa613 | ||
|
|
0943045108 | ||
|
|
b235c29366 | ||
|
|
f0a9221897 | ||
|
|
fd281e9c4b | ||
|
|
e0d265d3eb | ||
|
|
98d37c5a0c | ||
|
|
e5a8a26bcb | ||
|
|
a9eadc9f91 | ||
|
|
193ba7b46e | ||
|
|
151ae59436 | ||
|
|
bde08d216c | ||
|
|
1abe65d928 | ||
|
|
b7f740f2fc | ||
|
|
cdc1cc22e7 | ||
|
|
fe43a662a2 | ||
|
|
1ac4db23f7 | ||
|
|
7f99e12e98 | ||
|
|
62a018762e | ||
|
|
6dd9c3909c | ||
|
|
6cb7b0c0ac | ||
|
|
38aaf6c380 | ||
|
|
ed4c0b53cc | ||
|
|
95f78b2b56 | ||
|
|
4ff5d32a6b | ||
|
|
ed16a1695f | ||
|
|
7c66ab5029 | ||
|
|
8830df8b66 | ||
|
|
a89ec793d0 | ||
|
|
ce2a80b482 | ||
|
|
93e6273b68 | ||
|
|
68cc1e0c77 | ||
|
|
2568928070 | ||
|
|
383a4d0990 | ||
|
|
0beccdf580 | ||
|
|
a4d9158509 | ||
|
|
8627618540 | ||
|
|
d9166028e5 | ||
|
|
6dae798824 | ||
|
|
577286e0e2 | ||
|
|
003dd2e7de | ||
|
|
03e206d18a | ||
|
|
2c5f346d3a | ||
|
|
f9cf3de70b | ||
|
|
6f1f5a7506 | ||
|
|
ed68159d19 | ||
|
|
0114889456 | ||
|
|
2c7f099253 | ||
|
|
ee9de01665 | ||
|
|
f2a5283cbc | ||
|
|
3e1625c787 | ||
|
|
e96d7f1df4 | ||
|
|
6a76d3eb53 | ||
|
|
3b7bf29385 | ||
|
|
a390329f60 | ||
|
|
14c3601583 | ||
|
|
9081014c2c | ||
|
|
759d049ae8 | ||
|
|
1befebc950 | ||
|
|
ae56df82c1 | ||
|
|
088b9b2a97 | ||
|
|
b0670ff12b | ||
|
|
9b61060ffc | ||
|
|
5590a3f179 | ||
|
|
7b3afc952f | ||
|
|
93227ddca5 | ||
|
|
cedf996073 | ||
|
|
dc19789444 | ||
|
|
64854c0364 | ||
|
|
d8efde07e5 | ||
|
|
2ffbd7afac | ||
|
|
8676ce68e3 | ||
|
|
91669584cf | ||
|
|
7fc1cbb640 | ||
|
|
b9950e3b33 | ||
|
|
b13923f0f7 | ||
|
|
212e3e26bc | ||
|
|
125f655131 | ||
|
|
c98b50753f | ||
|
|
96d3c9363f | ||
|
|
4d2c539b6c | ||
|
|
35fae251dd | ||
|
|
52a4d6b8ae | ||
|
|
18f58c437f | ||
|
|
2924dd6703 | ||
|
|
c0fc9066a9 | ||
|
|
bd7d7f4523 | ||
|
|
172963005a | ||
|
|
834608c39d | ||
|
|
157c9752d5 | ||
|
|
e98b7b1cb3 | ||
|
|
5f5814ca5e | ||
|
|
2ecce667a6 | ||
|
|
783b5c3b11 | ||
|
|
7dfbbae3d4 | ||
|
|
6291a16b20 | ||
|
|
24b30d259c | ||
|
|
82fdb87b27 | ||
|
|
97e90d7b89 | ||
|
|
10be4ec2c3 | ||
|
|
bd2231104b | ||
|
|
8a4ce7d0f5 | ||
|
|
f0ecdd04d3 | ||
|
|
2f5c70b2b0 | ||
|
|
f4b5f8cdf0 | ||
|
|
8ff3bb5000 | ||
|
|
1cc5194337 | ||
|
|
0da4524a22 | ||
|
|
664b9baf67 | ||
|
|
cd6c13c2b3 | ||
|
|
086ad79970 | ||
|
|
0e8158eabc | ||
|
|
f768be0a25 | ||
|
|
41f1f6e830 | ||
|
|
c3b85c12a9 | ||
|
|
fc32b81382 | ||
|
|
6ea4ee94f9 | ||
|
|
e63d18fbd1 | ||
|
|
145c263a4b | ||
|
|
680d5fd041 | ||
|
|
65d141e6da | ||
|
|
0d99cdbeed | ||
|
|
dca257f27e | ||
|
|
dcd484a238 | ||
|
|
090232ea19 | ||
|
|
526603ff05 | ||
|
|
eb88d778e7 | ||
|
|
2adf294602 | ||
|
|
e05de4f46d | ||
|
|
f5e9c636e8 | ||
|
|
ef91f04927 | ||
|
|
befe9a10b9 | ||
|
|
36d45eabc0 | ||
|
|
864f17d894 | ||
|
|
58b317c9da | ||
|
|
4bdb1ca8d6 | ||
|
|
d89285e8d6 | ||
|
|
e17220ffcb | ||
|
|
9b0b9f209e | ||
|
|
adbee7ecf5 | ||
|
|
ccfa139c71 | ||
|
|
aa0e2ac451 | ||
|
|
f4ca16058e | ||
|
|
af937c441b | ||
|
|
45229fae8e | ||
|
|
ef5b98742f | ||
|
|
697592b3dd | ||
|
|
ee1d729ce0 | ||
|
|
7b29c2803f | ||
|
|
576ac00eb3 | ||
|
|
87c4abb611 | ||
|
|
5dc68dd609 | ||
|
|
557ca620e4 | ||
|
|
0b311834eb | ||
|
|
7b5ca30917 | ||
|
|
d3cca934ee | ||
|
|
750203bde4 | ||
|
|
0fcd74b836 | ||
|
|
1b3a398ec1 | ||
|
|
2e557de094 | ||
|
|
4fd0add1cd | ||
|
|
4ce87e33ee | ||
|
|
86fe7e502b | ||
|
|
b216427e73 | ||
|
|
9730c9fb70 | ||
|
|
7853c1cfe6 | ||
|
|
c8644d1f63 | ||
|
|
970c22f970 | ||
|
|
479abdd32e | ||
|
|
f1cc2a2c0c | ||
|
|
99fb36797a | ||
|
|
e9c7a86220 | ||
|
|
fb7d7e0022 | ||
|
|
8ef77547d0 | ||
|
|
fa437e14a4 | ||
|
|
61e71a8bc8 | ||
|
|
71dd581127 | ||
|
|
26b57832fe | ||
|
|
884df3a51f | ||
|
|
86b889485d | ||
|
|
d784000a14 | ||
|
|
2b604eada5 | ||
|
|
018b9d421a | ||
|
|
f9b7132175 | ||
|
|
bbccbfe9d1 | ||
|
|
2ad1df7327 | ||
|
|
228f1ee9f2 | ||
|
|
cf6c5c222d | ||
|
|
aba5888f6b | ||
|
|
397a634ebd | ||
|
|
b14ebbcb17 | ||
|
|
96c3b1a1bb | ||
|
|
c8996bab1c | ||
|
|
b359badd49 | ||
|
|
6b8e5c0e8a | ||
|
|
ce2d84b3bb | ||
|
|
6f2419342f | ||
|
|
d95cb3edc8 | ||
|
|
99c2bad222 | ||
|
|
069f63c893 | ||
|
|
676f79f8d2 | ||
|
|
cef28131f7 | ||
|
|
02d2c0a08d | ||
|
|
aec2e865f0 | ||
|
|
56120ca04b | ||
|
|
785d76d681 | ||
|
|
9afd97022e | ||
|
|
5409f32984 | ||
|
|
733686e430 | ||
|
|
557658776f | ||
|
|
0627c48dde | ||
|
|
7c00ba10da | ||
|
|
e80d9d5902 | ||
|
|
3529903afb | ||
|
|
86981ac9f5 | ||
|
|
bb6047cd64 | ||
|
|
93e080cbaa | ||
|
|
72703aa9f3 | ||
|
|
c5399c827d | ||
|
|
982a649aa5 | ||
|
|
854049f962 | ||
|
|
4bd860a001 | ||
|
|
aa3e8dd3da | ||
|
|
0beda1a388 | ||
|
|
7eb7f7c32d | ||
|
|
b486d1ce05 | ||
|
|
29aa9a37cc | ||
|
|
bc860548c2 | ||
|
|
9cfa822fea | ||
|
|
c1e8744177 | ||
|
|
700843d69f | ||
|
|
be1a505189 | ||
|
|
2008c92513 | ||
|
|
53e2e4c721 | ||
|
|
dcc01123f2 | ||
|
|
1450712e76 | ||
|
|
bfdef6301c | ||
|
|
33be9e29be | ||
|
|
8ed2420dbb | ||
|
|
409265a571 | ||
|
|
885119bf50 | ||
|
|
85070e46cc | ||
|
|
9ce5e89fcc | ||
|
|
2e2f981bcc | ||
|
|
8cc7e74a8f | ||
|
|
5b437c7637 | ||
|
|
84d752d1ad | ||
|
|
10cbc33a4c | ||
|
|
d62706ec6d | ||
|
|
4c3cfc7558 | ||
|
|
ac5eb7fdfb | ||
|
|
52655b4c90 | ||
|
|
07e0957e1f | ||
|
|
7d1f2ac769 | ||
|
|
416cd9ac11 | ||
|
|
804e462305 | ||
|
|
34cb17b930 | ||
|
|
64291e989e | ||
|
|
c5b225c8ca | ||
|
|
831312febe | ||
|
|
cb13fad733 | ||
|
|
9406ab91a2 | ||
|
|
2933698677 | ||
|
|
cf510ad781 | ||
|
|
140ca2dcc2 | ||
|
|
a08decdfed | ||
|
|
fba9f41b84 | ||
|
|
54fc885efd | ||
|
|
013d5c18c3 | ||
|
|
b77ff4d589 | ||
|
|
36f7b399de | ||
|
|
c068284882 | ||
|
|
e05f801271 | ||
|
|
e04ccbd506 | ||
|
|
1342a96ecf | ||
|
|
4bc47bec57 | ||
|
|
e126ec4fc4 | ||
|
|
46ae340f24 | ||
|
|
6cc79dc79d | ||
|
|
62a6230e1c | ||
|
|
43da5b2066 | ||
|
|
591d5ca41b | ||
|
|
4be80d5109 | ||
|
|
23e70e1cc6 | ||
|
|
800094802e | ||
|
|
9669794e7a | ||
|
|
30892709d7 | ||
|
|
a3fead9706 | ||
|
|
201d0df50b | ||
|
|
9f10e45e42 | ||
|
|
a607f8a20c | ||
|
|
ed77fdf389 | ||
|
|
08f9c90981 | ||
|
|
532efa9ce9 | ||
|
|
a4b7f716d3 | ||
|
|
2e16100609 | ||
|
|
d54b551f6c | ||
|
|
2e05db347e | ||
|
|
cca12abf6e | ||
|
|
18e53fa91a | ||
|
|
8c58dea899 | ||
|
|
9dfbcef272 | ||
|
|
7faaca7118 | ||
|
|
5f3824a5aa | ||
|
|
1ae06e002d | ||
|
|
8bdecd3617 | ||
|
|
c4a7eedc16 | ||
|
|
2ee3c63b13 | ||
|
|
7b7f0da4a7 | ||
|
|
676d62fa0e | ||
|
|
f64dbb08c2 | ||
|
|
dd469eec40 | ||
|
|
17d27805f9 | ||
|
|
767aaf587c | ||
|
|
10286f45e7 | ||
|
|
7bdfdd09e4 | ||
|
|
a5ad43afe8 | ||
|
|
fe0f8967bf | ||
|
|
bfc63bfb19 | ||
|
|
95c7cfb025 | ||
|
|
2fbf23875f | ||
|
|
48d19acb7c | ||
|
|
9dbbba9976 | ||
|
|
18e1a3022d | ||
|
|
5d427004c6 | ||
|
|
0106575728 | ||
|
|
f0d860d35f | ||
|
|
520dc64369 | ||
|
|
8145f92dcc | ||
|
|
40ee1ba0dc | ||
|
|
474442dd56 | ||
|
|
79931c5aeb | ||
|
|
dc867bbf3a | ||
|
|
71d66f3678 | ||
|
|
ba82e1ef54 | ||
|
|
612ecf934f | ||
|
|
66e60c6553 | ||
|
|
e7bcfb368c | ||
|
|
eda919f4dc | ||
|
|
7599143dcc | ||
|
|
f28c856e33 | ||
|
|
b7daa665ba | ||
|
|
dcad09e125 | ||
|
|
338b641370 | ||
|
|
0a925d7834 | ||
|
|
70100d5509 | ||
|
|
e2828af607 | ||
|
|
b5c496f109 | ||
|
|
9f59fb6d33 | ||
|
|
cfe4252744 | ||
|
|
500d2db302 | ||
|
|
6d45f952e6 | ||
|
|
3aa0e57ce6 | ||
|
|
a10976b961 | ||
|
|
93859e2c9a | ||
|
|
2d2a62e3d9 | ||
|
|
f0d3be29f2 | ||
|
|
21fa0d86b1 | ||
|
|
3d6b865654 | ||
|
|
1033acd92d | ||
|
|
36bf141333 | ||
|
|
49559c04f6 | ||
|
|
68542e72a9 | ||
|
|
3aa51450c4 | ||
|
|
8a2dda312c | ||
|
|
e5a4d1d9e5 | ||
|
|
14de67fc77 | ||
|
|
783c7f97ba | ||
|
|
f4af38120a | ||
|
|
259f4f3d01 | ||
|
|
f697d7fdd5 | ||
|
|
6f8d8131b1 | ||
|
|
7e6d51a73c | ||
|
|
25264131e2 | ||
|
|
d7bfce3951 | ||
|
|
3cfe3bc001 | ||
|
|
92e7e346f3 | ||
|
|
e8cea8d70f | ||
|
|
efe4bab29b | ||
|
|
54c8728cd7 | ||
|
|
08f10fcd02 | ||
|
|
5babaf7491 | ||
|
|
d62cb0f5d0 | ||
|
|
1c05b9359d | ||
|
|
ad63f8a53c | ||
|
|
f4781fc3cb | ||
|
|
f222778489 | ||
|
|
303bfc1024 | ||
|
|
b387560692 | ||
|
|
d997c8b2f6 | ||
|
|
445aab4b73 | ||
|
|
c3df44389b | ||
|
|
5e873952b0 | ||
|
|
98dcde4ec3 | ||
|
|
34f7a3a229 | ||
|
|
13989be71b | ||
|
|
777c6e3c94 | ||
|
|
0a33c971aa | ||
|
|
dda59c5db5 | ||
|
|
e819c3a4ca | ||
|
|
fb24990211 | ||
|
|
0320f6930d | ||
|
|
1b8977ff7c | ||
|
|
721fbf63f4 | ||
|
|
a14ccfffb8 | ||
|
|
15c4d51d39 | ||
|
|
5565d0ab07 | ||
|
|
8cb0101449 | ||
|
|
aebfd4cfbf | ||
|
|
b2bb51f339 | ||
|
|
c5d25b22e4 | ||
|
|
d71ea7c01e | ||
|
|
ab4b49262a | ||
|
|
850346cbaf | ||
|
|
9029297dcb | ||
|
|
80c5ae1d0e | ||
|
|
e7497c0c99 | ||
|
|
a419802c71 | ||
|
|
2b535b3947 | ||
|
|
7ba8e0bd01 | ||
|
|
49ae8f8144 | ||
|
|
4bef109689 | ||
|
|
f6c6ee5663 | ||
|
|
e7da67f5d3 | ||
|
|
569288b3bf | ||
|
|
b6821dbb91 | ||
|
|
b04eef1318 | ||
|
|
9bc2582c31 | ||
|
|
f0b4bc12f8 | ||
|
|
14b4707d9a | ||
|
|
beb478a24b | ||
|
|
795885f454 | ||
|
|
7d9c1ebd66 | ||
|
|
3af962a993 | ||
|
|
211ca5ff77 | ||
|
|
befbc8f56b | ||
|
|
a9db36d1fd | ||
|
|
acd90fcdc6 | ||
|
|
f29b88c246 | ||
|
|
006556713e | ||
|
|
b274dedf1b | ||
|
|
89cc9988c9 | ||
|
|
697aa67d18 | ||
|
|
e62e77426f | ||
|
|
e102478b3d | ||
|
|
79a97a9d36 | ||
|
|
32913182dc | ||
|
|
f3fc3d021d | ||
|
|
f7e24683c4 | ||
|
|
276741af4d | ||
|
|
3f430c9c3a | ||
|
|
07048941a4 | ||
|
|
b5ed5843a4 | ||
|
|
357a15a649 | ||
|
|
e42e3a4fac | ||
|
|
2e121fda35 | ||
|
|
085081fc6e | ||
|
|
b790bdf46b | ||
|
|
76b2f53707 | ||
|
|
95765567d0 | ||
|
|
ad88a4bbba | ||
|
|
0811742488 | ||
|
|
7be56906d6 | ||
|
|
a9c0cd4ab3 | ||
|
|
07ac29a058 | ||
|
|
64814739d5 | ||
|
|
c1c16bea94 | ||
|
|
d91d21f05b | ||
|
|
c2c6805797 | ||
|
|
9c613ade7a | ||
|
|
382cee0a77 | ||
|
|
980f2b7078 | ||
|
|
3b738a16eb | ||
|
|
9c5f851ec9 | ||
|
|
3fe5b462f7 | ||
|
|
28ff8babad | ||
|
|
f9f212fb93 | ||
|
|
df97ab3e5f | ||
|
|
c18329cef6 | ||
|
|
0fd714d2c3 | ||
|
|
bd87aec5a7 | ||
|
|
3ca560439c | ||
|
|
897ef500e5 | ||
|
|
ec783dc142 | ||
|
|
2b04257491 | ||
|
|
e9bbe425d4 | ||
|
|
019c95f566 | ||
|
|
40be9a1c1d | ||
|
|
bf769d09ec | ||
|
|
fb6e8a5aa4 | ||
|
|
0eb3d15ccb | ||
|
|
1752e9c088 | ||
|
|
65db980106 | ||
|
|
8e34d3f9ef | ||
|
|
5b73f35761 | ||
|
|
ede9884c59 | ||
|
|
226e614378 | ||
|
|
4b7d499e64 | ||
|
|
2be6941f42 | ||
|
|
c4f240de14 | ||
|
|
e116d0a625 | ||
|
|
9f5744a72f | ||
|
|
e36115d688 | ||
|
|
4cb7aa067c | ||
|
|
4111032511 | ||
|
|
50313059fc | ||
|
|
1de0823953 | ||
|
|
9069794e5e | ||
|
|
7b82b07fba | ||
|
|
c857bb68ec | ||
|
|
005f2adaaa | ||
|
|
0aecdf6828 | ||
|
|
8ed66f98a9 | ||
|
|
8478b4035e | ||
|
|
2a2bb78cce | ||
|
|
18b82345dc | ||
|
|
d938d5e6f8 | ||
|
|
fa9f5ed982 | ||
|
|
72147c62f7 | ||
|
|
7a91296f1d | ||
|
|
c927c92086 | ||
|
|
d4ea51734e | ||
|
|
2ae142e663 | ||
|
|
3621045631 | ||
|
|
e64bc7cde6 | ||
|
|
473322ec66 | ||
|
|
89e543f383 | ||
|
|
628290b5e6 | ||
|
|
c2d5f2ef98 | ||
|
|
9d64ab7d5a | ||
|
|
357ff4d1dc | ||
|
|
265b9a2e49 | ||
|
|
ec8330b21d | ||
|
|
8fdf832e5f | ||
|
|
476499c75c | ||
|
|
aec7c5a87c | ||
|
|
b55502cdae | ||
|
|
87a3a924ce | ||
|
|
c6c22aeb44 | ||
|
|
4f3ba55ed1 | ||
|
|
734fdb0842 | ||
|
|
6637b237e6 | ||
|
|
bf7023d165 | ||
|
|
b546c7c926 | ||
|
|
199b3e46f9 | ||
|
|
558814e16d | ||
|
|
a3154295c5 | ||
|
|
2257deb502 | ||
|
|
fc61870a1c | ||
|
|
cb2438ae52 | ||
|
|
51f6702fe1 | ||
|
|
93b268ade0 | ||
|
|
9e37a7f9a5 | ||
|
|
548811cb19 | ||
|
|
b74205d022 | ||
|
|
eb1e3a3985 | ||
|
|
87c8e00b7a | ||
|
|
b90f6e87cf | ||
|
|
987a4a7367 | ||
|
|
e0d269c0d8 | ||
|
|
e644866caf | ||
|
|
93e450793c | ||
|
|
d1b56d0043 | ||
|
|
6352df87b1 | ||
|
|
dddb2aab8d | ||
|
|
b7d3338df2 | ||
|
|
061cea1cf3 | ||
|
|
4bc31df3e4 | ||
|
|
330346d51c | ||
|
|
8128db9ec1 | ||
|
|
55678c6951 | ||
|
|
793ac8035c | ||
|
|
c2791caf53 | ||
|
|
d94717e099 | ||
|
|
a60825fa96 | ||
|
|
3aa899929d | ||
|
|
b0bfae1963 | ||
|
|
b9a34e818e | ||
|
|
d57f7d586b | ||
|
|
fa7d04fed4 | ||
|
|
b1c4c39c58 | ||
|
|
b85c625d83 | ||
|
|
0d357155cc | ||
|
|
ea6c5f03a5 | ||
|
|
a9beeeeeea | ||
|
|
a8ec986981 | ||
|
|
69ce8a72f5 | ||
|
|
ee0958cb4d | ||
|
|
0e1590b3dd | ||
|
|
53cbea2231 | ||
|
|
46d71e7fd2 | ||
|
|
b10a838a7a | ||
|
|
9ee8efc63b | ||
|
|
d9762a7cdb | ||
|
|
3ef73d9a88 | ||
|
|
7b85b332cb | ||
|
|
9d49e4706e | ||
|
|
17932a8f7b | ||
|
|
841c9884b2 | ||
|
|
30fc601e6c | ||
|
|
d1638fe08b | ||
|
|
fb4726d571 | ||
|
|
d57d041d67 | ||
|
|
4c2e40a488 | ||
|
|
7494f0f498 | ||
|
|
4da70dea28 | ||
|
|
8250f93d41 | ||
|
|
7d9bef9286 | ||
|
|
1d2ffb4712 | ||
|
|
88e925f3f5 | ||
|
|
bd3df5ec6d | ||
|
|
06b27ea24c | ||
|
|
1b314a85db | ||
|
|
8ee182288a | ||
|
|
006b61eb0b | ||
|
|
82b8b6865c | ||
|
|
748644b72d | ||
|
|
110cf8bc9e | ||
|
|
376f3c10de | ||
|
|
ae975713c2 | ||
|
|
ca2c12d353 | ||
|
|
785395b07e | ||
|
|
df0a480058 | ||
|
|
e3be3e69c0 | ||
|
|
9c89133a1f | ||
|
|
f213c0db09 | ||
|
|
202aa9f775 | ||
|
|
9636fc2588 | ||
|
|
a76825a5ef | ||
|
|
8a75dbeb23 | ||
|
|
1ccfabb66d | ||
|
|
40bcd5447c | ||
|
|
4455f1f599 | ||
|
|
9e6c3638e6 | ||
|
|
fa50d9d96d | ||
|
|
38ced24ad1 | ||
|
|
921a0c22a6 | ||
|
|
af45542cfe | ||
|
|
55f8b03948 | ||
|
|
55d6cba5e1 | ||
|
|
3963adca3d | ||
|
|
6beb0eeea1 | ||
|
|
8acbb074f8 | ||
|
|
be83356e5e | ||
|
|
797d56cbd8 | ||
|
|
9ee502ac6b | ||
|
|
ed285ae5c9 | ||
|
|
436a841354 | ||
|
|
4a6fa4c204 | ||
|
|
c25cd9094b | ||
|
|
21db158722 | ||
|
|
e40197315d | ||
|
|
fd1ce3856a | ||
|
|
c6ee182bd4 | ||
|
|
4989695ec3 | ||
|
|
0b48d1c821 | ||
|
|
9e50d8f8bc | ||
|
|
a6c48c8be7 | ||
|
|
3c8c873252 | ||
|
|
4901ec2324 | ||
|
|
e608324f9f | ||
|
|
0c14b31df4 | ||
|
|
0426670f0a | ||
|
|
cacdc27f52 | ||
|
|
09b5a99816 | ||
|
|
4c134bcfce | ||
|
|
2434a4e88d | ||
|
|
c9a981778d | ||
|
|
367b784738 | ||
|
|
7bff23b166 | ||
|
|
accbbd7dc3 | ||
|
|
889de6b285 | ||
|
|
1d30f40950 | ||
|
|
1cd5008bba | ||
|
|
da933ee29d | ||
|
|
d4a4a42cb3 | ||
|
|
11bb05ba48 | ||
|
|
0072422576 | ||
|
|
dfd821c738 | ||
|
|
ee40b6882d | ||
|
|
36a7638073 | ||
|
|
2603618831 | ||
|
|
b17b4b4a4a | ||
|
|
f646e9075f | ||
|
|
ba8795083f | ||
|
|
06de7d6936 | ||
|
|
febcfab23d | ||
|
|
1269df2e3b | ||
|
|
dda86f386d | ||
|
|
7320e53d9e | ||
|
|
118977f19d | ||
|
|
88c17d5587 | ||
|
|
73a1a639a7 | ||
|
|
8f4da2965e | ||
|
|
14aa8f0c11 | ||
|
|
898808fa8c | ||
|
|
a20da5523e | ||
|
|
5be48639b1 | ||
|
|
1a073a20db | ||
|
|
63a0bd4270 | ||
|
|
98633c2a19 | ||
|
|
bdfc75e751 | ||
|
|
da23624b57 | ||
|
|
30f2d0c0b3 | ||
|
|
f854130b7b | ||
|
|
2f2d84033b | ||
|
|
b1341b3068 | ||
|
|
23d52ca4a7 | ||
|
|
437b9ba46f | ||
|
|
f6e15d25a3 | ||
|
|
75be5a6681 | ||
|
|
c4410c85ab | ||
|
|
97f6049bc2 | ||
|
|
29240cb5c1 | ||
|
|
7679cb3fa8 | ||
|
|
0574196acb | ||
|
|
14b3a2e4c3 | ||
|
|
5663272435 | ||
|
|
03f368d94c | ||
|
|
96034c4a51 | ||
|
|
078d1fbf2b | ||
|
|
9eba83c156 | ||
|
|
0187c9e11d | ||
|
|
472d1d8e05 | ||
|
|
629f52843f | ||
|
|
c126bac153 | ||
|
|
cff0757c31 | ||
|
|
b5c56190b2 | ||
|
|
4b491c675f | ||
|
|
3ec253532e | ||
|
|
215f932e49 | ||
|
|
076c0ab683 | ||
|
|
57b53918d1 | ||
|
|
fc5a5a4f07 | ||
|
|
01368d395c | ||
|
|
cb1f18661a | ||
|
|
97d2e4bd75 | ||
|
|
33a95659e2 | ||
|
|
35b078b29a | ||
|
|
2384c11ff1 | ||
|
|
4c4a188a22 | ||
|
|
cd6ecf6a89 | ||
|
|
d804ff0d6b | ||
|
|
343befa44b | ||
|
|
72945b856e | ||
|
|
d01e30431c | ||
|
|
ff5dcb8df2 | ||
|
|
f187372f0a | ||
|
|
1b69122810 | ||
|
|
e9b4a96975 | ||
|
|
37f0e8a32c | ||
|
|
b91e97eabd | ||
|
|
cda4aaba4d | ||
|
|
ea864fb24d | ||
|
|
5908ce5115 | ||
|
|
159c3aafd8 | ||
|
|
df739784e5 | ||
|
|
03d34b683d | ||
|
|
dc61480c54 | ||
|
|
f05e1a991a | ||
|
|
7ceada43af | ||
|
|
26393a97b2 | ||
|
|
7d2f61f66a | ||
|
|
40e13829af | ||
|
|
f719a97e12 | ||
|
|
6c6983f477 | ||
|
|
c399f6eeb2 | ||
|
|
f8a8ed73fe | ||
|
|
f8af8606a5 | ||
|
|
524833e155 | ||
|
|
5b37db44a3 | ||
|
|
0e452a02f1 | ||
|
|
ea6d371e7c | ||
|
|
7efff86639 | ||
|
|
67920e1516 | ||
|
|
4d4dd7aea0 | ||
|
|
cac1dd58a8 | ||
|
|
595f5f0e43 | ||
|
|
e4f6adb023 | ||
|
|
8da2124060 | ||
|
|
b9f6ca1d32 | ||
|
|
05e81222d4 | ||
|
|
7bb4c8cadb | ||
|
|
f8f2188888 | ||
|
|
0c23ec232b | ||
|
|
a439e438f3 | ||
|
|
028a408d57 | ||
|
|
3d5be801b9 | ||
|
|
1aa6418af9 | ||
|
|
524bb823c9 | ||
|
|
2c1db913f7 | ||
|
|
01a0168806 | ||
|
|
0e811d8c59 | ||
|
|
df52f3500c | ||
|
|
f0369223cd | ||
|
|
16cb818a74 | ||
|
|
8dfd22089c | ||
|
|
37faf55e17 | ||
|
|
30b093f6fc | ||
|
|
f3bd3deddd | ||
|
|
6543f6e36c | ||
|
|
2fab0d45a9 | ||
|
|
dc7a598126 | ||
|
|
5828e886e6 | ||
|
|
c56aa6f121 | ||
|
|
e1b13eba75 | ||
|
|
aae4e4bf70 | ||
|
|
9c1cf96664 | ||
|
|
821d4a1e55 | ||
|
|
4e11bd156e | ||
|
|
64010d603c | ||
|
|
c31dec7f98 | ||
|
|
5b22c47ca9 | ||
|
|
8efc11a0c1 | ||
|
|
2cd0c2d244 | ||
|
|
05a887ebfa | ||
|
|
81cd24adb8 | ||
|
|
713f96ee0c | ||
|
|
cc52d776dd | ||
|
|
a8206adcad | ||
|
|
3cad5ab77a | ||
|
|
eed1c63c70 | ||
|
|
e38ba43014 | ||
|
|
46750c39bd | ||
|
|
5128672731 | ||
|
|
eda12bcff8 | ||
|
|
a4cece3d47 | ||
|
|
d242839af8 | ||
|
|
6f8046f7a4 | ||
|
|
c6e7cbb94e | ||
|
|
12bf451ca4 | ||
|
|
af46c96d65 | ||
|
|
2856027e59 | ||
|
|
fb93fa9216 | ||
|
|
da172b0dde | ||
|
|
6ffc113ceb | ||
|
|
1abc42b26c | ||
|
|
d19dfa974c | ||
|
|
3de576efda | ||
|
|
6bc76194e8 | ||
|
|
f78ae415d2 | ||
|
|
59431c242b | ||
|
|
9ad282b1ae | ||
|
|
223612afa2 | ||
|
|
9008f3d564 | ||
|
|
df5169fa35 | ||
|
|
4cb2521595 | ||
|
|
aa68848451 | ||
|
|
f069b40f9d | ||
|
|
4da6e0c966 | ||
|
|
9087b7e8f5 | ||
|
|
08b27e0892 | ||
|
|
98866008a9 | ||
|
|
08c8d5b89a | ||
|
|
eb3e383390 | ||
|
|
425459b8ae | ||
|
|
763c51780c | ||
|
|
6c6ba59e6b | ||
|
|
135c2dc14f | ||
|
|
4a67b3e650 | ||
|
|
aaaf9e50ec | ||
|
|
8a120710cc | ||
|
|
816979e3b8 | ||
|
|
45c93dad1d | ||
|
|
efc71583e7 | ||
|
|
3d2e1724cb | ||
|
|
447c31ce9d | ||
|
|
d582c272a6 | ||
|
|
4dc3a57718 | ||
|
|
d033fc8323 | ||
|
|
baf8b57b1d | ||
|
|
f9b80cded7 | ||
|
|
6273b23a05 | ||
|
|
1cef8f0bc3 | ||
|
|
3ae2b6cd7f | ||
|
|
8ffe6f5b57 | ||
|
|
ca2aa61b66 | ||
|
|
52cd5ac21c | ||
|
|
caa4db8a51 | ||
|
|
2968f957aa | ||
|
|
0cd368c2ef | ||
|
|
d343033f3d | ||
|
|
22eb00f937 | ||
|
|
afbd5f978e | ||
|
|
7441c6d7af | ||
|
|
3e0443239a | ||
|
|
8b8cc85d8d | ||
|
|
97db9fb653 | ||
|
|
907520c4b9 | ||
|
|
1c1d9a3a86 | ||
|
|
24c3cdce88 | ||
|
|
7581dee10a | ||
|
|
7c21558503 | ||
|
|
46a886cd48 | ||
|
|
1b6bc02fb9 | ||
|
|
057cc2e915 | ||
|
|
d8287ca8bc | ||
|
|
cf1f8d4528 | ||
|
|
c66c2dd755 | ||
|
|
c7e491f9c2 | ||
|
|
7d618c477f | ||
|
|
0ab9e0c9d9 | ||
|
|
ac5b6f8082 | ||
|
|
ecacdb3430 | ||
|
|
d4cc9db64d | ||
|
|
31b28a0942 | ||
|
|
25a975408e | ||
|
|
c088f29b98 | ||
|
|
59d5b4ce06 | ||
|
|
68d1bea5fc | ||
|
|
662f749cec | ||
|
|
290e1bbe0d | ||
|
|
a6cd174b2e | ||
|
|
fede49532d | ||
|
|
49078ae363 | ||
|
|
42d199b1f1 | ||
|
|
00d84a2f3e | ||
|
|
c31e6d223a | ||
|
|
47311e4c7e | ||
|
|
ba1d831cf1 | ||
|
|
ae353b0b20 | ||
|
|
efbffa2fb7 | ||
|
|
479675f23e | ||
|
|
ce656065ba | ||
|
|
fdee523452 | ||
|
|
ade380a7aa | ||
|
|
8fab76e8f3 | ||
|
|
c3954ffb25 | ||
|
|
38bf85fd61 | ||
|
|
de6b89262e | ||
|
|
e34bdc3187 | ||
|
|
1a876a37cf | ||
|
|
082d5300db | ||
|
|
a6d666e1a6 | ||
|
|
455bfedc84 | ||
|
|
38d517fcd4 | ||
|
|
b46f295900 | ||
|
|
0890bb6a51 | ||
|
|
0042557598 | ||
|
|
d865376c1d | ||
|
|
0219d4e04e | ||
|
|
c522c7ba88 | ||
|
|
5fcef972b2 | ||
|
|
89a2178bc9 | ||
|
|
5d746fc98c | ||
|
|
d8aa360058 | ||
|
|
a6882a3a49 | ||
|
|
4a2da38bed | ||
|
|
c3c4fd2671 | ||
|
|
b56dff79ad | ||
|
|
e029243727 | ||
|
|
bb71f1aa25 | ||
|
|
b203377df7 | ||
|
|
28b698858c | ||
|
|
7ad9cb12b2 | ||
|
|
a5e498b543 | ||
|
|
93ec89042e | ||
|
|
e810ddbb70 | ||
|
|
0761f17560 | ||
|
|
0795e5c8b9 | ||
|
|
49b3c145ee | ||
|
|
801a683007 | ||
|
|
7e109995fd | ||
|
|
34d02aff71 | ||
|
|
ce6c691da1 | ||
|
|
740ebcd86e | ||
|
|
c06e76f6fe | ||
|
|
964e43c5e2 | ||
|
|
d5d98c1297 | ||
|
|
1b478d6ac3 | ||
|
|
3aa1329e0a | ||
|
|
e95ca7cec9 | ||
|
|
ceacbacd14 | ||
|
|
51bb067a42 | ||
|
|
bde0d89c3d | ||
|
|
e9344390ee | ||
|
|
8223972af2 | ||
|
|
2b2e8e0e4b | ||
|
|
99303bcde5 | ||
|
|
f997787d89 | ||
|
|
65467cf9cb | ||
|
|
5468a2122c | ||
|
|
c50ce85918 | ||
|
|
bbd3dc611e | ||
|
|
62a26ec696 | ||
|
|
1b59ef6990 | ||
|
|
d603ed6753 | ||
|
|
1eb308275a | ||
|
|
e8c1bf8840 | ||
|
|
eefeb73af4 | ||
|
|
aa6be2ef13 | ||
|
|
9597b0ebcb | ||
|
|
bcbaed8165 | ||
|
|
2a615a2b64 | ||
|
|
11397eb6dd | ||
|
|
b99f8e8b4e | ||
|
|
345bfab518 | ||
|
|
fb4937a311 | ||
|
|
1b89456509 | ||
|
|
9d85d4746b | ||
|
|
1439dfb576 | ||
|
|
ac6da721a3 | ||
|
|
b3d0e4e243 | ||
|
|
2ddd69ef9a | ||
|
|
c7638d93b0 | ||
|
|
3b65aeda52 | ||
|
|
290d615b46 | ||
|
|
a9388b73b1 | ||
|
|
a7999da39e | ||
|
|
415c982afb | ||
|
|
f634355868 | ||
|
|
461d45ea7a | ||
|
|
32e9275edb | ||
|
|
cd2cedf002 | ||
|
|
c6d5f80d8b | ||
|
|
691985ceb0 | ||
|
|
df13f8e8c2 | ||
|
|
491767418b | ||
|
|
e8b7431305 | ||
|
|
ddf4719694 | ||
|
|
3fed9acaef | ||
|
|
ae931b9998 | ||
|
|
85f4075bdb | ||
|
|
99114faf82 | ||
|
|
316f79cef2 | ||
|
|
274f932311 | ||
|
|
0c467c9cc7 | ||
|
|
f5e73640f0 | ||
|
|
905b63e433 | ||
|
|
9f170ed091 | ||
|
|
6f6646d6e9 | ||
|
|
29d790fe60 | ||
|
|
f01e7e08d8 | ||
|
|
71ea31ae74 | ||
|
|
313b274b9d | ||
|
|
7c0e67c8c2 | ||
|
|
6cfeeb3bb0 | ||
|
|
c346df065e | ||
|
|
b93759291d | ||
|
|
8e6f42a7bd | ||
|
|
c8224d7ede | ||
|
|
b121de9d7f | ||
|
|
751971b2c3 | ||
|
|
831f6dd1d9 | ||
|
|
5a067c4b39 | ||
|
|
121bcfee5d | ||
|
|
21aae1ec86 | ||
|
|
c9ea1d341a | ||
|
|
4550a00a3e | ||
|
|
077366d0c6 | ||
|
|
68f0166a92 | ||
|
|
a481f5b308 | ||
|
|
53a5b95c21 | ||
|
|
84bd19ffd4 | ||
|
|
678239df54 | ||
|
|
69cdc95932 | ||
|
|
4167498f74 | ||
|
|
52d16c84d2 | ||
|
|
b4c81b6cee | ||
|
|
63f7e64218 | ||
|
|
18e4cd1e20 | ||
|
|
8342b6e1dc | ||
|
|
ba704878bd | ||
|
|
fdb2d32144 | ||
|
|
d041b8d33e | ||
|
|
0ab2c444b5 | ||
|
|
22ee67a1ca | ||
|
|
9e4f6c5809 | ||
|
|
5376ed2474 | ||
|
|
952b54095a | ||
|
|
5b8ae0a985 | ||
|
|
65bb4a0d38 | ||
|
|
4e0d1d60dc | ||
|
|
ec5fde24de | ||
|
|
1343756742 | ||
|
|
ec9fa4f6b3 | ||
|
|
f0b2d27f7d | ||
|
|
94898303d2 | ||
|
|
1495f42138 | ||
|
|
ba06278e97 | ||
|
|
e48a821ed5 | ||
|
|
6404896d8c | ||
|
|
fa083980c5 | ||
|
|
5f68fa4897 | ||
|
|
6f8085ca77 | ||
|
|
3b59753c11 | ||
|
|
3400148768 | ||
|
|
6a0b405177 | ||
|
|
f07fa85bc7 | ||
|
|
34cdc77076 | ||
|
|
55a8d40fa0 | ||
|
|
5de8d84098 | ||
|
|
47d760714f | ||
|
|
5fe879555d | ||
|
|
9987106f53 | ||
|
|
e673f55c45 | ||
|
|
40e6af893b | ||
|
|
37f484276d | ||
|
|
1f93471bda | ||
|
|
981bf6999d | ||
|
|
a18a2ba0bb | ||
|
|
812da4190f | ||
|
|
312f36d453 | ||
|
|
4febbedc5a | ||
|
|
6ebc0d3bd8 | ||
|
|
21aafd09f6 | ||
|
|
45c037a127 | ||
|
|
947bb79c08 | ||
|
|
4b60db7e50 | ||
|
|
96876b371b | ||
|
|
dce748d3f1 | ||
|
|
50b3111b63 | ||
|
|
c303107345 | ||
|
|
3d77d013e1 | ||
|
|
637438f259 | ||
|
|
6cdd88f22c | ||
|
|
925c11b545 | ||
|
|
c64370dccd | ||
|
|
9bd13a9d2e | ||
|
|
78ca3c6830 | ||
|
|
a917f30c6b | ||
|
|
ef1322df67 | ||
|
|
970ce28c12 | ||
|
|
b8a220d255 | ||
|
|
2c239ba233 | ||
|
|
eb4dd494a9 | ||
|
|
0d854de5f0 | ||
|
|
c506e03f54 | ||
|
|
d5ec44ca4c | ||
|
|
9c941e92c4 | ||
|
|
2e57c7e0fc | ||
|
|
710f14edba | ||
|
|
cf9342e275 | ||
|
|
0204e17bc6 | ||
|
|
f4ec8ffee2 | ||
|
|
386ed2d590 | ||
|
|
5b463e97fa | ||
|
|
8868a226cd | ||
|
|
a43bba3a34 | ||
|
|
c1d6158789 | ||
|
|
42c04eb1d1 | ||
|
|
6fd97fca88 | ||
|
|
6a03f6368f | ||
|
|
a5d7ec1848 | ||
|
|
11ce2f2182 | ||
|
|
4b87029113 | ||
|
|
8ce852a279 | ||
|
|
fe1c0176c1 | ||
|
|
eb01947e1d | ||
|
|
ee6791128f | ||
|
|
549b4a659a | ||
|
|
9146f37973 | ||
|
|
662fc62517 | ||
|
|
f9ffbfce90 | ||
|
|
aa0fbe3537 | ||
|
|
c48b996cf2 | ||
|
|
89390f35f8 | ||
|
|
da900ca970 | ||
|
|
b0e742544b | ||
|
|
7296fc9e7e | ||
|
|
3f74e149f8 | ||
|
|
667d133dab | ||
|
|
e81bdab13e | ||
|
|
54df616729 | ||
|
|
6f72c2fe31 | ||
|
|
a703914e60 | ||
|
|
0115ec2f13 | ||
|
|
33e0cba8f1 | ||
|
|
d7ed8da43e | ||
|
|
e2c14bde22 | ||
|
|
0d4af92aeb | ||
|
|
4c8c3da6e2 | ||
|
|
84c0aabe65 | ||
|
|
ca63d4feba | ||
|
|
f804378d16 | ||
|
|
2c6b41e98a | ||
|
|
0160cb2e19 | ||
|
|
cd1f746b86 | ||
|
|
b166117c60 | ||
|
|
5a23aeb00d | ||
|
|
fbaa2f8660 | ||
|
|
263ed02da6 | ||
|
|
b2e9c17a19 | ||
|
|
78e3844a4a | ||
|
|
b574e83079 | ||
|
|
a700f9002c | ||
|
|
73b7a03c3f | ||
|
|
64381f5091 | ||
|
|
28d005cc9b | ||
|
|
5cdb61abb2 | ||
|
|
537b571c90 | ||
|
|
fe15ea67cc | ||
|
|
2af28a147b | ||
|
|
f700eb7d9a | ||
|
|
175b605331 | ||
|
|
ee40136f6c | ||
|
|
19a514237d | ||
|
|
607883f13c | ||
|
|
d4150c317c | ||
|
|
0bc14c9faf | ||
|
|
4991c13784 | ||
|
|
c469941293 | ||
|
|
ff853960bd | ||
|
|
2c49e96092 | ||
|
|
3a92de5636 | ||
|
|
45d3f00803 | ||
|
|
0b8977ac6f | ||
|
|
9e86209d04 | ||
|
|
11025613b9 | ||
|
|
c877c50e13 | ||
|
|
109e94c51c | ||
|
|
74851340bd | ||
|
|
d3d27551e7 | ||
|
|
20f61cd12c | ||
|
|
4946ea05e2 | ||
|
|
fa0a5e6812 | ||
|
|
ef6be35bae | ||
|
|
ac887eedbc | ||
|
|
42937f87e6 | ||
|
|
c81021f747 | ||
|
|
97f214d0c9 | ||
|
|
c57166b575 | ||
|
|
ff35e74bcd | ||
|
|
d73d633885 | ||
|
|
1432b22e62 | ||
|
|
dd9ce1b86c | ||
|
|
b201d9adb8 | ||
|
|
8a0385c1ad | ||
|
|
c524ca35f5 | ||
|
|
dd07e79023 | ||
|
|
13682d1a24 | ||
|
|
ed4972ffdb | ||
|
|
6448946ac3 | ||
|
|
ef813c7097 | ||
|
|
9317eced98 | ||
|
|
0bc4938eec | ||
|
|
4043d7b67b | ||
|
|
7dd494c6e7 | ||
|
|
fbb6e0478b | ||
|
|
c1f7da1570 | ||
|
|
acefed139f | ||
|
|
8fdb87d0df | ||
|
|
c38b573ff5 | ||
|
|
c09f6c72e9 | ||
|
|
7dbed6a2f5 | ||
|
|
afbcfc4f46 | ||
|
|
b3e55bf989 | ||
|
|
6876b35ad6 | ||
|
|
82bcc7c615 | ||
|
|
dfa481a7c5 | ||
|
|
0c4589f0c0 | ||
|
|
54ef196db8 | ||
|
|
5b773658a8 | ||
|
|
f559611aa1 | ||
|
|
713402982f | ||
|
|
2baf38f7c3 | ||
|
|
8293691b88 | ||
|
|
fdb13d885a | ||
|
|
8541f2d39d | ||
|
|
3a29ee41ef | ||
|
|
fe260b75e7 | ||
|
|
2dc63c72dc | ||
|
|
a8c7cf6281 | ||
|
|
7cb763cf57 | ||
|
|
f82e0edc17 | ||
|
|
38d582ff54 | ||
|
|
5a327f39d5 | ||
|
|
4f041c9d6e | ||
|
|
4d06b27921 | ||
|
|
965690f67e | ||
|
|
5019c78095 | ||
|
|
517b06d657 | ||
|
|
e798e6759b | ||
|
|
b877494a27 | ||
|
|
3ebfaf6a03 | ||
|
|
ed02f0abca | ||
|
|
5e097583f7 | ||
|
|
196140dcaf | ||
|
|
4ff71183b9 | ||
|
|
2fc31dcf74 | ||
|
|
715125e790 | ||
|
|
930b81387b | ||
|
|
ec0079a99d | ||
|
|
47f8e99e78 | ||
|
|
ff25f437a5 | ||
|
|
31265376bc | ||
|
|
7a1fb8e816 | ||
|
|
5017d5ada8 | ||
|
|
4d6108315b | ||
|
|
67061e3f4e | ||
|
|
c864d81289 | ||
|
|
b4f6cd46eb | ||
|
|
4c599b9d2d | ||
|
|
c03243576a | ||
|
|
02bba0ce7d | ||
|
|
e8aff0c588 | ||
|
|
9b5b6a2b1a | ||
|
|
ca7d1de69c | ||
|
|
61591eee68 | ||
|
|
596800378d | ||
|
|
8c4d6ceec0 | ||
|
|
891ef341b3 | ||
|
|
2465ee7573 | ||
|
|
9787b8e9d4 | ||
|
|
dcdbac2568 | ||
|
|
ac7118319e | ||
|
|
8ddda0e999 | ||
|
|
74ad0221cc | ||
|
|
a55e7f0abd | ||
|
|
63e3e03dae | ||
|
|
6da4085e48 | ||
|
|
e591165f94 | ||
|
|
e84d0b41f6 | ||
|
|
539412851c | ||
|
|
219a0fbe76 | ||
|
|
0b3750b5c2 | ||
|
|
a21c04f391 | ||
|
|
c01467b753 | ||
|
|
778e4bb276 | ||
|
|
9cb7802cfd | ||
|
|
6f416fa462 | ||
|
|
420d9ff3eb | ||
|
|
85484355b3 | ||
|
|
d8073db304 | ||
|
|
7fef4016de | ||
|
|
68920b6c11 | ||
|
|
46b1d0a047 | ||
|
|
eba197161a | ||
|
|
36802d6e0c | ||
|
|
f1a9e6858e | ||
|
|
75e996f29f | ||
|
|
5513bbd5c3 | ||
|
|
1f07718123 | ||
|
|
cde0cf7c5e | ||
|
|
53f1f4a18e | ||
|
|
bd248a0b80 | ||
|
|
219d19a401 | ||
|
|
78f26394dc | ||
|
|
4efa1d29e2 | ||
|
|
fd97c17bb7 | ||
|
|
5577540ad5 | ||
|
|
17df2d8f8e | ||
|
|
fc59a9e18f | ||
|
|
07d7603b45 | ||
|
|
1a9b58fcb2 | ||
|
|
3228deff40 | ||
|
|
e9665e9658 | ||
|
|
d48eb1dd69 | ||
|
|
4548e0fe71 | ||
|
|
70052836d1 | ||
|
|
249dc83571 | ||
|
|
0704dd770d | ||
|
|
ad388a7d37 | ||
|
|
87683d4b76 | ||
|
|
f35668985e | ||
|
|
e904b15f21 | ||
|
|
63fc8ee7be | ||
|
|
c27cc68815 | ||
|
|
0af2322bc6 | ||
|
|
59b5ef444e | ||
|
|
afc6e5004f | ||
|
|
0d9ddf91ca | ||
|
|
cc31a4a645 | ||
|
|
665096e24c | ||
|
|
d6b9f054e9 | ||
|
|
2249f7fe70 | ||
|
|
705a4cb549 | ||
|
|
6512e93be1 | ||
|
|
3674f2021d | ||
|
|
8c80840d01 | ||
|
|
24e22e1078 | ||
|
|
c10bf9bb36 | ||
|
|
e6e8b14405 | ||
|
|
b914e7ed02 | ||
|
|
ee23d13a79 | ||
|
|
dcbae71812 | ||
|
|
67f051051f | ||
|
|
b98c74b67e | ||
|
|
6969e24aee | ||
|
|
e08d0662b7 | ||
|
|
b5486adc9b | ||
|
|
a660c0dbe6 | ||
|
|
3521e4e40d | ||
|
|
873178a657 | ||
|
|
647f83e809 | ||
|
|
0d6225ad0d | ||
|
|
8749bbe7fd | ||
|
|
03c288202e | ||
|
|
938f93549f | ||
|
|
911a5c3646 | ||
|
|
f207f7e427 | ||
|
|
b1096d2352 | ||
|
|
452a4d90a4 | ||
|
|
860424bb06 | ||
|
|
035b91a26c | ||
|
|
e9dfdef411 | ||
|
|
854aca5420 | ||
|
|
4b4e8a5853 | ||
|
|
184c3e2d37 | ||
|
|
b04c158adf | ||
|
|
2111c2ed07 | ||
|
|
1f60728f81 | ||
|
|
0d94640c9b | ||
|
|
575a2b684b | ||
|
|
86f266b004 | ||
|
|
79a9f8c942 | ||
|
|
d765099813 | ||
|
|
f3bae6ed73 | ||
|
|
013e9a11ff | ||
|
|
77a51364a4 | ||
|
|
6239146e93 | ||
|
|
dc0f8c04ec | ||
|
|
2de045ff7c | ||
|
|
f80ca7a05a | ||
|
|
89070d0e68 | ||
|
|
779afe3bbf | ||
|
|
f3ce1af9fc | ||
|
|
3c2c1f9876 | ||
|
|
8451623b45 | ||
|
|
0a568867c0 | ||
|
|
91c13d759a | ||
|
|
89c29aa70f | ||
|
|
75f00de55c | ||
|
|
69745aaa45 | ||
|
|
01844658df | ||
|
|
38a56a9d94 | ||
|
|
25600bdf75 | ||
|
|
1813a77b02 | ||
|
|
d3d871cb4f | ||
|
|
db981b7b30 | ||
|
|
378af08c99 | ||
|
|
c021a60bcc | ||
|
|
bcb32e915e | ||
|
|
0ab97ba009 | ||
|
|
bff7398942 | ||
|
|
ec9476052d | ||
|
|
8f5a9147be | ||
|
|
82a4d537c3 | ||
|
|
87e873c6d0 | ||
|
|
33224f9bcd | ||
|
|
c8d1733d12 | ||
|
|
3a0d1bebba | ||
|
|
909a68c121 | ||
|
|
70bd9784de | ||
|
|
daa182afa6 | ||
|
|
230e872dbd | ||
|
|
5a997d97fd | ||
|
|
1861a1de67 | ||
|
|
86a40f5d1a | ||
|
|
ae363075e6 | ||
|
|
ea3828e0c7 | ||
|
|
cc0da321de | ||
|
|
8e62f7a650 | ||
|
|
8cf63f88c2 | ||
|
|
c5f8e2f5f4 | ||
|
|
6374ab2a36 | ||
|
|
6b9a3c1865 | ||
|
|
1f148c103c | ||
|
|
132f5edfbd | ||
|
|
2d8623e85d | ||
|
|
85a4df8b79 | ||
|
|
e2dae8a7c2 | ||
|
|
a3a6b03c30 | ||
|
|
3b929b6a65 | ||
|
|
67d14ab98f | ||
|
|
6c492f34e5 | ||
|
|
fa8d7ce4fe | ||
|
|
09d907ee68 | ||
|
|
f3a12460ad | ||
|
|
9597f7dfbc | ||
|
|
7969a77735 | ||
|
|
4a8c877273 | ||
|
|
265f2e9ed7 | ||
|
|
1ebf22cc0e | ||
|
|
ff92fcfb90 | ||
|
|
8d1377282e | ||
|
|
1505e4612b | ||
|
|
b93755df37 | ||
|
|
d10065c05a | ||
|
|
456169f9e5 | ||
|
|
dd97828df7 | ||
|
|
5204b45ff9 | ||
|
|
225ec4312f | ||
|
|
18b540f9d1 | ||
|
|
f8abd56450 | ||
|
|
61ba1daba0 | ||
|
|
06b4275c0d | ||
|
|
133cdd29ea | ||
|
|
ff0547e70e | ||
|
|
7d242658ac | ||
|
|
dde3081085 | ||
|
|
2dc7ad23fd | ||
|
|
e5524b7b25 | ||
|
|
0ea9f70049 | ||
|
|
4082dc9de6 | ||
|
|
dbccf497da | ||
|
|
63b26d889f | ||
|
|
4d8db595ca | ||
|
|
6127e54f40 | ||
|
|
8b6654224b | ||
|
|
c35d05aa62 | ||
|
|
8034b08e0e | ||
|
|
b811200f64 | ||
|
|
c1daf6c0cd | ||
|
|
cf80b85b66 | ||
|
|
2f89a61cc0 | ||
|
|
0104678c79 | ||
|
|
ffb8a21d85 | ||
|
|
9ab0dc618f | ||
|
|
83dbd06936 | ||
|
|
e5acae0052 | ||
|
|
efc112079c | ||
|
|
2c49f2e3db | ||
|
|
9f42205dcc | ||
|
|
4ea2d5579b | ||
|
|
9f132f9f39 | ||
|
|
ca9ab24ed5 | ||
|
|
480ca49ecb | ||
|
|
82f558366f | ||
|
|
6fb34ea6c6 | ||
|
|
a738bb1c9f | ||
|
|
0f213fdca1 | ||
|
|
be9cc620b5 | ||
|
|
c631a54bb6 | ||
|
|
768151449b | ||
|
|
97857de80e | ||
|
|
784f225266 | ||
|
|
b58b87e76e | ||
|
|
48c3bed43b | ||
|
|
1c9aaa0bac | ||
|
|
c5165b8458 | ||
|
|
88705ef80e | ||
|
|
0952c9abcc | ||
|
|
83f52a455f | ||
|
|
a7affd637f | ||
|
|
93f473c78a | ||
|
|
a878cb3056 | ||
|
|
0e11307057 | ||
|
|
0f23662af7 | ||
|
|
dd011df9e1 | ||
|
|
8e778887b5 | ||
|
|
99b4ff8b6f | ||
|
|
22c198fa89 | ||
|
|
c3fe3d9926 | ||
|
|
62e3d66cc6 | ||
|
|
b451c10d1e | ||
|
|
be84524cc2 | ||
|
|
803581d3e0 | ||
|
|
341d09bc2b | ||
|
|
0070f7a09d | ||
|
|
220bcba93d | ||
|
|
eb91e1a58f | ||
|
|
2319221c83 | ||
|
|
914b60c827 | ||
|
|
07b66cbfa4 | ||
|
|
86724581b6 | ||
|
|
665c160f0a | ||
|
|
e15e73b741 | ||
|
|
53940f8834 | ||
|
|
8d3608f2ad | ||
|
|
8bcf677a30 | ||
|
|
5e7fe58698 | ||
|
|
c3678f3bf6 | ||
|
|
2bf90d0710 | ||
|
|
9873fd5317 | ||
|
|
d735d3e803 | ||
|
|
1a20f59237 | ||
|
|
f00899d73e | ||
|
|
00b1e52823 | ||
|
|
31860ab8c8 | ||
|
|
2070a140fd | ||
|
|
bcb19883a8 | ||
|
|
f2e42dd056 | ||
|
|
5a47062cad | ||
|
|
0f46b3b3dd | ||
|
|
23a04863aa | ||
|
|
33f9c05082 | ||
|
|
00787f94b2 | ||
|
|
49b63cf30d | ||
|
|
f55f8d4c18 | ||
|
|
88b074df3f | ||
|
|
f5860fd5fc | ||
|
|
e17446b097 | ||
|
|
0d959c64b2 | ||
|
|
606e67c812 | ||
|
|
b4b28c7001 | ||
|
|
e6130c0310 | ||
|
|
da9864fb72 | ||
|
|
755dc2f058 | ||
|
|
6c014e4283 | ||
|
|
4013a2aa64 | ||
|
|
0b5b52ff2d | ||
|
|
251305cd7f | ||
|
|
852a018e78 | ||
|
|
82de54dd38 | ||
|
|
12ecd56da7 | ||
|
|
6217cf6ba3 | ||
|
|
afd288b28f | ||
|
|
39f7e80a52 | ||
|
|
b0fa530c98 | ||
|
|
4f334ba017 | ||
|
|
33b8960dc8 | ||
|
|
de966b403a | ||
|
|
2cac75c4e4 | ||
|
|
aba98991a5 | ||
|
|
db1beab1d7 | ||
|
|
93ca1d2065 | ||
|
|
e35ffda0b3 | ||
|
|
d2671340a6 | ||
|
|
ecaf2f02f1 | ||
|
|
d4296f6f06 | ||
|
|
eb02a99c61 | ||
|
|
3f5546b2be | ||
|
|
345891edba | ||
|
|
821094ba72 | ||
|
|
7e0c2c47ab | ||
|
|
7b774482e7 | ||
|
|
27ecc22649 | ||
|
|
7f807f394f | ||
|
|
9520c62049 | ||
|
|
ce82a1be0d | ||
|
|
c7a76bb056 | ||
|
|
8b984641f2 | ||
|
|
5b591829b6 | ||
|
|
9d497c6afe | ||
|
|
89dbb6a0da | ||
|
|
2d15958711 | ||
|
|
bbc1705fa9 | ||
|
|
87ade5f0eb | ||
|
|
a33e7edcec | ||
|
|
0fea86afe3 | ||
|
|
3a4cd2ad8d | ||
|
|
82c472228e | ||
|
|
0089e65008 | ||
|
|
2492fd30e5 | ||
|
|
190e41f840 | ||
|
|
5d25d626b1 | ||
|
|
e473a4d2f3 | ||
|
|
7e85964080 | ||
|
|
9bd2fdb8e2 | ||
|
|
3b5c75ef3d | ||
|
|
3b183df9cc | ||
|
|
7cd45b297e | ||
|
|
9362603f05 | ||
|
|
980659a2ca | ||
|
|
041d1e14d6 | ||
|
|
21aa79f463 | ||
|
|
28933f9d30 | ||
|
|
5b2342d377 | ||
|
|
31075a8897 | ||
|
|
2d435c7fb5 | ||
|
|
0151316183 | ||
|
|
aa1ee9e7a2 | ||
|
|
f61e0a34ea | ||
|
|
e35458bc08 | ||
|
|
e96b67a70f | ||
|
|
8ae35102c4 | ||
|
|
fc0b4b0d31 | ||
|
|
619d1704ae | ||
|
|
d5f1590d5c | ||
|
|
fca7930dfa | ||
|
|
e9c0f1f658 | ||
|
|
279c95b5b3 | ||
|
|
61312fe66f | ||
|
|
149e0c8d10 | ||
|
|
0f4bf77bd3 | ||
|
|
ecb0dc4c90 | ||
|
|
a6742a1c12 | ||
|
|
e209d60713 | ||
|
|
91d62e9abd | ||
|
|
3e17db4882 | ||
|
|
ef2d7cb44b | ||
|
|
e948b9c6e3 | ||
|
|
afb65c6cf3 | ||
|
|
5be92d03b0 | ||
|
|
3bc349b53b | ||
|
|
ad39e7ec01 | ||
|
|
98b7fc0195 | ||
|
|
f9797871aa | ||
|
|
d718abd968 | ||
|
|
190bb785d8 | ||
|
|
5c0eae136b | ||
|
|
5220c1d692 | ||
|
|
84a9f092dc | ||
|
|
4fc8d83f5f | ||
|
|
8fc4abedf1 | ||
|
|
c216179af4 | ||
|
|
4c51f2b578 | ||
|
|
2b026784a8 | ||
|
|
3c1519117a | ||
|
|
602d28a210 | ||
|
|
404794e97a | ||
|
|
3b6420c0a5 | ||
|
|
62da1e7458 | ||
|
|
bf24b64e83 | ||
|
|
d28b70d152 | ||
|
|
231b23acbb | ||
|
|
3529162405 | ||
|
|
d237828ebc | ||
|
|
c50d3ed075 | ||
|
|
61288cbdef | ||
|
|
42100cdead | ||
|
|
4bb7400529 | ||
|
|
303172d220 | ||
|
|
0f340f0572 | ||
|
|
f063773b83 | ||
|
|
e9b9e287c1 | ||
|
|
030303fa99 | ||
|
|
5f8f512719 | ||
|
|
6bc9e46bf1 | ||
|
|
db11750cfa | ||
|
|
1f47a77b29 | ||
|
|
0757a9b941 | ||
|
|
83ae98c6c6 | ||
|
|
2658da7604 | ||
|
|
c16e5dfbc8 | ||
|
|
7de2e03258 | ||
|
|
ab71241c88 | ||
|
|
e9625c5bc6 | ||
|
|
18a6467c8c | ||
|
|
7b368e7f94 | ||
|
|
34365e4b03 | ||
|
|
60bd22620a | ||
|
|
6e4d4a9b51 | ||
|
|
c68758b621 | ||
|
|
73a894170b | ||
|
|
0aafd77fa4 | ||
|
|
9f96f8a5c5 | ||
|
|
01aaad7442 | ||
|
|
610a55388b | ||
|
|
5107d66b2e | ||
|
|
4e1ece2e44 | ||
|
|
28dd47d4d4 | ||
|
|
147b2a546e | ||
|
|
95b5036a59 | ||
|
|
263616202b | ||
|
|
c9dd4022f4 | ||
|
|
f2d234a4dd | ||
|
|
2a4ee0d221 | ||
|
|
f88f9bed00 | ||
|
|
9aa6e4357a | ||
|
|
7b057f53fd | ||
|
|
2dd9bfc5d9 | ||
|
|
0ff0a994ad | ||
|
|
e8b57d1e84 | ||
|
|
7fd490732a | ||
|
|
0c762f1c92 | ||
|
|
15bf9389ce | ||
|
|
2618e4caae | ||
|
|
08e57f916c | ||
|
|
6f2d5f0562 | ||
|
|
82bf8edff3 | ||
|
|
cd492a3ba8 | ||
|
|
50aac1a37d | ||
|
|
574db1a6fd | ||
|
|
7246255416 | ||
|
|
f763d1b1bb | ||
|
|
48cd1292e2 | ||
|
|
f718415bc7 | ||
|
|
2715d7f948 | ||
|
|
3db1f3dd81 | ||
|
|
7da9c95bcf | ||
|
|
95ae389e17 | ||
|
|
91735102ac | ||
|
|
248967e300 | ||
|
|
cf2051764c | ||
|
|
3ce2a3991b | ||
|
|
195b63f99c | ||
|
|
1deac31eba | ||
|
|
bf468fb589 | ||
|
|
ca4506b46a | ||
|
|
727d798d68 | ||
|
|
3917d73b36 | ||
|
|
812c5ace75 | ||
|
|
c3a02c3e54 | ||
|
|
565c5b3dc3 | ||
|
|
11e8066ef9 | ||
|
|
92b9ae5c5d | ||
|
|
a47c142a88 | ||
|
|
eccf4fb7ee | ||
|
|
9f260b5d66 | ||
|
|
0452976711 | ||
|
|
94d820b4cb | ||
|
|
1cfb436a2f | ||
|
|
fae7db8a31 | ||
|
|
0a898655e8 | ||
|
|
48043f87b6 | ||
|
|
b7b126ee41 | ||
|
|
91c8f81d72 | ||
|
|
74476609c3 | ||
|
|
6c62d84232 | ||
|
|
c93bd31336 | ||
|
|
933e6c9d16 | ||
|
|
da24fbbc00 | ||
|
|
367648d24a | ||
|
|
bd3a59ad41 | ||
|
|
c0245cc591 | ||
|
|
13c696f37f | ||
|
|
0966b324d9 | ||
|
|
c0ef05e675 | ||
|
|
1dc43de0dc | ||
|
|
8a8f9a5d57 | ||
|
|
be28223f35 | ||
|
|
8e2d73bbde | ||
|
|
dd4d9ea542 | ||
|
|
169fedbdce | ||
|
|
32b9c30e67 | ||
|
|
75cd7fd667 | ||
|
|
7246dffff5 | ||
|
|
41d21e460f | ||
|
|
aadca7f418 | ||
|
|
3905bd637d | ||
|
|
c4f46e97ca | ||
|
|
bd3ca6630a | ||
|
|
92e607abfa | ||
|
|
ef118c13ba | ||
|
|
1cf71bd76e | ||
|
|
2c0ecac9d3 | ||
|
|
b0b5b51193 | ||
|
|
ff9b66a8d4 | ||
|
|
e221b55f67 | ||
|
|
865666afca | ||
|
|
7fc9325a52 | ||
|
|
4fb8241add | ||
|
|
30e7e7552b | ||
|
|
f58f843f66 | ||
|
|
d92de3a7e9 | ||
|
|
fe7fc61c6e | ||
|
|
ad3836448e | ||
|
|
f3ee587775 | ||
|
|
c92c30edbd | ||
|
|
4d10f48629 | ||
|
|
dc68120e63 | ||
|
|
0db811b69b | ||
|
|
d81cbbcc2c | ||
|
|
0dd6522036 | ||
|
|
889cb9c982 | ||
|
|
26ff1ea6c3 | ||
|
|
59f1209fad | ||
|
|
7b9365c65f | ||
|
|
a900d45489 | ||
|
|
e64f91feb7 | ||
|
|
b2a55c8106 | ||
|
|
030a2b8cb8 | ||
|
|
edce855943 | ||
|
|
35e476a3f6 | ||
|
|
0434a19431 | ||
|
|
2ff0c6f5f3 | ||
|
|
8a94aedbd6 | ||
|
|
95877cf8ae | ||
|
|
d3325ae40a | ||
|
|
23fabf8dea | ||
|
|
7a36b2abc0 | ||
|
|
e1c255f388 | ||
|
|
6d3c832a30 | ||
|
|
7935478397 | ||
|
|
5ee64be9c6 | ||
|
|
9f18cf15d5 | ||
|
|
bf05da183e | ||
|
|
2c04e8d80c | ||
|
|
925df53580 | ||
|
|
8191800a0c | ||
|
|
2165298fe6 | ||
|
|
e885dc85a1 | ||
|
|
df58084695 | ||
|
|
3c8c9b2779 | ||
|
|
b27dc009cf | ||
|
|
2c7a5578e1 | ||
|
|
b56d7cda74 | ||
|
|
8896b56488 | ||
|
|
0d735c29f9 | ||
|
|
3d50e91aee | ||
|
|
0cbfe5a7d5 | ||
|
|
eedca5055e | ||
|
|
5d040632ac | ||
|
|
314c3b8480 | ||
|
|
d630e1f389 | ||
|
|
0ea4a80bb2 | ||
|
|
ed4ce23c23 | ||
|
|
168aa59705 | ||
|
|
f71b1ad908 | ||
|
|
dac01ff6d7 | ||
|
|
4a9fe26837 | ||
|
|
90ec8763a5 | ||
|
|
796333bc5e | ||
|
|
f16c0de4e9 | ||
|
|
786cba1ada | ||
|
|
ed1662c374 | ||
|
|
1f0616ea1a | ||
|
|
55250d2d02 | ||
|
|
c5d73167a6 | ||
|
|
bde901ad89 | ||
|
|
79c77f7c31 | ||
|
|
986c249f2f | ||
|
|
3b8c3eb911 | ||
|
|
b29217d0d6 | ||
|
|
534f90f9bf | ||
|
|
dbe228353d | ||
|
|
bf77101e5c | ||
|
|
2ea9a125a6 | ||
|
|
58a00d6d9f | ||
|
|
57a27528e6 | ||
|
|
632c1edd06 | ||
|
|
434bc09263 | ||
|
|
f2584627c8 | ||
|
|
6901861fc9 | ||
|
|
d7d8a8f922 | ||
|
|
c19cfb79db | ||
|
|
65ce9b6d6c | ||
|
|
5f34a10445 | ||
|
|
fa1253aee1 | ||
|
|
f833f54979 | ||
|
|
e7d77fb3ef | ||
|
|
c8e63f247a | ||
|
|
7396ad6e09 | ||
|
|
6d295f8d7d | ||
|
|
5bd999d0c5 | ||
|
|
0f81fbe5da | ||
|
|
9b67960421 | ||
|
|
e10a26a9d6 | ||
|
|
7b68b58bc0 | ||
|
|
2d5455feac | ||
|
|
ac05c80f19 | ||
|
|
460adfef93 | ||
|
|
c876f6ae6d | ||
|
|
f49276bfcb | ||
|
|
d08ee3c83d | ||
|
|
cf7008670b | ||
|
|
558034ab70 | ||
|
|
27b7b1062f | ||
|
|
af82661dbd | ||
|
|
76f924131c | ||
|
|
98a5fdaf29 | ||
|
|
1ea05be46d | ||
|
|
c9d8c00a41 | ||
|
|
5aa290f0f2 | ||
|
|
f0831f7931 | ||
|
|
7fc3b2ce38 | ||
|
|
02fbc26d59 | ||
|
|
0074c9f5d1 | ||
|
|
90acbfd52e | ||
|
|
989b28fe97 | ||
|
|
aa61e14dc1 | ||
|
|
a84a09ad0b | ||
|
|
66b8557aff | ||
|
|
63cac69c2a | ||
|
|
f77d9b6584 | ||
|
|
2736b27df7 | ||
|
|
297644fa70 | ||
|
|
0177f28c51 | ||
|
|
732d10ed6c | ||
|
|
526a1c3b45 | ||
|
|
5b315a273e | ||
|
|
5094bb53f4 | ||
|
|
052f24c9b7 | ||
|
|
bce03fe144 | ||
|
|
9a1755264f | ||
|
|
3b59696a93 | ||
|
|
cdccb42267 | ||
|
|
753d44fa00 | ||
|
|
cfdfdcdd9d | ||
|
|
e232f5f3f9 | ||
|
|
43400b4086 | ||
|
|
8179354c2f | ||
|
|
f6c335d63f | ||
|
|
2bd72fa61c | ||
|
|
e17c1b25bc | ||
|
|
7d1eb66cd7 | ||
|
|
255826c40f | ||
|
|
1d0eead969 | ||
|
|
8005e58983 | ||
|
|
5d415815df | ||
|
|
f68559c086 | ||
|
|
08f97f3b1d | ||
|
|
b87ba2c942 | ||
|
|
e7a2ba41e3 | ||
|
|
6fe619be7a | ||
|
|
1e39b95682 | ||
|
|
8230af0b94 | ||
|
|
1709e5e966 | ||
|
|
7d7df83198 | ||
|
|
7de4cc35f8 | ||
|
|
aa0eaef483 | ||
|
|
9f503a254b | ||
|
|
d44b014271 | ||
|
|
469b423350 | ||
|
|
0adad07690 | ||
|
|
e4670a1029 | ||
|
|
1f0e50f2b9 | ||
|
|
2766262a68 | ||
|
|
bdb1f0e53d | ||
|
|
6e3613e6e6 | ||
|
|
1cb5150dba | ||
|
|
d24b7953c2 | ||
|
|
13db74ffc3 | ||
|
|
98905aa2c5 | ||
|
|
820ed48a00 | ||
|
|
973cc22529 | ||
|
|
2cc9246477 | ||
|
|
650036633f | ||
|
|
78aee26be6 | ||
|
|
947d431d50 | ||
|
|
58bd0148fb | ||
|
|
ca5c5be3e4 | ||
|
|
9bd37a6d27 | ||
|
|
1be69159f3 | ||
|
|
a3da0a96e3 | ||
|
|
626f8a85f0 | ||
|
|
867b52a7ac | ||
|
|
be31924f8c | ||
|
|
f70b2c77f4 | ||
|
|
ae495ffcc3 | ||
|
|
0fdfe82c6a | ||
|
|
dead10b1b8 | ||
|
|
41d820d2c3 | ||
|
|
5b31b38c27 | ||
|
|
39f4e4fafa | ||
|
|
587811c0a6 | ||
|
|
7f7fbe7fbd | ||
|
|
9b1eb2b421 | ||
|
|
1034aa6680 | ||
|
|
4be0af7f74 | ||
|
|
72f850571d | ||
|
|
e179d0eb12 | ||
|
|
ce61510127 | ||
|
|
86c64f3daf | ||
|
|
65e556d0ce | ||
|
|
6a1363128f | ||
|
|
75b9b26465 | ||
|
|
2c84ffe154 | ||
|
|
e7452415c5 | ||
|
|
87861c9b0e | ||
|
|
4d49ffe165 | ||
|
|
f63603dec4 | ||
|
|
0218a737fe | ||
|
|
18ca0aa984 | ||
|
|
c4e6c33b13 | ||
|
|
d774802eec | ||
|
|
69c0d3fbc8 | ||
|
|
076726f141 | ||
|
|
ad34a2d5c8 | ||
|
|
31e106c01c | ||
|
|
1dcc433661 | ||
|
|
a106abee62 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -45,4 +45,4 @@ CHANGES.dist
|
|||||||
.project
|
.project
|
||||||
.cproject
|
.cproject
|
||||||
.settings
|
.settings
|
||||||
/[0-9]*.patch
|
.dirstamp
|
||||||
|
|||||||
11
.travis.yml
Normal file
11
.travis.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
language: c
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- ./buildconf
|
||||||
|
|
||||||
|
compiler:
|
||||||
|
- clang
|
||||||
|
- gcc
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email: false
|
||||||
62
CHANGES.0
62
CHANGES.0
@@ -267,7 +267,7 @@ Daniel Stenberg (16 Apr 2010)
|
|||||||
Daniel Stenberg (15 Apr 2010)
|
Daniel Stenberg (15 Apr 2010)
|
||||||
- Rainer Canavan filed bug report #2987196 that identified libcurl doing
|
- Rainer Canavan filed bug report #2987196 that identified libcurl doing
|
||||||
unnecesary reverse name lookups in many cases when built to use IPv4 and
|
unnecesary reverse name lookups in many cases when built to use IPv4 and
|
||||||
getaddrinfo(). The logic for ipv6 is now used for ipv4 too.
|
getaddrinfo(). The logic for IPv6 is now used for IPv4 too.
|
||||||
|
|
||||||
(http://curl.haxx.se/bug/view.cgi?id=2963679)
|
(http://curl.haxx.se/bug/view.cgi?id=2963679)
|
||||||
|
|
||||||
@@ -4271,7 +4271,7 @@ Daniel S (15 Nov 2007)
|
|||||||
list.
|
list.
|
||||||
|
|
||||||
- Michal Marek fixed the test suite to better deal with the case when the HTTP
|
- Michal Marek fixed the test suite to better deal with the case when the HTTP
|
||||||
ipv6 server can't run.
|
IPv6 server can't run.
|
||||||
|
|
||||||
Yang Tse (14 Nov 2007)
|
Yang Tse (14 Nov 2007)
|
||||||
- Fix a variable potential wrapping in add_buffer() when using absolutely
|
- Fix a variable potential wrapping in add_buffer() when using absolutely
|
||||||
@@ -6109,7 +6109,7 @@ Daniel (22 August 2006)
|
|||||||
- David McCreedy fixed a remaining mistake from the August 19 TYPE change.
|
- David McCreedy fixed a remaining mistake from the August 19 TYPE change.
|
||||||
|
|
||||||
- Peter Sylvester pointed out a flaw in the AllowServerConnect() in the FTP
|
- Peter Sylvester pointed out a flaw in the AllowServerConnect() in the FTP
|
||||||
code when doing pure ipv6 EPRT connections.
|
code when doing pure IPv6 EPRT connections.
|
||||||
|
|
||||||
Daniel (19 August 2006)
|
Daniel (19 August 2006)
|
||||||
- Based on a patch by Armel Asselin, the FTP code no longer re-issues the TYPE
|
- Based on a patch by Armel Asselin, the FTP code no longer re-issues the TYPE
|
||||||
@@ -6666,8 +6666,8 @@ Daniel (24 January 2006)
|
|||||||
|
|
||||||
Daniel (20 January 2006)
|
Daniel (20 January 2006)
|
||||||
- Duane Cathey was one of our friends who reported that curl -P [IP]
|
- Duane Cathey was one of our friends who reported that curl -P [IP]
|
||||||
(CURLOPT_FTPPORT) didn't work for ipv6-enabed curls if the IP wasn't a
|
(CURLOPT_FTPPORT) didn't work for IPv6-enabed curls if the IP wasn't a
|
||||||
"native" IP while it works fine for ipv6-disabled builds!
|
"native" IP while it works fine for IPv6-disabled builds!
|
||||||
|
|
||||||
In the process of fixing this, I removed the support for LPRT since I can't
|
In the process of fixing this, I removed the support for LPRT since I can't
|
||||||
think of many reasons to keep doing it and asking on the mailing list didn't
|
think of many reasons to keep doing it and asking on the mailing list didn't
|
||||||
@@ -6676,7 +6676,7 @@ Daniel (20 January 2006)
|
|||||||
|
|
||||||
Daniel (19 January 2006)
|
Daniel (19 January 2006)
|
||||||
- Jon Turner pointed out that doing -P [hostname] (CURLOPT_FTPPORT) with curl
|
- Jon Turner pointed out that doing -P [hostname] (CURLOPT_FTPPORT) with curl
|
||||||
(built ipv4-only) didn't work.
|
(built IPv4-only) didn't work.
|
||||||
|
|
||||||
Daniel (18 January 2006)
|
Daniel (18 January 2006)
|
||||||
- As reported in bug #1408742 (http://curl.haxx.se/bug/view.cgi?id=1408742),
|
- As reported in bug #1408742 (http://curl.haxx.se/bug/view.cgi?id=1408742),
|
||||||
@@ -7557,7 +7557,7 @@ Daniel (29 March 2005)
|
|||||||
Daniel (16 March 2005)
|
Daniel (16 March 2005)
|
||||||
- Tru64 and some IRIX boxes seem to not like test 237 as it is. Their
|
- Tru64 and some IRIX boxes seem to not like test 237 as it is. Their
|
||||||
inet_addr() functions seems to use &255 on all numericals in a ipv4 dotted
|
inet_addr() functions seems to use &255 on all numericals in a ipv4 dotted
|
||||||
address which makes a different failure... Now I've modified the ipv4
|
address which makes a different failure... Now I've modified the IPv4
|
||||||
resolve code to use inet_pton() instead in an attempt to make these systems
|
resolve code to use inet_pton() instead in an attempt to make these systems
|
||||||
better detect this as a bad IP address rather than creating a toally bogus
|
better detect this as a bad IP address rather than creating a toally bogus
|
||||||
address that is then passed on and used.
|
address that is then passed on and used.
|
||||||
@@ -7750,7 +7750,7 @@ Daniel (7 February 2005)
|
|||||||
|
|
||||||
Daniel (5 February 2005)
|
Daniel (5 February 2005)
|
||||||
- Eric Vergnaud found a use of an uninitialised variable in the ftp when doing
|
- Eric Vergnaud found a use of an uninitialised variable in the ftp when doing
|
||||||
PORT on ipv6-enabled hosts.
|
PORT on IPv6-enabled hosts.
|
||||||
|
|
||||||
- David Byron pointed out we could use BUFSIZE to read data (in
|
- David Byron pointed out we could use BUFSIZE to read data (in
|
||||||
lib/transfer.c) instead of using BUFSIZE -1.
|
lib/transfer.c) instead of using BUFSIZE -1.
|
||||||
@@ -7822,7 +7822,7 @@ Daniel (28 January 2005)
|
|||||||
8. fetch a URL from the same server as before (re-using the connection)
|
8. fetch a URL from the same server as before (re-using the connection)
|
||||||
|
|
||||||
- Stephen More pointed out that CURLOPT_FTPPORT and the -P option didn't work
|
- Stephen More pointed out that CURLOPT_FTPPORT and the -P option didn't work
|
||||||
when built ipv6-enabled. I've now made a fix for it. Writing test cases for
|
when built IPv6-enabled. I've now made a fix for it. Writing test cases for
|
||||||
custom port hosts turned too tricky so unfortunately there's none.
|
custom port hosts turned too tricky so unfortunately there's none.
|
||||||
|
|
||||||
Daniel (25 January 2005)
|
Daniel (25 January 2005)
|
||||||
@@ -8560,9 +8560,9 @@ Daniel (20 August 2004)
|
|||||||
byte file is downloaded.
|
byte file is downloaded.
|
||||||
|
|
||||||
Daniel (18 August 2004)
|
Daniel (18 August 2004)
|
||||||
- Ling Thio pointed out that when libcurl is built ipv6-enabled, it still did
|
- Ling Thio pointed out that when libcurl is built IPv6-enabled, it still did
|
||||||
reverse DNS lookups when fed with a numerical IP-address (like
|
reverse DNS lookups when fed with a numerical IP-address (like
|
||||||
http://127.0.0.1/), although it doesn't when built ipv6-disabled. libcurl
|
http://127.0.0.1/), although it doesn't when built IPv6-disabled. libcurl
|
||||||
should never do reverse lookups.
|
should never do reverse lookups.
|
||||||
|
|
||||||
Daniel (17 August 2004)
|
Daniel (17 August 2004)
|
||||||
@@ -8714,7 +8714,7 @@ Daniel (27 June 2004)
|
|||||||
Daniel (24 June 2004)
|
Daniel (24 June 2004)
|
||||||
- The standard curl_version() string now only includes version info about
|
- The standard curl_version() string now only includes version info about
|
||||||
involved libraries and not about particular features. Thus it will no longer
|
involved libraries and not about particular features. Thus it will no longer
|
||||||
include info about ipv6 nor GSS. That info is of course still available in
|
include info about IPv6 nor GSS. That info is of course still available in
|
||||||
the feature bitmask curl_version_info() offers.
|
the feature bitmask curl_version_info() offers.
|
||||||
|
|
||||||
- Replaced all occurances of sprintf() with snprintf(). This is mostly because
|
- Replaced all occurances of sprintf() with snprintf(). This is mostly because
|
||||||
@@ -8729,8 +8729,8 @@ Daniel (24 June 2004)
|
|||||||
|
|
||||||
Internally, this means amongst other things that we can stop doing the weird
|
Internally, this means amongst other things that we can stop doing the weird
|
||||||
"increase buffer size until it works" trick when resolving hosts on
|
"increase buffer size until it works" trick when resolving hosts on
|
||||||
ipv4-only with gethostbyname_r(), we support socks even on libcurls built
|
IPv4-only with gethostbyname_r(), we support socks even on libcurls built
|
||||||
with ipv6 enabled (but only to socks servers that resolve to an ipv4
|
with IPv6 enabled (but only to socks servers that resolve to an IPv4
|
||||||
address) and we no longer deep-copy or relocate hostent structs (we create
|
address) and we no longer deep-copy or relocate hostent structs (we create
|
||||||
Curl_addrinfo chains instead).
|
Curl_addrinfo chains instead).
|
||||||
|
|
||||||
@@ -9074,7 +9074,7 @@ Daniel (27 April 2004)
|
|||||||
and proxy name to the ACE encoded version to use internally for resolves and
|
and proxy name to the ACE encoded version to use internally for resolves and
|
||||||
cookies etc. They are now using one 'struct hostname' each that keep both
|
cookies etc. They are now using one 'struct hostname' each that keep both
|
||||||
the original name and the possibly encoded name. IDN resolves work for me
|
the original name and the possibly encoded name. IDN resolves work for me
|
||||||
now using ipv6, ipv4 and ares resolving. Even cookies on IDN sites seem to
|
now using IPv6, IPv4 and ares resolving. Even cookies on IDN sites seem to
|
||||||
do right. I got some failures at first when CHARSET wasn't set at all which
|
do right. I got some failures at first when CHARSET wasn't set at all which
|
||||||
confused libidn completely and it decided by encoding of choice was
|
confused libidn completely and it decided by encoding of choice was
|
||||||
'ANSI_X3.4-1968'...
|
'ANSI_X3.4-1968'...
|
||||||
@@ -9115,7 +9115,7 @@ Daniel (25 April 2004)
|
|||||||
|
|
||||||
CURLRES_ARES - is defined if libcurl is built to use c-ares for asynchronous
|
CURLRES_ARES - is defined if libcurl is built to use c-ares for asynchronous
|
||||||
name resolves. It cannot have ENABLE_IPV6 defined at the same time, as
|
name resolves. It cannot have ENABLE_IPV6 defined at the same time, as
|
||||||
c-ares has no ipv6 support. This can be Windows or *nix.
|
c-ares has no IPv6 support. This can be Windows or *nix.
|
||||||
|
|
||||||
CURLRES_THREADED - is defined if libcurl is built to run under (native)
|
CURLRES_THREADED - is defined if libcurl is built to run under (native)
|
||||||
Windows, and then the name resolve will be done in a new thread, and the
|
Windows, and then the name resolve will be done in a new thread, and the
|
||||||
@@ -9132,8 +9132,8 @@ Daniel (25 April 2004)
|
|||||||
hostsyn.c - functions for synchronous name resolves
|
hostsyn.c - functions for synchronous name resolves
|
||||||
hostares.c - functions for ares-using name resolves
|
hostares.c - functions for ares-using name resolves
|
||||||
hostthre.c - functions for threaded name resolves
|
hostthre.c - functions for threaded name resolves
|
||||||
hostip4.c - ipv4-specific functions
|
hostip4.c - IPv4 specific functions
|
||||||
hostip6.c - ipv6-specific functions
|
hostip6.c - IPv6 specific functions
|
||||||
|
|
||||||
The hostip.h is the single united header file for all this. It defines the
|
The hostip.h is the single united header file for all this. It defines the
|
||||||
CURLRES_* defines based on the config*.h and setup.h defines.
|
CURLRES_* defines based on the config*.h and setup.h defines.
|
||||||
@@ -9225,7 +9225,7 @@ Daniel (15 April 2004)
|
|||||||
for the typical (not very deep) case.
|
for the typical (not very deep) case.
|
||||||
|
|
||||||
Daniel (14 April 2004)
|
Daniel (14 April 2004)
|
||||||
- Asking for CURL_IPRESOLVE_V6 when ipv6 addresses can't be resolved will
|
- Asking for CURL_IPRESOLVE_V6 when IPv6 addresses can't be resolved will
|
||||||
now cause the resolve function to return NULL immediately. This flaw was
|
now cause the resolve function to return NULL immediately. This flaw was
|
||||||
pointed out by Gisle Vanem.
|
pointed out by Gisle Vanem.
|
||||||
|
|
||||||
@@ -9380,7 +9380,7 @@ Daniel (29 March 2004)
|
|||||||
- The postit2.c source example used the wrong struct name for the post data.
|
- The postit2.c source example used the wrong struct name for the post data.
|
||||||
|
|
||||||
Daniel (26 March 2004)
|
Daniel (26 March 2004)
|
||||||
- Gisle Vanem improved ipv6 support on windows by making the curl build to use
|
- Gisle Vanem improved IPv6 support on Windows by making the curl build use
|
||||||
the correct getaddrinfo() function.
|
the correct getaddrinfo() function.
|
||||||
|
|
||||||
Daniel (25 March 2004)
|
Daniel (25 March 2004)
|
||||||
@@ -9673,7 +9673,7 @@ Daniel (16 February 2004)
|
|||||||
and re-use that same handle during the entire curl handle's life-time. It
|
and re-use that same handle during the entire curl handle's life-time. It
|
||||||
improves performance.
|
improves performance.
|
||||||
|
|
||||||
- Fixed a problem when displaying verbose for ipv6-enabled libcurls and
|
- Fixed a problem when displaying verbose for IPv6-enabled libcurls and
|
||||||
re-used connections. Problem reported and fix verified by Grigory Entin.
|
re-used connections. Problem reported and fix verified by Grigory Entin.
|
||||||
|
|
||||||
- Jeff Lawson fixed the version-check in the SOCKS5 code.
|
- Jeff Lawson fixed the version-check in the SOCKS5 code.
|
||||||
@@ -9725,7 +9725,7 @@ Daniel (9 February 2004)
|
|||||||
|
|
||||||
- Tor Arntsen provided a patch that makes libcurl work-around a bug in the
|
- Tor Arntsen provided a patch that makes libcurl work-around a bug in the
|
||||||
AIX5 implementation of getaddrinfo(). This makes the FTP PORT stuff work on
|
AIX5 implementation of getaddrinfo(). This makes the FTP PORT stuff work on
|
||||||
ipv6-enabled AIX builds.
|
IPv6-enabled AIX builds.
|
||||||
|
|
||||||
- Ken Rastatter provided portability fixes for the curlgtk.c example, and now
|
- Ken Rastatter provided portability fixes for the curlgtk.c example, and now
|
||||||
it runs on windows with GTK as well!
|
it runs on windows with GTK as well!
|
||||||
@@ -9754,7 +9754,7 @@ Daniel (5 February 2004)
|
|||||||
verifies this functionality.
|
verifies this functionality.
|
||||||
|
|
||||||
- Tor Arntsen fixed a weird getaddrinfo() usage in the FTP code, preventing
|
- Tor Arntsen fixed a weird getaddrinfo() usage in the FTP code, preventing
|
||||||
the ipv6-code for PORT work on AIX 5.2. We now also provide (better) error
|
the IPv6-code for PORT work on AIX 5.2. We now also provide (better) error
|
||||||
messages when bailing out in the that function.
|
messages when bailing out in the that function.
|
||||||
|
|
||||||
- Tor Arntsen now provides AIX and IRIX (using gcc, xlc and the MIPSPro
|
- Tor Arntsen now provides AIX and IRIX (using gcc, xlc and the MIPSPro
|
||||||
@@ -10133,10 +10133,10 @@ Daniel (13 November)
|
|||||||
possibly other platforms too.
|
possibly other platforms too.
|
||||||
|
|
||||||
- Peter Sylvester identified a problem in the connect code, which made the
|
- Peter Sylvester identified a problem in the connect code, which made the
|
||||||
multi interface on a ipv6-enabled solaris box do bad. Test case 504 to be
|
multi interface on a IPv6-enabled Solaris box do bad. Test case 504 to be
|
||||||
specific. I've spent some time to clean-up the Curl_connecthost() function
|
specific. I've spent some time to clean-up the Curl_connecthost() function
|
||||||
now to use less duplicated code for the two different sections: ipv6 and
|
now to use less duplicated code for the two different sections: IPv6 and
|
||||||
ipv4.
|
IPv4.
|
||||||
|
|
||||||
Daniel (11 November)
|
Daniel (11 November)
|
||||||
- Added CURLOPT_NETRC_FILE. Use this to tell libcurl which file to use instead
|
- Added CURLOPT_NETRC_FILE. Use this to tell libcurl which file to use instead
|
||||||
@@ -10234,7 +10234,7 @@ Daniel (29 October)
|
|||||||
Daniel (28 October)
|
Daniel (28 October)
|
||||||
- Dan C tracked down yet another weird behavior in the glibc gethostbyname_r()
|
- Dan C tracked down yet another weird behavior in the glibc gethostbyname_r()
|
||||||
function for some specific versions (reported on 2.2.5 and 2.1.1), and
|
function for some specific versions (reported on 2.2.5 and 2.1.1), and
|
||||||
provided a fix. On Linux machines with these glibc versions, non-ipv6
|
provided a fix. On Linux machines with these glibc versions, non-IPv6
|
||||||
builds of libcurl would often fail to resolve perfectly resolvable host
|
builds of libcurl would often fail to resolve perfectly resolvable host
|
||||||
names.
|
names.
|
||||||
|
|
||||||
@@ -10353,7 +10353,7 @@ Version 7.10.8-pre3 (8 October 2003)
|
|||||||
|
|
||||||
Daniel (8 October)
|
Daniel (8 October)
|
||||||
- Frank Ticheler provided a patch that fixes how libcurl connects to multiple
|
- Frank Ticheler provided a patch that fixes how libcurl connects to multiple
|
||||||
addresses, if one of them fails (ipv4-code).
|
addresses, if one of them fails (IPv4 code).
|
||||||
|
|
||||||
Daniel (7 October)
|
Daniel (7 October)
|
||||||
- Neil Dunbar provided a patch that now makes libcurl check SSL
|
- Neil Dunbar provided a patch that now makes libcurl check SSL
|
||||||
@@ -11865,7 +11865,7 @@ Daniel (30 Sep 2002)
|
|||||||
updated the man page accordingly.
|
updated the man page accordingly.
|
||||||
|
|
||||||
- Cris Bailiff found out that the pre-releases crashed on name lookups on
|
- Cris Bailiff found out that the pre-releases crashed on name lookups on
|
||||||
names such as "a:" or "baz:" (on Linux versions not being ipv6-enabled) due
|
names such as "a:" or "baz:" (on Linux versions not being IPv6-enabled) due
|
||||||
to some weird return codes from gethostbyname_r(). I'll blame the complete
|
to some weird return codes from gethostbyname_r(). I'll blame the complete
|
||||||
lack of docs in that department. Cris provided a fix, which I modified only
|
lack of docs in that department. Cris provided a fix, which I modified only
|
||||||
slightly.
|
slightly.
|
||||||
@@ -17598,7 +17598,7 @@ Version 4.8.4
|
|||||||
- As Julian Romero Nieto reported, curl reported wrong version number.
|
- As Julian Romero Nieto reported, curl reported wrong version number.
|
||||||
- As Teemu Yli-Elsila pointed out, the win32 version of 4.8 (and probably all
|
- As Teemu Yli-Elsila pointed out, the win32 version of 4.8 (and probably all
|
||||||
other versions for win32) didn't work with binary files since I'm too used
|
other versions for win32) didn't work with binary files since I'm too used
|
||||||
to the UNIX style fopen() where binary and text don't differ...
|
to the Unix style fopen() where binary and text don't differ...
|
||||||
- Ralph Beckmann brought me some changes that lets curl compile error and
|
- Ralph Beckmann brought me some changes that lets curl compile error and
|
||||||
warning free with -Wall -pedantic with g++. I also took the opportunity to
|
warning free with -Wall -pedantic with g++. I also took the opportunity to
|
||||||
clean off some unused variables and similar.
|
clean off some unused variables and similar.
|
||||||
@@ -17851,7 +17851,7 @@ Version 2.7
|
|||||||
rewrite the former -l kludge in an external script that'll use urlget to
|
rewrite the former -l kludge in an external script that'll use urlget to
|
||||||
fetch multipart files like that.
|
fetch multipart files like that.
|
||||||
- '-f' is introduced, it means Fail without output in case of HTTP server
|
- '-f' is introduced, it means Fail without output in case of HTTP server
|
||||||
errors (return code >=300).
|
errors (return code >=400).
|
||||||
- Added support for -r, ranges. Specify which part of a document you
|
- Added support for -r, ranges. Specify which part of a document you
|
||||||
want, and only that part is returned. Only with HTTP/1.1-servers.
|
want, and only that part is returned. Only with HTTP/1.1-servers.
|
||||||
- Split up the source in 3 parts. Now all pure URL functions are in
|
- Split up the source in 3 parts. Now all pure URL functions are in
|
||||||
|
|||||||
@@ -1,75 +0,0 @@
|
|||||||
# - Check if the source code provided in the SOURCE argument compiles.
|
|
||||||
# CURL_CHECK_C_SOURCE_COMPILES(SOURCE VAR)
|
|
||||||
# - macro which checks if the source code compiles
|
|
||||||
# SOURCE - source code to try to compile
|
|
||||||
# VAR - variable to store whether the source code compiled
|
|
||||||
#
|
|
||||||
# The following variables may be set before calling this macro to
|
|
||||||
# modify the way the check is run:
|
|
||||||
#
|
|
||||||
# CMAKE_REQUIRED_FLAGS = string of compile command line flags
|
|
||||||
# CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
|
|
||||||
# CMAKE_REQUIRED_INCLUDES = list of include directories
|
|
||||||
# CMAKE_REQUIRED_LIBRARIES = list of libraries to link
|
|
||||||
|
|
||||||
macro(CURL_CHECK_C_SOURCE_COMPILES SOURCE VAR)
|
|
||||||
if("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN")
|
|
||||||
set(message "${VAR}")
|
|
||||||
# If the number of arguments is greater than 2 (SOURCE VAR)
|
|
||||||
if(${ARGC} GREATER 2)
|
|
||||||
# then add the third argument as a message
|
|
||||||
set(message "${ARGV2} (${VAR})")
|
|
||||||
endif(${ARGC} GREATER 2)
|
|
||||||
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
|
||||||
"-D${VAR} ${CMAKE_REQUIRED_FLAGS}")
|
|
||||||
if(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES
|
|
||||||
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
|
||||||
else(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES)
|
|
||||||
endif(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
if(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES
|
|
||||||
"-DINCLUDE_DIRECTORIES:STRING=${CMAKE_REQUIRED_INCLUDES}")
|
|
||||||
else(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES)
|
|
||||||
endif(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(src "")
|
|
||||||
foreach(def ${EXTRA_DEFINES})
|
|
||||||
set(src "${src}#define ${def} 1\n")
|
|
||||||
endforeach(def)
|
|
||||||
foreach(inc ${HEADER_INCLUDES})
|
|
||||||
set(src "${src}#include <${inc}>\n")
|
|
||||||
endforeach(inc)
|
|
||||||
|
|
||||||
set(src "${src}\nint main() { ${SOURCE} ; return 0; }")
|
|
||||||
set(CMAKE_CONFIGURABLE_FILE_CONTENT "${src}")
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CMake/CMakeConfigurableFile.in
|
|
||||||
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c"
|
|
||||||
IMMEDIATE)
|
|
||||||
message(STATUS "Performing Test ${message}")
|
|
||||||
try_compile(${VAR}
|
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c
|
|
||||||
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
|
||||||
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
|
||||||
"${CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES}"
|
|
||||||
"${CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES}"
|
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
|
||||||
if(${VAR})
|
|
||||||
set(${VAR} 1 CACHE INTERNAL "Test ${message}")
|
|
||||||
message(STATUS "Performing Test ${message} - Success")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
|
||||||
"Performing C SOURCE FILE Test ${message} succeded with the following output:\n"
|
|
||||||
"${OUTPUT}\n"
|
|
||||||
"Source file was:\n${src}\n")
|
|
||||||
else(${VAR})
|
|
||||||
message(STATUS "Performing Test ${message} - Failed")
|
|
||||||
set(${VAR} "" CACHE INTERNAL "Test ${message}")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
|
||||||
"Performing C SOURCE FILE Test ${message} failed with the following output:\n"
|
|
||||||
"${OUTPUT}\n"
|
|
||||||
"Source file was:\n${src}\n")
|
|
||||||
endif(${VAR})
|
|
||||||
endif("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN")
|
|
||||||
endmacro(CURL_CHECK_C_SOURCE_COMPILES)
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
# - Check if the source code provided in the SOURCE argument compiles and runs.
|
|
||||||
# CURL_CHECK_C_SOURCE_RUNS(SOURCE VAR)
|
|
||||||
# - macro which checks if the source code runs
|
|
||||||
# SOURCE - source code to try to compile
|
|
||||||
# VAR - variable to store size if the type exists.
|
|
||||||
#
|
|
||||||
# The following variables may be set before calling this macro to
|
|
||||||
# modify the way the check is run:
|
|
||||||
#
|
|
||||||
# CMAKE_REQUIRED_FLAGS = string of compile command line flags
|
|
||||||
# CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
|
|
||||||
# CMAKE_REQUIRED_INCLUDES = list of include directories
|
|
||||||
# CMAKE_REQUIRED_LIBRARIES = list of libraries to link
|
|
||||||
|
|
||||||
macro(CURL_CHECK_C_SOURCE_RUNS SOURCE VAR)
|
|
||||||
if("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN")
|
|
||||||
set(message "${VAR}")
|
|
||||||
# If the number of arguments is greater than 2 (SOURCE VAR)
|
|
||||||
if(${ARGC} GREATER 2)
|
|
||||||
# then add the third argument as a message
|
|
||||||
set(message "${ARGV2} (${VAR})")
|
|
||||||
endif(${ARGC} GREATER 2)
|
|
||||||
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
|
||||||
"-D${VAR} ${CMAKE_REQUIRED_FLAGS}")
|
|
||||||
if(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES
|
|
||||||
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
|
||||||
else(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES)
|
|
||||||
endif(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
if(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES
|
|
||||||
"-DINCLUDE_DIRECTORIES:STRING=${CMAKE_REQUIRED_INCLUDES}")
|
|
||||||
else(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES)
|
|
||||||
endif(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(src "")
|
|
||||||
foreach(def ${EXTRA_DEFINES})
|
|
||||||
set(src "${src}#define ${def} 1\n")
|
|
||||||
endforeach(def)
|
|
||||||
foreach(inc ${HEADER_INCLUDES})
|
|
||||||
set(src "${src}#include <${inc}>\n")
|
|
||||||
endforeach(inc)
|
|
||||||
|
|
||||||
set(src "${src}\nint main() { ${SOURCE} ; return 0; }")
|
|
||||||
set(CMAKE_CONFIGURABLE_FILE_CONTENT "${src}")
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CMake/CMakeConfigurableFile.in
|
|
||||||
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c"
|
|
||||||
IMMEDIATE)
|
|
||||||
message(STATUS "Performing Test ${message}")
|
|
||||||
try_run(${VAR} ${VAR}_COMPILED
|
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c
|
|
||||||
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
|
||||||
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
|
||||||
"${CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES}"
|
|
||||||
"${CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES}"
|
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
|
||||||
# if it did not compile make the return value fail code of 1
|
|
||||||
if(NOT ${VAR}_COMPILED)
|
|
||||||
set(${VAR} 1)
|
|
||||||
endif(NOT ${VAR}_COMPILED)
|
|
||||||
# if the return value was 0 then it worked
|
|
||||||
set(result_var ${${VAR}})
|
|
||||||
if("${result_var}" EQUAL 0)
|
|
||||||
set(${VAR} 1 CACHE INTERNAL "Test ${message}")
|
|
||||||
message(STATUS "Performing Test ${message} - Success")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
|
||||||
"Performing C SOURCE FILE Test ${message} succeded with the following output:\n"
|
|
||||||
"${OUTPUT}\n"
|
|
||||||
"Return value: ${${VAR}}\n"
|
|
||||||
"Source file was:\n${src}\n")
|
|
||||||
else("${result_var}" EQUAL 0)
|
|
||||||
message(STATUS "Performing Test ${message} - Failed")
|
|
||||||
set(${VAR} "" CACHE INTERNAL "Test ${message}")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
|
||||||
"Performing C SOURCE FILE Test ${message} failed with the following output:\n"
|
|
||||||
"${OUTPUT}\n"
|
|
||||||
"Return value: ${result_var}\n"
|
|
||||||
"Source file was:\n${src}\n")
|
|
||||||
endif("${result_var}" EQUAL 0)
|
|
||||||
endif("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN")
|
|
||||||
endmacro(CURL_CHECK_C_SOURCE_RUNS)
|
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -71,264 +71,88 @@ main ()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_5
|
/* tests for gethostbyaddr_r or gethostbyname_r */
|
||||||
|
#if defined(HAVE_GETHOSTBYADDR_R_5_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_7_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_8_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_3_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT)
|
||||||
|
# define _REENTRANT
|
||||||
|
/* no idea whether _REENTRANT is always set, just invent a new flag */
|
||||||
|
# define TEST_GETHOSTBYFOO_REENTRANT
|
||||||
|
#endif
|
||||||
|
#if defined(HAVE_GETHOSTBYADDR_R_5) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_7) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_8) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_3) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_5) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_6) || \
|
||||||
|
defined(TEST_GETHOSTBYFOO_REENTRANT)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
int
|
int main(void)
|
||||||
main ()
|
|
||||||
{
|
{
|
||||||
|
char *address = "example.com";
|
||||||
char * address;
|
int length = 0;
|
||||||
int length;
|
int type = 0;
|
||||||
int type;
|
struct hostent h;
|
||||||
struct hostent h;
|
int rc = 0;
|
||||||
struct hostent_data hdata;
|
#if defined(HAVE_GETHOSTBYADDR_R_5) || \
|
||||||
int rc;
|
defined(HAVE_GETHOSTBYADDR_R_5_REENTRANT) || \
|
||||||
#ifndef gethostbyaddr_r
|
\
|
||||||
(void)gethostbyaddr_r;
|
defined(HAVE_GETHOSTBYNAME_R_3) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_3_REENTRANT)
|
||||||
|
struct hostent_data hdata;
|
||||||
|
#elif defined(HAVE_GETHOSTBYADDR_R_7) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_7_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_8) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_8_REENTRANT) || \
|
||||||
|
\
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_5) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_6) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT)
|
||||||
|
char buffer[8192];
|
||||||
|
int h_errnop;
|
||||||
|
struct hostent *hp;
|
||||||
#endif
|
#endif
|
||||||
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_5_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
char * address;
|
|
||||||
int length;q
|
|
||||||
int type;
|
|
||||||
struct hostent h;
|
|
||||||
struct hostent_data hdata;
|
|
||||||
int rc;
|
|
||||||
#ifndef gethostbyaddr_r
|
|
||||||
(void)gethostbyaddr_r;
|
|
||||||
#endif
|
|
||||||
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_7
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
char * address;
|
|
||||||
int length;
|
|
||||||
int type;
|
|
||||||
struct hostent h;
|
|
||||||
char buffer[8192];
|
|
||||||
int h_errnop;
|
|
||||||
struct hostent * hp;
|
|
||||||
|
|
||||||
#ifndef gethostbyaddr_r
|
#ifndef gethostbyaddr_r
|
||||||
(void)gethostbyaddr_r;
|
(void)gethostbyaddr_r;
|
||||||
#endif
|
#endif
|
||||||
hp = gethostbyaddr_r(address, length, type, &h,
|
|
||||||
buffer, 8192, &h_errnop);
|
#if defined(HAVE_GETHOSTBYADDR_R_5) || \
|
||||||
;
|
defined(HAVE_GETHOSTBYADDR_R_5_REENTRANT)
|
||||||
|
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
|
||||||
|
#elif defined(HAVE_GETHOSTBYADDR_R_7) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_7_REENTRANT)
|
||||||
|
hp = gethostbyaddr_r(address, length, type, &h, buffer, 8192, &h_errnop);
|
||||||
|
(void)hp;
|
||||||
|
#elif defined(HAVE_GETHOSTBYADDR_R_8) || \
|
||||||
|
defined(HAVE_GETHOSTBYADDR_R_8_REENTRANT)
|
||||||
|
rc = gethostbyaddr_r(address, length, type, &h, buffer, 8192, &hp, &h_errnop);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_GETHOSTBYNAME_R_3) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_3_REENTRANT)
|
||||||
|
rc = gethostbyname_r(address, &h, &hdata);
|
||||||
|
#elif defined(HAVE_GETHOSTBYNAME_R_5) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT)
|
||||||
|
rc = gethostbyname_r(address, &h, buffer, 8192, 0, &h_errnop);
|
||||||
|
(void)hp; /* not used for test */
|
||||||
|
#elif defined(HAVE_GETHOSTBYNAME_R_6) || \
|
||||||
|
defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT)
|
||||||
|
rc = gethostbyname_r(address, &h, buffer, 8192, &hp, &h_errnop);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
(void)length;
|
||||||
|
(void)type;
|
||||||
|
(void)rc;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_7_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
char * address;
|
|
||||||
int length;
|
|
||||||
int type;
|
|
||||||
struct hostent h;
|
|
||||||
char buffer[8192];
|
|
||||||
int h_errnop;
|
|
||||||
struct hostent * hp;
|
|
||||||
|
|
||||||
#ifndef gethostbyaddr_r
|
|
||||||
(void)gethostbyaddr_r;
|
|
||||||
#endif
|
|
||||||
hp = gethostbyaddr_r(address, length, type, &h,
|
|
||||||
buffer, 8192, &h_errnop);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_8
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
char * address;
|
|
||||||
int length;
|
|
||||||
int type;
|
|
||||||
struct hostent h;
|
|
||||||
char buffer[8192];
|
|
||||||
int h_errnop;
|
|
||||||
struct hostent * hp;
|
|
||||||
int rc;
|
|
||||||
|
|
||||||
#ifndef gethostbyaddr_r
|
|
||||||
(void)gethostbyaddr_r;
|
|
||||||
#endif
|
|
||||||
rc = gethostbyaddr_r(address, length, type, &h,
|
|
||||||
buffer, 8192, &hp, &h_errnop);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYADDR_R_8_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
char * address;
|
|
||||||
int length;
|
|
||||||
int type;
|
|
||||||
struct hostent h;
|
|
||||||
char buffer[8192];
|
|
||||||
int h_errnop;
|
|
||||||
struct hostent * hp;
|
|
||||||
int rc;
|
|
||||||
|
|
||||||
#ifndef gethostbyaddr_r
|
|
||||||
(void)gethostbyaddr_r;
|
|
||||||
#endif
|
|
||||||
rc = gethostbyaddr_r(address, length, type, &h,
|
|
||||||
buffer, 8192, &hp, &h_errnop);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_3
|
|
||||||
#include <string.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
struct hostent_data data;
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_3_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <string.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
struct hostent_data data;
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_5
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL, 0, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_5_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL, 0, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_6
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_6_REENTRANT
|
|
||||||
#define _REENTRANT
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#undef NULL
|
|
||||||
#define NULL (void *)0
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
(void)gethostbyname_r;
|
|
||||||
#endif
|
|
||||||
gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_SOCKLEN_T
|
#ifdef HAVE_SOCKLEN_T
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
|||||||
289
CMake/FindGSS.cmake
Normal file
289
CMake/FindGSS.cmake
Normal file
@@ -0,0 +1,289 @@
|
|||||||
|
# - Try to find the GSS Kerberos library
|
||||||
|
# Once done this will define
|
||||||
|
#
|
||||||
|
# GSS_ROOT_DIR - Set this variable to the root installation of GSS
|
||||||
|
#
|
||||||
|
# Read-Only variables:
|
||||||
|
# GSS_FOUND - system has the Heimdal library
|
||||||
|
# GSS_FLAVOUR - "MIT" or "Heimdal" if anything found.
|
||||||
|
# GSS_INCLUDE_DIR - the Heimdal include directory
|
||||||
|
# GSS_LIBRARIES - The libraries needed to use GSS
|
||||||
|
# GSS_LINK_DIRECTORIES - Directories to add to linker search path
|
||||||
|
# GSS_LINKER_FLAGS - Additional linker flags
|
||||||
|
# GSS_COMPILER_FLAGS - Additional compiler flags
|
||||||
|
# GSS_VERSION - This is set to version advertised by pkg-config or read from manifest.
|
||||||
|
# In case the library is found but no version info availabe it'll be set to "unknown"
|
||||||
|
|
||||||
|
set(_MIT_MODNAME mit-krb5-gssapi)
|
||||||
|
set(_HEIMDAL_MODNAME heimdal-gssapi)
|
||||||
|
|
||||||
|
include(CheckIncludeFile)
|
||||||
|
include(CheckIncludeFiles)
|
||||||
|
include(CheckTypeSize)
|
||||||
|
|
||||||
|
set(_GSS_ROOT_HINTS
|
||||||
|
"${GSS_ROOT_DIR}"
|
||||||
|
"$ENV{GSS_ROOT_DIR}"
|
||||||
|
)
|
||||||
|
|
||||||
|
# try to find library using system pkg-config if user didn't specify root dir
|
||||||
|
if(NOT GSS_ROOT_DIR AND NOT "$ENV{GSS_ROOT_DIR}")
|
||||||
|
if(UNIX)
|
||||||
|
find_package(PkgConfig QUIET)
|
||||||
|
pkg_search_module(_GSS_PKG ${_MIT_MODNAME} ${_HEIMDAL_MODNAME})
|
||||||
|
list(APPEND _GSS_ROOT_HINTS "${_GSS_PKG_PREFIX}")
|
||||||
|
elseif(WIN32)
|
||||||
|
list(APPEND _GSS_ROOT_HINTS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MIT\\Kerberos;InstallDir]")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approach.
|
||||||
|
find_file(_GSS_CONFIGURE_SCRIPT
|
||||||
|
NAMES
|
||||||
|
"krb5-config"
|
||||||
|
HINTS
|
||||||
|
${_GSS_ROOT_HINTS}
|
||||||
|
PATH_SUFFIXES
|
||||||
|
bin
|
||||||
|
NO_CMAKE_PATH
|
||||||
|
NO_CMAKE_ENVIRONMENT_PATH
|
||||||
|
)
|
||||||
|
|
||||||
|
# if not found in user-supplied directories, maybe system knows better
|
||||||
|
find_file(_GSS_CONFIGURE_SCRIPT
|
||||||
|
NAMES
|
||||||
|
"krb5-config"
|
||||||
|
PATH_SUFFIXES
|
||||||
|
bin
|
||||||
|
)
|
||||||
|
|
||||||
|
if(_GSS_CONFIGURE_SCRIPT)
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${_GSS_CONFIGURE_SCRIPT} "--cflags" "gssapi"
|
||||||
|
OUTPUT_VARIABLE _GSS_CFLAGS
|
||||||
|
RESULT_VARIABLE _GSS_CONFIGURE_FAILED
|
||||||
|
)
|
||||||
|
message(STATUS "CFLAGS: ${_GSS_CFLAGS}")
|
||||||
|
if(NOT _GSS_CONFIGURE_FAILED) # 0 means success
|
||||||
|
# should also work in an odd case when multiple directories are given
|
||||||
|
string(STRIP "${_GSS_CFLAGS}" _GSS_CFLAGS)
|
||||||
|
string(REGEX REPLACE " +-I" ";" _GSS_CFLAGS "${_GSS_CFLAGS}")
|
||||||
|
string(REGEX REPLACE " +-([^I][^ \\t;]*)" ";-\\1"_GSS_CFLAGS "${_GSS_CFLAGS}")
|
||||||
|
|
||||||
|
foreach(_flag ${_GSS_CFLAGS})
|
||||||
|
if(_flag MATCHES "^-I.*")
|
||||||
|
string(REGEX REPLACE "^-I" "" _val "${_flag}")
|
||||||
|
list(APPEND _GSS_INCLUDE_DIR "${_val}")
|
||||||
|
else()
|
||||||
|
list(APPEND _GSS_COMPILER_FLAGS "${_flag}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${_GSS_CONFIGURE_SCRIPT} "--libs" "gssapi"
|
||||||
|
OUTPUT_VARIABLE _GSS_LIB_FLAGS
|
||||||
|
RESULT_VARIABLE _GSS_CONFIGURE_FAILED
|
||||||
|
)
|
||||||
|
message(STATUS "LDFLAGS: ${_GSS_LIB_FLAGS}")
|
||||||
|
if(NOT _GSS_CONFIGURE_FAILED) # 0 means success
|
||||||
|
# this script gives us libraries and link directories. Blah. We have to deal with it.
|
||||||
|
string(STRIP "${_GSS_LIB_FLAGS}" _GSS_LIB_FLAGS)
|
||||||
|
string(REGEX REPLACE " +-(L|l)" ";-\\1" _GSS_LIB_FLAGS "${_GSS_LIB_FLAGS}")
|
||||||
|
string(REGEX REPLACE " +-([^Ll][^ \\t;]*)" ";-\\1"_GSS_LIB_FLAGS "${_GSS_LIB_FLAGS}")
|
||||||
|
|
||||||
|
foreach(_flag ${_GSS_LIB_FLAGS})
|
||||||
|
if(_flag MATCHES "^-l.*")
|
||||||
|
string(REGEX REPLACE "^-l" "" _val "${_flag}")
|
||||||
|
list(APPEND _GSS_LIBRARIES "${_val}")
|
||||||
|
elseif(_flag MATCHES "^-L.*")
|
||||||
|
string(REGEX REPLACE "^-L" "" _val "${_flag}")
|
||||||
|
list(APPEND _GSS_LINK_DIRECTORIES "${_val}")
|
||||||
|
else()
|
||||||
|
list(APPEND _GSS_LINKER_FLAGS "${_flag}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${_GSS_CONFIGURE_SCRIPT} "--version"
|
||||||
|
OUTPUT_VARIABLE _GSS_VERSION
|
||||||
|
RESULT_VARIABLE _GSS_CONFIGURE_FAILED
|
||||||
|
)
|
||||||
|
|
||||||
|
# older versions may not have the "--version" parameter. In this case we just don't care.
|
||||||
|
if(_GSS_CONFIGURE_FAILED)
|
||||||
|
set(_GSS_VERSION 0)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${_GSS_CONFIGURE_SCRIPT} "--vendor"
|
||||||
|
OUTPUT_VARIABLE _GSS_VENDOR
|
||||||
|
RESULT_VARIABLE _GSS_CONFIGURE_FAILED
|
||||||
|
)
|
||||||
|
|
||||||
|
# older versions may not have the "--vendor" parameter. In this case we just don't care.
|
||||||
|
if(_GSS_CONFIGURE_FAILED)
|
||||||
|
set(GSS_FLAVOUR "Heimdal") # most probably, shouldn't really matter
|
||||||
|
else()
|
||||||
|
if(_GSS_VENDOR MATCHES ".*H|heimdal.*")
|
||||||
|
set(GSS_FLAVOUR "Heimdal")
|
||||||
|
else()
|
||||||
|
set(GSS_FLAVOUR "MIT")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
else() # either there is no config script or we are on platform that doesn't provide one (Windows?)
|
||||||
|
|
||||||
|
find_path(_GSS_INCLUDE_DIR
|
||||||
|
NAMES
|
||||||
|
"gssapi/gssapi.h"
|
||||||
|
HINTS
|
||||||
|
${_GSS_ROOT_HINTS}
|
||||||
|
PATH_SUFFIXES
|
||||||
|
include
|
||||||
|
inc
|
||||||
|
)
|
||||||
|
|
||||||
|
if(_GSS_INCLUDE_DIR) #jay, we've found something
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES "${_GSS_INCLUDE_DIR}")
|
||||||
|
check_include_files( "gssapi/gssapi_generic.h;gssapi/gssapi_krb5.h" _GSS_HAVE_MIT_HEADERS)
|
||||||
|
|
||||||
|
if(_GSS_HAVE_MIT_HEADERS)
|
||||||
|
set(GSS_FLAVOUR "MIT")
|
||||||
|
else()
|
||||||
|
# prevent compiling the header - just check if we can include it
|
||||||
|
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D__ROKEN_H__")
|
||||||
|
check_include_file( "roken.h" _GSS_HAVE_ROKEN_H)
|
||||||
|
|
||||||
|
check_include_file( "heimdal/roken.h" _GSS_HAVE_HEIMDAL_ROKEN_H)
|
||||||
|
if(_GSS_HAVE_ROKEN_H OR _GSS_HAVE_HEIMDAL_ROKEN_H)
|
||||||
|
set(GSS_FLAVOUR "Heimdal")
|
||||||
|
endif()
|
||||||
|
set(CMAKE_REQUIRED_DEFINITIONS "")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
# I'm not convienced if this is the right way but this is what autotools do at the moment
|
||||||
|
find_path(_GSS_INCLUDE_DIR
|
||||||
|
NAMES
|
||||||
|
"gssapi.h"
|
||||||
|
HINTS
|
||||||
|
${_GSS_ROOT_HINTS}
|
||||||
|
PATH_SUFFIXES
|
||||||
|
include
|
||||||
|
inc
|
||||||
|
)
|
||||||
|
|
||||||
|
if(_GSS_INCLUDE_DIR)
|
||||||
|
set(GSS_FLAVOUR "Heimdal")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# if we have headers, check if we can link libraries
|
||||||
|
if(GSS_FLAVOUR)
|
||||||
|
set(_GSS_LIBDIR_SUFFIXES "")
|
||||||
|
set(_GSS_LIBDIR_HINTS ${_GSS_ROOT_HINTS})
|
||||||
|
get_filename_component(_GSS_CALCULATED_POTENTIAL_ROOT "${_GSS_INCLUDE_DIR}" PATH)
|
||||||
|
list(APPEND _GSS_LIBDIR_HINTS ${_GSS_CALCULATED_POTENTIAL_ROOT})
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
list(APPEND _GSS_LIBDIR_SUFFIXES "lib/AMD64")
|
||||||
|
if(GSS_FLAVOUR STREQUAL "MIT")
|
||||||
|
set(_GSS_LIBNAME "gssapi64")
|
||||||
|
else()
|
||||||
|
set(_GSS_LIBNAME "libgssapi")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
list(APPEND _GSS_LIBDIR_SUFFIXES "lib/i386")
|
||||||
|
if(GSS_FLAVOUR STREQUAL "MIT")
|
||||||
|
set(_GSS_LIBNAME "gssapi32")
|
||||||
|
else()
|
||||||
|
set(_GSS_LIBNAME "libgssapi")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
list(APPEND _GSS_LIBDIR_SUFFIXES "lib;lib64") # those suffixes are not checked for HINTS
|
||||||
|
if(GSS_FLAVOUR STREQUAL "MIT")
|
||||||
|
set(_GSS_LIBNAME "gssapi_krb5")
|
||||||
|
else()
|
||||||
|
set(_GSS_LIBNAME "gssapi")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
find_library(_GSS_LIBRARIES
|
||||||
|
NAMES
|
||||||
|
${_GSS_LIBNAME}
|
||||||
|
HINTS
|
||||||
|
${_GSS_LIBDIR_HINTS}
|
||||||
|
PATH_SUFFIXES
|
||||||
|
${_GSS_LIBDIR_SUFFIXES}
|
||||||
|
)
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
if(_GSS_PKG_${_MIT_MODNAME}_VERSION)
|
||||||
|
set(GSS_FLAVOUR "MIT")
|
||||||
|
set(_GSS_VERSION _GSS_PKG_${_MIT_MODNAME}_VERSION)
|
||||||
|
else()
|
||||||
|
set(GSS_FLAVOUR "Heimdal")
|
||||||
|
set(_GSS_VERSION _GSS_PKG_${_MIT_HEIMDAL}_VERSION)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(GSS_INCLUDE_DIR ${_GSS_INCLUDE_DIR})
|
||||||
|
set(GSS_LIBRARIES ${_GSS_LIBRARIES})
|
||||||
|
set(GSS_LINK_DIRECTORIES ${_GSS_LINK_DIRECTORIES})
|
||||||
|
set(GSS_LINKER_FLAGS ${_GSS_LINKER_FLAGS})
|
||||||
|
set(GSS_COMPILER_FLAGS ${_GSS_COMPILER_FLAGS})
|
||||||
|
set(GSS_VERSION ${_GSS_VERSION})
|
||||||
|
|
||||||
|
if(GSS_FLAVOUR)
|
||||||
|
|
||||||
|
if(NOT GSS_VERSION AND GSS_FLAVOUR STREQUAL "Heimdal")
|
||||||
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
set(HEIMDAL_MANIFEST_FILE "Heimdal.Application.amd64.manifest")
|
||||||
|
else()
|
||||||
|
set(HEIMDAL_MANIFEST_FILE "Heimdal.Application.x86.manifest")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(EXISTS "${GSS_INCLUDE_DIR}/${HEIMDAL_MANIFEST_FILE}")
|
||||||
|
file(STRINGS "${GSS_INCLUDE_DIR}/${HEIMDAL_MANIFEST_FILE}" heimdal_version_str
|
||||||
|
REGEX "^.*version=\"[0-9]\\.[^\"]+\".*$")
|
||||||
|
|
||||||
|
string(REGEX MATCH "[0-9]\\.[^\"]+"
|
||||||
|
GSS_VERSION "${heimdal_version_str}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT GSS_VERSION)
|
||||||
|
set(GSS_VERSION "Heimdal Unknown")
|
||||||
|
endif()
|
||||||
|
elseif(NOT GSS_VERSION AND GSS_FLAVOUR STREQUAL "MIT")
|
||||||
|
get_filename_component(_MIT_VERSION "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MIT\\Kerberos\\SDK\\CurrentVersion;VersionString]" NAME CACHE)
|
||||||
|
if(WIN32 AND _MIT_VERSION)
|
||||||
|
set(GSS_VERSION "${_MIT_VERSION}")
|
||||||
|
else()
|
||||||
|
set(GSS_VERSION "MIT Unknown")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
include(FindPackageHandleStandardArgs)
|
||||||
|
|
||||||
|
set(_GSS_REQUIRED_VARS GSS_LIBRARIES GSS_FLAVOUR)
|
||||||
|
|
||||||
|
find_package_handle_standard_args(GSS
|
||||||
|
REQUIRED_VARS
|
||||||
|
${_GSS_REQUIRED_VARS}
|
||||||
|
VERSION_VAR
|
||||||
|
GSS_VERSION
|
||||||
|
FAIL_MESSAGE
|
||||||
|
"Could NOT find GSS, try to set the path to GSS root folder in the system variable GSS_ROOT_DIR"
|
||||||
|
)
|
||||||
|
|
||||||
|
mark_as_advanced(GSS_INCLUDE_DIR GSS_LIBRARIES)
|
||||||
35
CMake/FindLibSSH2.cmake
Normal file
35
CMake/FindLibSSH2.cmake
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# - Try to find the libssh2 library
|
||||||
|
# Once done this will define
|
||||||
|
#
|
||||||
|
# LIBSSH2_FOUND - system has the libssh2 library
|
||||||
|
# LIBSSH2_INCLUDE_DIR - the libssh2 include directory
|
||||||
|
# LIBSSH2_LIBRARY - the libssh2 library name
|
||||||
|
|
||||||
|
if (LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)
|
||||||
|
set(LibSSH2_FIND_QUIETLY TRUE)
|
||||||
|
endif (LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)
|
||||||
|
|
||||||
|
FIND_PATH(LIBSSH2_INCLUDE_DIR libssh2.h
|
||||||
|
)
|
||||||
|
|
||||||
|
FIND_LIBRARY(LIBSSH2_LIBRARY NAMES ssh2
|
||||||
|
)
|
||||||
|
|
||||||
|
if(LIBSSH2_INCLUDE_DIR)
|
||||||
|
file(STRINGS "${LIBSSH2_INCLUDE_DIR}/libssh2.h" libssh2_version_str REGEX "^#define[\t ]+LIBSSH2_VERSION_NUM[\t ]+0x[0-9][0-9][0-9][0-9][0-9][0-9].*")
|
||||||
|
|
||||||
|
string(REGEX REPLACE "^.*LIBSSH2_VERSION_NUM[\t ]+0x([0-9][0-9]).*$" "\\1" LIBSSH2_VERSION_MAJOR "${libssh2_version_str}")
|
||||||
|
string(REGEX REPLACE "^.*LIBSSH2_VERSION_NUM[\t ]+0x[0-9][0-9]([0-9][0-9]).*$" "\\1" LIBSSH2_VERSION_MINOR "${libssh2_version_str}")
|
||||||
|
string(REGEX REPLACE "^.*LIBSSH2_VERSION_NUM[\t ]+0x[0-9][0-9][0-9][0-9]([0-9][0-9]).*$" "\\1" LIBSSH2_VERSION_PATCH "${libssh2_version_str}")
|
||||||
|
|
||||||
|
string(REGEX REPLACE "^0(.+)" "\\1" LIBSSH2_VERSION_MAJOR "${LIBSSH2_VERSION_MAJOR}")
|
||||||
|
string(REGEX REPLACE "^0(.+)" "\\1" LIBSSH2_VERSION_MINOR "${LIBSSH2_VERSION_MINOR}")
|
||||||
|
string(REGEX REPLACE "^0(.+)" "\\1" LIBSSH2_VERSION_PATCH "${LIBSSH2_VERSION_PATCH}")
|
||||||
|
|
||||||
|
set(LIBSSH2_VERSION "${LIBSSH2_VERSION_MAJOR}.${LIBSSH2_VERSION_MINOR}.${LIBSSH2_VERSION_PATCH}")
|
||||||
|
endif(LIBSSH2_INCLUDE_DIR)
|
||||||
|
|
||||||
|
include(FindPackageHandleStandardArgs)
|
||||||
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibSSH2 DEFAULT_MSG LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY )
|
||||||
|
|
||||||
|
MARK_AS_ADVANCED(LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY LIBSSH2_VERSION_MAJOR LIBSSH2_VERSION_MINOR LIBSSH2_VERSION_PATCH LIBSSH2_VERSION)
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
# Extension of the standard FindOpenSSL.cmake
|
|
||||||
# Adds OPENSSL_INCLUDE_DIRS and libeay32
|
|
||||||
include("${CMAKE_ROOT}/Modules/FindOpenSSL.cmake")
|
|
||||||
|
|
||||||
# starting 2.8 it is better to use standard modules
|
|
||||||
if(CMAKE_MAJOR_VERSION EQUAL "2" AND CMAKE_MINOR_VERSION LESS "8")
|
|
||||||
# Bill Hoffman told that libeay32 is necessary for him:
|
|
||||||
find_library(SSL_LIBEAY NAMES libeay32)
|
|
||||||
|
|
||||||
if(OPENSSL_FOUND)
|
|
||||||
if(SSL_LIBEAY)
|
|
||||||
list(APPEND OPENSSL_LIBRARIES ${SSL_LIBEAY})
|
|
||||||
else()
|
|
||||||
set(OPENSSL_FOUND FALSE)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endif() # if (CMAKE_MAJOR_VERSION EQUAL "2" AND CMAKE_MINOR_VERSION LESS "8")
|
|
||||||
|
|
||||||
if(OPENSSL_FOUND)
|
|
||||||
set(OPENSSL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR})
|
|
||||||
endif()
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# Locate zlib
|
|
||||||
include("${CMAKE_ROOT}/Modules/FindZLIB.cmake")
|
|
||||||
|
|
||||||
# starting 2.8 it is better to use standard modules
|
|
||||||
if(CMAKE_MAJOR_VERSION EQUAL "2" AND CMAKE_MINOR_VERSION LESS "8")
|
|
||||||
find_library(ZLIB_LIBRARY_DEBUG NAMES zd zlibd zdlld zlib1d )
|
|
||||||
if(ZLIB_FOUND AND ZLIB_LIBRARY_DEBUG)
|
|
||||||
set( ZLIB_LIBRARIES optimized "${ZLIB_LIBRARY}" debug ${ZLIB_LIBRARY_DEBUG})
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
95
CMake/Macros.cmake
Normal file
95
CMake/Macros.cmake
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
#File defines convenience macros for available feature testing
|
||||||
|
|
||||||
|
# This macro checks if the symbol exists in the library and if it
|
||||||
|
# does, it prepends library to the list. It is intended to be called
|
||||||
|
# multiple times with a sequence of possibly dependent libraries in
|
||||||
|
# order of least-to-most-dependent. Some libraries depend on others
|
||||||
|
# to link correctly.
|
||||||
|
macro(CHECK_LIBRARY_EXISTS_CONCAT LIBRARY SYMBOL VARIABLE)
|
||||||
|
check_library_exists("${LIBRARY};${CURL_LIBS}" ${SYMBOL} "${CMAKE_LIBRARY_PATH}"
|
||||||
|
${VARIABLE})
|
||||||
|
if(${VARIABLE})
|
||||||
|
set(CURL_LIBS ${LIBRARY} ${CURL_LIBS})
|
||||||
|
endif(${VARIABLE})
|
||||||
|
endmacro(CHECK_LIBRARY_EXISTS_CONCAT)
|
||||||
|
|
||||||
|
# Check if header file exists and add it to the list.
|
||||||
|
# This macro is intended to be called multiple times with a sequence of
|
||||||
|
# possibly dependent header files. Some headers depend on others to be
|
||||||
|
# compiled correctly.
|
||||||
|
macro(CHECK_INCLUDE_FILE_CONCAT FILE VARIABLE)
|
||||||
|
check_include_files("${CURL_INCLUDES};${FILE}" ${VARIABLE})
|
||||||
|
if(${VARIABLE})
|
||||||
|
set(CURL_INCLUDES ${CURL_INCLUDES} ${FILE})
|
||||||
|
set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${VARIABLE}")
|
||||||
|
endif(${VARIABLE})
|
||||||
|
endmacro(CHECK_INCLUDE_FILE_CONCAT)
|
||||||
|
|
||||||
|
# For other curl specific tests, use this macro.
|
||||||
|
macro(CURL_INTERNAL_TEST CURL_TEST)
|
||||||
|
if(NOT DEFINED "${CURL_TEST}")
|
||||||
|
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
||||||
|
"-D${CURL_TEST} ${CURL_TEST_DEFINES} ${CMAKE_REQUIRED_FLAGS}")
|
||||||
|
if(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
set(CURL_TEST_ADD_LIBRARIES
|
||||||
|
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
||||||
|
endif(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST}")
|
||||||
|
try_compile(${CURL_TEST}
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/CMake/CurlTests.c
|
||||||
|
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
||||||
|
"${CURL_TEST_ADD_LIBRARIES}"
|
||||||
|
OUTPUT_VARIABLE OUTPUT)
|
||||||
|
if(${CURL_TEST})
|
||||||
|
set(${CURL_TEST} 1 CACHE INTERNAL "Curl test ${FUNCTION}")
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST} - Success")
|
||||||
|
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||||
|
"Performing Curl Test ${CURL_TEST} passed with the following output:\n"
|
||||||
|
"${OUTPUT}\n")
|
||||||
|
else(${CURL_TEST})
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST} - Failed")
|
||||||
|
set(${CURL_TEST} "" CACHE INTERNAL "Curl test ${FUNCTION}")
|
||||||
|
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||||
|
"Performing Curl Test ${CURL_TEST} failed with the following output:\n"
|
||||||
|
"${OUTPUT}\n")
|
||||||
|
endif(${CURL_TEST})
|
||||||
|
endif()
|
||||||
|
endmacro(CURL_INTERNAL_TEST)
|
||||||
|
|
||||||
|
macro(CURL_INTERNAL_TEST_RUN CURL_TEST)
|
||||||
|
if(NOT DEFINED "${CURL_TEST}_COMPILE")
|
||||||
|
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
||||||
|
"-D${CURL_TEST} ${CMAKE_REQUIRED_FLAGS}")
|
||||||
|
if(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
set(CURL_TEST_ADD_LIBRARIES
|
||||||
|
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
||||||
|
endif(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST}")
|
||||||
|
try_run(${CURL_TEST} ${CURL_TEST}_COMPILE
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/CMake/CurlTests.c
|
||||||
|
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
||||||
|
"${CURL_TEST_ADD_LIBRARIES}"
|
||||||
|
OUTPUT_VARIABLE OUTPUT)
|
||||||
|
if(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
||||||
|
set(${CURL_TEST} 1 CACHE INTERNAL "Curl test ${FUNCTION}")
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST} - Success")
|
||||||
|
else(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
||||||
|
message(STATUS "Performing Curl Test ${CURL_TEST} - Failed")
|
||||||
|
set(${CURL_TEST} "" CACHE INTERNAL "Curl test ${FUNCTION}")
|
||||||
|
file(APPEND "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
||||||
|
"Performing Curl Test ${CURL_TEST} failed with the following output:\n"
|
||||||
|
"${OUTPUT}")
|
||||||
|
if(${CURL_TEST}_COMPILE)
|
||||||
|
file(APPEND
|
||||||
|
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
||||||
|
"There was a problem running this test\n")
|
||||||
|
endif(${CURL_TEST}_COMPILE)
|
||||||
|
file(APPEND "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
||||||
|
"\n\n")
|
||||||
|
endif(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
||||||
|
endif()
|
||||||
|
endmacro(CURL_INTERNAL_TEST_RUN)
|
||||||
@@ -1,15 +1,10 @@
|
|||||||
include(CurlCheckCSourceCompiles)
|
include(CheckCSourceCompiles)
|
||||||
set(EXTRA_DEFINES "__unused1\n#undef inline\n#define __unused2")
|
# The begin of the sources (macros and includes)
|
||||||
set(HEADER_INCLUDES)
|
set(_source_epilogue "#undef inline")
|
||||||
set(headers_hack)
|
|
||||||
|
|
||||||
macro(add_header_include check header)
|
macro(add_header_include check header)
|
||||||
if(${check})
|
if(${check})
|
||||||
set(headers_hack
|
set(_source_epilogue "${_source_epilogue}\n#include <${header}>")
|
||||||
"${headers_hack}\n#include <${header}>")
|
|
||||||
#SET(HEADER_INCLUDES
|
|
||||||
# ${HEADER_INCLUDES}
|
|
||||||
# "${header}")
|
|
||||||
endif(${check})
|
endif(${check})
|
||||||
endmacro(add_header_include)
|
endmacro(add_header_include)
|
||||||
|
|
||||||
@@ -18,22 +13,23 @@ if(HAVE_WINDOWS_H)
|
|||||||
add_header_include(HAVE_WINDOWS_H "windows.h")
|
add_header_include(HAVE_WINDOWS_H "windows.h")
|
||||||
add_header_include(HAVE_WINSOCK2_H "winsock2.h")
|
add_header_include(HAVE_WINSOCK2_H "winsock2.h")
|
||||||
add_header_include(HAVE_WINSOCK_H "winsock.h")
|
add_header_include(HAVE_WINSOCK_H "winsock.h")
|
||||||
set(EXTRA_DEFINES ${EXTRA_DEFINES}
|
set(_source_epilogue
|
||||||
"__unused7\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif\n#define __unused3")
|
"${_source_epilogue}\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif")
|
||||||
set(signature_call_conv "PASCAL")
|
set(signature_call_conv "PASCAL")
|
||||||
|
if(HAVE_LIBWS2_32)
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES ws2_32)
|
||||||
|
endif()
|
||||||
else(HAVE_WINDOWS_H)
|
else(HAVE_WINDOWS_H)
|
||||||
add_header_include(HAVE_SYS_TYPES_H "sys/types.h")
|
add_header_include(HAVE_SYS_TYPES_H "sys/types.h")
|
||||||
add_header_include(HAVE_SYS_SOCKET_H "sys/socket.h")
|
add_header_include(HAVE_SYS_SOCKET_H "sys/socket.h")
|
||||||
endif(HAVE_WINDOWS_H)
|
endif(HAVE_WINDOWS_H)
|
||||||
|
|
||||||
set(EXTRA_DEFINES_BACKUP "${EXTRA_DEFINES}")
|
check_c_source_compiles("${_source_epilogue}
|
||||||
set(EXTRA_DEFINES "${EXTRA_DEFINES_BACKUP}\n${headers_hack}\n${extern_line}\n#define __unused5")
|
int main(void) {
|
||||||
curl_check_c_source_compiles("recv(0, 0, 0, 0)" curl_cv_recv)
|
recv(0, 0, 0, 0);
|
||||||
|
return 0;
|
||||||
|
}" curl_cv_recv)
|
||||||
if(curl_cv_recv)
|
if(curl_cv_recv)
|
||||||
# AC_CACHE_CHECK([types of arguments and return type for recv],
|
|
||||||
#[curl_cv_func_recv_args], [
|
|
||||||
#SET(curl_cv_func_recv_args "unknown")
|
|
||||||
#for recv_retv in 'int' 'ssize_t'; do
|
|
||||||
if(NOT DEFINED curl_cv_func_recv_args OR "${curl_cv_func_recv_args}" STREQUAL "unknown")
|
if(NOT DEFINED curl_cv_func_recv_args OR "${curl_cv_func_recv_args}" STREQUAL "unknown")
|
||||||
foreach(recv_retv "int" "ssize_t" )
|
foreach(recv_retv "int" "ssize_t" )
|
||||||
foreach(recv_arg1 "int" "ssize_t" "SOCKET")
|
foreach(recv_arg1 "int" "ssize_t" "SOCKET")
|
||||||
@@ -41,17 +37,23 @@ if(curl_cv_recv)
|
|||||||
foreach(recv_arg3 "size_t" "int" "socklen_t" "unsigned int")
|
foreach(recv_arg3 "size_t" "int" "socklen_t" "unsigned int")
|
||||||
foreach(recv_arg4 "int" "unsigned int")
|
foreach(recv_arg4 "int" "unsigned int")
|
||||||
if(NOT curl_cv_func_recv_done)
|
if(NOT curl_cv_func_recv_done)
|
||||||
set(curl_cv_func_recv_test "UNKNOWN")
|
unset(curl_cv_func_recv_test CACHE)
|
||||||
set(extern_line "extern ${recv_retv} ${signature_call_conv} recv(${recv_arg1}, ${recv_arg2}, ${recv_arg3}, ${recv_arg4})\;")
|
check_c_source_compiles("
|
||||||
set(EXTRA_DEFINES "${EXTRA_DEFINES_BACKUP}\n${headers_hack}\n${extern_line}\n#define __unused5")
|
${_source_epilogue}
|
||||||
curl_check_c_source_compiles("
|
extern ${recv_retv} ${signature_call_conv}
|
||||||
|
recv(${recv_arg1}, ${recv_arg2}, ${recv_arg3}, ${recv_arg4});
|
||||||
|
int main(void) {
|
||||||
${recv_arg1} s=0;
|
${recv_arg1} s=0;
|
||||||
${recv_arg2} buf=0;
|
${recv_arg2} buf=0;
|
||||||
${recv_arg3} len=0;
|
${recv_arg3} len=0;
|
||||||
${recv_arg4} flags=0;
|
${recv_arg4} flags=0;
|
||||||
${recv_retv} res = recv(s, buf, len, flags)"
|
${recv_retv} res = recv(s, buf, len, flags);
|
||||||
curl_cv_func_recv_test
|
(void) res;
|
||||||
"${recv_retv} recv(${recv_arg1}, ${recv_arg2}, ${recv_arg3}, ${recv_arg4})")
|
return 0;
|
||||||
|
}"
|
||||||
|
curl_cv_func_recv_test)
|
||||||
|
message(STATUS
|
||||||
|
"Tested: ${recv_retv} recv(${recv_arg1}, ${recv_arg2}, ${recv_arg3}, ${recv_arg4})")
|
||||||
if(curl_cv_func_recv_test)
|
if(curl_cv_func_recv_test)
|
||||||
set(curl_cv_func_recv_args
|
set(curl_cv_func_recv_args
|
||||||
"${recv_arg1},${recv_arg2},${recv_arg3},${recv_arg4},${recv_retv}")
|
"${recv_arg1},${recv_arg2},${recv_arg3},${recv_arg4},${recv_retv}")
|
||||||
@@ -69,18 +71,13 @@ if(curl_cv_recv)
|
|||||||
endforeach(recv_arg2)
|
endforeach(recv_arg2)
|
||||||
endforeach(recv_arg1)
|
endforeach(recv_arg1)
|
||||||
endforeach(recv_retv)
|
endforeach(recv_retv)
|
||||||
else(NOT DEFINED curl_cv_func_recv_args OR "${curl_cv_func_recv_args}" STREQUAL "unknown")
|
else()
|
||||||
string(REGEX REPLACE "^([^,]*),[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG1 "${curl_cv_func_recv_args}")
|
string(REGEX REPLACE "^([^,]*),[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG1 "${curl_cv_func_recv_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,([^,]*),[^,]*,[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG2 "${curl_cv_func_recv_args}")
|
string(REGEX REPLACE "^[^,]*,([^,]*),[^,]*,[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG2 "${curl_cv_func_recv_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,([^,]*),[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG3 "${curl_cv_func_recv_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,([^,]*),[^,]*,[^,]*$" "\\1" RECV_TYPE_ARG3 "${curl_cv_func_recv_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,([^,]*),[^,]*$" "\\1" RECV_TYPE_ARG4 "${curl_cv_func_recv_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,([^,]*),[^,]*$" "\\1" RECV_TYPE_ARG4 "${curl_cv_func_recv_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,([^,]*)$" "\\1" RECV_TYPE_RETV "${curl_cv_func_recv_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,([^,]*)$" "\\1" RECV_TYPE_RETV "${curl_cv_func_recv_args}")
|
||||||
#MESSAGE("RECV_TYPE_ARG1 ${RECV_TYPE_ARG1}")
|
endif()
|
||||||
#MESSAGE("RECV_TYPE_ARG2 ${RECV_TYPE_ARG2}")
|
|
||||||
#MESSAGE("RECV_TYPE_ARG3 ${RECV_TYPE_ARG3}")
|
|
||||||
#MESSAGE("RECV_TYPE_ARG4 ${RECV_TYPE_ARG4}")
|
|
||||||
#MESSAGE("RECV_TYPE_RETV ${RECV_TYPE_RETV}")
|
|
||||||
endif(NOT DEFINED curl_cv_func_recv_args OR "${curl_cv_func_recv_args}" STREQUAL "unknown")
|
|
||||||
|
|
||||||
if("${curl_cv_func_recv_args}" STREQUAL "unknown")
|
if("${curl_cv_func_recv_args}" STREQUAL "unknown")
|
||||||
message(FATAL_ERROR "Cannot find proper types to use for recv args")
|
message(FATAL_ERROR "Cannot find proper types to use for recv args")
|
||||||
@@ -91,12 +88,12 @@ endif(curl_cv_recv)
|
|||||||
set(curl_cv_func_recv_args "${curl_cv_func_recv_args}" CACHE INTERNAL "Arguments for recv")
|
set(curl_cv_func_recv_args "${curl_cv_func_recv_args}" CACHE INTERNAL "Arguments for recv")
|
||||||
set(HAVE_RECV 1)
|
set(HAVE_RECV 1)
|
||||||
|
|
||||||
curl_check_c_source_compiles("send(0, 0, 0, 0)" curl_cv_send)
|
check_c_source_compiles("${_source_epilogue}
|
||||||
|
int main(void) {
|
||||||
|
send(0, 0, 0, 0);
|
||||||
|
return 0;
|
||||||
|
}" curl_cv_send)
|
||||||
if(curl_cv_send)
|
if(curl_cv_send)
|
||||||
# AC_CACHE_CHECK([types of arguments and return type for send],
|
|
||||||
#[curl_cv_func_send_args], [
|
|
||||||
#SET(curl_cv_func_send_args "unknown")
|
|
||||||
#for send_retv in 'int' 'ssize_t'; do
|
|
||||||
if(NOT DEFINED curl_cv_func_send_args OR "${curl_cv_func_send_args}" STREQUAL "unknown")
|
if(NOT DEFINED curl_cv_func_send_args OR "${curl_cv_func_send_args}" STREQUAL "unknown")
|
||||||
foreach(send_retv "int" "ssize_t" )
|
foreach(send_retv "int" "ssize_t" )
|
||||||
foreach(send_arg1 "int" "ssize_t" "SOCKET")
|
foreach(send_arg1 "int" "ssize_t" "SOCKET")
|
||||||
@@ -104,19 +101,24 @@ if(curl_cv_send)
|
|||||||
foreach(send_arg3 "size_t" "int" "socklen_t" "unsigned int")
|
foreach(send_arg3 "size_t" "int" "socklen_t" "unsigned int")
|
||||||
foreach(send_arg4 "int" "unsigned int")
|
foreach(send_arg4 "int" "unsigned int")
|
||||||
if(NOT curl_cv_func_send_done)
|
if(NOT curl_cv_func_send_done)
|
||||||
set(curl_cv_func_send_test "UNKNOWN")
|
unset(curl_cv_func_send_test CACHE)
|
||||||
set(extern_line "extern ${send_retv} ${signature_call_conv} send(${send_arg1}, ${send_arg2}, ${send_arg3}, ${send_arg4})\;")
|
check_c_source_compiles("
|
||||||
set(EXTRA_DEFINES "${EXTRA_DEFINES_BACKUP}\n${headers_hack}\n${extern_line}\n#define __unused5")
|
${_source_epilogue}
|
||||||
curl_check_c_source_compiles("
|
extern ${send_retv} ${signature_call_conv}
|
||||||
|
send(${send_arg1}, ${send_arg2}, ${send_arg3}, ${send_arg4});
|
||||||
|
int main(void) {
|
||||||
${send_arg1} s=0;
|
${send_arg1} s=0;
|
||||||
${send_arg2} buf=0;
|
${send_arg2} buf=0;
|
||||||
${send_arg3} len=0;
|
${send_arg3} len=0;
|
||||||
${send_arg4} flags=0;
|
${send_arg4} flags=0;
|
||||||
${send_retv} res = send(s, buf, len, flags)"
|
${send_retv} res = send(s, buf, len, flags);
|
||||||
curl_cv_func_send_test
|
(void) res;
|
||||||
"${send_retv} send(${send_arg1}, ${send_arg2}, ${send_arg3}, ${send_arg4})")
|
return 0;
|
||||||
|
}"
|
||||||
|
curl_cv_func_send_test)
|
||||||
|
message(STATUS
|
||||||
|
"Tested: ${send_retv} send(${send_arg1}, ${send_arg2}, ${send_arg3}, ${send_arg4})")
|
||||||
if(curl_cv_func_send_test)
|
if(curl_cv_func_send_test)
|
||||||
#MESSAGE("Found arguments: ${curl_cv_func_send_test}")
|
|
||||||
string(REGEX REPLACE "(const) .*" "\\1" send_qual_arg2 "${send_arg2}")
|
string(REGEX REPLACE "(const) .*" "\\1" send_qual_arg2 "${send_arg2}")
|
||||||
string(REGEX REPLACE "const (.*)" "\\1" send_arg2 "${send_arg2}")
|
string(REGEX REPLACE "const (.*)" "\\1" send_arg2 "${send_arg2}")
|
||||||
set(curl_cv_func_send_args
|
set(curl_cv_func_send_args
|
||||||
@@ -135,20 +137,14 @@ if(curl_cv_send)
|
|||||||
endforeach(send_arg2)
|
endforeach(send_arg2)
|
||||||
endforeach(send_arg1)
|
endforeach(send_arg1)
|
||||||
endforeach(send_retv)
|
endforeach(send_retv)
|
||||||
else(NOT DEFINED curl_cv_func_send_args OR "${curl_cv_func_send_args}" STREQUAL "unknown")
|
else()
|
||||||
string(REGEX REPLACE "^([^,]*),[^,]*,[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG1 "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^([^,]*),[^,]*,[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG1 "${curl_cv_func_send_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,([^,]*),[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG2 "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^[^,]*,([^,]*),[^,]*,[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG2 "${curl_cv_func_send_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,([^,]*),[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG3 "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,([^,]*),[^,]*,[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG3 "${curl_cv_func_send_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,([^,]*),[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG4 "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,([^,]*),[^,]*,[^,]*$" "\\1" SEND_TYPE_ARG4 "${curl_cv_func_send_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,([^,]*),[^,]*$" "\\1" SEND_TYPE_RETV "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,([^,]*),[^,]*$" "\\1" SEND_TYPE_RETV "${curl_cv_func_send_args}")
|
||||||
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,([^,]*)$" "\\1" SEND_QUAL_ARG2 "${curl_cv_func_send_args}")
|
string(REGEX REPLACE "^[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,([^,]*)$" "\\1" SEND_QUAL_ARG2 "${curl_cv_func_send_args}")
|
||||||
#MESSAGE("SEND_TYPE_ARG1 ${SEND_TYPE_ARG1}")
|
endif()
|
||||||
#MESSAGE("SEND_TYPE_ARG2 ${SEND_TYPE_ARG2}")
|
|
||||||
#MESSAGE("SEND_TYPE_ARG3 ${SEND_TYPE_ARG3}")
|
|
||||||
#MESSAGE("SEND_TYPE_ARG4 ${SEND_TYPE_ARG4}")
|
|
||||||
#MESSAGE("SEND_TYPE_RETV ${SEND_TYPE_RETV}")
|
|
||||||
#MESSAGE("SEND_QUAL_ARG2 ${SEND_QUAL_ARG2}")
|
|
||||||
endif(NOT DEFINED curl_cv_func_send_args OR "${curl_cv_func_send_args}" STREQUAL "unknown")
|
|
||||||
|
|
||||||
if("${curl_cv_func_send_args}" STREQUAL "unknown")
|
if("${curl_cv_func_send_args}" STREQUAL "unknown")
|
||||||
message(FATAL_ERROR "Cannot find proper types to use for send args")
|
message(FATAL_ERROR "Cannot find proper types to use for send args")
|
||||||
@@ -160,88 +156,71 @@ endif(curl_cv_send)
|
|||||||
set(curl_cv_func_send_args "${curl_cv_func_send_args}" CACHE INTERNAL "Arguments for send")
|
set(curl_cv_func_send_args "${curl_cv_func_send_args}" CACHE INTERNAL "Arguments for send")
|
||||||
set(HAVE_SEND 1)
|
set(HAVE_SEND 1)
|
||||||
|
|
||||||
set(EXTRA_DEFINES "${EXTRA_DEFINES}\n${headers_hack}\n#define __unused5")
|
check_c_source_compiles("${_source_epilogue}
|
||||||
curl_check_c_source_compiles("int flag = MSG_NOSIGNAL" HAVE_MSG_NOSIGNAL)
|
int main(void) {
|
||||||
|
int flag = MSG_NOSIGNAL;
|
||||||
|
(void)flag;
|
||||||
|
return 0;
|
||||||
|
}" HAVE_MSG_NOSIGNAL)
|
||||||
|
|
||||||
set(EXTRA_DEFINES "__unused1\n#undef inline\n#define __unused2")
|
if(NOT HAVE_WINDOWS_H)
|
||||||
set(HEADER_INCLUDES)
|
|
||||||
set(headers_hack)
|
|
||||||
|
|
||||||
macro(add_header_include check header)
|
|
||||||
if(${check})
|
|
||||||
set(headers_hack
|
|
||||||
"${headers_hack}\n#include <${header}>")
|
|
||||||
#SET(HEADER_INCLUDES
|
|
||||||
# ${HEADER_INCLUDES}
|
|
||||||
# "${header}")
|
|
||||||
endif(${check})
|
|
||||||
endmacro(add_header_include header)
|
|
||||||
|
|
||||||
if(HAVE_WINDOWS_H)
|
|
||||||
set(EXTRA_DEFINES ${EXTRA_DEFINES}
|
|
||||||
"__unused7\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif\n#define __unused3")
|
|
||||||
add_header_include(HAVE_WINDOWS_H "windows.h")
|
|
||||||
add_header_include(HAVE_WINSOCK2_H "winsock2.h")
|
|
||||||
add_header_include(HAVE_WINSOCK_H "winsock.h")
|
|
||||||
else(HAVE_WINDOWS_H)
|
|
||||||
add_header_include(HAVE_SYS_TYPES_H "sys/types.h")
|
|
||||||
add_header_include(HAVE_SYS_TIME_H "sys/time.h")
|
add_header_include(HAVE_SYS_TIME_H "sys/time.h")
|
||||||
add_header_include(TIME_WITH_SYS_TIME "time.h")
|
add_header_include(TIME_WITH_SYS_TIME "time.h")
|
||||||
add_header_include(HAVE_TIME_H "time.h")
|
add_header_include(HAVE_TIME_H "time.h")
|
||||||
endif(HAVE_WINDOWS_H)
|
endif()
|
||||||
set(EXTRA_DEFINES "${EXTRA_DEFINES}\n${headers_hack}\n#define __unused5")
|
check_c_source_compiles("${_source_epilogue}
|
||||||
curl_check_c_source_compiles("struct timeval ts;\nts.tv_sec = 0;\nts.tv_usec = 0" HAVE_STRUCT_TIMEVAL)
|
int main(void) {
|
||||||
|
struct timeval ts;
|
||||||
|
ts.tv_sec = 0;
|
||||||
|
ts.tv_usec = 0;
|
||||||
|
(void)ts;
|
||||||
|
return 0;
|
||||||
|
}" HAVE_STRUCT_TIMEVAL)
|
||||||
|
|
||||||
|
|
||||||
include(CurlCheckCSourceRuns)
|
include(CheckCSourceRuns)
|
||||||
set(EXTRA_DEFINES)
|
set(CMAKE_REQUIRED_FLAGS)
|
||||||
set(HEADER_INCLUDES)
|
|
||||||
if(HAVE_SYS_POLL_H)
|
if(HAVE_SYS_POLL_H)
|
||||||
set(HEADER_INCLUDES "sys/poll.h")
|
set(CMAKE_REQUIRED_FLAGS "-DHAVE_SYS_POLL_H")
|
||||||
endif(HAVE_SYS_POLL_H)
|
endif(HAVE_SYS_POLL_H)
|
||||||
curl_check_c_source_runs("return poll((void *)0, 0, 10 /*ms*/)" HAVE_POLL_FINE)
|
check_c_source_runs("
|
||||||
|
#ifdef HAVE_SYS_POLL_H
|
||||||
|
# include <sys/poll.h>
|
||||||
|
#endif
|
||||||
|
int main(void) {
|
||||||
|
return poll((void *)0, 0, 10 /*ms*/);
|
||||||
|
}" HAVE_POLL_FINE)
|
||||||
|
|
||||||
set(HAVE_SIG_ATOMIC_T 1)
|
set(HAVE_SIG_ATOMIC_T 1)
|
||||||
set(EXTRA_DEFINES)
|
set(CMAKE_REQUIRED_FLAGS)
|
||||||
set(HEADER_INCLUDES)
|
|
||||||
if(HAVE_SIGNAL_H)
|
if(HAVE_SIGNAL_H)
|
||||||
set(HEADER_INCLUDES "signal.h")
|
set(CMAKE_REQUIRED_FLAGS "-DHAVE_SIGNAL_H")
|
||||||
set(CMAKE_EXTRA_INCLUDE_FILES "signal.h")
|
set(CMAKE_EXTRA_INCLUDE_FILES "signal.h")
|
||||||
endif(HAVE_SIGNAL_H)
|
endif(HAVE_SIGNAL_H)
|
||||||
check_type_size("sig_atomic_t" SIZEOF_SIG_ATOMIC_T)
|
check_type_size("sig_atomic_t" SIZEOF_SIG_ATOMIC_T)
|
||||||
if(HAVE_SIZEOF_SIG_ATOMIC_T)
|
if(HAVE_SIZEOF_SIG_ATOMIC_T)
|
||||||
curl_check_c_source_compiles("static volatile sig_atomic_t dummy = 0" HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
check_c_source_compiles("
|
||||||
|
#ifdef HAVE_SIGNAL_H
|
||||||
|
# include <signal.h>
|
||||||
|
#endif
|
||||||
|
int main(void) {
|
||||||
|
static volatile sig_atomic_t dummy = 0;
|
||||||
|
(void)dummy;
|
||||||
|
return 0;
|
||||||
|
}" HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
||||||
if(NOT HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
if(NOT HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
||||||
set(HAVE_SIG_ATOMIC_T_VOLATILE 1)
|
set(HAVE_SIG_ATOMIC_T_VOLATILE 1)
|
||||||
endif(NOT HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
endif(NOT HAVE_SIG_ATOMIC_T_NOT_VOLATILE)
|
||||||
endif(HAVE_SIZEOF_SIG_ATOMIC_T)
|
endif(HAVE_SIZEOF_SIG_ATOMIC_T)
|
||||||
|
|
||||||
set(CHECK_TYPE_SIZE_PREINCLUDE
|
|
||||||
"#undef inline")
|
|
||||||
|
|
||||||
if(HAVE_WINDOWS_H)
|
if(HAVE_WINDOWS_H)
|
||||||
set(CHECK_TYPE_SIZE_PREINCLUDE "${CHECK_TYPE_SIZE_PREINCLUDE}
|
set(CMAKE_EXTRA_INCLUDE_FILES winsock2.h)
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
else()
|
||||||
#define WIN32_LEAN_AND_MEAN
|
set(CMAKE_EXTRA_INCLUDE_FILES)
|
||||||
#endif
|
|
||||||
#include <windows.h>")
|
|
||||||
if(HAVE_WINSOCK2_H)
|
|
||||||
set(CHECK_TYPE_SIZE_PREINCLUDE "${CHECK_TYPE_SIZE_PREINCLUDE}\n#include <winsock2.h>")
|
|
||||||
endif(HAVE_WINSOCK2_H)
|
|
||||||
else(HAVE_WINDOWS_H)
|
|
||||||
if(HAVE_SYS_SOCKET_H)
|
if(HAVE_SYS_SOCKET_H)
|
||||||
set(CMAKE_EXTRA_INCLUDE_FILES ${CMAKE_EXTRA_INCLUDE_FILES}
|
set(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)
|
||||||
"sys/socket.h")
|
|
||||||
endif(HAVE_SYS_SOCKET_H)
|
endif(HAVE_SYS_SOCKET_H)
|
||||||
if(HAVE_NETINET_IN_H)
|
endif()
|
||||||
set(CMAKE_EXTRA_INCLUDE_FILES ${CMAKE_EXTRA_INCLUDE_FILES}
|
|
||||||
"netinet/in.h")
|
|
||||||
endif(HAVE_NETINET_IN_H)
|
|
||||||
if(HAVE_ARPA_INET_H)
|
|
||||||
set(CMAKE_EXTRA_INCLUDE_FILES ${CMAKE_EXTRA_INCLUDE_FILES}
|
|
||||||
"arpa/inet.h")
|
|
||||||
endif(HAVE_ARPA_INET_H)
|
|
||||||
endif(HAVE_WINDOWS_H)
|
|
||||||
|
|
||||||
check_type_size("struct sockaddr_storage" SIZEOF_STRUCT_SOCKADDR_STORAGE)
|
check_type_size("struct sockaddr_storage" SIZEOF_STRUCT_SOCKADDR_STORAGE)
|
||||||
if(HAVE_SIZEOF_STRUCT_SOCKADDR_STORAGE)
|
if(HAVE_SIZEOF_STRUCT_SOCKADDR_STORAGE)
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ if(NOT UNIX)
|
|||||||
set(HAVE_LIBSOCKET 0)
|
set(HAVE_LIBSOCKET 0)
|
||||||
set(NOT_NEED_LIBNSL 0)
|
set(NOT_NEED_LIBNSL 0)
|
||||||
set(HAVE_LIBNSL 0)
|
set(HAVE_LIBNSL 0)
|
||||||
|
set(HAVE_GETHOSTNAME 1)
|
||||||
set(HAVE_LIBZ 0)
|
set(HAVE_LIBZ 0)
|
||||||
set(HAVE_LIBCRYPTO 0)
|
set(HAVE_LIBCRYPTO 0)
|
||||||
|
|
||||||
@@ -14,7 +15,6 @@ if(NOT UNIX)
|
|||||||
set(HAVE_ARPA_INET_H 0)
|
set(HAVE_ARPA_INET_H 0)
|
||||||
set(HAVE_DLFCN_H 0)
|
set(HAVE_DLFCN_H 0)
|
||||||
set(HAVE_FCNTL_H 1)
|
set(HAVE_FCNTL_H 1)
|
||||||
set(HAVE_FEATURES_H 0)
|
|
||||||
set(HAVE_INTTYPES_H 0)
|
set(HAVE_INTTYPES_H 0)
|
||||||
set(HAVE_IO_H 1)
|
set(HAVE_IO_H 1)
|
||||||
set(HAVE_MALLOC_H 1)
|
set(HAVE_MALLOC_H 1)
|
||||||
@@ -108,7 +108,11 @@ if(NOT UNIX)
|
|||||||
set(HAVE_IN_ADDR_T 0)
|
set(HAVE_IN_ADDR_T 0)
|
||||||
set(HAVE_INET_NTOA_R_DECL 0)
|
set(HAVE_INET_NTOA_R_DECL 0)
|
||||||
set(HAVE_INET_NTOA_R_DECL_REENTRANT 0)
|
set(HAVE_INET_NTOA_R_DECL_REENTRANT 0)
|
||||||
set(HAVE_GETADDRINFO 0)
|
if(ENABLE_IPV6)
|
||||||
|
set(HAVE_GETADDRINFO 1)
|
||||||
|
else()
|
||||||
|
set(HAVE_GETADDRINFO 0)
|
||||||
|
endif()
|
||||||
set(STDC_HEADERS 1)
|
set(STDC_HEADERS 1)
|
||||||
set(RETSIGTYPE_TEST 1)
|
set(RETSIGTYPE_TEST 1)
|
||||||
|
|
||||||
|
|||||||
700
CMakeLists.txt
700
CMakeLists.txt
@@ -1,3 +1,24 @@
|
|||||||
|
#***************************************************************************
|
||||||
|
# _ _ ____ _
|
||||||
|
# Project ___| | | | _ \| |
|
||||||
|
# / __| | | | |_) | |
|
||||||
|
# | (__| |_| | _ <| |___
|
||||||
|
# \___|\___/|_| \_\_____|
|
||||||
|
#
|
||||||
|
# Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
#
|
||||||
|
# This software is licensed as described in the file COPYING, which
|
||||||
|
# you should have received as part of this distribution. The terms
|
||||||
|
# are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
#
|
||||||
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
|
# furnished to do so, under the terms of the COPYING file.
|
||||||
|
#
|
||||||
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
# KIND, either express or implied.
|
||||||
|
#
|
||||||
|
###########################################################################
|
||||||
# cURL/libcurl CMake script
|
# cURL/libcurl CMake script
|
||||||
# by Tetetest and Sukender (Benoit Neil)
|
# by Tetetest and Sukender (Benoit Neil)
|
||||||
|
|
||||||
@@ -17,34 +38,27 @@
|
|||||||
# To check:
|
# To check:
|
||||||
# (From Daniel Stenberg) The cmake build selected to run gcc with -fPIC on my box while the plain configure script did not.
|
# (From Daniel Stenberg) The cmake build selected to run gcc with -fPIC on my box while the plain configure script did not.
|
||||||
# (From Daniel Stenberg) The gcc command line use neither -g nor any -O options. As a developer, I also treasure our configure scripts's --enable-debug option that sets a long range of "picky" compiler options.
|
# (From Daniel Stenberg) The gcc command line use neither -g nor any -O options. As a developer, I also treasure our configure scripts's --enable-debug option that sets a long range of "picky" compiler options.
|
||||||
cmake_minimum_required(VERSION 2.6.2 FATAL_ERROR)
|
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")
|
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")
|
||||||
include(Utilities)
|
include(Utilities)
|
||||||
|
include(Macros)
|
||||||
|
|
||||||
project( CURL C )
|
project( CURL C )
|
||||||
|
|
||||||
|
message(WARNING "the curl cmake build system is poorly maintained. Be aware")
|
||||||
|
|
||||||
file (READ ${CURL_SOURCE_DIR}/include/curl/curlver.h CURL_VERSION_H_CONTENTS)
|
file (READ ${CURL_SOURCE_DIR}/include/curl/curlver.h CURL_VERSION_H_CONTENTS)
|
||||||
string (REGEX MATCH "LIBCURL_VERSION_MAJOR[ \t]+([0-9]+)"
|
string (REGEX MATCH "#define LIBCURL_VERSION \"[^\"]*"
|
||||||
LIBCURL_VERSION_MJ ${CURL_VERSION_H_CONTENTS})
|
CURL_VERSION ${CURL_VERSION_H_CONTENTS})
|
||||||
string (REGEX MATCH "([0-9]+)"
|
string (REGEX REPLACE "[^\"]+\"" "" CURL_VERSION ${CURL_VERSION})
|
||||||
LIBCURL_VERSION_MJ ${LIBCURL_VERSION_MJ})
|
string (REGEX MATCH "#define LIBCURL_VERSION_NUM 0x[0-9a-fA-F]+"
|
||||||
string (REGEX MATCH
|
CURL_VERSION_NUM ${CURL_VERSION_H_CONTENTS})
|
||||||
"LIBCURL_VERSION_MINOR[ \t]+([0-9]+)"
|
string (REGEX REPLACE "[^0]+0x" "" CURL_VERSION_NUM ${CURL_VERSION_NUM})
|
||||||
LIBCURL_VERSION_MI ${CURL_VERSION_H_CONTENTS})
|
|
||||||
string (REGEX MATCH "([0-9]+)" LIBCURL_VERSION_MI ${LIBCURL_VERSION_MI})
|
|
||||||
string (REGEX MATCH
|
|
||||||
"LIBCURL_VERSION_PATCH[ \t]+([0-9]+)"
|
|
||||||
LIBCURL_VERSION_PT ${CURL_VERSION_H_CONTENTS})
|
|
||||||
string (REGEX MATCH "([0-9]+)" LIBCURL_VERSION_PT ${LIBCURL_VERSION_PT})
|
|
||||||
set (CURL_MAJOR_VERSION ${LIBCURL_VERSION_MJ})
|
|
||||||
set (CURL_MINOR_VERSION ${LIBCURL_VERSION_MI})
|
|
||||||
set (CURL_PATCH_VERSION ${LIBCURL_VERSION_PT})
|
|
||||||
|
|
||||||
include_regular_expression("^.*$") # Sukender: Is it necessary?
|
include_regular_expression("^.*$") # Sukender: Is it necessary?
|
||||||
|
|
||||||
# Setup package meta-data
|
# Setup package meta-data
|
||||||
# SET(PACKAGE "curl")
|
# SET(PACKAGE "curl")
|
||||||
set(CURL_VERSION ${CURL_MAJOR_VERSION}.${CURL_MINOR_VERSION}.${CURL_PATCH_VERSION})
|
|
||||||
message(STATUS "curl version=[${CURL_VERSION}]")
|
message(STATUS "curl version=[${CURL_VERSION}]")
|
||||||
# SET(PACKAGE_TARNAME "curl")
|
# SET(PACKAGE_TARNAME "curl")
|
||||||
# SET(PACKAGE_NAME "curl")
|
# SET(PACKAGE_NAME "curl")
|
||||||
@@ -60,12 +74,17 @@ include_directories( ${CURL_SOURCE_DIR}/include )
|
|||||||
option(BUILD_CURL_EXE "Set to ON to build cURL executable." ON)
|
option(BUILD_CURL_EXE "Set to ON to build cURL executable." ON)
|
||||||
option(BUILD_CURL_TESTS "Set to ON to build cURL tests." ON)
|
option(BUILD_CURL_TESTS "Set to ON to build cURL tests." ON)
|
||||||
option(CURL_STATICLIB "Set to ON to build libcurl with static linking." OFF)
|
option(CURL_STATICLIB "Set to ON to build libcurl with static linking." OFF)
|
||||||
option(CURL_USE_ARES "Set to ON to enable c-ares support" OFF)
|
option(ENABLE_ARES "Set to ON to enable c-ares support" OFF)
|
||||||
|
option(ENABLE_THREADED_RESOLVER "Set to ON to enable POSIX threaded DNS lookup" OFF)
|
||||||
# initialize CURL_LIBS
|
# initialize CURL_LIBS
|
||||||
set(CURL_LIBS "")
|
set(CURL_LIBS "")
|
||||||
|
|
||||||
if(CURL_USE_ARES)
|
if(ENABLE_THREADED_RESOLVER AND ENABLE_ARES)
|
||||||
set(USE_ARES ${CURL_USE_ARES})
|
message(FATAL_ERROR "Options ENABLE_THREADED_RESOLVER and ENABLE_ARES are mutually exclusive")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(ENABLE_ARES)
|
||||||
|
set(USE_ARES 1)
|
||||||
find_package(CARES REQUIRED)
|
find_package(CARES REQUIRED)
|
||||||
list(APPEND CURL_LIBS ${CARES_LIBRARY} )
|
list(APPEND CURL_LIBS ${CARES_LIBRARY} )
|
||||||
set(CURL_LIBS ${CURL_LIBS} ${CARES_LIBRARY})
|
set(CURL_LIBS ${CURL_LIBS} ${CARES_LIBRARY})
|
||||||
@@ -110,6 +129,19 @@ mark_as_advanced(CURL_DISABLE_HTTP)
|
|||||||
option(CURL_DISABLE_LDAPS "to disable LDAPS" OFF)
|
option(CURL_DISABLE_LDAPS "to disable LDAPS" OFF)
|
||||||
mark_as_advanced(CURL_DISABLE_LDAPS)
|
mark_as_advanced(CURL_DISABLE_LDAPS)
|
||||||
|
|
||||||
|
option(CURL_DISABLE_RTSP "to disable RTSP" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_RTSP)
|
||||||
|
option(CURL_DISABLE_PROXY "to disable proxy" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_PROXY)
|
||||||
|
option(CURL_DISABLE_POP3 "to disable POP3" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_POP3)
|
||||||
|
option(CURL_DISABLE_IMAP "to disable IMAP" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_IMAP)
|
||||||
|
option(CURL_DISABLE_SMTP "to disable SMTP" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_SMTP)
|
||||||
|
option(CURL_DISABLE_GOPHER "to disable Gopher" OFF)
|
||||||
|
mark_as_advanced(CURL_DISABLE_GOPHER)
|
||||||
|
|
||||||
if(HTTP_ONLY)
|
if(HTTP_ONLY)
|
||||||
set(CURL_DISABLE_FTP ON)
|
set(CURL_DISABLE_FTP ON)
|
||||||
set(CURL_DISABLE_LDAP ON)
|
set(CURL_DISABLE_LDAP ON)
|
||||||
@@ -118,6 +150,11 @@ if(HTTP_ONLY)
|
|||||||
set(CURL_DISABLE_DICT ON)
|
set(CURL_DISABLE_DICT ON)
|
||||||
set(CURL_DISABLE_FILE ON)
|
set(CURL_DISABLE_FILE ON)
|
||||||
set(CURL_DISABLE_TFTP ON)
|
set(CURL_DISABLE_TFTP ON)
|
||||||
|
set(CURL_DISABLE_RTSP ON)
|
||||||
|
set(CURL_DISABLE_POP3 ON)
|
||||||
|
set(CURL_DISABLE_IMAP ON)
|
||||||
|
set(CURL_DISABLE_SMTP ON)
|
||||||
|
set(CURL_DISABLE_GOPHER ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(CURL_DISABLE_COOKIES "to disable cookies support" OFF)
|
option(CURL_DISABLE_COOKIES "to disable cookies support" OFF)
|
||||||
@@ -129,9 +166,52 @@ option(CURL_DISABLE_VERBOSE_STRINGS "to disable verbose strings" OFF)
|
|||||||
mark_as_advanced(CURL_DISABLE_VERBOSE_STRINGS)
|
mark_as_advanced(CURL_DISABLE_VERBOSE_STRINGS)
|
||||||
option(DISABLED_THREADSAFE "Set to explicitly specify we don't want to use thread-safe functions" OFF)
|
option(DISABLED_THREADSAFE "Set to explicitly specify we don't want to use thread-safe functions" OFF)
|
||||||
mark_as_advanced(DISABLED_THREADSAFE)
|
mark_as_advanced(DISABLED_THREADSAFE)
|
||||||
option(ENABLE_IPV6 "Define if you want to enable IPv6 support" OFF)
|
option(ENABLE_IPV6 "Define if you want to enable IPv6 support" ON)
|
||||||
mark_as_advanced(ENABLE_IPV6)
|
mark_as_advanced(ENABLE_IPV6)
|
||||||
|
if(ENABLE_IPV6)
|
||||||
|
include(CheckStructHasMember)
|
||||||
|
check_struct_has_member("struct sockaddr_in6" sin6_addr "netinet/in.h"
|
||||||
|
HAVE_SOCKADDR_IN6_SIN6_ADDR)
|
||||||
|
check_struct_has_member("struct sockaddr_in6" sin6_scope_id "netinet/in.h"
|
||||||
|
HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID)
|
||||||
|
if(NOT HAVE_SOCKADDR_IN6_SIN6_ADDR)
|
||||||
|
message(WARNING "struct sockaddr_in6 not available, disabling IPv6 support")
|
||||||
|
# Force the feature off as this name is used as guard macro...
|
||||||
|
set(ENABLE_IPV6 OFF
|
||||||
|
CACHE BOOL "Define if you want to enable IPv6 support" FORCE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
option(ENABLE_MANUAL "to provide the built-in manual" ON)
|
||||||
|
unset(USE_MANUAL CACHE) # TODO: cache NROFF/NROFF_MANOPT/USE_MANUAL vars?
|
||||||
|
if(ENABLE_MANUAL)
|
||||||
|
find_program(NROFF NAMES gnroff nroff)
|
||||||
|
if(NROFF)
|
||||||
|
# Need a way to write to stdin, this will do
|
||||||
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/nroff-input.txt" "test")
|
||||||
|
# Tests for a valid nroff option to generate a manpage
|
||||||
|
foreach(_MANOPT "-man" "-mandoc")
|
||||||
|
execute_process(COMMAND "${NROFF}" ${_MANOPT}
|
||||||
|
OUTPUT_VARIABLE NROFF_MANOPT_OUTPUT
|
||||||
|
INPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/nroff-input.txt"
|
||||||
|
ERROR_QUIET)
|
||||||
|
# Save the option if it was valid
|
||||||
|
if(NROFF_MANOPT_OUTPUT)
|
||||||
|
message("Found *nroff option: -- ${_MANOPT}")
|
||||||
|
set(NROFF_MANOPT ${_MANOPT})
|
||||||
|
set(USE_MANUAL 1)
|
||||||
|
break()
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
# No need for the temporary file
|
||||||
|
file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/nroff-input.txt")
|
||||||
|
if(NOT USE_MANUAL)
|
||||||
|
message(WARNING "Found no *nroff option to get plaintext from man pages")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
message(WARNING "Found no *nroff program")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# We need ansi c-flags, especially on HP
|
# We need ansi c-flags, especially on HP
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
|
set(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
|
||||||
@@ -154,21 +234,25 @@ include (CheckIncludeFiles)
|
|||||||
include (CheckLibraryExists)
|
include (CheckLibraryExists)
|
||||||
include (CheckSymbolExists)
|
include (CheckSymbolExists)
|
||||||
include (CheckTypeSize)
|
include (CheckTypeSize)
|
||||||
|
include (CheckCSourceCompiles)
|
||||||
|
|
||||||
# On windows preload settings
|
# On windows preload settings
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_WINSOCKAPI_")
|
||||||
include(${CMAKE_CURRENT_SOURCE_DIR}/CMake/Platforms/WindowsCache.cmake)
|
include(${CMAKE_CURRENT_SOURCE_DIR}/CMake/Platforms/WindowsCache.cmake)
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
|
||||||
# This macro checks if the symbol exists in the library and if it
|
if(ENABLE_THREADED_RESOLVER)
|
||||||
# does, it prepends library to the list.
|
check_include_file_concat("pthread.h" HAVE_PTHREAD_H)
|
||||||
macro(CHECK_LIBRARY_EXISTS_CONCAT LIBRARY SYMBOL VARIABLE)
|
if(HAVE_PTHREAD_H)
|
||||||
check_library_exists("${LIBRARY};${CURL_LIBS}" ${SYMBOL} "${CMAKE_LIBRARY_PATH}"
|
set(CMAKE_THREAD_PREFER_PTHREAD 1)
|
||||||
${VARIABLE})
|
find_package(Threads)
|
||||||
if(${VARIABLE})
|
if(CMAKE_USE_PTHREADS_INIT)
|
||||||
set(CURL_LIBS ${LIBRARY} ${CURL_LIBS})
|
set(CURL_LIBS ${CURL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
|
||||||
endif(${VARIABLE})
|
set(USE_THREADS_POSIX 1)
|
||||||
endmacro(CHECK_LIBRARY_EXISTS_CONCAT)
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# Check for all needed libraries
|
# Check for all needed libraries
|
||||||
check_library_exists_concat("dl" dlopen HAVE_LIBDL)
|
check_library_exists_concat("dl" dlopen HAVE_LIBDL)
|
||||||
@@ -186,101 +270,281 @@ if(NOT NOT_NEED_LIBNSL)
|
|||||||
check_library_exists_concat("nsl" gethostbyname HAVE_LIBNSL)
|
check_library_exists_concat("nsl" gethostbyname HAVE_LIBNSL)
|
||||||
endif(NOT NOT_NEED_LIBNSL)
|
endif(NOT NOT_NEED_LIBNSL)
|
||||||
|
|
||||||
check_library_exists_concat("ws2_32" getch HAVE_LIBWS2_32)
|
check_function_exists(gethostname HAVE_GETHOSTNAME)
|
||||||
check_library_exists_concat("winmm" getch HAVE_LIBWINMM)
|
|
||||||
check_library_exists("wldap32" cldap_open "" HAVE_WLDAP32)
|
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(CURL_DEFAULT_DISABLE_LDAP OFF)
|
check_library_exists_concat("ws2_32" getch HAVE_LIBWS2_32)
|
||||||
# some windows compilers do not have wldap32
|
check_library_exists_concat("winmm" getch HAVE_LIBWINMM)
|
||||||
if(NOT HAVE_WLDAP32)
|
|
||||||
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
|
||||||
message(STATUS "wldap32 not found CURL_DISABLE_LDAP set ON")
|
|
||||||
option(CURL_LDAP_WIN "Use Windows LDAP implementation" OFF)
|
|
||||||
else()
|
|
||||||
option(CURL_LDAP_WIN "Use Windows LDAP implementation" ON)
|
|
||||||
endif()
|
|
||||||
mark_as_advanced(CURL_LDAP_WIN)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
option(CMAKE_USE_OPENSSL "Use OpenSSL code. Experimental" ON)
|
||||||
|
mark_as_advanced(CMAKE_USE_OPENSSL)
|
||||||
|
|
||||||
# IF(NOT CURL_SPECIAL_LIBZ)
|
set(USE_SSLEAY OFF)
|
||||||
# CHECK_LIBRARY_EXISTS_CONCAT("z" inflateEnd HAVE_LIBZ)
|
set(USE_OPENSSL OFF)
|
||||||
# ENDIF(NOT CURL_SPECIAL_LIBZ)
|
set(HAVE_LIBCRYPTO OFF)
|
||||||
|
set(HAVE_LIBSSL OFF)
|
||||||
|
|
||||||
|
if(CMAKE_USE_OPENSSL)
|
||||||
|
find_package(OpenSSL)
|
||||||
|
if(OPENSSL_FOUND)
|
||||||
|
list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES})
|
||||||
|
set(USE_SSLEAY ON)
|
||||||
|
set(USE_OPENSSL ON)
|
||||||
|
set(HAVE_LIBCRYPTO ON)
|
||||||
|
set(HAVE_LIBSSL ON)
|
||||||
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
|
||||||
|
check_include_file("openssl/crypto.h" HAVE_OPENSSL_CRYPTO_H)
|
||||||
|
check_include_file("openssl/engine.h" HAVE_OPENSSL_ENGINE_H)
|
||||||
|
check_include_file("openssl/err.h" HAVE_OPENSSL_ERR_H)
|
||||||
|
check_include_file("openssl/pem.h" HAVE_OPENSSL_PEM_H)
|
||||||
|
check_include_file("openssl/pkcs12.h" HAVE_OPENSSL_PKCS12_H)
|
||||||
|
check_include_file("openssl/rsa.h" HAVE_OPENSSL_RSA_H)
|
||||||
|
check_include_file("openssl/ssl.h" HAVE_OPENSSL_SSL_H)
|
||||||
|
check_include_file("openssl/x509.h" HAVE_OPENSSL_X509_H)
|
||||||
|
check_include_file("openssl/rand.h" HAVE_OPENSSL_RAND_H)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT CURL_DISABLE_LDAP)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
option(USE_WIN32_LDAP "Use Windows LDAP implementation" ON)
|
||||||
|
if(USE_WIN32_LDAP)
|
||||||
|
check_library_exists("wldap32" cldap_open "" HAVE_WLDAP32)
|
||||||
|
if(NOT HAVE_WLDAP32)
|
||||||
|
set(USE_WIN32_LDAP OFF)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
option(CMAKE_USE_OPENLDAP "Use OpenLDAP code." OFF)
|
||||||
|
mark_as_advanced(CMAKE_USE_OPENLDAP)
|
||||||
|
set(CMAKE_LDAP_LIB "ldap" CACHE STRING "Name or full path to ldap library")
|
||||||
|
set(CMAKE_LBER_LIB "lber" CACHE STRING "Name or full path to lber library")
|
||||||
|
|
||||||
|
if(CMAKE_USE_OPENLDAP AND USE_WIN32_LDAP)
|
||||||
|
message(FATAL_ERROR "Cannot use USE_WIN32_LDAP and CMAKE_USE_OPENLDAP at the same time")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Now that we know, we're not using windows LDAP...
|
||||||
|
if(NOT USE_WIN32_LDAP)
|
||||||
|
# Check for LDAP
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES})
|
||||||
|
check_library_exists_concat(${CMAKE_LDAP_LIB} ldap_init HAVE_LIBLDAP)
|
||||||
|
check_library_exists_concat(${CMAKE_LBER_LIB} ber_init HAVE_LIBLBER)
|
||||||
|
else()
|
||||||
|
check_include_file_concat("winldap.h" HAVE_WINLDAP_H)
|
||||||
|
check_include_file_concat("winber.h" HAVE_WINBER_H)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(CMAKE_LDAP_INCLUDE_DIR "" CACHE STRING "Path to LDAP include directory")
|
||||||
|
if(CMAKE_LDAP_INCLUDE_DIR)
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_LDAP_INCLUDE_DIR})
|
||||||
|
endif()
|
||||||
|
check_include_file_concat("ldap.h" HAVE_LDAP_H)
|
||||||
|
check_include_file_concat("lber.h" HAVE_LBER_H)
|
||||||
|
|
||||||
|
if(NOT HAVE_LDAP_H)
|
||||||
|
message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON")
|
||||||
|
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
||||||
|
elseif(NOT HAVE_LIBLDAP)
|
||||||
|
message(STATUS "LDAP library '${CMAKE_LDAP_LIB}' not found CURL_DISABLE_LDAP set ON")
|
||||||
|
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
||||||
|
else()
|
||||||
|
if(CMAKE_USE_OPENLDAP)
|
||||||
|
set(USE_OPENLDAP ON)
|
||||||
|
endif()
|
||||||
|
if(CMAKE_LDAP_INCLUDE_DIR)
|
||||||
|
include_directories(${CMAKE_LDAP_INCLUDE_DIR})
|
||||||
|
endif()
|
||||||
|
set(NEED_LBER_H ON)
|
||||||
|
set(_HEADER_LIST)
|
||||||
|
if(HAVE_WINDOWS_H)
|
||||||
|
list(APPEND _HEADER_LIST "windows.h")
|
||||||
|
endif()
|
||||||
|
if(HAVE_SYS_TYPES_H)
|
||||||
|
list(APPEND _HEADER_LIST "sys/types.h")
|
||||||
|
endif()
|
||||||
|
list(APPEND _HEADER_LIST "ldap.h")
|
||||||
|
|
||||||
|
set(_SRC_STRING "")
|
||||||
|
foreach(_HEADER ${_HEADER_LIST})
|
||||||
|
set(_INCLUDE_STRING "${_INCLUDE_STRING}#include <${_HEADER}>\n")
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
set(_SRC_STRING
|
||||||
|
"
|
||||||
|
${_INCLUDE_STRING}
|
||||||
|
int main(int argc, char ** argv)
|
||||||
|
{
|
||||||
|
BerValue *bvp = NULL;
|
||||||
|
BerElement *bep = ber_init(bvp);
|
||||||
|
ber_free(bep, 1);
|
||||||
|
return 0;
|
||||||
|
}"
|
||||||
|
)
|
||||||
|
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -DLDAP_DEPRECATED=1")
|
||||||
|
list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LDAP_LIB})
|
||||||
|
if(HAVE_LIBLBER)
|
||||||
|
list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LBER_LIB})
|
||||||
|
endif()
|
||||||
|
check_c_source_compiles("${_SRC_STRING}" NOT_NEED_LBER_H)
|
||||||
|
|
||||||
|
if(NOT_NEED_LBER_H)
|
||||||
|
set(NEED_LBER_H OFF)
|
||||||
|
else()
|
||||||
|
set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -DNEED_LBER_H")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# No ldap, no ldaps.
|
||||||
|
if(CURL_DISABLE_LDAP)
|
||||||
|
if(NOT CURL_DISABLE_LDAPS)
|
||||||
|
message(STATUS "LDAP needs to be enabled to support LDAPS")
|
||||||
|
set(CURL_DISABLE_LDAPS ON CACHE BOOL "" FORCE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT CURL_DISABLE_LDAPS)
|
||||||
|
check_include_file_concat("ldap_ssl.h" HAVE_LDAP_SSL_H)
|
||||||
|
check_include_file_concat("ldapssl.h" HAVE_LDAPSSL_H)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Check for idn
|
# Check for idn
|
||||||
check_library_exists_concat("idn" idna_to_ascii_lz HAVE_LIBIDN)
|
check_library_exists_concat("idn" idna_to_ascii_lz HAVE_LIBIDN)
|
||||||
|
|
||||||
# Check for LDAP
|
|
||||||
check_library_exists_concat("ldap" ldap_init HAVE_LIBLDAP)
|
|
||||||
# if(NOT HAVE_LIBLDAP)
|
|
||||||
# SET(CURL_DISABLE_LDAP ON)
|
|
||||||
# endif(NOT HAVE_LIBLDAP)
|
|
||||||
|
|
||||||
# Check for symbol dlopen (same as HAVE_LIBDL)
|
# Check for symbol dlopen (same as HAVE_LIBDL)
|
||||||
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
|
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
|
||||||
|
|
||||||
# For other tests to use the same libraries
|
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBS})
|
|
||||||
|
|
||||||
option(CURL_ZLIB "Set to ON to enable building cURL with zlib support." ON)
|
option(CURL_ZLIB "Set to ON to enable building cURL with zlib support." ON)
|
||||||
set(HAVE_LIBZ OFF)
|
set(HAVE_LIBZ OFF)
|
||||||
set(HAVE_ZLIB_H OFF)
|
set(HAVE_ZLIB_H OFF)
|
||||||
set(HAVE_ZLIB OFF)
|
set(HAVE_ZLIB OFF)
|
||||||
if(CURL_ZLIB) # AND CURL_CONFIG_HAS_BEEN_RUN_BEFORE
|
if(CURL_ZLIB)
|
||||||
find_package(ZLIB QUIET)
|
find_package(ZLIB QUIET)
|
||||||
if(ZLIB_FOUND)
|
if(ZLIB_FOUND)
|
||||||
set(HAVE_ZLIB_H ON)
|
set(HAVE_ZLIB_H ON)
|
||||||
set(HAVE_ZLIB ON)
|
set(HAVE_ZLIB ON)
|
||||||
set(HAVE_LIBZ ON)
|
set(HAVE_LIBZ ON)
|
||||||
list(APPEND CURL_LIBS ${ZLIB_LIBRARIES})
|
list(APPEND CURL_LIBS ${ZLIB_LIBRARIES})
|
||||||
|
include_directories(${ZLIB_INCLUDE_DIRS})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(CMAKE_USE_OPENSSL "Use OpenSSL code. Experimental" ON)
|
#libSSH2
|
||||||
mark_as_advanced(CMAKE_USE_OPENSSL)
|
option(CMAKE_USE_LIBSSH2 "Use libSSH2" ON)
|
||||||
if(CMAKE_USE_OPENSSL)
|
mark_as_advanced(CMAKE_USE_LIBSSH2)
|
||||||
|
set(USE_LIBSSH2 OFF)
|
||||||
|
set(HAVE_LIBSSH2 OFF)
|
||||||
|
set(HAVE_LIBSSH2_H OFF)
|
||||||
|
|
||||||
set(USE_SSLEAY OFF)
|
if(CMAKE_USE_LIBSSH2)
|
||||||
set(USE_OPENSSL OFF)
|
find_package(LibSSH2)
|
||||||
set(HAVE_LIBCRYPTO OFF)
|
if(LIBSSH2_FOUND)
|
||||||
set(HAVE_LIBSSL OFF)
|
list(APPEND CURL_LIBS ${LIBSSH2_LIBRARY})
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES ${LIBSSH2_LIBRARY})
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES "${LIBSSH2_INCLUDE_DIR}")
|
||||||
|
include_directories("${LIBSSH2_INCLUDE_DIR}")
|
||||||
|
set(HAVE_LIBSSH2 ON)
|
||||||
|
set(USE_LIBSSH2 ON)
|
||||||
|
|
||||||
find_package(OpenSSL)
|
# find_package has already found the headers
|
||||||
if(OPENSSL_FOUND)
|
set(HAVE_LIBSSH2_H ON)
|
||||||
list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES})
|
set(CURL_INCLUDES ${CURL_INCLUDES} "${LIBSSH2_INCLUDE_DIR}/libssh2.h")
|
||||||
list(APPEND CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
|
set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -DHAVE_LIBSSH2_H")
|
||||||
set(USE_SSLEAY ON)
|
|
||||||
set(USE_OPENSSL ON)
|
|
||||||
set(HAVE_LIBCRYPTO ON)
|
|
||||||
set(HAVE_LIBSSL ON)
|
|
||||||
endif(OPENSSL_FOUND)
|
|
||||||
endif(CMAKE_USE_OPENSSL)
|
|
||||||
|
|
||||||
# If we have features.h, then do the _BSD_SOURCE magic
|
# now check for specific libssh2 symbols as they were added in different versions
|
||||||
check_include_file("features.h" HAVE_FEATURES_H)
|
set(CMAKE_EXTRA_INCLUDE_FILES "libssh2.h")
|
||||||
|
check_function_exists(libssh2_version HAVE_LIBSSH2_VERSION)
|
||||||
|
check_function_exists(libssh2_init HAVE_LIBSSH2_INIT)
|
||||||
|
check_function_exists(libssh2_exit HAVE_LIBSSH2_EXIT)
|
||||||
|
check_function_exists(libssh2_scp_send64 HAVE_LIBSSH2_SCP_SEND64)
|
||||||
|
check_function_exists(libssh2_session_handshake HAVE_LIBSSH2_SESSION_HANDSHAKE)
|
||||||
|
set(CMAKE_EXTRA_INCLUDE_FILES "")
|
||||||
|
|
||||||
# Check if header file exists and add it to the list.
|
endif(LIBSSH2_FOUND)
|
||||||
macro(CHECK_INCLUDE_FILE_CONCAT FILE VARIABLE)
|
endif(CMAKE_USE_LIBSSH2)
|
||||||
check_include_files("${CURL_INCLUDES};${FILE}" ${VARIABLE})
|
|
||||||
if(${VARIABLE})
|
|
||||||
set(CURL_INCLUDES ${CURL_INCLUDES} ${FILE})
|
|
||||||
set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${VARIABLE}")
|
|
||||||
endif(${VARIABLE})
|
|
||||||
endmacro(CHECK_INCLUDE_FILE_CONCAT)
|
|
||||||
|
|
||||||
|
option(CMAKE_USE_GSSAPI "Use GSSAPI implementation (right now only Heimdal is supported with CMake build)" OFF)
|
||||||
|
mark_as_advanced(CMAKE_USE_GSSAPI)
|
||||||
|
|
||||||
|
if(CMAKE_USE_GSSAPI)
|
||||||
|
find_package(GSS)
|
||||||
|
|
||||||
|
set(HAVE_GSS_API ${GSS_FOUND})
|
||||||
|
if(GSS_FOUND)
|
||||||
|
|
||||||
|
message(STATUS "Found ${GSS_FLAVOUR} GSSAPI version: \"${GSS_VERSION}\"")
|
||||||
|
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES ${GSS_INCLUDE_DIR})
|
||||||
|
check_include_file_concat("gssapi/gssapi.h" HAVE_GSSAPI_GSSAPI_H)
|
||||||
|
check_include_file_concat("gssapi/gssapi_generic.h" HAVE_GSSAPI_GSSAPI_GENERIC_H)
|
||||||
|
check_include_file_concat("gssapi/gssapi_krb5.h" HAVE_GSSAPI_GSSAPI_KRB5_H)
|
||||||
|
|
||||||
|
if(GSS_FLAVOUR STREQUAL "Heimdal")
|
||||||
|
set(HAVE_GSSHEIMDAL ON)
|
||||||
|
else() # MIT
|
||||||
|
set(HAVE_GSSMIT ON)
|
||||||
|
set(_INCLUDE_LIST "")
|
||||||
|
if(HAVE_GSSAPI_GSSAPI_H)
|
||||||
|
list(APPEND _INCLUDE_LIST "gssapi/gssapi.h")
|
||||||
|
endif()
|
||||||
|
if(HAVE_GSSAPI_GSSAPI_GENERIC_H)
|
||||||
|
list(APPEND _INCLUDE_LIST "gssapi/gssapi_generic.h")
|
||||||
|
endif()
|
||||||
|
if(HAVE_GSSAPI_GSSAPI_KRB5_H)
|
||||||
|
list(APPEND _INCLUDE_LIST "gssapi/gssapi_krb5.h")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
string(REPLACE ";" " " _COMPILER_FLAGS_STR "${GSS_COMPILER_FLAGS}")
|
||||||
|
string(REPLACE ";" " " _LINKER_FLAGS_STR "${GSS_LINKER_FLAGS}")
|
||||||
|
|
||||||
|
foreach(_dir ${GSS_LINK_DIRECTORIES})
|
||||||
|
set(_LINKER_FLAGS_STR "${_LINKER_FLAGS_STR} -L\"${_dir}\"")
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
set(CMAKE_REQUIRED_FLAGS "${_COMPILER_FLAGS_STR} ${_LINKER_FLAGS_STR}")
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES ${GSS_LIBRARIES})
|
||||||
|
check_symbol_exists("GSS_C_NT_HOSTBASED_SERVICE" ${_INCLUDE_LIST} HAVE_GSS_C_NT_HOSTBASED_SERVICE)
|
||||||
|
if(NOT HAVE_GSS_C_NT_HOSTBASED_SERVICE)
|
||||||
|
set(HAVE_OLD_GSSMIT ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
|
include_directories(${GSS_INCLUDE_DIR})
|
||||||
|
link_directories(${GSS_LINK_DIRECTORIES})
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GSS_COMPILER_FLAGS}")
|
||||||
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${GSS_LINKER_FLAGS}")
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GSS_LINKER_FLAGS}")
|
||||||
|
list(APPEND CURL_LIBS ${GSS_LIBRARIES})
|
||||||
|
|
||||||
|
else()
|
||||||
|
message(WARNING "GSSAPI support has been requested but no supporting libraries found. Skipping.")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
option(ENABLE_UNIX_SOCKETS "Define if you want Unix domain sockets support" ON)
|
||||||
|
if(ENABLE_UNIX_SOCKETS)
|
||||||
|
include(CheckStructHasMember)
|
||||||
|
check_struct_has_member("struct sockaddr_un" sun_path "sys/un.h" USE_UNIX_SOCKETS)
|
||||||
|
else()
|
||||||
|
unset(USE_UNIX_SOCKETS CACHE)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Check for header files
|
# Check for header files
|
||||||
if(NOT UNIX)
|
if(NOT UNIX)
|
||||||
|
check_include_file_concat("windows.h" HAVE_WINDOWS_H)
|
||||||
|
check_include_file_concat("winsock.h" HAVE_WINSOCK_H)
|
||||||
check_include_file_concat("ws2tcpip.h" HAVE_WS2TCPIP_H)
|
check_include_file_concat("ws2tcpip.h" HAVE_WS2TCPIP_H)
|
||||||
check_include_file_concat("winsock2.h" HAVE_WINSOCK2_H)
|
check_include_file_concat("winsock2.h" HAVE_WINSOCK2_H)
|
||||||
endif(NOT UNIX)
|
endif(NOT UNIX)
|
||||||
check_include_file_concat("stdio.h" HAVE_STDIO_H)
|
|
||||||
if(NOT UNIX)
|
|
||||||
check_include_file_concat("windows.h" HAVE_WINDOWS_H)
|
|
||||||
check_include_file_concat("winsock.h" HAVE_WINSOCK_H)
|
|
||||||
endif(NOT UNIX)
|
|
||||||
|
|
||||||
|
check_include_file_concat("stdio.h" HAVE_STDIO_H)
|
||||||
check_include_file_concat("inttypes.h" HAVE_INTTYPES_H)
|
check_include_file_concat("inttypes.h" HAVE_INTTYPES_H)
|
||||||
check_include_file_concat("sys/filio.h" HAVE_SYS_FILIO_H)
|
check_include_file_concat("sys/filio.h" HAVE_SYS_FILIO_H)
|
||||||
check_include_file_concat("sys/ioctl.h" HAVE_SYS_IOCTL_H)
|
check_include_file_concat("sys/ioctl.h" HAVE_SYS_IOCTL_H)
|
||||||
@@ -305,32 +569,18 @@ check_include_file_concat("des.h" HAVE_DES_H)
|
|||||||
check_include_file_concat("err.h" HAVE_ERR_H)
|
check_include_file_concat("err.h" HAVE_ERR_H)
|
||||||
check_include_file_concat("errno.h" HAVE_ERRNO_H)
|
check_include_file_concat("errno.h" HAVE_ERRNO_H)
|
||||||
check_include_file_concat("fcntl.h" HAVE_FCNTL_H)
|
check_include_file_concat("fcntl.h" HAVE_FCNTL_H)
|
||||||
check_include_file_concat("gssapi/gssapi.h" HAVE_GSSAPI_GSSAPI_H)
|
|
||||||
check_include_file_concat("gssapi/gssapi_generic.h" HAVE_GSSAPI_GSSAPI_GENERIC_H)
|
|
||||||
check_include_file_concat("gssapi/gssapi_krb5.h" HAVE_GSSAPI_GSSAPI_KRB5_H)
|
|
||||||
check_include_file_concat("idn-free.h" HAVE_IDN_FREE_H)
|
check_include_file_concat("idn-free.h" HAVE_IDN_FREE_H)
|
||||||
check_include_file_concat("ifaddrs.h" HAVE_IFADDRS_H)
|
check_include_file_concat("ifaddrs.h" HAVE_IFADDRS_H)
|
||||||
check_include_file_concat("io.h" HAVE_IO_H)
|
check_include_file_concat("io.h" HAVE_IO_H)
|
||||||
check_include_file_concat("krb.h" HAVE_KRB_H)
|
check_include_file_concat("krb.h" HAVE_KRB_H)
|
||||||
check_include_file_concat("libgen.h" HAVE_LIBGEN_H)
|
check_include_file_concat("libgen.h" HAVE_LIBGEN_H)
|
||||||
check_include_file_concat("libssh2.h" HAVE_LIBSSH2_H)
|
|
||||||
check_include_file_concat("limits.h" HAVE_LIMITS_H)
|
check_include_file_concat("limits.h" HAVE_LIMITS_H)
|
||||||
check_include_file_concat("locale.h" HAVE_LOCALE_H)
|
check_include_file_concat("locale.h" HAVE_LOCALE_H)
|
||||||
check_include_file_concat("net/if.h" HAVE_NET_IF_H)
|
check_include_file_concat("net/if.h" HAVE_NET_IF_H)
|
||||||
check_include_file_concat("netdb.h" HAVE_NETDB_H)
|
check_include_file_concat("netdb.h" HAVE_NETDB_H)
|
||||||
check_include_file_concat("netinet/in.h" HAVE_NETINET_IN_H)
|
check_include_file_concat("netinet/in.h" HAVE_NETINET_IN_H)
|
||||||
check_include_file_concat("netinet/tcp.h" HAVE_NETINET_TCP_H)
|
check_include_file_concat("netinet/tcp.h" HAVE_NETINET_TCP_H)
|
||||||
if(CMAKE_USE_OPENSSL AND OPENSSL_FOUND)
|
|
||||||
check_include_file_concat("openssl/crypto.h" HAVE_OPENSSL_CRYPTO_H)
|
|
||||||
check_include_file_concat("openssl/engine.h" HAVE_OPENSSL_ENGINE_H)
|
|
||||||
check_include_file_concat("openssl/err.h" HAVE_OPENSSL_ERR_H)
|
|
||||||
check_include_file_concat("openssl/pem.h" HAVE_OPENSSL_PEM_H)
|
|
||||||
check_include_file_concat("openssl/pkcs12.h" HAVE_OPENSSL_PKCS12_H)
|
|
||||||
check_include_file_concat("openssl/rsa.h" HAVE_OPENSSL_RSA_H)
|
|
||||||
check_include_file_concat("openssl/ssl.h" HAVE_OPENSSL_SSL_H)
|
|
||||||
check_include_file_concat("openssl/x509.h" HAVE_OPENSSL_X509_H)
|
|
||||||
check_include_file_concat("openssl/rand.h" HAVE_OPENSSL_RAND_H)
|
|
||||||
endif(CMAKE_USE_OPENSSL AND OPENSSL_FOUND)
|
|
||||||
check_include_file_concat("pem.h" HAVE_PEM_H)
|
check_include_file_concat("pem.h" HAVE_PEM_H)
|
||||||
check_include_file_concat("poll.h" HAVE_POLL_H)
|
check_include_file_concat("poll.h" HAVE_POLL_H)
|
||||||
check_include_file_concat("pwd.h" HAVE_PWD_H)
|
check_include_file_concat("pwd.h" HAVE_PWD_H)
|
||||||
@@ -359,25 +609,13 @@ check_include_file_concat("stddef.h" HAVE_STDDEF_H)
|
|||||||
check_include_file_concat("dlfcn.h" HAVE_DLFCN_H)
|
check_include_file_concat("dlfcn.h" HAVE_DLFCN_H)
|
||||||
check_include_file_concat("malloc.h" HAVE_MALLOC_H)
|
check_include_file_concat("malloc.h" HAVE_MALLOC_H)
|
||||||
check_include_file_concat("memory.h" HAVE_MEMORY_H)
|
check_include_file_concat("memory.h" HAVE_MEMORY_H)
|
||||||
check_include_file_concat("ldap.h" HAVE_LDAP_H)
|
|
||||||
check_include_file_concat("netinet/if_ether.h" HAVE_NETINET_IF_ETHER_H)
|
check_include_file_concat("netinet/if_ether.h" HAVE_NETINET_IF_ETHER_H)
|
||||||
check_include_file_concat("stdint.h" HAVE_STDINT_H)
|
check_include_file_concat("stdint.h" HAVE_STDINT_H)
|
||||||
check_include_file_concat("sockio.h" HAVE_SOCKIO_H)
|
check_include_file_concat("sockio.h" HAVE_SOCKIO_H)
|
||||||
check_include_file_concat("sys/utsname.h" HAVE_SYS_UTSNAME_H)
|
check_include_file_concat("sys/utsname.h" HAVE_SYS_UTSNAME_H)
|
||||||
check_include_file_concat("idna.h" HAVE_IDNA_H)
|
check_include_file_concat("idna.h" HAVE_IDNA_H)
|
||||||
|
|
||||||
if(NOT HAVE_LDAP_H)
|
|
||||||
message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON")
|
|
||||||
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# No ldap, no ldaps.
|
|
||||||
if(CURL_DISABLE_LDAP)
|
|
||||||
if(NOT CURL_DISABLE_LDAPS)
|
|
||||||
message(STATUS "LDAP needs to be enabled to support LDAPS")
|
|
||||||
set(CURL_DISABLE_LDAPS ON CACHE BOOL "" FORCE)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
check_type_size(size_t SIZEOF_SIZE_T)
|
check_type_size(size_t SIZEOF_SIZE_T)
|
||||||
check_type_size(ssize_t SIZEOF_SSIZE_T)
|
check_type_size(ssize_t SIZEOF_SSIZE_T)
|
||||||
@@ -450,6 +688,12 @@ find_file(RANDOM_FILE urandom /dev)
|
|||||||
mark_as_advanced(RANDOM_FILE)
|
mark_as_advanced(RANDOM_FILE)
|
||||||
|
|
||||||
# Check for some functions that are used
|
# Check for some functions that are used
|
||||||
|
if(HAVE_LIBWS2_32)
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES ws2_32)
|
||||||
|
elseif(HAVE_LIBSOCKET)
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES socket)
|
||||||
|
endif()
|
||||||
|
|
||||||
check_symbol_exists(basename "${CURL_INCLUDES}" HAVE_BASENAME)
|
check_symbol_exists(basename "${CURL_INCLUDES}" HAVE_BASENAME)
|
||||||
check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET)
|
check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET)
|
||||||
check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL)
|
check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL)
|
||||||
@@ -513,6 +757,7 @@ check_symbol_exists(strerror_r "${CURL_INCLUDES}" HAVE_STRERROR_R)
|
|||||||
check_symbol_exists(siginterrupt "${CURL_INCLUDES}" HAVE_SIGINTERRUPT)
|
check_symbol_exists(siginterrupt "${CURL_INCLUDES}" HAVE_SIGINTERRUPT)
|
||||||
check_symbol_exists(perror "${CURL_INCLUDES}" HAVE_PERROR)
|
check_symbol_exists(perror "${CURL_INCLUDES}" HAVE_PERROR)
|
||||||
check_symbol_exists(fork "${CURL_INCLUDES}" HAVE_FORK)
|
check_symbol_exists(fork "${CURL_INCLUDES}" HAVE_FORK)
|
||||||
|
check_symbol_exists(getaddrinfo "${CURL_INCLUDES}" HAVE_GETADDRINFO)
|
||||||
check_symbol_exists(freeaddrinfo "${CURL_INCLUDES}" HAVE_FREEADDRINFO)
|
check_symbol_exists(freeaddrinfo "${CURL_INCLUDES}" HAVE_FREEADDRINFO)
|
||||||
check_symbol_exists(freeifaddrs "${CURL_INCLUDES}" HAVE_FREEIFADDRS)
|
check_symbol_exists(freeifaddrs "${CURL_INCLUDES}" HAVE_FREEIFADDRS)
|
||||||
check_symbol_exists(pipe "${CURL_INCLUDES}" HAVE_PIPE)
|
check_symbol_exists(pipe "${CURL_INCLUDES}" HAVE_PIPE)
|
||||||
@@ -551,75 +796,6 @@ if(NOT HAVE_STRICMP)
|
|||||||
set(HAVE_LDAP_URL_PARSE 1)
|
set(HAVE_LDAP_URL_PARSE 1)
|
||||||
endif(NOT HAVE_STRICMP)
|
endif(NOT HAVE_STRICMP)
|
||||||
|
|
||||||
# For other curl specific tests, use this macro.
|
|
||||||
macro(CURL_INTERNAL_TEST CURL_TEST)
|
|
||||||
if("${CURL_TEST}" MATCHES "^${CURL_TEST}$")
|
|
||||||
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
|
||||||
"-D${CURL_TEST} ${CURL_TEST_DEFINES} ${CMAKE_REQUIRED_FLAGS}")
|
|
||||||
if(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_TEST_ADD_LIBRARIES
|
|
||||||
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
|
||||||
endif(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST}")
|
|
||||||
try_compile(${CURL_TEST}
|
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/CMake/CurlTests.c
|
|
||||||
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
|
||||||
"${CURL_TEST_ADD_LIBRARIES}"
|
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
|
||||||
if(${CURL_TEST})
|
|
||||||
set(${CURL_TEST} 1 CACHE INTERNAL "Curl test ${FUNCTION}")
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST} - Success")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
|
||||||
"Performing Curl Test ${CURL_TEST} passed with the following output:\n"
|
|
||||||
"${OUTPUT}\n")
|
|
||||||
else(${CURL_TEST})
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST} - Failed")
|
|
||||||
set(${CURL_TEST} "" CACHE INTERNAL "Curl test ${FUNCTION}")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
|
||||||
"Performing Curl Test ${CURL_TEST} failed with the following output:\n"
|
|
||||||
"${OUTPUT}\n")
|
|
||||||
endif(${CURL_TEST})
|
|
||||||
endif("${CURL_TEST}" MATCHES "^${CURL_TEST}$")
|
|
||||||
endmacro(CURL_INTERNAL_TEST)
|
|
||||||
|
|
||||||
macro(CURL_INTERNAL_TEST_RUN CURL_TEST)
|
|
||||||
if("${CURL_TEST}_COMPILE" MATCHES "^${CURL_TEST}_COMPILE$")
|
|
||||||
set(MACRO_CHECK_FUNCTION_DEFINITIONS
|
|
||||||
"-D${CURL_TEST} ${CMAKE_REQUIRED_FLAGS}")
|
|
||||||
if(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
set(CURL_TEST_ADD_LIBRARIES
|
|
||||||
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
|
||||||
endif(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST}")
|
|
||||||
try_run(${CURL_TEST} ${CURL_TEST}_COMPILE
|
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/CMake/CurlTests.c
|
|
||||||
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
|
||||||
"${CURL_TEST_ADD_LIBRARIES}"
|
|
||||||
OUTPUT_VARIABLE OUTPUT)
|
|
||||||
if(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
|
||||||
set(${CURL_TEST} 1 CACHE INTERNAL "Curl test ${FUNCTION}")
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST} - Success")
|
|
||||||
else(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
|
||||||
message(STATUS "Performing Curl Test ${CURL_TEST} - Failed")
|
|
||||||
set(${CURL_TEST} "" CACHE INTERNAL "Curl test ${FUNCTION}")
|
|
||||||
file(APPEND "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
|
||||||
"Performing Curl Test ${CURL_TEST} failed with the following output:\n"
|
|
||||||
"${OUTPUT}")
|
|
||||||
if(${CURL_TEST}_COMPILE)
|
|
||||||
file(APPEND
|
|
||||||
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
|
||||||
"There was a problem running this test\n")
|
|
||||||
endif(${CURL_TEST}_COMPILE)
|
|
||||||
file(APPEND "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log"
|
|
||||||
"\n\n")
|
|
||||||
endif(${CURL_TEST}_COMPILE AND NOT ${CURL_TEST})
|
|
||||||
endif("${CURL_TEST}_COMPILE" MATCHES "^${CURL_TEST}_COMPILE$")
|
|
||||||
endmacro(CURL_INTERNAL_TEST_RUN)
|
|
||||||
|
|
||||||
# Do curl specific tests
|
# Do curl specific tests
|
||||||
foreach(CURL_TEST
|
foreach(CURL_TEST
|
||||||
HAVE_FCNTL_O_NONBLOCK
|
HAVE_FCNTL_O_NONBLOCK
|
||||||
@@ -783,6 +959,17 @@ else()
|
|||||||
set(CURL_SIZEOF_CURL_SOCKLEN_T ${SIZEOF_INT})
|
set(CURL_SIZEOF_CURL_SOCKLEN_T ${SIZEOF_INT})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# TODO test which of these headers are required for the typedefs used in curlbuild.h
|
||||||
|
if(WIN32)
|
||||||
|
set(CURL_PULL_WS2TCPIP_H ${HAVE_WS2TCPIP_H})
|
||||||
|
else()
|
||||||
|
set(CURL_PULL_SYS_TYPES_H ${HAVE_SYS_TYPES_H})
|
||||||
|
set(CURL_PULL_SYS_SOCKET_H ${HAVE_SYS_SOCKET_H})
|
||||||
|
set(CURL_PULL_SYS_POLL_H ${HAVE_SYS_POLL_H})
|
||||||
|
endif()
|
||||||
|
set(CURL_PULL_STDINT_H ${HAVE_STDINT_H})
|
||||||
|
set(CURL_PULL_INTTYPES_H ${HAVE_INTTYPES_H})
|
||||||
|
|
||||||
include(CMake/OtherTests.cmake)
|
include(CMake/OtherTests.cmake)
|
||||||
|
|
||||||
add_definitions(-DHAVE_CONFIG_H)
|
add_definitions(-DHAVE_CONFIG_H)
|
||||||
@@ -796,24 +983,6 @@ if(MSVC)
|
|||||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
|
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
# Sets up the dependencies (zlib, OpenSSL, etc.) of a cURL subproject according to options.
|
|
||||||
# TODO This is far to be complete!
|
|
||||||
function(SETUP_CURL_DEPENDENCIES TARGET_NAME)
|
|
||||||
if(CURL_ZLIB AND ZLIB_FOUND)
|
|
||||||
include_directories(${ZLIB_INCLUDE_DIR})
|
|
||||||
#ADD_DEFINITIONS( -DHAVE_ZLIB_H -DHAVE_ZLIB -DHAVE_LIBZ )
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(CMAKE_USE_OPENSSL AND OPENSSL_FOUND)
|
|
||||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
|
||||||
endif()
|
|
||||||
if(CMAKE_USE_OPENSSL AND CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
|
|
||||||
#ADD_DEFINITIONS( -DUSE_SSLEAY )
|
|
||||||
endif()
|
|
||||||
|
|
||||||
target_link_libraries(${TARGET_NAME} ${CURL_LIBS})
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
# Ugly (but functional) way to include "Makefile.inc" by transforming it (= regenerate it).
|
# Ugly (but functional) way to include "Makefile.inc" by transforming it (= regenerate it).
|
||||||
function(TRANSFORM_MAKEFILE_INC INPUT_FILE OUTPUT_FILE)
|
function(TRANSFORM_MAKEFILE_INC INPUT_FILE OUTPUT_FILE)
|
||||||
file(READ ${INPUT_FILE} MAKEFILE_INC_TEXT)
|
file(READ ${INPUT_FILE} MAKEFILE_INC_TEXT)
|
||||||
@@ -838,6 +1007,133 @@ if(BUILD_CURL_TESTS)
|
|||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# TODO support GNUTLS, NSS, POLARSSL, AXTLS, CYASSL, WINSSL, DARWINSSL
|
||||||
|
if(USE_OPENSSL)
|
||||||
|
set(SSL_ENABLED 1)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Helper to populate a list (_items) with a label when conditions (the remaining
|
||||||
|
# args) are satisfied
|
||||||
|
function(_add_if label)
|
||||||
|
# TODO need to disable policy CMP0054 (CMake 3.1) to allow this indirection
|
||||||
|
if(${ARGN})
|
||||||
|
set(_items ${_items} "${label}" PARENT_SCOPE)
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# Clear list and try to detect available features
|
||||||
|
set(_items)
|
||||||
|
_add_if("SSL" SSL_ENABLED)
|
||||||
|
_add_if("IPv6" ENABLE_IPV6)
|
||||||
|
_add_if("unix-sockets" USE_UNIX_SOCKETS)
|
||||||
|
_add_if("libz" HAVE_LIBZ)
|
||||||
|
_add_if("AsynchDNS" USE_ARES OR USE_THREADS_POSIX)
|
||||||
|
_add_if("IDN" HAVE_LIBIDN)
|
||||||
|
# TODO SSP1 (WinSSL) check is missing
|
||||||
|
_add_if("SSPI" USE_WINDOWS_SSPI)
|
||||||
|
_add_if("GSS-API" HAVE_GSS_API)
|
||||||
|
# TODO SSP1 missing for SPNEGO
|
||||||
|
_add_if("SPNEGO" NOT CURL_DISABLE_CRYPTO_AUTH AND
|
||||||
|
(HAVE_GSS_API OR USE_WINDOWS_SSPI))
|
||||||
|
_add_if("Kerberos" NOT CURL_DISABLE_CRYPTO_AUTH AND
|
||||||
|
(HAVE_GSS_API OR USE_WINDOWS_SSPI))
|
||||||
|
# NTLM support requires crypto function adaptions from various SSL libs
|
||||||
|
# TODO alternative SSL libs tests for SSP1, GNUTLS, NSS, DARWINSSL
|
||||||
|
if(NOT CURL_DISABLE_CRYPTO_AUTH AND (USE_OPENSSL OR
|
||||||
|
USE_WINDOWS_SSPI OR GNUTLS_ENABLED OR NSS_ENABLED OR DARWINSSL_ENABLED))
|
||||||
|
_add_if("NTLM" 1)
|
||||||
|
# TODO missing option (autoconf: --enable-ntlm-wb)
|
||||||
|
_add_if("NTLM_WB" NOT CURL_DISABLE_HTTP AND NTLM_WB_ENABLED)
|
||||||
|
endif()
|
||||||
|
# TODO missing option (--enable-tls-srp), depends on GNUTLS_SRP/OPENSSL_SRP
|
||||||
|
_add_if("TLS-SRP" USE_TLS_SRP)
|
||||||
|
# TODO option --with-nghttp2 tests for nghttp2 lib and nghttp2/nghttp2.h header
|
||||||
|
_add_if("HTTP2" USE_NGHTTP2)
|
||||||
|
string(REPLACE ";" " " SUPPORT_FEATURES "${_items}")
|
||||||
|
message(STATUS "Enabled features: ${SUPPORT_FEATURES}")
|
||||||
|
|
||||||
|
# Clear list and try to detect available protocols
|
||||||
|
set(_items)
|
||||||
|
_add_if("HTTP" NOT CURL_DISABLE_HTTP)
|
||||||
|
_add_if("HTTPS" NOT CURL_DISABLE_HTTP AND SSL_ENABLED)
|
||||||
|
_add_if("FTP" NOT CURL_DISABLE_FTP)
|
||||||
|
_add_if("FTPS" NOT CURL_DISABLE_FTP AND SSL_ENABLED)
|
||||||
|
_add_if("FILE" NOT CURL_DISABLE_FILE)
|
||||||
|
_add_if("TELNET" NOT CURL_DISABLE_TELNET)
|
||||||
|
_add_if("LDAP" NOT CURL_DISABLE_LDAP)
|
||||||
|
# CURL_DISABLE_LDAP implies CURL_DISABLE_LDAPS
|
||||||
|
# TODO check HAVE_LDAP_SSL (in autoconf this is enabled with --enable-ldaps)
|
||||||
|
_add_if("LDAPS" NOT CURL_DISABLE_LDAPS AND
|
||||||
|
((USE_OPENLDAP AND SSL_ENABLED) OR
|
||||||
|
(NOT USE_OPENLDAP AND HAVE_LDAP_SSL)))
|
||||||
|
_add_if("DICT" NOT CURL_DISABLE_DICT)
|
||||||
|
_add_if("TFTP" NOT CURL_DISABLE_TFTP)
|
||||||
|
_add_if("GOPHER" NOT CURL_DISABLE_GOPHER)
|
||||||
|
_add_if("POP3" NOT CURL_DISABLE_POP3)
|
||||||
|
_add_if("POP3S" NOT CURL_DISABLE_POP3 AND SSL_ENABLED)
|
||||||
|
_add_if("IMAP" NOT CURL_DISABLE_IMAP)
|
||||||
|
_add_if("IMAPS" NOT CURL_DISABLE_IMAP AND SSL_ENABLED)
|
||||||
|
_add_if("SMTP" NOT CURL_DISABLE_SMTP)
|
||||||
|
_add_if("SMTPS" NOT CURL_DISABLE_SMTP AND SSL_ENABLED)
|
||||||
|
_add_if("SCP" USE_LIBSSH2)
|
||||||
|
_add_if("SFTP" USE_LIBSSH2)
|
||||||
|
_add_if("RTSP" NOT CURL_DISABLE_RTSP)
|
||||||
|
_add_if("RTMP" USE_LIBRTMP)
|
||||||
|
list(SORT _items)
|
||||||
|
string(REPLACE ";" " " SUPPORT_PROTOCOLS "${_items}")
|
||||||
|
message(STATUS "Enabled protocols: ${SUPPORT_PROTOCOLS}")
|
||||||
|
|
||||||
|
# curl-config needs the following options to be set.
|
||||||
|
set(CC "${CMAKE_C_COMPILER}")
|
||||||
|
# TODO probably put a -D... options here?
|
||||||
|
set(CONFIGURE_OPTIONS "")
|
||||||
|
# TODO when to set "-DCURL_STATICLIB" for CPPFLAG_CURL_STATICLIB?
|
||||||
|
set(CPPFLAG_CURL_STATICLIB "")
|
||||||
|
# TODO need to set this (see CURL_CHECK_CA_BUNDLE in acinclude.m4)
|
||||||
|
set(CURL_CA_BUNDLE "")
|
||||||
|
set(CURLVERSION "${CURL_VERSION}")
|
||||||
|
set(ENABLE_SHARED "yes")
|
||||||
|
if(CURL_STATICLIB)
|
||||||
|
# Broken: LIBCURL_LIBS below; .a lib is not built
|
||||||
|
message(WARNING "Static linking is broken!")
|
||||||
|
set(ENABLE_STATIC "no")
|
||||||
|
else()
|
||||||
|
set(ENABLE_STATIC "no")
|
||||||
|
endif()
|
||||||
|
set(exec_prefix "\${prefix}")
|
||||||
|
set(includedir "\${prefix}/include")
|
||||||
|
set(LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||||
|
set(LIBCURL_LIBS "")
|
||||||
|
set(libdir "${CMAKE_INSTALL_PREFIX}/lib")
|
||||||
|
# TODO CURL_LIBS also contains absolute paths which don't work with static -l...
|
||||||
|
foreach(_lib ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${CURL_LIBS})
|
||||||
|
set(LIBCURL_LIBS "${LIBCURL_LIBS} -l${_lib}")
|
||||||
|
endforeach()
|
||||||
|
# "a" (Linux) or "lib" (Windows)
|
||||||
|
string(REPLACE "." "" libext "${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
||||||
|
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
||||||
|
# Set this to "yes" to append all libraries on which -lcurl is dependent
|
||||||
|
set(REQUIRE_LIB_DEPS "no")
|
||||||
|
# SUPPORT_FEATURES
|
||||||
|
# SUPPORT_PROTOCOLS
|
||||||
|
set(VERSIONNUM "${CURL_VERSION_NUM}")
|
||||||
|
|
||||||
|
# Finally generate a "curl-config" matching this config
|
||||||
|
configure_file("${CURL_SOURCE_DIR}/curl-config.in"
|
||||||
|
"${CURL_BINARY_DIR}/curl-config" @ONLY)
|
||||||
|
install(FILES "${CMAKE_BINARY_DIR}/curl-config"
|
||||||
|
DESTINATION bin
|
||||||
|
PERMISSIONS
|
||||||
|
OWNER_READ OWNER_WRITE OWNER_EXECUTE
|
||||||
|
GROUP_READ GROUP_EXECUTE
|
||||||
|
WORLD_READ WORLD_EXECUTE)
|
||||||
|
|
||||||
|
# Finally generate a pkg-config file matching this config
|
||||||
|
configure_file("${CURL_SOURCE_DIR}/libcurl.pc.in"
|
||||||
|
"${CURL_BINARY_DIR}/libcurl.pc" @ONLY)
|
||||||
|
install(FILES "${CMAKE_BINARY_DIR}/libcurl.pc"
|
||||||
|
DESTINATION lib/pkgconfig)
|
||||||
|
|
||||||
# This needs to be run very last so other parts of the scripts can take advantage of this.
|
# This needs to be run very last so other parts of the scripts can take advantage of this.
|
||||||
if(NOT CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
|
if(NOT CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
|
||||||
set(CURL_CONFIG_HAS_BEEN_RUN_BEFORE 1 CACHE INTERNAL "Flag to track whether this is the first time running CMake or if CMake has been configured before")
|
set(CURL_CONFIG_HAS_BEEN_RUN_BEFORE 1 CACHE INTERNAL "Flag to track whether this is the first time running CMake or if CMake has been configured before")
|
||||||
|
|||||||
2
COPYING
2
COPYING
@@ -1,6 +1,6 @@
|
|||||||
COPYRIGHT AND PERMISSION NOTICE
|
COPYRIGHT AND PERMISSION NOTICE
|
||||||
|
|
||||||
Copyright (c) 1996 - 2013, Daniel Stenberg, <daniel@haxx.se>.
|
Copyright (c) 1996 - 2015, Daniel Stenberg, <daniel@haxx.se>.
|
||||||
|
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
|
|||||||
452
Makefile.am
452
Makefile.am
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
@@ -24,34 +24,94 @@ AUTOMAKE_OPTIONS = foreign
|
|||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
CMAKE_DIST = CMakeLists.txt CMake/CMakeConfigurableFile.in \
|
CMAKE_DIST = CMakeLists.txt CMake/CMakeConfigurableFile.in \
|
||||||
CMake/CurlCheckCSourceCompiles.cmake CMake/CurlCheckCSourceRuns.cmake \
|
CMake/CurlTests.c CMake/FindGSS.cmake CMake/OtherTests.cmake \
|
||||||
CMake/CurlTests.c CMake/FindOpenSSL.cmake CMake/FindZLIB.cmake \
|
CMake/Platforms/WindowsCache.cmake CMake/Utilities.cmake \
|
||||||
CMake/OtherTests.cmake CMake/Platforms/WindowsCache.cmake \
|
include/curl/curlbuild.h.cmake CMake/Macros.cmake
|
||||||
CMake/Utilities.cmake include/curl/curlbuild.h.cmake
|
|
||||||
|
|
||||||
VC6LIBDSP = vs/vc6/lib/vc6libcurl.dsp
|
VC6_LIBTMPL = projects/Windows/VC6/lib/libcurl.tmpl
|
||||||
VC6LIBDSPHEAD = vs/t/lib/vc6_libcurl_dsp.head
|
VC6_LIBDSP = projects/Windows/VC6/lib/libcurl.dsp.dist
|
||||||
VC6LIBDSPFOOT = vs/t/lib/vc6_libcurl_dsp.foot
|
VC6_LIBDSP_DEPS = $(VC6_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
|
VC6_SRCTMPL = projects/Windows/VC6/src/curlsrc.tmpl
|
||||||
|
VC6_SRCDSP = projects/Windows/VC6/src/curlsrc.dsp.dist
|
||||||
|
VC6_SRCDSP_DEPS = $(VC6_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC8LIBPRJ = vs/vc8/lib/vc8libcurl.vcproj
|
VC7_LIBTMPL = projects/Windows/VC7/lib/libcurl.tmpl
|
||||||
VC8LIBPRJHEAD = vs/t/lib/vc8_libcurl_prj.head
|
VC7_LIBVCPROJ = projects/Windows/VC7/lib/libcurl.vcproj.dist
|
||||||
VC8LIBPRJFOOT = vs/t/lib/vc8_libcurl_prj.foot
|
VC7_LIBVCPROJ_DEPS = $(VC7_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
|
VC7_SRCTMPL = projects/Windows/VC7/src/curlsrc.tmpl
|
||||||
|
VC7_SRCVCPROJ = projects/Windows/VC7/src/curlsrc.vcproj.dist
|
||||||
|
VC7_SRCVCPROJ_DEPS = $(VC7_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC_DIST = \
|
VC71_LIBTMPL = projects/Windows/VC7.1/lib/libcurl.tmpl
|
||||||
vs/t/README \
|
VC71_LIBVCPROJ = projects/Windows/VC7.1/lib/libcurl.vcproj.dist
|
||||||
$(VC6LIBDSP) $(VC6LIBDSPHEAD) $(VC6LIBDSPFOOT) \
|
VC71_LIBVCPROJ_DEPS = $(VC71_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
$(VC8LIBPRJ) $(VC8LIBPRJHEAD) $(VC8LIBPRJFOOT) \
|
VC71_SRCTMPL = projects/Windows/VC7.1/src/curlsrc.tmpl
|
||||||
vs/vc6/vc6curl.dsw \
|
VC71_SRCVCPROJ = projects/Windows/VC7.1/src/curlsrc.vcproj.dist
|
||||||
vs/vc6/lib/vc6libcurl.dsw \
|
VC71_SRCVCPROJ_DEPS = $(VC71_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
vs/vc6/src/vc6curltool.dsw \
|
|
||||||
vs/vc6/src/vc6curltool.dsp
|
|
||||||
|
|
||||||
VC6LIBDSP_DEPS = $(VC6LIBDSPHEAD) $(VC6LIBDSPFOOT) \
|
VC8_LIBTMPL = projects/Windows/VC8/lib/libcurl.tmpl
|
||||||
Makefile.am lib/Makefile.inc
|
VC8_LIBVCPROJ = projects/Windows/VC8/lib/libcurl.vcproj.dist
|
||||||
|
VC8_LIBVCPROJ_DEPS = $(VC8_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
|
VC8_SRCTMPL = projects/Windows/VC8/src/curlsrc.tmpl
|
||||||
|
VC8_SRCVCPROJ = projects/Windows/VC8/src/curlsrc.vcproj.dist
|
||||||
|
VC8_SRCVCPROJ_DEPS = $(VC8_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
VC8LIBPRJ_DEPS = $(VC8LIBPRJHEAD) $(VC8LIBPRJFOOT) \
|
VC9_LIBTMPL = projects/Windows/VC9/lib/libcurl.tmpl
|
||||||
Makefile.am lib/Makefile.inc
|
VC9_LIBVCPROJ = projects/Windows/VC9/lib/libcurl.vcproj.dist
|
||||||
|
VC9_LIBVCPROJ_DEPS = $(VC9_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
|
VC9_SRCTMPL = projects/Windows/VC9/src/curlsrc.tmpl
|
||||||
|
VC9_SRCVCPROJ = projects/Windows/VC9/src/curlsrc.vcproj.dist
|
||||||
|
VC9_SRCVCPROJ_DEPS = $(VC9_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
|
VC10_LIBTMPL = projects/Windows/VC10/lib/libcurl.tmpl
|
||||||
|
VC10_LIBVCXPROJ = projects/Windows/VC10/lib/libcurl.vcxproj.dist
|
||||||
|
VC10_LIBVCXPROJ_DEPS = $(VC10_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
|
VC10_SRCTMPL = projects/Windows/VC10/src/curlsrc.tmpl
|
||||||
|
VC10_SRCVCXPROJ = projects/Windows/VC10/src/curlsrc.vcxproj.dist
|
||||||
|
VC10_SRCVCXPROJ_DEPS = $(VC10_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
|
VC11_LIBTMPL = projects/Windows/VC11/lib/libcurl.tmpl
|
||||||
|
VC11_LIBVCXPROJ = projects/Windows/VC11/lib/libcurl.vcxproj.dist
|
||||||
|
VC11_LIBVCXPROJ_DEPS = $(VC11_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
|
VC11_SRCTMPL = projects/Windows/VC11/src/curlsrc.tmpl
|
||||||
|
VC11_SRCVCXPROJ = projects/Windows/VC11/src/curlsrc.vcxproj.dist
|
||||||
|
VC11_SRCVCXPROJ_DEPS = $(VC11_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
|
VC12_LIBTMPL = projects/Windows/VC12/lib/libcurl.tmpl
|
||||||
|
VC12_LIBVCXPROJ = projects/Windows/VC12/lib/libcurl.vcxproj.dist
|
||||||
|
VC12_LIBVCXPROJ_DEPS = $(VC12_LIBTMPL) Makefile.am lib/Makefile.inc
|
||||||
|
VC12_SRCTMPL = projects/Windows/VC12/src/curlsrc.tmpl
|
||||||
|
VC12_SRCVCXPROJ = projects/Windows/VC12/src/curlsrc.vcxproj.dist
|
||||||
|
VC12_SRCVCXPROJ_DEPS = $(VC12_SRCTMPL) Makefile.am src/Makefile.inc
|
||||||
|
|
||||||
|
VC_DIST = projects/README \
|
||||||
|
projects/build-openssl.bat \
|
||||||
|
projects/checksrc.bat \
|
||||||
|
projects/Windows/VC6/curl-all.dsw \
|
||||||
|
projects/Windows/VC6/lib/libcurl.dsw \
|
||||||
|
projects/Windows/VC6/src/curlsrc.dsw \
|
||||||
|
projects/Windows/VC7/curl-all.sln \
|
||||||
|
projects/Windows/VC7/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC7/src/curlsrc.sln \
|
||||||
|
projects/Windows/VC7.1/curl-all.sln \
|
||||||
|
projects/Windows/VC7.1/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC7.1/src/curlsrc.sln \
|
||||||
|
projects/Windows/VC8/curl-all.sln \
|
||||||
|
projects/Windows/VC8/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC8/src/curlsrc.sln \
|
||||||
|
projects/Windows/VC9/curl-all.sln \
|
||||||
|
projects/Windows/VC9/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC9/src/curlsrc.sln \
|
||||||
|
projects/Windows/VC10/curl-all.sln \
|
||||||
|
projects/Windows/VC10/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC10/src/curlsrc.sln \
|
||||||
|
projects/Windows/VC11/curl-all.sln \
|
||||||
|
projects/Windows/VC11/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC11/src/curlsrc.sln \
|
||||||
|
projects/Windows/VC12/curl-all.sln \
|
||||||
|
projects/Windows/VC12/lib/libcurl.sln \
|
||||||
|
projects/Windows/VC12/src/curlsrc.sln
|
||||||
|
|
||||||
WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
|
WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
|
||||||
winbuild/MakefileBuild.vc winbuild/Makefile.vc \
|
winbuild/MakefileBuild.vc winbuild/Makefile.vc \
|
||||||
@@ -61,7 +121,10 @@ EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
|
|||||||
RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework \
|
RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework \
|
||||||
$(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) lib/libcurl.vers.in
|
$(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) lib/libcurl.vers.in
|
||||||
|
|
||||||
CLEANFILES = $(VC6LIBDSP) $(VC8LIBPRJ)
|
CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ) \
|
||||||
|
$(VC71_LIBVCPROJ) $(VC71_SRCVCPROJ) $(VC8_LIBVCPROJ) $(VC8_SRCVCPROJ) \
|
||||||
|
$(VC9_LIBVCPROJ) $(VC9_SRCVCPROJ) $(VC10_LIBVCXPROJ) $(VC10_SRCVCXPROJ) \
|
||||||
|
$(VC11_LIBVCXPROJ) $(VC11_SRCVCXPROJ) $(VC12_LIBVCXPROJ) $(VC12_SRCVCXPROJ)
|
||||||
|
|
||||||
bin_SCRIPTS = curl-config
|
bin_SCRIPTS = curl-config
|
||||||
|
|
||||||
@@ -71,11 +134,9 @@ DIST_SUBDIRS = $(SUBDIRS) tests packages docs
|
|||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = libcurl.pc
|
pkgconfig_DATA = libcurl.pc
|
||||||
|
|
||||||
# List of libcurl source files required to generate VC IDE dsp and prj files
|
# List of files required to generate VC IDE .dsp, .vcproj and .vcxproj files
|
||||||
include lib/Makefile.inc
|
include lib/Makefile.inc
|
||||||
|
include src/Makefile.inc
|
||||||
WIN32SOURCES = $(CSOURCES)
|
|
||||||
WIN32HEADERS = $(HHEADERS) config-win32.h
|
|
||||||
|
|
||||||
dist-hook:
|
dist-hook:
|
||||||
rm -rf $(top_builddir)/tests/log
|
rm -rf $(top_builddir)/tests/log
|
||||||
@@ -187,96 +248,283 @@ uninstall-hook:
|
|||||||
cd docs && $(MAKE) uninstall
|
cd docs && $(MAKE) uninstall
|
||||||
|
|
||||||
ca-bundle: lib/mk-ca-bundle.pl
|
ca-bundle: lib/mk-ca-bundle.pl
|
||||||
@echo "generate a fresh ca-bundle.crt"
|
@echo "generating a fresh ca-bundle.crt"
|
||||||
@perl $< -b -l -u lib/ca-bundle.crt
|
@perl $< -b -l -u lib/ca-bundle.crt
|
||||||
|
|
||||||
ca-firefox: lib/firefox-db2pem.sh
|
ca-firefox: lib/firefox-db2pem.sh
|
||||||
@echo "generate a fresh ca-bundle.crt"
|
@echo "generating a fresh ca-bundle.crt"
|
||||||
./lib/firefox-db2pem.sh lib/ca-bundle.crt
|
./lib/firefox-db2pem.sh lib/ca-bundle.crt
|
||||||
|
|
||||||
checksrc:
|
checksrc:
|
||||||
cd lib && $(MAKE) checksrc
|
cd lib && $(MAKE) checksrc
|
||||||
cd src && $(MAKE) checksrc
|
cd src && $(MAKE) checksrc
|
||||||
|
|
||||||
.PHONY: vc6-ide
|
.PHONY: vc-ide
|
||||||
|
|
||||||
vc6-ide:
|
vc-ide: $(VC6_LIBDSP_DEPS) $(VC6_SRCDSP_DEPS) $(VC7_LIBVCPROJ_DEPS) \
|
||||||
$(MAKE) $(VC6LIBDSP)
|
$(VC7_SRCVCPROJ_DEPS) $(VC71_LIBVCPROJ_DEPS) $(VC71_SRCVCPROJ_DEPS) \
|
||||||
|
$(VC8_LIBVCPROJ_DEPS) $(VC8_SRCVCPROJ_DEPS) $(VC9_LIBVCPROJ_DEPS) \
|
||||||
$(VC6LIBDSP): $(VC6LIBDSP_DEPS)
|
$(VC9_SRCVCPROJ_DEPS) $(VC10_LIBVCXPROJ_DEPS) $(VC10_SRCVCXPROJ_DEPS) \
|
||||||
@(echo "generating '$(VC6LIBDSP)'"; \
|
$(VC11_LIBVCXPROJ_DEPS) $(VC11_SRCVCXPROJ_DEPS) $(VC12_LIBVCXPROJ_DEPS) \
|
||||||
|
$(VC12_SRCVCXPROJ_DEPS)
|
||||||
|
@(win32_lib_srcs='$(LIB_CFILES)'; \
|
||||||
|
win32_lib_hdrs='$(LIB_HFILES) config-win32.h'; \
|
||||||
|
win32_lib_rc='$(LIB_RCFILES)'; \
|
||||||
|
win32_lib_vtls_srcs='$(LIB_VTLS_CFILES)'; \
|
||||||
|
win32_lib_vtls_hdrs='$(LIB_VTLS_HFILES)'; \
|
||||||
|
win32_src_srcs='$(CURL_CFILES)'; \
|
||||||
|
win32_src_hdrs='$(CURL_HFILES)'; \
|
||||||
|
win32_src_rc='$(CURL_RCFILES)'; \
|
||||||
|
win32_src_x_srcs='$(CURLX_CFILES)'; \
|
||||||
|
win32_src_x_hdrs='$(CURLX_HFILES) ../lib/config-win32.h'; \
|
||||||
\
|
\
|
||||||
for dir in 'vs' 'vs/vc6' 'vs/vc6/lib'; do \
|
sorted_lib_srcs=`for file in $$win32_lib_srcs; do echo $$file; done | sort`; \
|
||||||
test -d "$$dir" || mkdir "$$dir" || exit 1; \
|
sorted_lib_hdrs=`for file in $$win32_lib_hdrs; do echo $$file; done | sort`; \
|
||||||
done; \
|
sorted_lib_vtls_srcs=`for file in $$win32_lib_vtls_srcs; do echo $$file; done | sort`; \
|
||||||
|
sorted_lib_vtls_hdrs=`for file in $$win32_lib_vtls_hdrs; do echo $$file; done | sort`; \
|
||||||
|
sorted_src_srcs=`for file in $$win32_src_srcs; do echo $$file; done | sort`; \
|
||||||
|
sorted_src_hdrs=`for file in $$win32_src_hdrs; do echo $$file; done | sort`; \
|
||||||
|
sorted_src_x_srcs=`for file in $$win32_src_x_srcs; do echo $$file; done | sort`; \
|
||||||
|
sorted_src_x_hdrs=`for file in $$win32_src_x_hdrs; do echo $$file; done | sort`; \
|
||||||
\
|
\
|
||||||
dir='..\..\..\lib\'; \
|
awk_code='\
|
||||||
body='$(VC6LIBDSP)'.body; \
|
function gen_element(type, dir, file)\
|
||||||
win32_srcs='$(WIN32SOURCES)'; \
|
{\
|
||||||
win32_hdrs='$(WIN32HEADERS)'; \
|
sub(/vtls\//, "", file);\
|
||||||
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
\
|
||||||
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
spaces=" ";\
|
||||||
|
if(dir == "lib\\vtls")\
|
||||||
|
tabs=" ";\
|
||||||
|
else\
|
||||||
|
tabs=" ";\
|
||||||
|
\
|
||||||
|
if(type == "dsp") {\
|
||||||
|
printf("# Begin Source File\r\n");\
|
||||||
|
printf("\r\n");\
|
||||||
|
printf("SOURCE=..\\..\\..\\..\\%s\\%s\r\n", dir, file);\
|
||||||
|
printf("# End Source File\r\n");\
|
||||||
|
}\
|
||||||
|
else if(type == "vcproj1") {\
|
||||||
|
printf("%s<File\r\n", tabs);\
|
||||||
|
printf("%s RelativePath=\"..\\..\\..\\..\\%s\\%s\">\r\n",\
|
||||||
|
tabs, dir, file);\
|
||||||
|
printf("%s</File>\r\n", tabs);\
|
||||||
|
}\
|
||||||
|
else if(type == "vcproj2") {\
|
||||||
|
printf("%s<File\r\n", tabs);\
|
||||||
|
printf("%s RelativePath=\"..\\..\\..\\..\\%s\\%s\"\r\n",\
|
||||||
|
tabs, dir, file);\
|
||||||
|
printf("%s>\r\n", tabs);\
|
||||||
|
printf("%s</File>\r\n", tabs);\
|
||||||
|
}\
|
||||||
|
else if(type == "vcxproj") {\
|
||||||
|
i = index(file, ".");\
|
||||||
|
ext = substr(file, i == 0 ? 0 : i + 1);\
|
||||||
|
\
|
||||||
|
if(ext == "c")\
|
||||||
|
printf("%s<ClCompile Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
|
||||||
|
spaces, dir, file);\
|
||||||
|
else if(ext == "h")\
|
||||||
|
printf("%s<ClInclude Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
|
||||||
|
spaces, dir, file);\
|
||||||
|
else if(ext == "rc")\
|
||||||
|
printf("%s<ResourceCompile Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
|
||||||
|
spaces, dir, file);\
|
||||||
|
}\
|
||||||
|
}\
|
||||||
|
\
|
||||||
|
{\
|
||||||
|
\
|
||||||
|
if($$0 == "CURL_LIB_C_FILES") {\
|
||||||
|
split(lib_srcs, arr);\
|
||||||
|
for(val in arr) gen_element(proj_type, "lib", arr[val]);\
|
||||||
|
}\
|
||||||
|
else if($$0 == "CURL_LIB_H_FILES") {\
|
||||||
|
split(lib_hdrs, arr);\
|
||||||
|
for(val in arr) gen_element(proj_type, "lib", arr[val]);\
|
||||||
|
}\
|
||||||
|
else if($$0 == "CURL_LIB_RC_FILES") {\
|
||||||
|
split(lib_rc, arr);\
|
||||||
|
for(val in arr) gen_element(proj_type, "lib", arr[val]);\
|
||||||
|
}\
|
||||||
|
else if($$0 == "CURL_LIB_VTLS_C_FILES") {\
|
||||||
|
split(lib_vtls_srcs, arr);\
|
||||||
|
for(val in arr) gen_element(proj_type, "lib\\vtls", arr[val]);\
|
||||||
|
}\
|
||||||
|
else if($$0 == "CURL_LIB_VTLS_H_FILES") {\
|
||||||
|
split(lib_vtls_hdrs, arr);\
|
||||||
|
for(val in arr) gen_element(proj_type, "lib\\vtls", arr[val]);\
|
||||||
|
}\
|
||||||
|
else if($$0 == "CURL_SRC_C_FILES") {\
|
||||||
|
split(src_srcs, arr);\
|
||||||
|
for(val in arr) gen_element(proj_type, "src", arr[val]);\
|
||||||
|
}\
|
||||||
|
else if($$0 == "CURL_SRC_H_FILES") {\
|
||||||
|
split(src_hdrs, arr);\
|
||||||
|
for(val in arr) gen_element(proj_type, "src", arr[val]);\
|
||||||
|
}\
|
||||||
|
else if($$0 == "CURL_SRC_RC_FILES") {\
|
||||||
|
split(src_rc, arr);\
|
||||||
|
for(val in arr) gen_element(proj_type, "src", arr[val]);\
|
||||||
|
}\
|
||||||
|
else if($$0 == "CURL_SRC_X_C_FILES") {\
|
||||||
|
split(src_x_srcs, arr);\
|
||||||
|
for(val in arr) {\
|
||||||
|
sub(/..\/lib\//, "", arr[val]);\
|
||||||
|
gen_element(proj_type, "lib", arr[val]);\
|
||||||
|
}\
|
||||||
|
}\
|
||||||
|
else if($$0 == "CURL_SRC_X_H_FILES") {\
|
||||||
|
split(src_x_hdrs, arr);\
|
||||||
|
for(val in arr) {\
|
||||||
|
sub(/..\/lib\//, "", arr[val]);\
|
||||||
|
gen_element(proj_type, "lib", arr[val]);\
|
||||||
|
}\
|
||||||
|
}\
|
||||||
|
else\
|
||||||
|
printf("%s\r\n", $$0);\
|
||||||
|
}';\
|
||||||
\
|
\
|
||||||
echo "# Begin Group \"Source Files\"" > $$body; \
|
echo "generating '$(VC6_LIBDSP)'"; \
|
||||||
echo "" >> $$body; \
|
awk -v proj_type=dsp \
|
||||||
echo "# PROP Default_Filter \"\"" >> $$body; \
|
-v lib_srcs="$$sorted_lib_srcs" \
|
||||||
for file in $$sorted_srcs; do \
|
-v lib_hdrs="$$sorted_lib_hdrs" \
|
||||||
echo "# Begin Source File" >> $$body; \
|
-v lib_rc="$$win32_lib_rc" \
|
||||||
echo "" >> $$body; \
|
-v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
|
||||||
echo "SOURCE="$$dir$$file >> $$body; \
|
-v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
|
||||||
echo "# End Source File" >> $$body; \
|
"$$awk_code" $(srcdir)/$(VC6_LIBTMPL) > $(VC6_LIBDSP) || { exit 1; }; \
|
||||||
done; \
|
|
||||||
echo "# End Group" >> $$body; \
|
|
||||||
echo "# Begin Group \"Header Files\"" >> $$body; \
|
|
||||||
echo "" >> $$body; \
|
|
||||||
echo "# PROP Default_Filter \"\"" >> $$body; \
|
|
||||||
for file in $$sorted_hdrs; do \
|
|
||||||
echo "# Begin Source File" >> $$body; \
|
|
||||||
echo "" >> $$body; \
|
|
||||||
echo "SOURCE="$$dir$$file >> $$body; \
|
|
||||||
echo "# End Source File" >> $$body; \
|
|
||||||
done; \
|
|
||||||
echo "# End Group" >> $$body; \
|
|
||||||
\
|
\
|
||||||
awk '{ printf("%s\r\n", $$0); }' \
|
echo "generating '$(VC6_SRCDSP)'"; \
|
||||||
$(srcdir)/$(VC6LIBDSPHEAD) $$body $(srcdir)/$(VC6LIBDSPFOOT) \
|
awk -v proj_type=dsp \
|
||||||
> $(VC6LIBDSP) || { rm -f $$body; exit 1; }; \
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC6_SRCTMPL) > $(VC6_SRCDSP) || { exit 1; }; \
|
||||||
\
|
\
|
||||||
rm -f $$body)
|
echo "generating '$(VC7_LIBVCPROJ)'"; \
|
||||||
|
awk -v proj_type=vcproj1 \
|
||||||
.PHONY: vc8-ide
|
-v lib_srcs="$$sorted_lib_srcs" \
|
||||||
|
-v lib_hdrs="$$sorted_lib_hdrs" \
|
||||||
vc8-ide:
|
-v lib_rc="$$win32_lib_rc" \
|
||||||
$(MAKE) $(VC8LIBPRJ)
|
-v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
|
||||||
|
-v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
|
||||||
$(VC8LIBPRJ): $(VC8LIBPRJ_DEPS)
|
"$$awk_code" $(srcdir)/$(VC7_LIBTMPL) > $(VC7_LIBVCPROJ) || { exit 1; }; \
|
||||||
@(echo "generating '$(VC8LIBPRJ)'"; \
|
|
||||||
\
|
\
|
||||||
for dir in 'vs' 'vs/vc8' 'vs/vc8/lib'; do \
|
echo "generating '$(VC7_SRCVCPROJ)'"; \
|
||||||
test -d "$$dir" || mkdir "$$dir" || exit 1; \
|
awk -v proj_type=vcproj1 \
|
||||||
done; \
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC7_SRCTMPL) > $(VC7_SRCVCPROJ) || { exit 1; }; \
|
||||||
\
|
\
|
||||||
dir='..\..\..\lib\'; \
|
echo "generating '$(VC71_LIBVCPROJ)'"; \
|
||||||
body='$(VC8LIBPRJ)'.body; \
|
awk -v proj_type=vcproj1 \
|
||||||
win32_srcs='$(WIN32SOURCES)'; \
|
-v lib_srcs="$$sorted_lib_srcs" \
|
||||||
win32_hdrs='$(WIN32HEADERS)'; \
|
-v lib_hdrs="$$sorted_lib_hdrs" \
|
||||||
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
-v lib_rc="$$win32_lib_rc" \
|
||||||
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
-v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
|
||||||
|
-v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC71_LIBTMPL) > $(VC71_LIBVCPROJ) || { exit 1; }; \
|
||||||
\
|
\
|
||||||
echo "%tab%%tab%<Filter Name=\"Source Files\">" > $$body; \
|
echo "generating '$(VC71_SRCVCPROJ)'"; \
|
||||||
for file in $$sorted_srcs; do \
|
awk -v proj_type=vcproj1 \
|
||||||
echo "%tab%%tab%%tab%<File RelativePath=\""$$dir$$file"\"></File>" >> $$body; \
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
done; \
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
echo "%tab%%tab%</Filter>" >> $$body; \
|
-v src_rc="$$win32_src_rc" \
|
||||||
echo "%tab%%tab%<Filter Name=\"Header Files\">" >> $$body; \
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
for file in $$sorted_hdrs; do \
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
echo "%tab%%tab%%tab%<File RelativePath=\""$$dir$$file"\"></File>" >> $$body; \
|
"$$awk_code" $(srcdir)/$(VC71_SRCTMPL) > $(VC71_SRCVCPROJ) || { exit 1; }; \
|
||||||
done; \
|
|
||||||
echo "%tab%%tab%</Filter>" >> $$body; \
|
|
||||||
\
|
\
|
||||||
awk '{ gsub(/%tab%/, "\t"); printf("%s\r\n", $$0); }' \
|
echo "generating '$(VC8_LIBVCPROJ)'"; \
|
||||||
$(srcdir)/$(VC8LIBPRJHEAD) $$body $(srcdir)/$(VC8LIBPRJFOOT) \
|
awk -v proj_type=vcproj2 \
|
||||||
> $(VC8LIBPRJ) || { rm -f $$body; exit 1; }; \
|
-v lib_srcs="$$sorted_lib_srcs" \
|
||||||
|
-v lib_hdrs="$$sorted_lib_hdrs" \
|
||||||
|
-v lib_rc="$$win32_lib_rc" \
|
||||||
|
-v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
|
||||||
|
-v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC8_LIBTMPL) > $(VC8_LIBVCPROJ) || { exit 1; }; \
|
||||||
\
|
\
|
||||||
rm -f $$body)
|
echo "generating '$(VC8_SRCVCPROJ)'"; \
|
||||||
|
awk -v proj_type=vcproj2 \
|
||||||
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC8_SRCTMPL) > $(VC8_SRCVCPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC9_LIBVCPROJ)'"; \
|
||||||
|
awk -v proj_type=vcproj2 \
|
||||||
|
-v lib_srcs="$$sorted_lib_srcs" \
|
||||||
|
-v lib_hdrs="$$sorted_lib_hdrs" \
|
||||||
|
-v lib_rc="$$win32_lib_rc" \
|
||||||
|
-v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
|
||||||
|
-v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC9_LIBTMPL) > $(VC9_LIBVCPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC9_SRCVCPROJ)'"; \
|
||||||
|
awk -v proj_type=vcproj2 \
|
||||||
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC9_SRCTMPL) > $(VC9_SRCVCPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC10_LIBVCXPROJ)'"; \
|
||||||
|
awk -v proj_type=vcxproj \
|
||||||
|
-v lib_srcs="$$sorted_lib_srcs" \
|
||||||
|
-v lib_hdrs="$$sorted_lib_hdrs" \
|
||||||
|
-v lib_rc="$$win32_lib_rc" \
|
||||||
|
-v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
|
||||||
|
-v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC10_LIBTMPL) > $(VC10_LIBVCXPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC10_SRCVCXPROJ)'"; \
|
||||||
|
awk -v proj_type=vcxproj \
|
||||||
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC10_SRCTMPL) > $(VC10_SRCVCXPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC11_LIBVCXPROJ)'"; \
|
||||||
|
awk -v proj_type=vcxproj \
|
||||||
|
-v lib_srcs="$$sorted_lib_srcs" \
|
||||||
|
-v lib_hdrs="$$sorted_lib_hdrs" \
|
||||||
|
-v lib_rc="$$win32_lib_rc" \
|
||||||
|
-v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
|
||||||
|
-v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC11_LIBTMPL) > $(VC11_LIBVCXPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC11_SRCVCXPROJ)'"; \
|
||||||
|
awk -v proj_type=vcxproj \
|
||||||
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC11_SRCTMPL) > $(VC11_SRCVCXPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC12_LIBVCXPROJ)'"; \
|
||||||
|
awk -v proj_type=vcxproj \
|
||||||
|
-v lib_srcs="$$sorted_lib_srcs" \
|
||||||
|
-v lib_hdrs="$$sorted_lib_hdrs" \
|
||||||
|
-v lib_rc="$$win32_lib_rc" \
|
||||||
|
-v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
|
||||||
|
-v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC12_LIBTMPL) > $(VC12_LIBVCXPROJ) || { exit 1; }; \
|
||||||
|
\
|
||||||
|
echo "generating '$(VC12_SRCVCXPROJ)'"; \
|
||||||
|
awk -v proj_type=vcxproj \
|
||||||
|
-v src_srcs="$$sorted_src_srcs" \
|
||||||
|
-v src_hdrs="$$sorted_src_hdrs" \
|
||||||
|
-v src_rc="$$win32_src_rc" \
|
||||||
|
-v src_x_srcs="$$sorted_src_x_srcs" \
|
||||||
|
-v src_x_hdrs="$$sorted_src_x_hdrs" \
|
||||||
|
"$$awk_code" $(srcdir)/$(VC12_SRCTMPL) > $(VC12_SRCVCXPROJ) || { exit 1; };)
|
||||||
|
|||||||
298
Makefile.dist
298
Makefile.dist
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
@@ -130,41 +130,281 @@ vc-x64: $(VC)
|
|||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
|
||||||
|
|
||||||
|
vc-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release USE_IDN=1
|
||||||
|
|
||||||
|
vc-x64-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release USE_IDN=1
|
||||||
|
|
||||||
|
vc-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
vc-zlib: $(VC)
|
vc-zlib: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
nmake /f Makefile.$(VC) cfg=release-zlib
|
nmake /f Makefile.$(VC) cfg=release-zlib
|
||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) cfg=release-zlib
|
nmake /f Makefile.$(VC) cfg=release-zlib
|
||||||
|
|
||||||
|
vc-x64-zlib: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib
|
||||||
|
|
||||||
|
vc-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-x64-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
vc-ssl: $(VC)
|
vc-ssl: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
nmake /f Makefile.$(VC) cfg=release-ssl
|
nmake /f Makefile.$(VC) cfg=release-ssl
|
||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) cfg=release-ssl
|
nmake /f Makefile.$(VC) cfg=release-ssl
|
||||||
|
|
||||||
|
vc-x64-ssl: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl
|
||||||
|
|
||||||
|
vc-ssl-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-ssl-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl USE_IDN=1
|
||||||
|
|
||||||
|
vc-x64-ssl-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl USE_IDN=1
|
||||||
|
|
||||||
|
vc-ssl-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
vc-ssl-zlib: $(VC)
|
vc-ssl-zlib: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
nmake /f Makefile.$(VC) cfg=release-ssl-zlib
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib
|
||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) cfg=release-ssl-zlib
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib
|
||||||
|
|
||||||
vc-winssl-zlib: $(VC)
|
|
||||||
cd lib
|
|
||||||
nmake /f Makefile.$(VC) cfg=release-winssl-zlib
|
|
||||||
cd ..\src
|
|
||||||
nmake /f Makefile.$(VC) cfg=release-winssl-zlib
|
|
||||||
|
|
||||||
vc-x64-ssl-zlib: $(VC)
|
vc-x64-ssl-zlib: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
|
||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
|
||||||
|
|
||||||
|
vc-ssl-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-ssl-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-x64-ssl-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-ssl-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-ssl-ssh2-zlib: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib
|
||||||
|
|
||||||
|
vc-x64-ssl-ssh2-zlib: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib
|
||||||
|
|
||||||
|
vc-ssl-ssh2-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-ssh2-zlib-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-ssl-ssh2-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-x64-ssl-ssh2-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib USE_IDN=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib USE_IDN=1
|
||||||
|
|
||||||
|
vc-ssl-ssh2-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-ssl-ssh2-zlib-idn-sspi: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-winssl: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-winssl: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-winssl-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-winssl-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-winssl-zlib: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl-zlib WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
vc-x64-winssl-zlib: $(VC)
|
vc-x64-winssl-zlib: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib WINDOWS_SSPI=1
|
||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-winssl-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) cfg=release-winssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
|
vc-x64-winssl-zlib-idn: $(VC)
|
||||||
|
cd lib
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
cd ..\src
|
||||||
|
nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib USE_IDN=1 WINDOWS_SSPI=1
|
||||||
|
|
||||||
vc-ssl-dll: $(VC)
|
vc-ssl-dll: $(VC)
|
||||||
cd lib
|
cd lib
|
||||||
@@ -208,12 +448,6 @@ vc-zlib-dll: $(VC)
|
|||||||
cd ..\src
|
cd ..\src
|
||||||
nmake /f Makefile.$(VC) cfg=release-zlib-dll
|
nmake /f Makefile.$(VC) cfg=release-zlib-dll
|
||||||
|
|
||||||
vc-sspi: $(VC)
|
|
||||||
cd lib
|
|
||||||
nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
|
|
||||||
cd ..\src
|
|
||||||
nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
|
|
||||||
|
|
||||||
djgpp:
|
djgpp:
|
||||||
$(MAKE) -C lib -f Makefile.dj
|
$(MAKE) -C lib -f Makefile.dj
|
||||||
$(MAKE) -C src -f Makefile.dj
|
$(MAKE) -C src -f Makefile.dj
|
||||||
@@ -266,6 +500,18 @@ linux-ssl: ssl
|
|||||||
# We don't need to do anything for vc6.
|
# We don't need to do anything for vc6.
|
||||||
vc6:
|
vc6:
|
||||||
|
|
||||||
|
# VC7 makefiles are for use with VS.NET and VS.NET 2003
|
||||||
|
vc7: lib/Makefile.vc7 src/Makefile.vc7
|
||||||
|
|
||||||
|
lib/Makefile.vc7: lib/Makefile.vc6
|
||||||
|
@echo "generate $@"
|
||||||
|
@sed -e "s/VC6/VC7/g" lib/Makefile.vc6 > lib/Makefile.vc7
|
||||||
|
|
||||||
|
src/Makefile.vc7: src/Makefile.vc6
|
||||||
|
@echo "generate $@"
|
||||||
|
@sed -e "s/VC6/VC7/g" src/Makefile.vc6 > src/Makefile.vc7
|
||||||
|
|
||||||
|
# VC8 makefiles are for use with VS2005
|
||||||
vc8: lib/Makefile.vc8 src/Makefile.vc8
|
vc8: lib/Makefile.vc8 src/Makefile.vc8
|
||||||
|
|
||||||
lib/Makefile.vc8: lib/Makefile.vc6
|
lib/Makefile.vc8: lib/Makefile.vc6
|
||||||
@@ -298,6 +544,28 @@ src/Makefile.vc10: src/Makefile.vc6
|
|||||||
@echo "generate $@"
|
@echo "generate $@"
|
||||||
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc10/g" -e "s/VC6/VC10/g" src/Makefile.vc6 > src/Makefile.vc10
|
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc10/g" -e "s/VC6/VC10/g" src/Makefile.vc6 > src/Makefile.vc10
|
||||||
|
|
||||||
|
# VC11 makefiles are for use with VS2012
|
||||||
|
vc11: lib/Makefile.vc11 src/Makefile.vc11
|
||||||
|
|
||||||
|
lib/Makefile.vc11: lib/Makefile.vc6
|
||||||
|
@echo "generate $@"
|
||||||
|
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc11/g" -e "s/VC6/VC11/g" lib/Makefile.vc6 > lib/Makefile.vc11
|
||||||
|
|
||||||
|
src/Makefile.vc11: src/Makefile.vc6
|
||||||
|
@echo "generate $@"
|
||||||
|
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc11/g" -e "s/VC6/VC11/g" src/Makefile.vc6 > src/Makefile.vc11
|
||||||
|
|
||||||
|
# VC12 makefiles are for use with VS2013
|
||||||
|
vc12: lib/Makefile.vc12 src/Makefile.vc12
|
||||||
|
|
||||||
|
lib/Makefile.vc12: lib/Makefile.vc6
|
||||||
|
@echo "generate $@"
|
||||||
|
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc12/g" -e "s/VC6/VC12/g" lib/Makefile.vc6 > lib/Makefile.vc12
|
||||||
|
|
||||||
|
src/Makefile.vc12: src/Makefile.vc6
|
||||||
|
@echo "generate $@"
|
||||||
|
@sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc12/g" -e "s/VC6/VC12/g" src/Makefile.vc6 > src/Makefile.vc12
|
||||||
|
|
||||||
ca-bundle: lib/mk-ca-bundle.pl
|
ca-bundle: lib/mk-ca-bundle.pl
|
||||||
@echo "generate a fresh ca-bundle.crt"
|
@echo "generate a fresh ca-bundle.crt"
|
||||||
@perl $< -b -l -u lib/ca-bundle.crt
|
@perl $< -b -l -u lib/ca-bundle.crt
|
||||||
|
|||||||
192
RELEASE-NOTES
192
RELEASE-NOTES
@@ -1,68 +1,89 @@
|
|||||||
Curl and libcurl 7.33.0
|
Curl and libcurl 7.41.0
|
||||||
|
|
||||||
Public curl releases: 135
|
Public curl releases: 144
|
||||||
Command line options: 161
|
Command line options: 163
|
||||||
curl_easy_setopt() options: 205
|
curl_easy_setopt() options: 209
|
||||||
Public functions in libcurl: 58
|
Public functions in libcurl: 58
|
||||||
Known libcurl bindings: 42
|
Contributors: 1233
|
||||||
Contributors: 1057
|
|
||||||
|
|
||||||
This release includes the following changes:
|
This release includes the following changes:
|
||||||
|
|
||||||
o test code for testing the event based API [3]
|
o NetWare build: added TLS-SRP enabled build
|
||||||
o CURLM_ADDED_ALREADY: new error code
|
o winbuild: Added option to build with c-ares
|
||||||
o test TFTP server: support "writedelay" within <servercmd>
|
o Added --cert-status [9]
|
||||||
o krb4 support has been removed
|
o Added CURLOPT_SSL_VERIFYSTATUS [10]
|
||||||
o imap/pop3/smtp: added basic SASL XOAUTH2 support [9]
|
o sasl: implement EXTERNAL authentication mechanism
|
||||||
o darwinssl: add support for PKCS#12 files for client authentication
|
|
||||||
o darwinssl: enable BEAST workaround on iOS 7 & later
|
|
||||||
o Pass password to OpenSSL engine by user interface [15]
|
|
||||||
o c-ares: Add support for various DNS binding options
|
|
||||||
o cookies: add expiration
|
|
||||||
o curl: added --oauth2-bearer option
|
|
||||||
|
|
||||||
This release includes the following bugfixes:
|
This release includes the following bugfixes:
|
||||||
|
|
||||||
o nss: make sure that NSS is initialized
|
o sasl_gssapi: Fixed build on NetBSD with built-in GSS-API [1]
|
||||||
o curl: make --no-[option] work properly for several options
|
o FTP: fix IPv6 host using link-local address [2]
|
||||||
o FTP: with socket_action send better socket updates in active mode [1]
|
o FTP: if EPSV fails on IPV6 connections, bail out
|
||||||
o curl: fix the --sasl-ir in the --help output
|
o gssapi: Remove need for duplicated GSS_C_NT_HOSTBASED_SERVICE definitions
|
||||||
o tests 2032, 2033: Don't hardcode port in expected output
|
o NSS: fix compiler error when built http2-enabled
|
||||||
o urlglob: better detect unclosed braces, empty lists and overflows [7]
|
o mingw build: allow to pass custom CFLAGS [3]
|
||||||
o urlglob: error out on range overflow [8]
|
o add -m64 CFLAGS when targeting mingw64, add -m32/-m64 to LDFLAGS [4]
|
||||||
o imap: Fixed response check for SEARCH, EXPUNGE, LSUB, UID and NOOP commands [10]
|
o curl_schannel.c: mark session as removed from cache if not freed [5]
|
||||||
o handle arbitrary-length username and password [2]
|
o Curl_pretransfer: reset expected transfer sizes [6]
|
||||||
o TFTP: make the CURLOPT_LOW_SPEED* options work [4]
|
o curl.h: remove extra space [7]
|
||||||
o curl.h: name space pollution by "enum type" [5]
|
o curl_endian: Fixed build when 64-bit integers are not supported [8]
|
||||||
o multi: move on from STATE_DONE faster [6]
|
o checksrc.bat: Better detection of Perl installation
|
||||||
o FTP: 60 secs delay if aborted in the CURLOPT_HEADERFUNCTION callback [11]
|
o build-openssl.bat: Added check for Perl installation
|
||||||
o multi_socket: improved 100-continue timeout handling
|
o http_negotiate: Return CURLcode in Curl_input_negotiate() instead of int
|
||||||
o curl_multi_remove_handle: allow multiple removes
|
o http_negotiate: Added empty decoded challenge message info text
|
||||||
o FTP: fix getsock during DO_MORE state [12]
|
o vtls: Removed unimplemented overrides of curlssl_close_all()
|
||||||
o -x: rephrased the --proxy section somewhat
|
o sasl_gssapi: Fixed memory leak with local SPN variable
|
||||||
o acinclude: fix --without-ca-path when cross-compiling [13]
|
o http_negotiate: Use dynamic buffer for SPN generation
|
||||||
o LDAP: fix bad free() when URL parsing failed [14]
|
o ldap: Renamed the CURL_LDAP_WIN definition to USE_WIN32_LDAP
|
||||||
o --data: mention CRLF treatment when reading from file
|
o openssl: do public key pinning check independently [11]
|
||||||
o curl_easy_pause: suggest one way to unpause
|
o timeval: typecast for better type (on Amiga)
|
||||||
o imap: Fixed calculation of transfer when partial FETCH received [16]
|
o ipv6: enclose AF_INET6 uses with proper #ifdefs for ipv6
|
||||||
o pingpong: Check SSL library buffers for already read data [16]
|
o SASL: common URL option and auth capabilities decoders for all protocols
|
||||||
o imap/pop3/smtp: Speed up SSL connection initialization
|
o BoringSSL: fix build
|
||||||
o libcurl.3: for multi interface connections are held in the multi handle
|
o BoringSSL: detected by configure, switches off NTLM
|
||||||
o curl_easy_setopt.3: mention RTMP URL quirks [17]
|
o openvms: Handle openssl/0.8.9zb version parsing
|
||||||
o curl.1: detail how short/long options work [18]
|
o configure: detect libresssl
|
||||||
o curl.1: Added information about optional login options to --user option
|
o configure: remove detection of the old yassl emulation API
|
||||||
o curl: Added clarification to the --mail options in the --help output
|
o curl_setup: Disable SMB/CIFS support when HTTP only
|
||||||
o curl_easy_setopt.3: clarify that TIMEOUT and TIMEOUT_MS set the same value
|
o imap: remove automatic password setting: it breaks external sasl authentication
|
||||||
o openssl: use correct port number in error message [19]
|
o sasl: remove XOAUTH2 from default enabled authentication mechanism
|
||||||
o darwinssl: block TLS_RSA_WITH_NULL_SHA256 cipher
|
o runtests: identify BoringSSL and libressl
|
||||||
o OpenSSL: acknowledge CURLOPT_SSL_VERIFYHOST without VERIFYPEER
|
o security: avoid compiler warning
|
||||||
o xattr: add support for FreeBSD xattr API
|
o ldap: build with BoringSSL
|
||||||
o win32: fix Visual Studio 2010 build with WINVER >= 0x600 [22]
|
o des: Added Curl_des_set_odd_parity()
|
||||||
o configure: use icc options without space [21]
|
o CURLOPT_SEEKFUNCTION.3: also when server closes a connection
|
||||||
o test1112: Increase the timeout from 7s to 16s [20]
|
o CURLOPT_HTTP_VERSION.3: CURL_HTTP_VERSION_2_0 added in 7.33.0
|
||||||
o SCP: upload speed on a fast connection limited to 16384 B/s
|
o build: Removed unused Visual Studio bscmake settings
|
||||||
o curl_setup_once: fix errno access for lwip on Windows [24]
|
o build: Enabled DEBUGBUILD in Visual Studio debug builds
|
||||||
o HTTP: Output http response 304 when modified time is too old [23]
|
o build: Renamed top level Visual Studio solution files
|
||||||
|
o build: Removed Visual Studio SuppressStartupBanner directive for VC8+
|
||||||
|
o libcurl-symbols: first basic shot for autogenerated docs
|
||||||
|
o Makefile.am: fix 'make distcheck'
|
||||||
|
o getpass_r: read from stdin, not stdout! [12]
|
||||||
|
o getpass: protect include with proper #ifdef
|
||||||
|
o opts: CURLOPT_CAINFO availability depends on SSL engine
|
||||||
|
o more cleanup of 'CURLcode result' return code
|
||||||
|
o MD4: replace implementation
|
||||||
|
o MD5: replace implementation
|
||||||
|
o openssl: SSL_SESSION->ssl_version no longer exist [13]
|
||||||
|
o md5: use axTLS's own MD5 functions when available
|
||||||
|
o schannel: Removed curl_ prefix from source files
|
||||||
|
o curl.1: add warning when using -H and redirects
|
||||||
|
o curl.1: clarify that -X is used for all requests
|
||||||
|
o gskit: Fix exclusive SSLv3 option
|
||||||
|
o polarssl: Fix exclusive SSL protocol version options [14]
|
||||||
|
o http2: Fix bug that associated stream canceled on PUSH_PROMISE
|
||||||
|
o ftp: accept all 2xx responses to the PORT command
|
||||||
|
o configure: allow both --with-ca-bundle and --with-ca-path [15]
|
||||||
|
o cmake: install the dll file to the correct directory
|
||||||
|
o nss: fix NPN/ALPN protocol negotiation
|
||||||
|
o polarssl: fix ALPN protocol negotiation
|
||||||
|
o cmake: Fix generation of tool_hugehelp.c on windows
|
||||||
|
o cmake: fix winsock2 detection on windows
|
||||||
|
o gnutls: fix build with HTTP2
|
||||||
|
o connect: fix a spurious connect failure on dual-stacked hosts [16]
|
||||||
|
o test: test 530 is now less timing dependent
|
||||||
|
o telnet: invalid use of custom read function if not set
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
@@ -71,41 +92,32 @@ This release includes the following known bugs:
|
|||||||
This release would not have looked like this without help, code, reports and
|
This release would not have looked like this without help, code, reports and
|
||||||
advice from friends like these:
|
advice from friends like these:
|
||||||
|
|
||||||
Alex McLellan, Bill Doyle, Colby Ranger, Fabian Keil, Gisle Vanem,
|
Alessandro Ghedini, Alexander Peslyak, Ben Boeckel, Brad King, Brad Spencer,
|
||||||
John E. Malmberg, Jonathan Nieder, Kamil Dudka, Shawn Landden,
|
Chris Young, Dan Fandrich, Daniel Stenberg, Gisle Vanem, Guenter Knauf,
|
||||||
Tor Arntsen, Will Dietz, Yi Huang, Kyle L. Huff, Steve Holme, Mike Mio,
|
Jean-Francois Durand, Joe Mason, John E. Malmberg, Jon Seymour, Julian Ospald,
|
||||||
Stefan Neis, Nick Zitzmann, Geoff Beier, John Dunn, Jiri Hruska,
|
Kamil Dudka, Kyle J. McKay, Leith Bade, Marc Hoersken, Michael Kaufmann,
|
||||||
Tomas Mlcoch, Kim Vandry, Ben Greear, Gorilla Maguila, Jerry Krinock,
|
Michael Wallner, Mohammad AlSaleh, Nick Zitzmann, Patrick Monnerat,
|
||||||
Yamada Yasuharu, Gordon Marler, Dave Thompson, D. Flinkmann,
|
Ray Satiro, Rich Burridge, Sam Schanken, Sergei Nikulov, Steve Holme,
|
||||||
Benoit Sigoure, Clemens Gruber, Guenter Knauf, Petr Pisar, Elmira A Semenova,
|
Tatsuhiro Tsujikawa, Thomas Klausner, Viktor Szakats, Vojtěch Král,
|
||||||
Francois Charlier, Ishan SinghLevett, Marcel Raad, Ulf Samuelsson,
|
Yun SangHo
|
||||||
Andrej E Baranov, Derek Higgins, Heinrich Schaefer
|
|
||||||
|
|
||||||
Thanks! (and sorry if I forgot to mention someone)
|
Thanks! (and sorry if I forgot to mention someone)
|
||||||
|
|
||||||
References to bug reports and discussions on issues:
|
References to bug reports and discussions on issues:
|
||||||
|
|
||||||
[1] = http://curl.haxx.se/mail/lib-2013-08/0043.html
|
[1] = http://curl.haxx.se/bug/view.cgi?id=1469
|
||||||
[2] = http://bugs.debian.org/719856
|
[2] = http://curl.haxx.se/bug/view.cgi?id=1468
|
||||||
[3] = http://daniel.haxx.se/blog/2013/08/20/testing-curl_multi_socket_action/
|
[3] = https://github.com/bagder/curl/pull/136
|
||||||
[4] = http://curl.haxx.se/bug/view.cgi?id=1269
|
[4] = https://github.com/bagder/curl/pull/134
|
||||||
[5] = https://github.com/bagder/curl/pull/76
|
[5] = http://curl.haxx.se/mail/lib-2015-01/0036.html
|
||||||
[6] = http://curl.haxx.se/mail/lib-2013-08/0211.html
|
[6] = http://curl.haxx.se/mail/lib-2015-01/0065.html
|
||||||
[7] = http://curl.haxx.se/bug/view.cgi?id=1264
|
[7] = https://github.com/bagder/curl/pull/137
|
||||||
[8] = http://curl.haxx.se/bug/view.cgi?id=1267
|
[8] = http://curl.haxx.se/mail/lib-2015-01/0094.html
|
||||||
[9] = http://curl.haxx.se/mail/lib-2013-08/0234.html
|
[9] = http://curl.haxx.se/docs/manpage.html#--cert-status
|
||||||
[10] = http://curl.haxx.se/mail/lib-2013-08/0136.html
|
[10] = http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYSTATUS.html
|
||||||
[11] = https://bugzilla.redhat.com/1005686
|
[11] = http://curl.haxx.se/bug/view.cgi?id=1471
|
||||||
[12] = http://curl.haxx.se/mail/lib-2013-08/0109.html
|
[12] = http://curl.haxx.se/bug/view.cgi?id=1476
|
||||||
[13] = http://curl.haxx.se/bug/view.cgi?id=1273
|
[13] = http://curl.haxx.se/mail/lib-2015-02/0034.html
|
||||||
[14] = http://curl.haxx.se/mail/lib-2013-08/0209.html
|
[14] = http://curl.haxx.se/mail/lib-2015-01/0002.html
|
||||||
[15] = http://curl.haxx.se/mail/lib-2013-08/0265.html
|
[15] = https://github.com/bagder/curl/pull/139
|
||||||
[16] = http://curl.haxx.se/mail/lib-2013-08/0170.html
|
[16] = https://bugzilla.redhat.com/1187531
|
||||||
[17] = http://curl.haxx.se/bug/view.cgi?id=1278
|
|
||||||
[18] = http://curl.haxx.se/bug/view.cgi?id=1279
|
|
||||||
[19] = http://curl.haxx.se/bug/view.cgi?id=1281
|
|
||||||
[20] = http://curl.haxx.se/mail/lib-2010-02/0200.html
|
|
||||||
[21] = http://curl.haxx.se/mail/lib-2013-09/0182.html
|
|
||||||
[22] = http://curl.haxx.se/bug/view.cgi?id=1282
|
|
||||||
[23] = http://curl.haxx.se/bug/view.cgi?id=1288
|
|
||||||
[24] = http://curl.haxx.se/mail/lib-2013-10/0048.html
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
To be addressed in ...
|
|
||||||
=======================
|
|
||||||
|
|
||||||
327 -
|
|
||||||
13
acinclude.m4
13
acinclude.m4
@@ -2607,15 +2607,16 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
|
|||||||
if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
|
if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
|
||||||
"x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
|
"x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
|
||||||
dnl both given
|
dnl both given
|
||||||
AC_MSG_ERROR([Can't specify both --with-ca-bundle and --with-ca-path.])
|
ca="$want_ca"
|
||||||
|
capath="$want_capath"
|
||||||
elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
|
elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
|
||||||
dnl --with-ca-bundle given
|
dnl --with-ca-bundle given
|
||||||
ca="$want_ca"
|
ca="$want_ca"
|
||||||
capath="no"
|
capath="no"
|
||||||
elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
|
elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
|
||||||
dnl --with-ca-path given
|
dnl --with-ca-path given
|
||||||
if test "x$OPENSSL_ENABLED" != "x1"; then
|
if test "x$OPENSSL_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
|
||||||
AC_MSG_ERROR([--with-ca-path only works with openSSL])
|
AC_MSG_ERROR([--with-ca-path only works with openSSL or PolarSSL])
|
||||||
fi
|
fi
|
||||||
capath="$want_capath"
|
capath="$want_capath"
|
||||||
ca="no"
|
ca="no"
|
||||||
@@ -2669,11 +2670,13 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
|
|||||||
AC_DEFINE_UNQUOTED(CURL_CA_BUNDLE, "$ca", [Location of default ca bundle])
|
AC_DEFINE_UNQUOTED(CURL_CA_BUNDLE, "$ca", [Location of default ca bundle])
|
||||||
AC_SUBST(CURL_CA_BUNDLE)
|
AC_SUBST(CURL_CA_BUNDLE)
|
||||||
AC_MSG_RESULT([$ca])
|
AC_MSG_RESULT([$ca])
|
||||||
elif test "x$capath" != "xno"; then
|
fi
|
||||||
|
if test "x$capath" != "xno"; then
|
||||||
CURL_CA_PATH="\"$capath\""
|
CURL_CA_PATH="\"$capath\""
|
||||||
AC_DEFINE_UNQUOTED(CURL_CA_PATH, "$capath", [Location of default ca path])
|
AC_DEFINE_UNQUOTED(CURL_CA_PATH, "$capath", [Location of default ca path])
|
||||||
AC_MSG_RESULT([$capath (capath)])
|
AC_MSG_RESULT([$capath (capath)])
|
||||||
else
|
fi
|
||||||
|
if test "x$ca" == "xno" && test "x$capath" == "xno"; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|||||||
50
buildconf
50
buildconf
@@ -6,7 +6,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
@@ -32,6 +32,7 @@ die(){
|
|||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# findtool works as 'which' but we use a different name to make it more
|
# findtool works as 'which' but we use a different name to make it more
|
||||||
# obvious we aren't using 'which'! ;-)
|
# obvious we aren't using 'which'! ;-)
|
||||||
|
# Unlike 'which' does, the current directory is ignored.
|
||||||
#
|
#
|
||||||
findtool(){
|
findtool(){
|
||||||
file="$1"
|
file="$1"
|
||||||
@@ -49,7 +50,7 @@ findtool(){
|
|||||||
do
|
do
|
||||||
IFS=$old_IFS
|
IFS=$old_IFS
|
||||||
# echo "checks for $file in $path" >&2
|
# echo "checks for $file in $path" >&2
|
||||||
if test -f "$path/$file"; then
|
if test "$path" -a "$path" != '.' -a -f "$path/$file"; then
|
||||||
echo "$path/$file"
|
echo "$path/$file"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@@ -189,32 +190,32 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# GNU libtool preliminary check
|
# GNU libtoolize preliminary check
|
||||||
#
|
#
|
||||||
want_lt_major=1
|
want_lt_major=1
|
||||||
want_lt_minor=4
|
want_lt_minor=4
|
||||||
want_lt_patch=2
|
want_lt_patch=2
|
||||||
want_lt_version=1.4.2
|
want_lt_version=1.4.2
|
||||||
|
|
||||||
# This approach that tries 'glibtool' first is intended for systems that
|
# This approach that tries 'glibtoolize' first is intended for systems that
|
||||||
# have GNU libtool named as 'glibtool' and libtool not being GNU's.
|
# have GNU libtool named as 'glibtoolize' and libtoolize not being GNU's.
|
||||||
|
|
||||||
libtool=`findtool glibtool 2>/dev/null`
|
libtoolize=`findtool glibtoolize 2>/dev/null`
|
||||||
if test ! -x "$libtool"; then
|
if test ! -x "$libtoolize"; then
|
||||||
libtool=`findtool ${LIBTOOL:-libtool}`
|
libtoolize=`findtool ${LIBTOOLIZE:-libtoolize}`
|
||||||
fi
|
fi
|
||||||
if test -z "$libtool"; then
|
if test -z "$libtoolize"; then
|
||||||
echo "buildconf: libtool not found."
|
echo "buildconf: libtoolize not found."
|
||||||
echo " You need GNU libtool $want_lt_version or newer installed."
|
echo " You need GNU libtoolize $want_lt_version or newer installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
lt_pver=`$libtool --version 2>/dev/null|head -n 1`
|
lt_pver=`$libtoolize --version 2>/dev/null|head -n 1`
|
||||||
lt_qver=`echo $lt_pver|sed -e "s/([^)]*)//g" -e "s/^[^0-9]*//g"`
|
lt_qver=`echo $lt_pver|sed -e "s/([^)]*)//g" -e "s/^[^0-9]*//g"`
|
||||||
lt_version=`echo $lt_qver|sed -e "s/[- ].*//" -e "s/\([a-z]*\)$//"`
|
lt_version=`echo $lt_qver|sed -e "s/[- ].*//" -e "s/\([a-z]*\)$//"`
|
||||||
if test -z "$lt_version"; then
|
if test -z "$lt_version"; then
|
||||||
echo "buildconf: libtool not found."
|
echo "buildconf: libtoolize not found."
|
||||||
echo " You need GNU libtool $want_lt_version or newer installed."
|
echo " You need GNU libtoolize $want_lt_version or newer installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
old_IFS=$IFS; IFS='.'; set $lt_version; IFS=$old_IFS
|
old_IFS=$IFS; IFS='.'; set $lt_version; IFS=$old_IFS
|
||||||
@@ -244,27 +245,12 @@ else
|
|||||||
lt_status="good"
|
lt_status="good"
|
||||||
fi
|
fi
|
||||||
if test "$lt_status" != "good"; then
|
if test "$lt_status" != "good"; then
|
||||||
echo "buildconf: libtool version $lt_version found."
|
echo "buildconf: libtoolize version $lt_version found."
|
||||||
echo " You need GNU libtool $want_lt_version or newer installed."
|
echo " You need GNU libtoolize $want_lt_version or newer installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "buildconf: libtool version $lt_version (ok)"
|
echo "buildconf: libtoolize version $lt_version (ok)"
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
|
||||||
# GNU libtoolize check
|
|
||||||
#
|
|
||||||
if test -z "$LIBTOOLIZE"; then
|
|
||||||
# use (g)libtoolize from same location as (g)libtool
|
|
||||||
libtoolize="${libtool}ize"
|
|
||||||
else
|
|
||||||
libtoolize=`findtool $LIBTOOLIZE`
|
|
||||||
fi
|
|
||||||
if test ! -f "$libtoolize"; then
|
|
||||||
echo "buildconf: libtoolize not found."
|
|
||||||
echo " You need GNU libtoolize $want_lt_version or newer installed."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# m4 check
|
# m4 check
|
||||||
|
|||||||
375
configure.ac
375
configure.ac
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
@@ -31,7 +31,7 @@ XC_OVR_ZZ60
|
|||||||
CURL_OVERRIDE_AUTOCONF
|
CURL_OVERRIDE_AUTOCONF
|
||||||
|
|
||||||
dnl configure script copyright
|
dnl configure script copyright
|
||||||
AC_COPYRIGHT([Copyright (c) 1998 - 2013 Daniel Stenberg, <daniel@haxx.se>
|
AC_COPYRIGHT([Copyright (c) 1998 - 2014 Daniel Stenberg, <daniel@haxx.se>
|
||||||
This configure script may be copied, distributed and modified under the
|
This configure script may be copied, distributed and modified under the
|
||||||
terms of the curl license; see COPYING for more details])
|
terms of the curl license; see COPYING for more details])
|
||||||
|
|
||||||
@@ -151,10 +151,10 @@ dnl initialize all the info variables
|
|||||||
curl_ssh_msg="no (--with-libssh2)"
|
curl_ssh_msg="no (--with-libssh2)"
|
||||||
curl_zlib_msg="no (--with-zlib)"
|
curl_zlib_msg="no (--with-zlib)"
|
||||||
curl_gss_msg="no (--with-gssapi)"
|
curl_gss_msg="no (--with-gssapi)"
|
||||||
curl_spnego_msg="no (--with-spnego)"
|
|
||||||
curl_tls_srp_msg="no (--enable-tls-srp)"
|
curl_tls_srp_msg="no (--enable-tls-srp)"
|
||||||
curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
|
curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
|
||||||
curl_ipv6_msg="no (--enable-ipv6)"
|
curl_ipv6_msg="no (--enable-ipv6)"
|
||||||
|
curl_unix_sockets_msg="no (--enable-unix-sockets)"
|
||||||
curl_idn_msg="no (--with-{libidn,winidn})"
|
curl_idn_msg="no (--with-{libidn,winidn})"
|
||||||
curl_manual_msg="no (--enable-manual)"
|
curl_manual_msg="no (--enable-manual)"
|
||||||
curl_libcurl_msg="enabled (--disable-libcurl-option)"
|
curl_libcurl_msg="enabled (--disable-libcurl-option)"
|
||||||
@@ -575,6 +575,22 @@ AC_HELP_STRING([--disable-imap],[Disable IMAP support]),
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether to support smb])
|
||||||
|
AC_ARG_ENABLE(smb,
|
||||||
|
AC_HELP_STRING([--enable-smb],[Enable SMB/CIFS support])
|
||||||
|
AC_HELP_STRING([--disable-smb],[Disable SMB/CIFS support]),
|
||||||
|
[ case "$enableval" in
|
||||||
|
no)
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
AC_DEFINE(CURL_DISABLE_SMB, 1, [to disable SMB/CIFS])
|
||||||
|
AC_SUBST(CURL_DISABLE_SMB, [1])
|
||||||
|
;;
|
||||||
|
*) AC_MSG_RESULT(yes)
|
||||||
|
;;
|
||||||
|
esac ],
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
)
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to support smtp])
|
AC_MSG_CHECKING([whether to support smtp])
|
||||||
AC_ARG_ENABLE(smtp,
|
AC_ARG_ENABLE(smtp,
|
||||||
AC_HELP_STRING([--enable-smtp],[Enable SMTP support])
|
AC_HELP_STRING([--enable-smtp],[Enable SMTP support])
|
||||||
@@ -1030,7 +1046,7 @@ if test x$CURL_DISABLE_LDAP != x1 ; then
|
|||||||
|
|
||||||
if test "$LDAPLIBNAME" = "wldap32"; then
|
if test "$LDAPLIBNAME" = "wldap32"; then
|
||||||
curl_ldap_msg="enabled (winldap)"
|
curl_ldap_msg="enabled (winldap)"
|
||||||
AC_DEFINE(CURL_LDAP_WIN, 1, [Use Windows LDAP implementation])
|
AC_DEFINE(USE_WIN32_LDAP, 1, [Use Windows LDAP implementation])
|
||||||
else
|
else
|
||||||
curl_ldap_msg="enabled (OpenLDAP)"
|
curl_ldap_msg="enabled (OpenLDAP)"
|
||||||
if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
|
if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
|
||||||
@@ -1048,10 +1064,10 @@ dnl **********************************************************************
|
|||||||
dnl Checks for IPv6
|
dnl Checks for IPv6
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to enable ipv6])
|
AC_MSG_CHECKING([whether to enable IPv6])
|
||||||
AC_ARG_ENABLE(ipv6,
|
AC_ARG_ENABLE(ipv6,
|
||||||
AC_HELP_STRING([--enable-ipv6],[Enable ipv6 (with ipv4) support])
|
AC_HELP_STRING([--enable-ipv6],[Enable IPv6 (with IPv4) support])
|
||||||
AC_HELP_STRING([--disable-ipv6],[Disable ipv6 support]),
|
AC_HELP_STRING([--disable-ipv6],[Disable IPv6 support]),
|
||||||
[ case "$enableval" in
|
[ case "$enableval" in
|
||||||
no)
|
no)
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
@@ -1065,6 +1081,7 @@ AC_HELP_STRING([--disable-ipv6],[Disable ipv6 support]),
|
|||||||
AC_TRY_RUN([ /* is AF_INET6 available? */
|
AC_TRY_RUN([ /* is AF_INET6 available? */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <stdlib.h> /* for exit() */
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
|
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
|
||||||
@@ -1133,65 +1150,30 @@ no)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
dnl **********************************************************************
|
|
||||||
dnl Check for FBopenssl(SPNEGO) libraries
|
|
||||||
dnl **********************************************************************
|
|
||||||
|
|
||||||
AC_ARG_WITH(spnego,
|
|
||||||
AC_HELP_STRING([--with-spnego=DIR],
|
|
||||||
[Specify location of SPNEGO library fbopenssl]), [
|
|
||||||
SPNEGO_ROOT="$withval"
|
|
||||||
if test x"$SPNEGO_ROOT" != xno; then
|
|
||||||
want_spnego="yes"
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([if SPNEGO support is requested])
|
|
||||||
if test x"$want_spnego" = xyes; then
|
|
||||||
|
|
||||||
if test X"$SPNEGO_ROOT" = Xyes; then
|
|
||||||
AC_MSG_ERROR([FBOpenSSL libs and/or directories were not found where specified!])
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
else
|
|
||||||
if test -z "$SPNEGO_LIB_DIR"; then
|
|
||||||
LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
|
|
||||||
else
|
|
||||||
LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_DEFINE(HAVE_SPNEGO, 1,
|
|
||||||
[Define this if you have the SPNEGO library fbopenssl])
|
|
||||||
curl_spnego_msg="enabled"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
dnl Check for GSS-API libraries
|
dnl Check for GSS-API libraries
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
|
|
||||||
dnl check for gss stuff in the /usr as default
|
dnl check for GSS-API stuff in the /usr as default
|
||||||
|
|
||||||
GSSAPI_ROOT="/usr"
|
GSSAPI_ROOT="/usr"
|
||||||
AC_ARG_WITH(gssapi-includes,
|
AC_ARG_WITH(gssapi-includes,
|
||||||
AC_HELP_STRING([--with-gssapi-includes=DIR],
|
AC_HELP_STRING([--with-gssapi-includes=DIR],
|
||||||
[Specify location of GSSAPI header]),
|
[Specify location of GSS-API headers]),
|
||||||
[ GSSAPI_INCS="-I$withval"
|
[ GSSAPI_INCS="-I$withval"
|
||||||
want_gss="yes" ]
|
want_gss="yes" ]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_ARG_WITH(gssapi-libs,
|
AC_ARG_WITH(gssapi-libs,
|
||||||
AC_HELP_STRING([--with-gssapi-libs=DIR],
|
AC_HELP_STRING([--with-gssapi-libs=DIR],
|
||||||
[Specify location of GSSAPI libs]),
|
[Specify location of GSS-API libs]),
|
||||||
[ GSSAPI_LIB_DIR="-L$withval"
|
[ GSSAPI_LIB_DIR="-L$withval"
|
||||||
want_gss="yes" ]
|
want_gss="yes" ]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_ARG_WITH(gssapi,
|
AC_ARG_WITH(gssapi,
|
||||||
AC_HELP_STRING([--with-gssapi=DIR],
|
AC_HELP_STRING([--with-gssapi=DIR],
|
||||||
[Where to look for GSSAPI]), [
|
[Where to look for GSS-API]), [
|
||||||
GSSAPI_ROOT="$withval"
|
GSSAPI_ROOT="$withval"
|
||||||
if test x"$GSSAPI_ROOT" != xno; then
|
if test x"$GSSAPI_ROOT" != xno; then
|
||||||
want_gss="yes"
|
want_gss="yes"
|
||||||
@@ -1203,12 +1185,14 @@ AC_ARG_WITH(gssapi,
|
|||||||
])
|
])
|
||||||
|
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
AC_MSG_CHECKING([if GSSAPI support is requested])
|
AC_MSG_CHECKING([if GSS-API support is requested])
|
||||||
if test x"$want_gss" = xyes; then
|
if test x"$want_gss" = xyes; then
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
|
|
||||||
if test -z "$GSSAPI_INCS"; then
|
if test -z "$GSSAPI_INCS"; then
|
||||||
if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
|
if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
|
||||||
|
GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
|
||||||
|
elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then
|
||||||
GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
|
GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
|
||||||
elif test "$GSSAPI_ROOT" != "yes"; then
|
elif test "$GSSAPI_ROOT" != "yes"; then
|
||||||
GSSAPI_INCS="-I$GSSAPI_ROOT/include"
|
GSSAPI_INCS="-I$GSSAPI_ROOT/include"
|
||||||
@@ -1220,7 +1204,7 @@ if test x"$want_gss" = xyes; then
|
|||||||
AC_CHECK_HEADER(gss.h,
|
AC_CHECK_HEADER(gss.h,
|
||||||
[
|
[
|
||||||
dnl found in the given dirs
|
dnl found in the given dirs
|
||||||
AC_DEFINE(HAVE_GSSGNU, 1, [if you have the GNU gssapi libraries])
|
AC_DEFINE(HAVE_GSSGNU, 1, [if you have GNU GSS])
|
||||||
gnu_gss=yes
|
gnu_gss=yes
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@@ -1241,19 +1225,19 @@ AC_INCLUDES_DEFAULT
|
|||||||
AC_CHECK_HEADER(gssapi.h,
|
AC_CHECK_HEADER(gssapi.h,
|
||||||
[
|
[
|
||||||
dnl found
|
dnl found
|
||||||
AC_DEFINE(HAVE_GSSHEIMDAL, 1, [if you have the Heimdal gssapi libraries])
|
AC_DEFINE(HAVE_GSSHEIMDAL, 1, [if you have Heimdal])
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
dnl no header found, disabling GSS
|
dnl no header found, disabling GSS
|
||||||
want_gss=no
|
want_gss=no
|
||||||
AC_MSG_WARN(disabling GSSAPI since no header files was found)
|
AC_MSG_WARN(disabling GSS-API support since no header files were found)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
dnl MIT found
|
dnl MIT found
|
||||||
AC_DEFINE(HAVE_GSSMIT, 1, [if you have the MIT gssapi libraries])
|
AC_DEFINE(HAVE_GSSMIT, 1, [if you have MIT Kerberos])
|
||||||
dnl check if we have a really old MIT kerberos (<= 1.2)
|
dnl check if we have a really old MIT Kerberos version (<= 1.2)
|
||||||
AC_MSG_CHECKING([if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE])
|
AC_MSG_CHECKING([if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE])
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
#include <gssapi/gssapi.h>
|
#include <gssapi/gssapi.h>
|
||||||
@@ -1271,7 +1255,7 @@ AC_INCLUDES_DEFAULT
|
|||||||
],[
|
],[
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
AC_DEFINE(HAVE_OLD_GSSMIT, 1,
|
AC_DEFINE(HAVE_OLD_GSSMIT, 1,
|
||||||
[if you have an old MIT gssapi library, lacking GSS_C_NT_HOSTBASED_SERVICE])
|
[if you have an old MIT Kerberos version, lacking GSS_C_NT_HOSTBASED_SERVICE])
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
]
|
]
|
||||||
@@ -1280,9 +1264,9 @@ else
|
|||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
if test x"$want_gss" = xyes; then
|
if test x"$want_gss" = xyes; then
|
||||||
AC_DEFINE(HAVE_GSSAPI, 1, [if you have the gssapi libraries])
|
AC_DEFINE(HAVE_GSSAPI, 1, [if you have GSS-API libraries])
|
||||||
|
HAVE_GSSAPI=1
|
||||||
curl_gss_msg="enabled (MIT/Heimdal)"
|
curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
|
||||||
|
|
||||||
if test -n "$gnu_gss"; then
|
if test -n "$gnu_gss"; then
|
||||||
curl_gss_msg="enabled (GNU GSS)"
|
curl_gss_msg="enabled (GNU GSS)"
|
||||||
@@ -1294,22 +1278,45 @@ if test x"$want_gss" = xyes; then
|
|||||||
LIBS="-lgssapi_krb5 -lresolv $LIBS"
|
LIBS="-lgssapi_krb5 -lresolv $LIBS"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
|
if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
|
||||||
|
dnl krb5-config doesn't have --libs-only-L or similar, put everything
|
||||||
|
dnl into LIBS
|
||||||
|
gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
|
||||||
|
LIBS="$gss_libs $LIBS"
|
||||||
|
elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then
|
||||||
dnl krb5-config doesn't have --libs-only-L or similar, put everything
|
dnl krb5-config doesn't have --libs-only-L or similar, put everything
|
||||||
dnl into LIBS
|
dnl into LIBS
|
||||||
gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
|
gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
|
||||||
LIBS="$gss_libs $LIBS"
|
LIBS="$gss_libs $LIBS"
|
||||||
elif test "$GSSAPI_ROOT" != "yes"; then
|
|
||||||
LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
|
|
||||||
LIBS="-lgssapi $LIBS"
|
|
||||||
else
|
else
|
||||||
LIBS="-lgssapi $LIBS"
|
case $host in
|
||||||
|
*-hp-hpux*)
|
||||||
|
gss_libname="gss"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
gss_libname="gssapi"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test "$GSSAPI_ROOT" != "yes"; then
|
||||||
|
LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
|
||||||
|
LIBS="-l$gss_libname $LIBS"
|
||||||
|
else
|
||||||
|
LIBS="-l$gss_libname $LIBS"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
|
LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
|
||||||
LIBS="-lgssapi $LIBS"
|
case $host in
|
||||||
|
*-hp-hpux*)
|
||||||
|
LIBS="-lgss $LIBS"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
LIBS="-lgssapi $LIBS"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
CPPFLAGS="$save_CPPFLAGS"
|
CPPFLAGS="$save_CPPFLAGS"
|
||||||
@@ -1572,7 +1579,8 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
|
|||||||
])
|
])
|
||||||
|
|
||||||
dnl these can only exist if openssl exists
|
dnl these can only exist if openssl exists
|
||||||
dnl yassl doesn't have SSL_get_shutdown
|
dnl Cyassl doesn't have SSL_get_shutdown
|
||||||
|
dnl BoringSSL doesn't have DES_set_odd_parity
|
||||||
|
|
||||||
AC_CHECK_FUNCS( RAND_status \
|
AC_CHECK_FUNCS( RAND_status \
|
||||||
RAND_screen \
|
RAND_screen \
|
||||||
@@ -1580,28 +1588,30 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
|
|||||||
ENGINE_cleanup \
|
ENGINE_cleanup \
|
||||||
CRYPTO_cleanup_all_ex_data \
|
CRYPTO_cleanup_all_ex_data \
|
||||||
SSL_get_shutdown \
|
SSL_get_shutdown \
|
||||||
SSLv2_client_method )
|
SSLv2_client_method \
|
||||||
|
DES_set_odd_parity )
|
||||||
|
|
||||||
dnl Make an attempt to detect if this is actually yassl's headers and
|
AC_MSG_CHECKING([for BoringSSL])
|
||||||
dnl OpenSSL emulation layer. We still leave everything else believing
|
if test "x$ac_cv_func_DES_set_odd_parity" != "xyes"; then
|
||||||
dnl and acting like OpenSSL.
|
curl_ssl_msg="enabled (BoringSSL)"
|
||||||
|
AC_DEFINE_UNQUOTED(HAVE_BORINGSSL, 1,
|
||||||
AC_MSG_CHECKING([for yaSSL using OpenSSL compatibility mode])
|
[Define to 1 if using BoringSSL.])
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
fi
|
||||||
|
AC_MSG_CHECKING([for libressl])
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
#include <openssl/ssl.h>
|
#include <openssl/opensslv.h>
|
||||||
]],[[
|
]],[[
|
||||||
#if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
|
int dummy = LIBRESSL_VERSION_NUMBER;
|
||||||
int dummy = SSL_ERROR_NONE;
|
|
||||||
#else
|
|
||||||
Not the yaSSL OpenSSL compatibility header.
|
|
||||||
#endif
|
|
||||||
]])
|
]])
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
AC_DEFINE_UNQUOTED(USE_YASSLEMUL, 1,
|
AC_DEFINE_UNQUOTED(HAVE_LIBRESSL, 1,
|
||||||
[Define to 1 if using yaSSL in OpenSSL compatibility mode.])
|
[Define to 1 if using libressl.])
|
||||||
curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
|
curl_ssl_msg="enabled (libressl)"
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
])
|
])
|
||||||
@@ -1983,6 +1993,12 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
if test "x$USE_CYASSL" = "xyes"; then
|
if test "x$USE_CYASSL" = "xyes"; then
|
||||||
AC_MSG_NOTICE([detected CyaSSL])
|
AC_MSG_NOTICE([detected CyaSSL])
|
||||||
|
|
||||||
|
dnl cyassl/ctaocrypt/types.h needs SIZEOF_LONG_LONG defined!
|
||||||
|
AC_CHECK_SIZEOF(long long)
|
||||||
|
|
||||||
|
dnl Versions since at least 2.9.4 renamed error.h to error-ssl.h
|
||||||
|
AC_CHECK_HEADERS(cyassl/error-ssl.h)
|
||||||
|
|
||||||
LIBS="-lcyassl -lm $LIBS"
|
LIBS="-lcyassl -lm $LIBS"
|
||||||
|
|
||||||
if test -n "$cyassllib"; then
|
if test -n "$cyassllib"; then
|
||||||
@@ -2067,8 +2083,8 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
CPPFLAGS="$CPPFLAGS $addcflags"
|
CPPFLAGS="$CPPFLAGS $addcflags"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl The function PK11_CreateGenericObject is needed to load libnsspem.so
|
dnl The function SSL_VersionRangeSet() is needed to enable TLS > 1.0
|
||||||
AC_CHECK_LIB(nss3, PK11_CreateGenericObject,
|
AC_CHECK_LIB(nss3, SSL_VersionRangeSet,
|
||||||
[
|
[
|
||||||
AC_DEFINE(USE_NSS, 1, [if NSS is enabled])
|
AC_DEFINE(USE_NSS, 1, [if NSS is enabled])
|
||||||
AC_SUBST(USE_NSS, [1])
|
AC_SUBST(USE_NSS, [1])
|
||||||
@@ -2084,13 +2100,9 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
if test "x$USE_NSS" = "xyes"; then
|
if test "x$USE_NSS" = "xyes"; then
|
||||||
AC_MSG_NOTICE([detected NSS version $version])
|
AC_MSG_NOTICE([detected NSS version $version])
|
||||||
|
|
||||||
dnl NSS_InitContext() was introduced in NSS 3.12.5 and helps to prevent
|
dnl needed when linking the curl tool without USE_EXPLICIT_LIB_DEPS
|
||||||
dnl collisions on NSS initialization/shutdown with other libraries
|
NSS_LIBS=$addlib
|
||||||
AC_CHECK_FUNC(NSS_InitContext,
|
AC_SUBST([NSS_LIBS])
|
||||||
[
|
|
||||||
AC_DEFINE(HAVE_NSS_INITCONTEXT, 1, [if you have the NSS_InitContext function])
|
|
||||||
AC_SUBST(HAVE_NSS_INITCONTEXT, [1])
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl when shared libs were found in a path that the run-time
|
dnl when shared libs were found in a path that the run-time
|
||||||
dnl linker doesn't search through, we need to add it to
|
dnl linker doesn't search through, we need to add it to
|
||||||
@@ -2152,10 +2164,11 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
USE_AXTLS="yes"
|
USE_AXTLS="yes"
|
||||||
curl_ssl_msg="enabled (axTLS)"
|
curl_ssl_msg="enabled (axTLS)"
|
||||||
|
|
||||||
|
if test "x$cross_compiling" != "xyes"; then
|
||||||
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
|
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
|
||||||
export LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH
|
||||||
AC_MSG_NOTICE([Added $LIB_AXTLS to LD_LIBRARY_PATH])
|
AC_MSG_NOTICE([Added $LIB_AXTLS to LD_LIBRARY_PATH])
|
||||||
|
fi
|
||||||
],[
|
],[
|
||||||
LDFLAGS="$CLEANLDFLAGS"
|
LDFLAGS="$CLEANLDFLAGS"
|
||||||
CPPFLAGS="$CLEANCPPFLAGS"
|
CPPFLAGS="$CLEANCPPFLAGS"
|
||||||
@@ -2339,12 +2352,6 @@ if test X"$OPT_LIBSSH2" != Xno; then
|
|||||||
dnl linker doesn't search through, we need to add it to LD_LIBRARY_PATH
|
dnl linker doesn't search through, we need to add it to LD_LIBRARY_PATH
|
||||||
dnl to prevent further configure tests to fail due to this
|
dnl to prevent further configure tests to fail due to this
|
||||||
|
|
||||||
dnl libssh2_version is a post 1.0 addition
|
|
||||||
dnl libssh2_init and libssh2_exit were added in 1.2.5
|
|
||||||
dnl libssh2_scp_send64 was added in 1.2.6
|
|
||||||
dnl libssh2_session_handshake was added in 1.2.8
|
|
||||||
AC_CHECK_FUNCS( libssh2_version libssh2_init libssh2_exit \
|
|
||||||
libssh2_scp_send64 libssh2_session_handshake)
|
|
||||||
if test "x$cross_compiling" != "xyes"; then
|
if test "x$cross_compiling" != "xyes"; then
|
||||||
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
|
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
|
||||||
export LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH
|
||||||
@@ -2457,19 +2464,19 @@ AC_HELP_STRING([--disable-versioned-symbols], [Disable versioned symbols in shar
|
|||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
if test "x$OPENSSL_ENABLED" = "x1"; then
|
if test "x$OPENSSL_ENABLED" = "x1"; then
|
||||||
versioned_symbols_flavour="OPENSSL_"
|
versioned_symbols_flavour="OPENSSL_"
|
||||||
elif test "x$GNUTLS_ENABLED" == "x1"; then
|
elif test "x$GNUTLS_ENABLED" = "x1"; then
|
||||||
versioned_symbols_flavour="GNUTLS_"
|
versioned_symbols_flavour="GNUTLS_"
|
||||||
elif test "x$NSS_ENABLED" == "x1"; then
|
elif test "x$NSS_ENABLED" = "x1"; then
|
||||||
versioned_symbols_flavour="NSS_"
|
versioned_symbols_flavour="NSS_"
|
||||||
elif test "x$POLARSSL_ENABLED" == "x1"; then
|
elif test "x$POLARSSL_ENABLED" = "x1"; then
|
||||||
versioned_symbols_flavour="POLARSSL_"
|
versioned_symbols_flavour="POLARSSL_"
|
||||||
elif test "x$CYASSL_ENABLED" == "x1"; then
|
elif test "x$CYASSL_ENABLED" = "x1"; then
|
||||||
versioned_symbols_flavour="CYASSL_"
|
versioned_symbols_flavour="CYASSL_"
|
||||||
elif test "x$AXTLS_ENABLED" == "x1"; then
|
elif test "x$AXTLS_ENABLED" = "x1"; then
|
||||||
versioned_symbols_flavour="AXTLS_"
|
versioned_symbols_flavour="AXTLS_"
|
||||||
elif test "x$WINSSL_ENABLED" == "x1"; then
|
elif test "x$WINSSL_ENABLED" = "x1"; then
|
||||||
versioned_symbols_flavour="WINSSL_"
|
versioned_symbols_flavour="WINSSL_"
|
||||||
elif test "x$DARWINSSL_ENABLED" == "x1"; then
|
elif test "x$DARWINSSL_ENABLED" = "x1"; then
|
||||||
versioned_symbols_flavour="DARWINSSL_"
|
versioned_symbols_flavour="DARWINSSL_"
|
||||||
else
|
else
|
||||||
versioned_symbols_flavour=""
|
versioned_symbols_flavour=""
|
||||||
@@ -2687,7 +2694,7 @@ if test "$want_idn" = "yes"; then
|
|||||||
if test "x$ac_cv_header_tld_h" = "xyes"; then
|
if test "x$ac_cv_header_tld_h" = "xyes"; then
|
||||||
AC_SUBST([IDN_ENABLED], [1])
|
AC_SUBST([IDN_ENABLED], [1])
|
||||||
curl_idn_msg="enabled"
|
curl_idn_msg="enabled"
|
||||||
if test -n "$IDN_DIR"; then
|
if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
|
||||||
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
|
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
|
||||||
export LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH
|
||||||
AC_MSG_NOTICE([Added $IDN_DIR to LD_LIBRARY_PATH])
|
AC_MSG_NOTICE([Added $IDN_DIR to LD_LIBRARY_PATH])
|
||||||
@@ -2716,8 +2723,7 @@ dnl **********************************************************************
|
|||||||
dnl Check for nghttp2
|
dnl Check for nghttp2
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to build with nghttp2])
|
OPT_H2="yes"
|
||||||
OPT_H2="no"
|
|
||||||
AC_ARG_WITH(nghttp2,
|
AC_ARG_WITH(nghttp2,
|
||||||
AC_HELP_STRING([--with-nghttp2=PATH],[Enable nghttp2 usage])
|
AC_HELP_STRING([--with-nghttp2=PATH],[Enable nghttp2 usage])
|
||||||
AC_HELP_STRING([--without-nghttp2],[Disable nghttp2 usage]),
|
AC_HELP_STRING([--without-nghttp2],[Disable nghttp2 usage]),
|
||||||
@@ -2725,77 +2731,70 @@ AC_HELP_STRING([--without-nghttp2],[Disable nghttp2 usage]),
|
|||||||
case "$OPT_H2" in
|
case "$OPT_H2" in
|
||||||
no)
|
no)
|
||||||
dnl --without-nghttp2 option used
|
dnl --without-nghttp2 option used
|
||||||
want_idn="no"
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
;;
|
|
||||||
default)
|
|
||||||
dnl configure option not specified
|
|
||||||
want_h2="no"
|
want_h2="no"
|
||||||
want_h2_path="default"
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
;;
|
;;
|
||||||
yes)
|
yes)
|
||||||
dnl --with-nghttp2 option used without path
|
dnl --with-nghttp2 option used without path
|
||||||
want_h2="yes"
|
want_h2="default"
|
||||||
want_h2_path=""
|
want_h2_path=""
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
dnl --with-nghttp2 option used with path
|
dnl --with-nghttp2 option used with path
|
||||||
want_h2="yes"
|
want_h2="yes"
|
||||||
want_h2_path="$withval"
|
want_h2_path="$withval/lib/pkgconfig"
|
||||||
AC_MSG_RESULT([yes ($withval)])
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
curl_h2_msg="disabled (--with-nghttp2)"
|
curl_h2_msg="disabled (--with-nghttp2)"
|
||||||
if test X"$OPT_H2" != Xno; then
|
if test X"$want_h2" != Xno; then
|
||||||
dnl backup the pre-librtmp variables
|
dnl backup the pre-nghttp2 variables
|
||||||
CLEANLDFLAGS="$LDFLAGS"
|
CLEANLDFLAGS="$LDFLAGS"
|
||||||
CLEANCPPFLAGS="$CPPFLAGS"
|
CLEANCPPFLAGS="$CPPFLAGS"
|
||||||
CLEANLIBS="$LIBS"
|
CLEANLIBS="$LIBS"
|
||||||
|
|
||||||
h2pcdir=${want_h2_path}/lib/pkgconfig
|
CURL_CHECK_PKGCONFIG(libnghttp2, $want_h2_path)
|
||||||
CURL_CHECK_PKGCONFIG(libnghttp2, $h2pcdir)
|
|
||||||
|
|
||||||
if test "$PKGCONFIG" != "no" ; then
|
if test "$PKGCONFIG" != "no" ; then
|
||||||
LIB_H2=`CURL_EXPORT_PCDIR([$h2pcdir])
|
LIB_H2=`CURL_EXPORT_PCDIR([$want_h2_path])
|
||||||
$PKGCONFIG --libs-only-l libnghttp2`
|
$PKGCONFIG --libs-only-l libnghttp2`
|
||||||
AC_MSG_NOTICE([-l is $LIB_H2])
|
AC_MSG_NOTICE([-l is $LIB_H2])
|
||||||
|
|
||||||
CPP_H2=`CURL_EXPORT_PCDIR([$h2pcdir]) dnl
|
CPP_H2=`CURL_EXPORT_PCDIR([$want_h2_path]) dnl
|
||||||
$PKGCONFIG --cflags-only-I libnghttp2`
|
$PKGCONFIG --cflags-only-I libnghttp2`
|
||||||
AC_MSG_NOTICE([-I is $CPP_H2])
|
AC_MSG_NOTICE([-I is $CPP_H2])
|
||||||
|
|
||||||
LD_H2=`CURL_EXPORT_PCDIR([$h2pcdir])
|
LD_H2=`CURL_EXPORT_PCDIR([$want_h2_path])
|
||||||
$PKGCONFIG --libs-only-L libnghttp2`
|
$PKGCONFIG --libs-only-L libnghttp2`
|
||||||
AC_MSG_NOTICE([-L is $LD_H2])
|
AC_MSG_NOTICE([-L is $LD_H2])
|
||||||
|
|
||||||
|
LDFLAGS="$LDFLAGS $LD_H2"
|
||||||
|
CPPFLAGS="$CPPFLAGS $CPP_H2"
|
||||||
|
LIBS="$LIB_H2 $LIBS"
|
||||||
|
|
||||||
|
AC_CHECK_LIB(nghttp2, nghttp2_session_callbacks_set_send_callback,
|
||||||
|
[
|
||||||
|
AC_CHECK_HEADERS(nghttp2/nghttp2.h,
|
||||||
|
curl_h2_msg="enabled (nghttp2)"
|
||||||
|
NGHTTP2_ENABLED=1
|
||||||
|
AC_DEFINE(USE_NGHTTP2, 1, [if nghttp2 is in use])
|
||||||
|
AC_SUBST(USE_NGHTTP2, [1])
|
||||||
|
)
|
||||||
|
],
|
||||||
|
dnl not found, revert back to clean variables
|
||||||
|
LDFLAGS=$CLEANLDFLAGS
|
||||||
|
CPPFLAGS=$CLEANCPPFLAGS
|
||||||
|
LIBS=$CLEANLIBS
|
||||||
|
)
|
||||||
|
|
||||||
else
|
else
|
||||||
dnl To avoid link errors, we do not allow --libnghttp2 without
|
dnl no nghttp2 pkg-config found, deal with it
|
||||||
dnl a pkgconfig file
|
if test X"$want_h2" != Xdefault; then
|
||||||
AC_MSG_ERROR([--with-nghttp2 was specified but could not find libnghttp2 pkg-config file.])
|
dnl To avoid link errors, we do not allow --with-nghttp2 without
|
||||||
|
dnl a pkgconfig file
|
||||||
|
AC_MSG_ERROR([--with-nghttp2 was specified but could not find libnghttp2 pkg-config file.])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LDFLAGS="$LDFLAGS $LD_H2"
|
|
||||||
CPPFLAGS="$CPPFLAGS $CPP_H2"
|
|
||||||
LIBS="$LIB_H2 $LIBS"
|
|
||||||
|
|
||||||
AC_CHECK_LIB(nghttp2, nghttp2_session_client_new,
|
|
||||||
[
|
|
||||||
AC_CHECK_HEADERS(nghttp2/nghttp2.h,
|
|
||||||
curl_h2_msg="enabled (nghttp2)"
|
|
||||||
NGHTTP2_ENABLED=1
|
|
||||||
AC_DEFINE(USE_NGHTTP2, 1, [if nghttp2 is in use])
|
|
||||||
AC_SUBST(USE_NGHTTP2, [1])
|
|
||||||
)
|
|
||||||
],
|
|
||||||
dnl not found, revert back to clean variables
|
|
||||||
LDFLAGS=$CLEANLDFLAGS
|
|
||||||
CPPFLAGS=$CLEANCPPFLAGS
|
|
||||||
LIBS=$CLEANLIBS
|
|
||||||
)
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
@@ -3025,8 +3024,10 @@ AC_CHECK_FUNCS([fork \
|
|||||||
getppid \
|
getppid \
|
||||||
getprotobyname \
|
getprotobyname \
|
||||||
getpwuid \
|
getpwuid \
|
||||||
|
getpwuid_r \
|
||||||
getrlimit \
|
getrlimit \
|
||||||
gettimeofday \
|
gettimeofday \
|
||||||
|
if_nametoindex \
|
||||||
inet_addr \
|
inet_addr \
|
||||||
perror \
|
perror \
|
||||||
pipe \
|
pipe \
|
||||||
@@ -3237,6 +3238,7 @@ AC_HELP_STRING([--disable-crypto-auth],[Disable cryptographic authentication]),
|
|||||||
no)
|
no)
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
AC_DEFINE(CURL_DISABLE_CRYPTO_AUTH, 1, [to disable cryptographic authentication])
|
AC_DEFINE(CURL_DISABLE_CRYPTO_AUTH, 1, [to disable cryptographic authentication])
|
||||||
|
CURL_DISABLE_CRYPTO_AUTH=1
|
||||||
;;
|
;;
|
||||||
*) AC_MSG_RESULT(yes)
|
*) AC_MSG_RESULT(yes)
|
||||||
;;
|
;;
|
||||||
@@ -3275,6 +3277,39 @@ if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$
|
|||||||
curl_tls_srp_msg="enabled"
|
curl_tls_srp_msg="enabled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl ************************************************************
|
||||||
|
dnl disable Unix domain sockets support
|
||||||
|
dnl
|
||||||
|
AC_MSG_CHECKING([whether to enable Unix domain sockets])
|
||||||
|
AC_ARG_ENABLE(unix-sockets,
|
||||||
|
AC_HELP_STRING([--enable-unix-sockets],[Enable Unix domain sockets])
|
||||||
|
AC_HELP_STRING([--disable-unix-sockets],[Disable Unix domain sockets]),
|
||||||
|
[ case "$enableval" in
|
||||||
|
no) AC_MSG_RESULT(no)
|
||||||
|
want_unix_sockets=no
|
||||||
|
;;
|
||||||
|
*) AC_MSG_RESULT(yes)
|
||||||
|
want_unix_sockets=yes
|
||||||
|
;;
|
||||||
|
esac ], [
|
||||||
|
AC_MSG_RESULT(auto)
|
||||||
|
want_unix_sockets=auto
|
||||||
|
]
|
||||||
|
)
|
||||||
|
if test "x$want_unix_sockets" != "xno"; then
|
||||||
|
AC_CHECK_MEMBER([struct sockaddr_un.sun_path], [
|
||||||
|
AC_DEFINE(USE_UNIX_SOCKETS, 1, [Use Unix domain sockets])
|
||||||
|
AC_SUBST(USE_UNIX_SOCKETS, [1])
|
||||||
|
curl_unix_sockets_msg="enabled"
|
||||||
|
], [
|
||||||
|
if test "x$want_unix_sockets" = "xyes"; then
|
||||||
|
AC_MSG_ERROR([--enable-unix-sockets is not available on this platform!])
|
||||||
|
fi
|
||||||
|
], [
|
||||||
|
#include <sys/un.h>
|
||||||
|
])
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ************************************************************
|
dnl ************************************************************
|
||||||
dnl disable cookies support
|
dnl disable cookies support
|
||||||
dnl
|
dnl
|
||||||
@@ -3358,6 +3393,9 @@ fi
|
|||||||
if test "x$IPV6_ENABLED" = "x1"; then
|
if test "x$IPV6_ENABLED" = "x1"; then
|
||||||
SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
|
SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
|
||||||
fi
|
fi
|
||||||
|
if test "x$USE_UNIX_SOCKETS" = "x1"; then
|
||||||
|
SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
|
||||||
|
fi
|
||||||
if test "x$HAVE_LIBZ" = "x1"; then
|
if test "x$HAVE_LIBZ" = "x1"; then
|
||||||
SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
|
SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
|
||||||
fi
|
fi
|
||||||
@@ -3370,16 +3408,34 @@ fi
|
|||||||
if test "x$USE_WINDOWS_SSPI" = "x1"; then
|
if test "x$USE_WINDOWS_SSPI" = "x1"; then
|
||||||
SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
|
SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
|
||||||
fi
|
fi
|
||||||
if test "x$CURL_DISABLE_HTTP" != "x1"; then
|
|
||||||
|
if test "x$HAVE_GSSAPI" = "x1"; then
|
||||||
|
SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
|
||||||
|
\( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
|
||||||
|
SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
|
||||||
|
\( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
|
||||||
|
SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
|
||||||
if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
|
if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
|
||||||
-o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
|
-o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
|
||||||
-o "x$DARWINSSL_ENABLED" = "x1"; then
|
-o "x$DARWINSSL_ENABLED" = "x1"; then
|
||||||
SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
|
SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
|
||||||
if test "x$NTLM_WB_ENABLED" = "x1"; then
|
|
||||||
|
if test "x$CURL_DISABLE_HTTP" != "x1" -a \
|
||||||
|
"x$NTLM_WB_ENABLED" = "x1"; then
|
||||||
SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
|
SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$USE_TLS_SRP" = "x1"; then
|
if test "x$USE_TLS_SRP" = "x1"; then
|
||||||
SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
|
SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
|
||||||
fi
|
fi
|
||||||
@@ -3439,6 +3495,16 @@ if test "x$CURL_DISABLE_IMAP" != "x1"; then
|
|||||||
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
|
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if test "x$CURL_DISABLE_SMB" != "x1" \
|
||||||
|
-a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
|
||||||
|
-a \( "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
|
||||||
|
-o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
|
||||||
|
-o "x$DARWINSSL_ENABLED" = "x1" \); then
|
||||||
|
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
|
||||||
|
if test "x$SSL_ENABLED" = "x1"; then
|
||||||
|
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
if test "x$CURL_DISABLE_SMTP" != "x1"; then
|
if test "x$CURL_DISABLE_SMTP" != "x1"; then
|
||||||
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
|
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
|
||||||
if test "x$SSL_ENABLED" = "x1"; then
|
if test "x$SSL_ENABLED" = "x1"; then
|
||||||
@@ -3489,6 +3555,7 @@ AC_CONFIG_FILES([Makefile \
|
|||||||
docs/Makefile \
|
docs/Makefile \
|
||||||
docs/examples/Makefile \
|
docs/examples/Makefile \
|
||||||
docs/libcurl/Makefile \
|
docs/libcurl/Makefile \
|
||||||
|
docs/libcurl/opts/Makefile \
|
||||||
include/Makefile \
|
include/Makefile \
|
||||||
include/curl/Makefile \
|
include/curl/Makefile \
|
||||||
src/Makefile \
|
src/Makefile \
|
||||||
@@ -3533,11 +3600,11 @@ AC_MSG_NOTICE([Configured to build curl/libcurl:
|
|||||||
SSL support: ${curl_ssl_msg}
|
SSL support: ${curl_ssl_msg}
|
||||||
SSH support: ${curl_ssh_msg}
|
SSH support: ${curl_ssh_msg}
|
||||||
zlib support: ${curl_zlib_msg}
|
zlib support: ${curl_zlib_msg}
|
||||||
GSSAPI support: ${curl_gss_msg}
|
GSS-API support: ${curl_gss_msg}
|
||||||
SPNEGO support: ${curl_spnego_msg}
|
|
||||||
TLS-SRP support: ${curl_tls_srp_msg}
|
TLS-SRP support: ${curl_tls_srp_msg}
|
||||||
resolver: ${curl_res_msg}
|
resolver: ${curl_res_msg}
|
||||||
ipv6 support: ${curl_ipv6_msg}
|
IPv6 support: ${curl_ipv6_msg}
|
||||||
|
Unix sockets support: ${curl_unix_sockets_msg}
|
||||||
IDN support: ${curl_idn_msg}
|
IDN support: ${curl_idn_msg}
|
||||||
Build libcurl: Shared=${enable_shared}, Static=${enable_static}
|
Build libcurl: Shared=${enable_shared}, Static=${enable_static}
|
||||||
Built-in manual: ${curl_manual_msg}
|
Built-in manual: ${curl_manual_msg}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 2013-2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
@@ -25,6 +25,10 @@
|
|||||||
# This script shows all mentioned contributors from <hash> until HEAD. To aid
|
# This script shows all mentioned contributors from <hash> until HEAD. To aid
|
||||||
# when writing RELEASE-NOTES and THANKS.
|
# when writing RELEASE-NOTES and THANKS.
|
||||||
#
|
#
|
||||||
|
# Use --releasenotes to also include the names from the existing RELEASE-NOTES
|
||||||
|
# file, which is handy when we've added names manually in there that should be
|
||||||
|
# included in an updated list.
|
||||||
|
#
|
||||||
|
|
||||||
start=$1
|
start=$1
|
||||||
|
|
||||||
@@ -34,13 +38,50 @@ fi
|
|||||||
|
|
||||||
# filter out Author:, Commit: and *by: lines
|
# filter out Author:, Commit: and *by: lines
|
||||||
# cut off the email parts
|
# cut off the email parts
|
||||||
|
# split list of names at comma
|
||||||
|
# split list of names at " and "
|
||||||
# cut off spaces first and last on the line
|
# cut off spaces first and last on the line
|
||||||
|
# filter alternatives through THANKS-filter
|
||||||
# only count names with a space (ie more than one word)
|
# only count names with a space (ie more than one word)
|
||||||
# sort all unique names
|
# sort all unique names
|
||||||
|
# awk them into RELEASE-NOTES format
|
||||||
|
(
|
||||||
git log $start..HEAD | \
|
git log $start..HEAD | \
|
||||||
egrep '(Author|Commit|by):' | \
|
egrep -i '(Author|Commit|by):' | \
|
||||||
cut -d: -f2- | \
|
cut -d: -f2- | \
|
||||||
cut '-d<' -f1 | \
|
cut '-d<' -f1 | \
|
||||||
sed -e 's/^ //' -e 's/ $//g' | \
|
tr , '\012' | \
|
||||||
|
sed 's/ and /\n/' | \
|
||||||
|
sed -e 's/^ //' -e 's/ $//g'
|
||||||
|
|
||||||
|
if echo "$*" | grep -qw -- '--releasenotes';then
|
||||||
|
# if --releasenotes was used
|
||||||
|
# grep out the list of names from RELEASE-NOTES
|
||||||
|
# split on ", "
|
||||||
|
# remove leading white spaces
|
||||||
|
grep "^ [^ ]" RELEASE-NOTES| \
|
||||||
|
sed 's/, */\n/g'| \
|
||||||
|
sed 's/^ *//'
|
||||||
|
fi
|
||||||
|
)| \
|
||||||
|
sed -f ./docs/THANKS-filter | \
|
||||||
grep ' ' | \
|
grep ' ' | \
|
||||||
sort -u
|
sort -fu | \
|
||||||
|
awk '{
|
||||||
|
num++;
|
||||||
|
n = sprintf("%s%s%s,", n, length(n)?" ":"", $0);
|
||||||
|
#print n;
|
||||||
|
if(length(n) > 78) {
|
||||||
|
printf(" %s\n", p);
|
||||||
|
n=sprintf("%s,", $0);
|
||||||
|
}
|
||||||
|
p=n;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
END {
|
||||||
|
printf(" %s\n", p);
|
||||||
|
printf(" (%d contributors)\n", num);
|
||||||
|
}
|
||||||
|
|
||||||
|
'
|
||||||
|
|||||||
@@ -128,6 +128,11 @@ Mono
|
|||||||
libcurl-net by Jeffrey Phillips
|
libcurl-net by Jeffrey Phillips
|
||||||
http://sourceforge.net/projects/libcurl-net/
|
http://sourceforge.net/projects/libcurl-net/
|
||||||
|
|
||||||
|
node.js
|
||||||
|
|
||||||
|
node-libcurl by Jonathan Cardoso Machado
|
||||||
|
https://github.com/JCMais/node-libcurl
|
||||||
|
|
||||||
Object-Pascal
|
Object-Pascal
|
||||||
|
|
||||||
Free Pascal, Delphi and Kylix binding written by Christophe Espern.
|
Free Pascal, Delphi and Kylix binding written by Christophe Espern.
|
||||||
|
|||||||
@@ -278,6 +278,10 @@
|
|||||||
[full description, no wider than 72 columns that describe as much as
|
[full description, no wider than 72 columns that describe as much as
|
||||||
possible as to why this change is made, and possibly what things
|
possible as to why this change is made, and possibly what things
|
||||||
it fixes and everything else that is related]
|
it fixes and everything else that is related]
|
||||||
|
|
||||||
|
[Bug: link to source of the report or more related discussion]
|
||||||
|
[Reported-by: John Doe - credit the reporter]
|
||||||
|
[whatever-else-by: credit all helpers, finders, doers]
|
||||||
---- stop ----
|
---- stop ----
|
||||||
|
|
||||||
Don't forget to use commit --author="" if you commit someone else's work,
|
Don't forget to use commit --author="" if you commit someone else's work,
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ GnuTLS
|
|||||||
OpenSSL does. Now, you can build and distribute an TLS/SSL capable libcurl
|
OpenSSL does. Now, you can build and distribute an TLS/SSL capable libcurl
|
||||||
without including any Original BSD licensed code.
|
without including any Original BSD licensed code.
|
||||||
|
|
||||||
I believe Debian is the first (only?) distro that provides libcurl/GnutTLS
|
I believe Debian is the first (only?) distro that provides libcurl/GnuTLS
|
||||||
packages.
|
packages.
|
||||||
|
|
||||||
yassl
|
yassl
|
||||||
@@ -72,20 +72,20 @@ GnuTLS vs OpenSSL vs yassl
|
|||||||
|
|
||||||
While these three libraries offer similar features, they are not equal.
|
While these three libraries offer similar features, they are not equal.
|
||||||
libcurl does not (yet) offer a standardized stable ABI if you decide to
|
libcurl does not (yet) offer a standardized stable ABI if you decide to
|
||||||
switch from using libcurl-openssl to libcurl-gnutls or vice versa. The GnuTLS
|
switch from using libcurl-openssl to libcurl-gnutls or vice-versa. The GnuTLS
|
||||||
and yassl support is very recent in libcurl and it has not been tested nor
|
and yassl support is very recent in libcurl and it has not been tested nor
|
||||||
used very extensively, while the OpenSSL equivalent code has been used and
|
used very extensively, while the OpenSSL equivalent code has been used and
|
||||||
thus matured since 1999.
|
thus matured since 1999.
|
||||||
|
|
||||||
GnuTLS
|
GnuTLS
|
||||||
- LGPL licensened
|
- LGPL licensed
|
||||||
- supports SRP
|
- supports SRP
|
||||||
- lacks SSLv2 support
|
- lacks SSLv2 support
|
||||||
- lacks MD2 support (used by at least some CA certs)
|
- lacks MD2 support (used by at least some CA certs)
|
||||||
- lacks the crypto functions libcurl uses for NTLM
|
- lacks the crypto functions libcurl uses for NTLM
|
||||||
|
|
||||||
OpenSSL
|
OpenSSL
|
||||||
- Original BSD licensened
|
- Original BSD licensed
|
||||||
- lacks SRP
|
- lacks SRP
|
||||||
- supports SSLv2
|
- supports SSLv2
|
||||||
- older and more widely used
|
- older and more widely used
|
||||||
|
|||||||
81
docs/FAQ
81
docs/FAQ
@@ -80,6 +80,7 @@ FAQ
|
|||||||
4.17 Non-functional connect timeouts on Windows
|
4.17 Non-functional connect timeouts on Windows
|
||||||
4.18 file:// URLs containing drive letters (Windows, NetWare)
|
4.18 file:// URLs containing drive letters (Windows, NetWare)
|
||||||
4.19 Why doesn't cURL return an error when the network cable is unplugged?
|
4.19 Why doesn't cURL return an error when the network cable is unplugged?
|
||||||
|
4.20 curl doesn't return error for HTTP non-200 responses!
|
||||||
|
|
||||||
5. libcurl Issues
|
5. libcurl Issues
|
||||||
5.1 Is libcurl thread-safe?
|
5.1 Is libcurl thread-safe?
|
||||||
@@ -99,6 +100,7 @@ FAQ
|
|||||||
5.15 How do I get an FTP directory listing?
|
5.15 How do I get an FTP directory listing?
|
||||||
5.16 I want a different time-out!
|
5.16 I want a different time-out!
|
||||||
5.17 Can I write a server with libcurl?
|
5.17 Can I write a server with libcurl?
|
||||||
|
5.18 Does libcurl use threads?
|
||||||
|
|
||||||
6. License Issues
|
6. License Issues
|
||||||
6.1 I have a GPL program, can I use the libcurl library?
|
6.1 I have a GPL program, can I use the libcurl library?
|
||||||
@@ -132,14 +134,14 @@ FAQ
|
|||||||
|
|
||||||
A free and easy-to-use client-side URL transfer library, supporting DICT,
|
A free and easy-to-use client-side URL transfer library, supporting DICT,
|
||||||
FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3,
|
FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3,
|
||||||
POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.
|
POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP.
|
||||||
|
|
||||||
libcurl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading,
|
libcurl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading,
|
||||||
kerberos, HTTP form based upload, proxies, cookies, user+password
|
Kerberos, SPNEGO, HTTP form based upload, proxies, cookies, user+password
|
||||||
authentication, file transfer resume, http proxy tunneling and more!
|
authentication, file transfer resume, http proxy tunneling and more!
|
||||||
|
|
||||||
libcurl is highly portable, it builds and works identically on numerous
|
libcurl is highly portable, it builds and works identically on numerous
|
||||||
platforms, including Solaris, NetBSD, FreeBSD, OpenBSD, Darwin, HPUX,
|
platforms, including Solaris, NetBSD, FreeBSD, OpenBSD, Darwin, HP-UX,
|
||||||
IRIX, AIX, Tru64, Linux, UnixWare, HURD, Windows, Amiga, OS/2, BeOS, Mac
|
IRIX, AIX, Tru64, Linux, UnixWare, HURD, Windows, Amiga, OS/2, BeOS, Mac
|
||||||
OS X, Ultrix, QNX, OpenVMS, RISC OS, Novell NetWare, DOS, Symbian, OSF,
|
OS X, Ultrix, QNX, OpenVMS, RISC OS, Novell NetWare, DOS, Symbian, OSF,
|
||||||
Android, Minix, IBM TPF and more...
|
Android, Minix, IBM TPF and more...
|
||||||
@@ -154,7 +156,10 @@ FAQ
|
|||||||
Since curl uses libcurl, curl supports the same wide range of common
|
Since curl uses libcurl, curl supports the same wide range of common
|
||||||
Internet protocols that libcurl does.
|
Internet protocols that libcurl does.
|
||||||
|
|
||||||
We pronounce curl and cURL with an initial k sound: [kurl].
|
We pronounce curl with an initial k sound. It rhymes with words like girl
|
||||||
|
and earl. This is a short WAV file to help you:
|
||||||
|
|
||||||
|
http://media.merriam-webster.com/soundc11/c/curl0001.wav
|
||||||
|
|
||||||
There are numerous sub-projects and related projects that also use the word
|
There are numerous sub-projects and related projects that also use the word
|
||||||
curl in the project names in various combinations, but you should take
|
curl in the project names in various combinations, but you should take
|
||||||
@@ -237,10 +242,10 @@ FAQ
|
|||||||
1.6 What do you get for making curl?
|
1.6 What do you get for making curl?
|
||||||
|
|
||||||
Project cURL is entirely free and open. No person gets paid for developing
|
Project cURL is entirely free and open. No person gets paid for developing
|
||||||
(lib)curl on full or even part time. We do this voluntarily on our spare
|
curl on full time. We do this voluntarily, mostly on spare time.
|
||||||
time. Occasionally companies pay individual developers to work on curl, but
|
Occasionally companies pay individual developers to work on curl, but that's
|
||||||
that's up to each company and developer. It is not controlled by nor
|
up to each company and developer. It is not controlled by nor supervised in
|
||||||
supervised in any way by the project.
|
any way by the project.
|
||||||
|
|
||||||
We still get help from companies. Haxx provides web site, bandwidth, mailing
|
We still get help from companies. Haxx provides web site, bandwidth, mailing
|
||||||
lists etc, sourceforge.net hosts project services we take advantage from,
|
lists etc, sourceforge.net hosts project services we take advantage from,
|
||||||
@@ -422,7 +427,7 @@ FAQ
|
|||||||
|
|
||||||
curl can be built to use one of the following SSL alternatives: OpenSSL,
|
curl can be built to use one of the following SSL alternatives: OpenSSL,
|
||||||
GnuTLS, yassl, NSS, PolarSSL, axTLS, Secure Transport (native iOS/OS X),
|
GnuTLS, yassl, NSS, PolarSSL, axTLS, Secure Transport (native iOS/OS X),
|
||||||
schannel (native Windows) or qssl (native IBM i). They all have their pros
|
WinSSL (native Windows) or GSKit (native IBM i). They all have their pros
|
||||||
and cons, and we try to maintain a comparison of them here:
|
and cons, and we try to maintain a comparison of them here:
|
||||||
http://curl.haxx.se/docs/ssl-compared.html
|
http://curl.haxx.se/docs/ssl-compared.html
|
||||||
|
|
||||||
@@ -759,8 +764,9 @@ FAQ
|
|||||||
request-body in a GET request with something like "curl -X GET -d data
|
request-body in a GET request with something like "curl -X GET -d data
|
||||||
[URL]"
|
[URL]"
|
||||||
|
|
||||||
Note that -X doesn't change curl's behavior. It only modifies the actual
|
Note that -X doesn't actually change curl's behavior as it only modifies the
|
||||||
string sent in the request.
|
actual string sent in the request, but that may of course trigger a
|
||||||
|
different set of events.
|
||||||
|
|
||||||
Accordingly, by using -XPOST on a command line that for example would follow
|
Accordingly, by using -XPOST on a command line that for example would follow
|
||||||
a 303 redirect, you will effectively prevent curl from behaving
|
a 303 redirect, you will effectively prevent curl from behaving
|
||||||
@@ -1085,7 +1091,31 @@ FAQ
|
|||||||
immediately if its lone network connection goes down. That can be achieved
|
immediately if its lone network connection goes down. That can be achieved
|
||||||
by having the application monitor the network connection on its own using an
|
by having the application monitor the network connection on its own using an
|
||||||
OS-specific mechanism, then signalling libcurl to abort (see also item 5.13).
|
OS-specific mechanism, then signalling libcurl to abort (see also item 5.13).
|
||||||
|
|
||||||
|
4.20 curl doesn't return error for HTTP non-200 responses!
|
||||||
|
|
||||||
|
Correct. Unless you use -f (--fail).
|
||||||
|
|
||||||
|
When doing HTTP transfers, curl will perform exactly what you're asking it
|
||||||
|
to do and if successful it will not return an error. You can use curl to
|
||||||
|
test your web server's "file not found" page (that gets 404 back), you can
|
||||||
|
use it to check your authentication protected web pages (that get a 401
|
||||||
|
back) and so on.
|
||||||
|
|
||||||
|
The specific HTTP response code does not constitute a problem or error for
|
||||||
|
curl. It simply sends and delivers HTTP as you asked and if that worked,
|
||||||
|
everything is fine and dandy. The response code is generally providing more
|
||||||
|
higher level error information that curl doesn't care about. The error was
|
||||||
|
not in the HTTP transfer.
|
||||||
|
|
||||||
|
If you want your command line to treat error codes in the 400 and up range
|
||||||
|
as errors and thus return a non-zero value and possibly show an error
|
||||||
|
message, curl has a dedicated option for that: -f (CURLOPT_FAILONERROR in
|
||||||
|
libcurl speak).
|
||||||
|
|
||||||
|
You can also use the -w option and the variable %{response_code} to extract
|
||||||
|
the exact response code that was return in the response.
|
||||||
|
|
||||||
|
|
||||||
5. libcurl Issues
|
5. libcurl Issues
|
||||||
|
|
||||||
@@ -1098,6 +1128,12 @@ FAQ
|
|||||||
your system has such. Note that you must never share the same handle in
|
your system has such. Note that you must never share the same handle in
|
||||||
multiple threads.
|
multiple threads.
|
||||||
|
|
||||||
|
libcurl's implementation of timeouts might use signals (depending on what it
|
||||||
|
was built to use for name resolving), and signal handling is generally not
|
||||||
|
thread-safe. Multi-threaded Applicationss that call libcurl from different
|
||||||
|
threads (on different handles) might want to use CURLOPT_NOSIGNAL, e.g.:
|
||||||
|
|
||||||
|
curl_easy_setopt(handle, CURLOPT_NOSIGNAL, true);
|
||||||
|
|
||||||
If you use a OpenSSL-powered libcurl in a multi-threaded environment, you
|
If you use a OpenSSL-powered libcurl in a multi-threaded environment, you
|
||||||
need to provide one or two locking functions:
|
need to provide one or two locking functions:
|
||||||
@@ -1239,7 +1275,7 @@ FAQ
|
|||||||
you want to change name resolver function you must rebuild libcurl and tell
|
you want to change name resolver function you must rebuild libcurl and tell
|
||||||
it to use a different function.
|
it to use a different function.
|
||||||
|
|
||||||
- The non-ipv6 resolver that can use one out of four host name resolve calls
|
- The non-IPv6 resolver that can use one out of four host name resolve calls
|
||||||
(depending on what your system supports):
|
(depending on what your system supports):
|
||||||
|
|
||||||
A - gethostbyname()
|
A - gethostbyname()
|
||||||
@@ -1247,15 +1283,15 @@ FAQ
|
|||||||
C - gethostbyname_r() with 5 arguments
|
C - gethostbyname_r() with 5 arguments
|
||||||
D - gethostbyname_r() with 6 arguments
|
D - gethostbyname_r() with 6 arguments
|
||||||
|
|
||||||
- The ipv6-resolver that uses getaddrinfo()
|
- The IPv6-resolver that uses getaddrinfo()
|
||||||
|
|
||||||
- The c-ares based name resolver that uses the c-ares library for resolves.
|
- The c-ares based name resolver that uses the c-ares library for resolves.
|
||||||
Using this offers asynchronous name resolves.
|
Using this offers asynchronous name resolves.
|
||||||
|
|
||||||
- The threaded resolver (default option on Windows). It uses:
|
- The threaded resolver (default option on Windows). It uses:
|
||||||
|
|
||||||
A - gethostbyname() on plain ipv4 hosts
|
A - gethostbyname() on plain IPv4 hosts
|
||||||
B - getaddrinfo() on ipv6-enabled hosts
|
B - getaddrinfo() on IPv6 enabled hosts
|
||||||
|
|
||||||
Also note that libcurl never resolves or reverse-lookups addresses given as
|
Also note that libcurl never resolves or reverse-lookups addresses given as
|
||||||
pure numbers, such as 127.0.0.1 or ::1.
|
pure numbers, such as 127.0.0.1 or ::1.
|
||||||
@@ -1365,6 +1401,19 @@ FAQ
|
|||||||
server for. And there are really good stand-alone ones that have been tested
|
server for. And there are really good stand-alone ones that have been tested
|
||||||
and proven for many years. There's no need for you to reinvent them!
|
and proven for many years. There's no need for you to reinvent them!
|
||||||
|
|
||||||
|
5.18 Does libcurl use threads?
|
||||||
|
|
||||||
|
Put simply: no, libcurl will execute in the same thread you call it in. All
|
||||||
|
callbacks will be called in the same thread as the one you call libcurl in.
|
||||||
|
|
||||||
|
If you want to avoid your thread to be blocked by the libcurl call, you make
|
||||||
|
sure you use the non-blocking API which will do transfers asynchronously -
|
||||||
|
but still in the same single thread.
|
||||||
|
|
||||||
|
libcurl will potentially internally use threads for name resolving, if it
|
||||||
|
was built to work like that, but in those cases it'll create the child
|
||||||
|
threads by itself and they will only be used and then killed internally by
|
||||||
|
libcurl and never exposed to the outside.
|
||||||
|
|
||||||
6. License Issues
|
6. License Issues
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ libcurl
|
|||||||
- selectable network interface for outgoing traffic
|
- selectable network interface for outgoing traffic
|
||||||
- IPv6 support on unix and Windows
|
- IPv6 support on unix and Windows
|
||||||
- persistent connections
|
- persistent connections
|
||||||
- socks5 support
|
- socks 4 + 5 support, with or without local name resolving
|
||||||
- supports user name and password in proxy environment variables
|
- supports user name and password in proxy environment variables
|
||||||
- operations through proxy "tunnel" (using CONNECT)
|
- operations through proxy "tunnel" (using CONNECT)
|
||||||
- support for large files (>2GB and >4GB) during upload and download
|
- support for large files (>2GB and >4GB) during upload and download
|
||||||
@@ -45,8 +45,8 @@ HTTP
|
|||||||
- POST
|
- POST
|
||||||
- Pipelining
|
- Pipelining
|
||||||
- multipart formpost (RFC1867-style)
|
- multipart formpost (RFC1867-style)
|
||||||
- authentication: Basic, Digest, NTLM (*9), GSS-Negotiate/Negotiate (*3) and
|
- authentication: Basic, Digest, NTLM (*9) and Negotiate (SPNEGO) (*3)
|
||||||
SPNEGO (*4) to server and proxy
|
to server and proxy
|
||||||
- resume (both GET and PUT)
|
- resume (both GET and PUT)
|
||||||
- follow redirects
|
- follow redirects
|
||||||
- maximum amount of redirects to follow
|
- maximum amount of redirects to follow
|
||||||
@@ -55,7 +55,7 @@ HTTP
|
|||||||
- reads/writes the netscape cookie file format
|
- reads/writes the netscape cookie file format
|
||||||
- custom headers (replace/remove internally generated headers)
|
- custom headers (replace/remove internally generated headers)
|
||||||
- custom user-agent string
|
- custom user-agent string
|
||||||
- custom referer string
|
- custom referrer string
|
||||||
- range
|
- range
|
||||||
- proxy authentication
|
- proxy authentication
|
||||||
- time conditions
|
- time conditions
|
||||||
@@ -64,6 +64,7 @@ HTTP
|
|||||||
- Content-Encoding support for deflate and gzip
|
- Content-Encoding support for deflate and gzip
|
||||||
- "Transfer-Encoding: chunked" support in uploads
|
- "Transfer-Encoding: chunked" support in uploads
|
||||||
- data compression (*12)
|
- data compression (*12)
|
||||||
|
- HTTP/2 (*5)
|
||||||
|
|
||||||
HTTPS (*1)
|
HTTPS (*1)
|
||||||
- (all the HTTP features)
|
- (all the HTTP features)
|
||||||
@@ -76,8 +77,7 @@ HTTPS (*1)
|
|||||||
FTP
|
FTP
|
||||||
- download
|
- download
|
||||||
- authentication
|
- authentication
|
||||||
- kerberos4 (*5)
|
- Kerberos 5 (*14)
|
||||||
- kerberos5 (*3)
|
|
||||||
- active/passive using PORT, EPRT, PASV or EPSV
|
- active/passive using PORT, EPRT, PASV or EPSV
|
||||||
- single file size information (compare to HTTP HEAD)
|
- single file size information (compare to HTTP HEAD)
|
||||||
- 'type=' URL support
|
- 'type=' URL support
|
||||||
@@ -127,8 +127,15 @@ FILE
|
|||||||
- upload
|
- upload
|
||||||
- resume
|
- resume
|
||||||
|
|
||||||
|
SMB
|
||||||
|
- SMBv1 over TCP and SSL
|
||||||
|
- download
|
||||||
|
- upload
|
||||||
|
- authentication with NTLMv1
|
||||||
|
|
||||||
SMTP
|
SMTP
|
||||||
- authentication: Plain, Login, CRAM-MD5, Digest-MD5 and NTLM (*9)
|
- authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9), Kerberos 5
|
||||||
|
(*4) and External.
|
||||||
- send e-mails
|
- send e-mails
|
||||||
- mail from support
|
- mail from support
|
||||||
- mail size support
|
- mail size support
|
||||||
@@ -143,8 +150,8 @@ SMTPS (*1)
|
|||||||
|
|
||||||
POP3
|
POP3
|
||||||
- authentication: Clear Text, APOP and SASL
|
- authentication: Clear Text, APOP and SASL
|
||||||
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5 and
|
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9),
|
||||||
NTLM (*9)
|
Kerberos 5 (*4) and External.
|
||||||
- list e-mails
|
- list e-mails
|
||||||
- retrieve e-mails
|
- retrieve e-mails
|
||||||
- enhanced command support for: CAPA, DELE, TOP, STAT, UIDL and NOOP via
|
- enhanced command support for: CAPA, DELE, TOP, STAT, UIDL and NOOP via
|
||||||
@@ -158,11 +165,11 @@ POP3S (*1)
|
|||||||
|
|
||||||
IMAP
|
IMAP
|
||||||
- authentication: Clear Text and SASL
|
- authentication: Clear Text and SASL
|
||||||
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5 and
|
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (*9),
|
||||||
NTLM (*9)
|
Kerberos 5 (*4) and External.
|
||||||
- list the folders of a mailbox
|
- list the folders of a mailbox
|
||||||
- select a mailbox with support for verifing the UIDVALIDITY
|
- select a mailbox with support for verifying the UIDVALIDITY
|
||||||
- fetch e-mails with support for specifing the UID and SECTION
|
- fetch e-mails with support for specifying the UID and SECTION
|
||||||
- upload e-mails via the append command
|
- upload e-mails via the append command
|
||||||
- enhanced command support for: EXAMINE, CREATE, DELETE, RENAME, STATUS,
|
- enhanced command support for: EXAMINE, CREATE, DELETE, RENAME, STATUS,
|
||||||
STORE, COPY and UID via custom requests
|
STORE, COPY and UID via custom requests
|
||||||
@@ -176,14 +183,16 @@ IMAPS (*1)
|
|||||||
FOOTNOTES
|
FOOTNOTES
|
||||||
=========
|
=========
|
||||||
|
|
||||||
*1 = requires OpenSSL, GnuTLS, NSS, yassl, axTLS, PolarSSL, schannel (native
|
*1 = requires OpenSSL, GnuTLS, NSS, yassl, axTLS, PolarSSL, WinSSL (native
|
||||||
Windows), Secure Transport (native iOS/OS X) or qssl (native IBM i)
|
Windows), Secure Transport (native iOS/OS X) or GSKit (native IBM i)
|
||||||
*2 = requires OpenLDAP
|
*2 = requires OpenLDAP
|
||||||
*3 = requires a GSSAPI-compliant library, such as Heimdal or similar
|
*3 = requires a GSS-API implementation (such as Heimdal or MIT Kerberos) or
|
||||||
*4 = requires FBopenssl
|
SSPI (native Windows)
|
||||||
*5 = requires a krb4 library, such as the MIT one or similar
|
*4 = requires a GSS-API implementation, however, only Windows SSPI is
|
||||||
|
currently supported
|
||||||
|
*5 = requires nghttp2 and possibly a recent TLS library
|
||||||
*6 = requires c-ares
|
*6 = requires c-ares
|
||||||
*7 = requires OpenSSL, NSS, qssl, schannel or Secure Transport; GnuTLS, for
|
*7 = requires OpenSSL, NSS, GSKit, WinSSL or Secure Transport; GnuTLS, for
|
||||||
example, only supports SSLv3 and TLSv1
|
example, only supports SSLv3 and TLSv1
|
||||||
*8 = requires libssh2
|
*8 = requires libssh2
|
||||||
*9 = requires OpenSSL, GnuTLS, NSS, yassl, Secure Transport or SSPI (native
|
*9 = requires OpenSSL, GnuTLS, NSS, yassl, Secure Transport or SSPI (native
|
||||||
@@ -194,3 +203,4 @@ FOOTNOTES
|
|||||||
*12 = requires libz
|
*12 = requires libz
|
||||||
*13 = requires libmetalink, and either an Apple or Microsoft operating
|
*13 = requires libmetalink, and either an Apple or Microsoft operating
|
||||||
system, or OpenSSL, or GnuTLS, or NSS
|
system, or OpenSSL, or GnuTLS, or NSS
|
||||||
|
*14 = requires a GSS-API implementation (such as Heimdal or MIT Kerberos)
|
||||||
|
|||||||
260
docs/HISTORY
260
docs/HISTORY
@@ -4,23 +4,31 @@
|
|||||||
| (__| |_| | _ <| |___
|
| (__| |_| | _ <| |___
|
||||||
\___|\___/|_| \_\_____|
|
\___|\___/|_| \_\_____|
|
||||||
|
|
||||||
How cURL Became Like This
|
How cURL Became Like This
|
||||||
|
=========================
|
||||||
|
|
||||||
|
Towards the end of 1996, Daniel Stenberg was spending time writing an IRC bot
|
||||||
Towards the end of 1996, Daniel Stenberg came up with the idea to make
|
for an Amiga related channel on EFnet. He then came up with the idea to make
|
||||||
currency-exchange calculations available to Internet Relay Chat (IRC)
|
currency-exchange calculations available to Internet Relay Chat (IRC)
|
||||||
users. All the necessary data are published on the Web; he just needed to
|
users. All the necessary data are published on the Web; he just needed to
|
||||||
automate their retrieval.
|
automate their retrieval.
|
||||||
|
|
||||||
Daniel simply adopted an existing command-line open-source tool, httpget, that
|
Daniel simply adopted an existing command-line open-source tool, httpget, that
|
||||||
Brazilian Rafael Sagula had written and recently release version 0.1 of. After
|
Brazilian Rafael Sagula had written and recently release version 0.1 of. After
|
||||||
a few minor adjustments, it did just what he needed. HttpGet 1.0 was released
|
a few minor adjustments, it did just what he needed.
|
||||||
on April 8th 1997 with brand new HTTP proxy support.
|
|
||||||
|
1997
|
||||||
|
----
|
||||||
|
|
||||||
|
HttpGet 1.0 was released on April 8th 1997 with brand new HTTP proxy support.
|
||||||
|
|
||||||
We soon found and fixed support for getting currencies over GOPHER. Once FTP
|
We soon found and fixed support for getting currencies over GOPHER. Once FTP
|
||||||
download support was added, the name of the project was changed and urlget 2.0
|
download support was added, the name of the project was changed and urlget 2.0
|
||||||
was released in August 1997. The http-only days were already passed.
|
was released in August 1997. The http-only days were already passed.
|
||||||
|
|
||||||
|
1998
|
||||||
|
----
|
||||||
|
|
||||||
The project slowly grew bigger. When upload capabilities were added and the
|
The project slowly grew bigger. When upload capabilities were added and the
|
||||||
name once again was misleading, a second name change was made and on March 20,
|
name once again was misleading, a second name change was made and on March 20,
|
||||||
1998 curl 4 was released. (The version numbering from the previous names was
|
1998 curl 4 was released. (The version numbering from the previous names was
|
||||||
@@ -33,33 +41,39 @@ was revealed to us much later.)
|
|||||||
|
|
||||||
SSL support was added, powered by the SSLeay library.
|
SSL support was added, powered by the SSLeay library.
|
||||||
|
|
||||||
August 1998, first announcement of curl on freshmeat.net.
|
August, first announcement of curl on freshmeat.net.
|
||||||
|
|
||||||
October 1998, with the curl 4.9 release and the introduction of cookie
|
October, with the curl 4.9 release and the introduction of cookie support,
|
||||||
support, curl was no longer released under the GPL license. Now we're at 4000
|
curl was no longer released under the GPL license. Now we're at 4000 lines of
|
||||||
lines of code, we switched over to the MPL license to restrict the effects of
|
code, we switched over to the MPL license to restrict the effects of
|
||||||
"copyleft".
|
"copyleft".
|
||||||
|
|
||||||
November 1998, configure script and reported successful compiles on several
|
November, configure script and reported successful compiles on several
|
||||||
major operating systems. The never-quite-understood -F option was added and
|
major operating systems. The never-quite-understood -F option was added and
|
||||||
curl could now simulate quite a lot of a browser. TELNET support was added.
|
curl could now simulate quite a lot of a browser. TELNET support was added.
|
||||||
|
|
||||||
Curl 5 was released in December 1998 and introduced the first ever curl man
|
Curl 5 was released in December 1998 and introduced the first ever curl man
|
||||||
page. People started making Linux RPM packages out of it.
|
page. People started making Linux RPM packages out of it.
|
||||||
|
|
||||||
January 1999, DICT support added.
|
1999
|
||||||
|
----
|
||||||
|
|
||||||
|
January, DICT support added.
|
||||||
|
|
||||||
OpenSSL took over where SSLeay was abandoned.
|
OpenSSL took over where SSLeay was abandoned.
|
||||||
|
|
||||||
May 1999, first Debian package.
|
May, first Debian package.
|
||||||
|
|
||||||
August 1999, LDAP:// and FILE:// support added. The curl web site gets 1300
|
August, LDAP:// and FILE:// support added. The curl web site gets 1300 visits
|
||||||
visits weekly.
|
weekly.
|
||||||
|
|
||||||
Released curl 6.0 in September. 15000 lines of code.
|
Released curl 6.0 in September. 15000 lines of code.
|
||||||
|
|
||||||
December 28 1999, added the project on Sourceforge and started using its
|
December 28, added the project on Sourceforge and started using its services
|
||||||
services for managing the project.
|
for managing the project.
|
||||||
|
|
||||||
|
2000
|
||||||
|
----
|
||||||
|
|
||||||
Spring 2000, major internal overhaul to provide a suitable library interface.
|
Spring 2000, major internal overhaul to provide a suitable library interface.
|
||||||
The first non-beta release was named 7.1 and arrived in August. This offered
|
The first non-beta release was named 7.1 and arrived in August. This offered
|
||||||
@@ -67,19 +81,22 @@ the easy interface and turned out to be the beginning of actually getting
|
|||||||
other software and programs to get based on and powered by libcurl. Almost
|
other software and programs to get based on and powered by libcurl. Almost
|
||||||
20000 lines of code.
|
20000 lines of code.
|
||||||
|
|
||||||
August 2000, the curl web site gets 4000 visits weekly.
|
August, the curl web site gets 4000 visits weekly.
|
||||||
|
|
||||||
The PHP guys adopted libcurl already the same month, when the first ever third
|
The PHP guys adopted libcurl already the same month, when the first ever third
|
||||||
party libcurl binding showed up. CURL has been a supported module in PHP since
|
party libcurl binding showed up. CURL has been a supported module in PHP since
|
||||||
the release of PHP 4.0.2. This would soon get followers. More than 16
|
the release of PHP 4.0.2. This would soon get followers. More than 16
|
||||||
different bindings exist at the time of this writing.
|
different bindings exist at the time of this writing.
|
||||||
|
|
||||||
September 2000, kerberos4 support was added.
|
September, kerberos4 support was added.
|
||||||
|
|
||||||
In November 2000 started the work on a test suite for curl. It was later
|
In November started the work on a test suite for curl. It was later re-written
|
||||||
re-written from scratch again. The libcurl major SONAME number was set to 1.
|
from scratch again. The libcurl major SONAME number was set to 1.
|
||||||
|
|
||||||
January 2001, Daniel released curl 7.5.2 under a new license again: MIT (or
|
2001
|
||||||
|
----
|
||||||
|
|
||||||
|
January, Daniel released curl 7.5.2 under a new license again: MIT (or
|
||||||
MPL). The MIT license is extremely liberal and can be used combined with GPL
|
MPL). The MIT license is extremely liberal and can be used combined with GPL
|
||||||
in other projects. This would finally put an end to the "complaints" from
|
in other projects. This would finally put an end to the "complaints" from
|
||||||
people involved in GPLed projects that previously were prohibited from using
|
people involved in GPLed projects that previously were prohibited from using
|
||||||
@@ -92,17 +109,20 @@ code. The libcurl major SONAME number was bumped to 2 due to this overhaul.
|
|||||||
|
|
||||||
The first experimental ftps:// support was added in March 2001.
|
The first experimental ftps:// support was added in March 2001.
|
||||||
|
|
||||||
August 2001. curl is bundled in Mac OS X, 10.1. It was already becoming more
|
August. curl is bundled in Mac OS X, 10.1. It was already becoming more and
|
||||||
and more of a standard utility of Linux distributions and a regular in the BSD
|
more of a standard utility of Linux distributions and a regular in the BSD
|
||||||
ports collections. The curl web site gets 8000 visits weekly. Curl Corporation
|
ports collections. The curl web site gets 8000 visits weekly. Curl Corporation
|
||||||
contacted Daniel to discuss "the name issue". After Daniel's reply, they have
|
contacted Daniel to discuss "the name issue". After Daniel's reply, they have
|
||||||
never since got in touch again.
|
never since got in touch again.
|
||||||
|
|
||||||
September 2001, libcurl 7.9 introduces cookie jar and curl_formadd(). During
|
September, libcurl 7.9 introduces cookie jar and curl_formadd(). During the
|
||||||
the forthcoming 7.9.x releases, we introduced the multi interface slowly and
|
forthcoming 7.9.x releases, we introduced the multi interface slowly and
|
||||||
without much whistles.
|
without much whistles.
|
||||||
|
|
||||||
June 2002, the curl web site gets 13000 visits weekly. curl and libcurl is
|
2002
|
||||||
|
----
|
||||||
|
|
||||||
|
June, the curl web site gets 13000 visits weekly. curl and libcurl is
|
||||||
35000 lines of code. Reported successful compiles on more than 40 combinations
|
35000 lines of code. Reported successful compiles on more than 40 combinations
|
||||||
of CPUs and operating systems.
|
of CPUs and operating systems.
|
||||||
|
|
||||||
@@ -111,134 +131,152 @@ impossible. Around 5000 downloaded packages each week from the main site gives
|
|||||||
a hint, but the packages are mirrored extensively, bundled with numerous OS
|
a hint, but the packages are mirrored extensively, bundled with numerous OS
|
||||||
distributions and otherwise retrieved as part of other software.
|
distributions and otherwise retrieved as part of other software.
|
||||||
|
|
||||||
September 2002, with the release of curl 7.10 it is released under the MIT
|
September, with the release of curl 7.10 it is released under the MIT license
|
||||||
license only.
|
only.
|
||||||
|
|
||||||
January 2003. Started working on the distributed curl tests. The autobuilds.
|
2003
|
||||||
|
----
|
||||||
|
|
||||||
February 2003, the curl site averages at 20000 visits weekly. At any given
|
January. Started working on the distributed curl tests. The autobuilds.
|
||||||
moment, there's an average of 3 people browsing the curl.haxx.se site.
|
|
||||||
|
February, the curl site averages at 20000 visits weekly. At any given moment,
|
||||||
|
there's an average of 3 people browsing the curl.haxx.se site.
|
||||||
|
|
||||||
Multiple new authentication schemes are supported: Digest (May), NTLM (June)
|
Multiple new authentication schemes are supported: Digest (May), NTLM (June)
|
||||||
and Negotiate (June).
|
and Negotiate (June).
|
||||||
|
|
||||||
November 2003: curl 7.10.8 is released. 45000 lines of code. ~55000 unique
|
November: curl 7.10.8 is released. 45000 lines of code. ~55000 unique visitors
|
||||||
visitors to the curl.haxx.se site. Five official web mirrors.
|
to the curl.haxx.se site. Five official web mirrors.
|
||||||
|
|
||||||
December 2003, full-fledged SSL for FTP is supported.
|
December, full-fledged SSL for FTP is supported.
|
||||||
|
|
||||||
January 2004: curl 7.11.0 introduced large file support.
|
2004
|
||||||
|
----
|
||||||
|
|
||||||
June 2004:
|
January: curl 7.11.0 introduced large file support.
|
||||||
|
|
||||||
curl 7.12.0 introduced IDN support. 10 official web mirrors.
|
June: curl 7.12.0 introduced IDN support. 10 official web mirrors.
|
||||||
|
|
||||||
This release bumped the major SONAME to 3 due to the removal of the
|
This release bumped the major SONAME to 3 due to the removal of the
|
||||||
curl_formparse() function
|
curl_formparse() function
|
||||||
|
|
||||||
August 2004:
|
August: Curl and libcurl 7.12.1
|
||||||
Curl and libcurl 7.12.1
|
|
||||||
|
|
||||||
Public curl release number: 82
|
Public curl release number: 82
|
||||||
Releases counted from the very beginning: 109
|
Releases counted from the very beginning: 109
|
||||||
Available command line options: 96
|
Available command line options: 96
|
||||||
Available curl_easy_setopt() options: 120
|
Available curl_easy_setopt() options: 120
|
||||||
Number of public functions in libcurl: 36
|
Number of public functions in libcurl: 36
|
||||||
Amount of public web site mirrors: 12
|
Amount of public web site mirrors: 12
|
||||||
Number of known libcurl bindings: 26
|
Number of known libcurl bindings: 26
|
||||||
|
|
||||||
April 2005:
|
2005
|
||||||
|
----
|
||||||
|
|
||||||
GnuTLS can now optionally be used for the secure layer when curl is built.
|
April. GnuTLS can now optionally be used for the secure layer when curl is
|
||||||
|
built.
|
||||||
|
|
||||||
September 2005:
|
September: TFTP support was added.
|
||||||
|
|
||||||
TFTP support was added.
|
More than 100,000 unique visitors of the curl web site. 25 mirrors.
|
||||||
|
|
||||||
More than 100,000 unique visitors of the curl web site. 25 mirrors.
|
December: security vulnerability: libcurl URL Buffer Overflow
|
||||||
|
|
||||||
December 2005:
|
2006
|
||||||
|
----
|
||||||
|
|
||||||
security vulnerability: libcurl URL Buffer Overflow
|
January. We dropped support for Gopher. We found bugs in the implementation
|
||||||
|
that turned out having been introduced years ago, so with the conclusion that
|
||||||
|
nobody had found out in all this time we removed it instead of fixing it.
|
||||||
|
|
||||||
January 2006:
|
March: security vulnerability: libcurl TFTP Packet Buffer Overflow
|
||||||
|
|
||||||
We dropped support for Gopher. We found bugs in the implementation that
|
April: Added the multi_socket() API
|
||||||
turned out having been introduced years ago, so with the conclusion that
|
|
||||||
nobody had found out in all this time we removed it instead of fixing it.
|
|
||||||
|
|
||||||
March 2006:
|
September: The major SONAME number for libcurl was bumped to 4 due to the
|
||||||
|
removal of ftp third party transfer support.
|
||||||
|
|
||||||
security vulnerability: libcurl TFTP Packet Buffer Overflow
|
November: Added SCP and SFTP support
|
||||||
|
|
||||||
April 2006:
|
2007
|
||||||
|
----
|
||||||
|
|
||||||
Added the multi_socket() API
|
February: Added support for the Mozilla NSS library to do the SSL/TLS stuff
|
||||||
|
|
||||||
September 2006:
|
July: security vulnerability: libcurl GnuTLS insufficient cert verification
|
||||||
|
|
||||||
The major SONAME number for libcurl was bumped to 4 due to the removal of
|
2008
|
||||||
ftp third party transfer support.
|
----
|
||||||
|
|
||||||
November 2006:
|
November:
|
||||||
|
|
||||||
Added SCP and SFTP support
|
Command line options: 128
|
||||||
|
curl_easy_setopt() options: 158
|
||||||
February 2007:
|
Public functions in libcurl: 58
|
||||||
|
Known libcurl bindings: 37
|
||||||
Added support for the Mozilla NSS library to do the SSL/TLS stuff
|
Contributors: 683
|
||||||
|
|
||||||
July 2007:
|
|
||||||
|
|
||||||
security vulnerability: libcurl GnuTLS insufficient cert verification
|
|
||||||
|
|
||||||
November 2008:
|
|
||||||
|
|
||||||
Command line options: 128
|
|
||||||
curl_easy_setopt() options: 158
|
|
||||||
Public functions in libcurl: 58
|
|
||||||
Known libcurl bindings: 37
|
|
||||||
Contributors: 683
|
|
||||||
|
|
||||||
145,000 unique visitors. >100 GB downloaded.
|
145,000 unique visitors. >100 GB downloaded.
|
||||||
|
|
||||||
March 2009:
|
2009
|
||||||
|
----
|
||||||
|
|
||||||
security vulnerability: libcurl Arbitrary File Access
|
March: security vulnerability: libcurl Arbitrary File Access
|
||||||
|
|
||||||
August 2009:
|
August: security vulnerability: libcurl embedded zero in cert name
|
||||||
|
|
||||||
security vulnerability: libcurl embedded zero in cert name
|
December: Added support for IMAP, POP3 and SMTP
|
||||||
|
|
||||||
December 2009:
|
2010
|
||||||
|
----
|
||||||
|
|
||||||
Added support for IMAP, POP3 and SMTP
|
January: Added support for RTSP
|
||||||
|
|
||||||
January 2010:
|
February: security vulnerability: libcurl data callback excessive length
|
||||||
|
|
||||||
Added support for RTSP
|
March: The project switched over to use git (hosted by github) instead of CVS
|
||||||
|
for source code control
|
||||||
|
|
||||||
February 2010:
|
May: Added support for RTMP
|
||||||
|
|
||||||
security vulnerability: libcurl data callback excessive length
|
Added support for PolarSSL to do the SSL/TLS stuff
|
||||||
|
|
||||||
March 2010:
|
August:
|
||||||
|
|
||||||
The project switched over to use git instead of CVS for source code control
|
Public curl releases: 117
|
||||||
|
Command line options: 138
|
||||||
May 2010:
|
curl_easy_setopt() options: 180
|
||||||
|
Public functions in libcurl: 58
|
||||||
Added support for RTMP
|
Known libcurl bindings: 39
|
||||||
|
Contributors: 808
|
||||||
Added support for PolarSSL to do the SSL/TLS stuff
|
|
||||||
|
|
||||||
August 2010:
|
|
||||||
|
|
||||||
Public curl releases: 117
|
|
||||||
Command line options: 138
|
|
||||||
curl_easy_setopt() options: 180
|
|
||||||
Public functions in libcurl: 58
|
|
||||||
Known libcurl bindings: 39
|
|
||||||
Contributors: 808
|
|
||||||
|
|
||||||
Gopher support added (re-added actually)
|
Gopher support added (re-added actually)
|
||||||
|
|
||||||
|
2012
|
||||||
|
----
|
||||||
|
|
||||||
|
July: Added support for Schannel (native Windows TLS backend) and Darwin SSL
|
||||||
|
(Native Mac OS X and iOS TLS backend).
|
||||||
|
|
||||||
|
Supports metalink
|
||||||
|
|
||||||
|
October: SSH-agent support.
|
||||||
|
|
||||||
|
2013
|
||||||
|
----
|
||||||
|
|
||||||
|
February: Cleaned up internals to always uses the "multi" non-blocking
|
||||||
|
approach internally and only expose the blocking API with a wrapper.
|
||||||
|
|
||||||
|
September: First small steps on supporting HTTP/2 with nghttp2.
|
||||||
|
|
||||||
|
October: Removed krb4 support.
|
||||||
|
|
||||||
|
December: Happy eyeballs.
|
||||||
|
|
||||||
|
2014
|
||||||
|
----
|
||||||
|
|
||||||
|
March: first real release supporting HTTP/2
|
||||||
|
|
||||||
|
September: Web site had 245,000 unique visitors and served 236GB data
|
||||||
|
|||||||
152
docs/INSTALL
152
docs/INSTALL
@@ -20,9 +20,10 @@ Building from git
|
|||||||
If you get your code off a git repository, see the GIT-INFO file in the
|
If you get your code off a git repository, see the GIT-INFO file in the
|
||||||
root directory for specific instructions on how to proceed.
|
root directory for specific instructions on how to proceed.
|
||||||
|
|
||||||
UNIX
|
Unix
|
||||||
====
|
====
|
||||||
A normal unix installation is made in three or four steps (after you've
|
|
||||||
|
A normal Unix installation is made in three or four steps (after you've
|
||||||
unpacked the source archive):
|
unpacked the source archive):
|
||||||
|
|
||||||
./configure
|
./configure
|
||||||
@@ -115,18 +116,6 @@ UNIX
|
|||||||
|
|
||||||
./configure --disable-thread
|
./configure --disable-thread
|
||||||
|
|
||||||
To build curl with kerberos4 support enabled, curl requires the krb4 libs
|
|
||||||
and headers installed. You can then use a set of options to tell
|
|
||||||
configure where those are:
|
|
||||||
|
|
||||||
--with-krb4-includes[=DIR] Specify location of kerberos4 headers
|
|
||||||
--with-krb4-libs[=DIR] Specify location of kerberos4 libs
|
|
||||||
--with-krb4[=DIR] where to look for Kerberos4
|
|
||||||
|
|
||||||
In most cases, /usr/athena is the install prefix and then it works with
|
|
||||||
|
|
||||||
./configure --with-krb4=/usr/athena
|
|
||||||
|
|
||||||
If you're a curl developer and use gcc, you might want to enable more
|
If you're a curl developer and use gcc, you might want to enable more
|
||||||
debug options with the --enable-debug option.
|
debug options with the --enable-debug option.
|
||||||
|
|
||||||
@@ -148,8 +137,8 @@ UNIX
|
|||||||
|
|
||||||
To build with axTLS for SSL/TLS, use both --without-ssl and --with-axtls.
|
To build with axTLS for SSL/TLS, use both --without-ssl and --with-axtls.
|
||||||
|
|
||||||
To get GSSAPI support, build with --with-gssapi and have the MIT or
|
To build with GSS-API support, use --with-gssapi and have the MIT Kerberos
|
||||||
Heimdal Kerberos 5 packages installed.
|
or Heimdal packages installed.
|
||||||
|
|
||||||
To get support for SCP and SFTP, build with --with-libssh2 and have
|
To get support for SCP and SFTP, build with --with-libssh2 and have
|
||||||
libssh2 0.16 or later installed.
|
libssh2 0.16 or later installed.
|
||||||
@@ -159,6 +148,7 @@ UNIX
|
|||||||
|
|
||||||
SPECIAL CASES
|
SPECIAL CASES
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
Some versions of uClibc require configuring with CPPFLAGS=-D_GNU_SOURCE=1
|
Some versions of uClibc require configuring with CPPFLAGS=-D_GNU_SOURCE=1
|
||||||
to get correct large file support.
|
to get correct large file support.
|
||||||
|
|
||||||
@@ -167,7 +157,6 @@ UNIX
|
|||||||
./configure CC=owcc AR="$WATCOM/binl/wlib" AR_FLAGS=-q \
|
./configure CC=owcc AR="$WATCOM/binl/wlib" AR_FLAGS=-q \
|
||||||
RANLIB=/bin/true STRIP="$WATCOM/binl/wstrip" CFLAGS=-Wextra
|
RANLIB=/bin/true STRIP="$WATCOM/binl/wstrip" CFLAGS=-Wextra
|
||||||
|
|
||||||
|
|
||||||
Win32
|
Win32
|
||||||
=====
|
=====
|
||||||
|
|
||||||
@@ -199,7 +188,6 @@ Win32
|
|||||||
|
|
||||||
If you get linkage errors read section 5.7 of the FAQ document.
|
If you get linkage errors read section 5.7 of the FAQ document.
|
||||||
|
|
||||||
|
|
||||||
MingW32
|
MingW32
|
||||||
-------
|
-------
|
||||||
|
|
||||||
@@ -221,7 +209,7 @@ Win32
|
|||||||
environment variables, for example:
|
environment variables, for example:
|
||||||
|
|
||||||
set ZLIB_PATH=c:\zlib-1.2.8
|
set ZLIB_PATH=c:\zlib-1.2.8
|
||||||
set OPENSSL_PATH=c:\openssl-0.9.8y
|
set OPENSSL_PATH=c:\openssl-0.9.8zc
|
||||||
set LIBSSH2_PATH=c:\libssh2-1.4.3
|
set LIBSSH2_PATH=c:\libssh2-1.4.3
|
||||||
|
|
||||||
ATTENTION: if you want to build with libssh2 support you have to use latest
|
ATTENTION: if you want to build with libssh2 support you have to use latest
|
||||||
@@ -246,7 +234,6 @@ Win32
|
|||||||
- optional recent Novell CLDAP SDK available from:
|
- optional recent Novell CLDAP SDK available from:
|
||||||
http://developer.novell.com/ndk/cldap.htm
|
http://developer.novell.com/ndk/cldap.htm
|
||||||
|
|
||||||
|
|
||||||
Cygwin
|
Cygwin
|
||||||
------
|
------
|
||||||
|
|
||||||
@@ -264,8 +251,10 @@ Win32
|
|||||||
MSVC 6 caveats
|
MSVC 6 caveats
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
If you use MSVC 6 it is required that you use the February 2003 edition PSDK:
|
If you use MSVC 6 it is required that you use the February 2003 edition of
|
||||||
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
|
the 'Platform SDK' which can be downloaded from:
|
||||||
|
|
||||||
|
http://www.microsoft.com/en-us/download/details.aspx?id=12261
|
||||||
|
|
||||||
Building any software with MSVC 6 without having PSDK installed is just
|
Building any software with MSVC 6 without having PSDK installed is just
|
||||||
asking for trouble down the road once you have released it, you might notice
|
asking for trouble down the road once you have released it, you might notice
|
||||||
@@ -273,8 +262,6 @@ Win32
|
|||||||
choice of static vs dynamic runtime and third party libraries. Anyone using
|
choice of static vs dynamic runtime and third party libraries. Anyone using
|
||||||
software built in such way will at some point regret having done so.
|
software built in such way will at some point regret having done so.
|
||||||
|
|
||||||
When someone uses MSVC 6 without PSDK he is using a compiler back from 1998.
|
|
||||||
|
|
||||||
If the compiler has been updated with the installation of a service pack as
|
If the compiler has been updated with the installation of a service pack as
|
||||||
those mentioned in http://support.microsoft.com/kb/194022 the compiler can be
|
those mentioned in http://support.microsoft.com/kb/194022 the compiler can be
|
||||||
safely used to read source code, translate and make it object code.
|
safely used to read source code, translate and make it object code.
|
||||||
@@ -284,13 +271,6 @@ Win32
|
|||||||
header files and libraries with bugs and security issues which have already
|
header files and libraries with bugs and security issues which have already
|
||||||
been addressed and fixed long time ago.
|
been addressed and fixed long time ago.
|
||||||
|
|
||||||
In order to make use of the updated system headers and fixed libraries
|
|
||||||
for MSVC 6, it is required that 'Platform SDK', PSDK from now onwards,
|
|
||||||
is installed. The specific PSDK that must be installed for MSVC 6 is the
|
|
||||||
February 2003 edition, which is the latest one supporting the MSVC 6 compiler,
|
|
||||||
this PSDK is also known as 'Windows Server 2003 PSDK' and can be downloaded
|
|
||||||
from http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
|
|
||||||
|
|
||||||
So, building curl and libcurl with MSVC 6 without PSDK is absolutely
|
So, building curl and libcurl with MSVC 6 without PSDK is absolutely
|
||||||
discouraged for the benefit of anyone using software built in such
|
discouraged for the benefit of anyone using software built in such
|
||||||
environment. And it will not be supported in any way, as we could just
|
environment. And it will not be supported in any way, as we could just
|
||||||
@@ -337,7 +317,7 @@ Win32
|
|||||||
Before running nmake define the OPENSSL_PATH environment variable with
|
Before running nmake define the OPENSSL_PATH environment variable with
|
||||||
the root/base directory of OpenSSL, for example:
|
the root/base directory of OpenSSL, for example:
|
||||||
|
|
||||||
set OPENSSL_PATH=c:\openssl-0.9.8y
|
set OPENSSL_PATH=c:\openssl-0.9.8zc
|
||||||
|
|
||||||
Then run 'nmake vc-ssl' or 'nmake vc-ssl-dll' in curl's root
|
Then run 'nmake vc-ssl' or 'nmake vc-ssl-dll' in curl's root
|
||||||
directory. 'nmake vc-ssl' will create a libcurl static and dynamic
|
directory. 'nmake vc-ssl' will create a libcurl static and dynamic
|
||||||
@@ -352,39 +332,18 @@ Win32
|
|||||||
at runtime.
|
at runtime.
|
||||||
Run 'nmake vc-ssl-zlib' to build with both ssl and zlib support.
|
Run 'nmake vc-ssl-zlib' to build with both ssl and zlib support.
|
||||||
|
|
||||||
MSVC 6 IDE
|
MSVC IDE
|
||||||
----------
|
--------
|
||||||
|
|
||||||
A minimal VC++ 6.0 reference workspace (vc6curl.dsw) is available with the
|
A fairly comprehensive set of Visual Studio project files are available for
|
||||||
source distribution archive to allow proper building of the two included
|
v6.0 through v12.0 and are located in the projects folder to allow proper
|
||||||
projects, the libcurl library and the curl tool.
|
building of both the libcurl library as well as the curl tool.
|
||||||
|
|
||||||
1) Open the vs/vc6/vc6curl.dsw workspace with MSVC6's IDE.
|
For more information about these projects and building via Visual Studio
|
||||||
2) Select 'Build' from top menu.
|
please see the README file located in the projects folder.
|
||||||
3) Select 'Batch Build' from dropdown menu.
|
|
||||||
4) Make sure that the eight project configurations are 'checked'.
|
|
||||||
5) Click on the 'Build' button.
|
|
||||||
6) Once the eight project configurations are built you are done.
|
|
||||||
|
|
||||||
Dynamic and static libcurl libraries are built in debug and release flavours,
|
|
||||||
and can be located each one in its own subdirectory, dll-debug, dll-release,
|
|
||||||
lib-debug and lib-release, all of them below the 'vs/vc6/lib' subdirectory.
|
|
||||||
|
|
||||||
In the same way four curl executables are created, each using its respective
|
|
||||||
library. The resulting curl executables are located in its own subdirectory,
|
|
||||||
dll-debug, dll-release, lib-debug and lib-release, below 'vs/vc6/src' subdir.
|
|
||||||
|
|
||||||
These reference VC++ 6.0 configurations are generated using the dynamic CRT.
|
|
||||||
|
|
||||||
Intentionally, these reference VC++ 6.0 projects and configurations don't use
|
|
||||||
third party libraries, such as OpenSSL or Zlib, to allow proper compilation
|
|
||||||
and configuration for all new users without further requirements.
|
|
||||||
|
|
||||||
If you need something more 'involved' you might adjust them for your own use,
|
|
||||||
or explore the world of makefiles described above 'MSVC from command line'.
|
|
||||||
|
|
||||||
Borland C++ compiler
|
Borland C++ compiler
|
||||||
---------------------
|
--------------------
|
||||||
|
|
||||||
Ensure that your build environment is properly set up to use the compiler
|
Ensure that your build environment is properly set up to use the compiler
|
||||||
and associated tools. PATH environment variable must include the path to
|
and associated tools. PATH environment variable must include the path to
|
||||||
@@ -429,7 +388,6 @@ Win32
|
|||||||
is required, as well as the OpenSSL libeay32.lib and ssleay32.lib
|
is required, as well as the OpenSSL libeay32.lib and ssleay32.lib
|
||||||
libraries.
|
libraries.
|
||||||
|
|
||||||
|
|
||||||
OTHER MSVC IDEs
|
OTHER MSVC IDEs
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
@@ -440,7 +398,6 @@ Win32
|
|||||||
Make the sources in the src/ drawer be a "win32 console application"
|
Make the sources in the src/ drawer be a "win32 console application"
|
||||||
project. Name it curl.
|
project. Name it curl.
|
||||||
|
|
||||||
|
|
||||||
Disabling Specific Protocols in Win32 builds
|
Disabling Specific Protocols in Win32 builds
|
||||||
--------------------------------------------
|
--------------------------------------------
|
||||||
|
|
||||||
@@ -459,16 +416,21 @@ Win32
|
|||||||
CURL_DISABLE_FILE disables FILE
|
CURL_DISABLE_FILE disables FILE
|
||||||
CURL_DISABLE_TFTP disables TFTP
|
CURL_DISABLE_TFTP disables TFTP
|
||||||
CURL_DISABLE_HTTP disables HTTP
|
CURL_DISABLE_HTTP disables HTTP
|
||||||
|
CURL_DISABLE_IMAP disables IMAP
|
||||||
|
CURL_DISABLE_POP3 disables POP3
|
||||||
|
CURL_DISABLE_SMTP disables SMTP
|
||||||
|
|
||||||
If you want to set any of these defines you have the following
|
If you want to set any of these defines you have the following options:
|
||||||
possibilities:
|
|
||||||
|
|
||||||
- Modify lib/config-win32.h
|
- Modify lib/config-win32.h
|
||||||
- Modify lib/curl_setup.h
|
- Modify lib/curl_setup.h
|
||||||
- Modify lib/Makefile.vc6
|
- Modify lib/Makefile.vc6
|
||||||
- Add defines to Project/Settings/C/C++/General/Preprocessor Definitions
|
- Modify the "Preprocessor Definitions" in the libcurl project
|
||||||
in the vc6libcurl.dsw/vc6libcurl.dsp Visual C++ 6 IDE project.
|
|
||||||
|
|
||||||
|
Note: The pre-processor settings can be found using the Visual Studio IDE
|
||||||
|
under "Project -> Settings -> C/C++ -> General" in VC6 and "Project ->
|
||||||
|
Properties -> Configuration Properties -> C/C++ -> Preprocessor" in later
|
||||||
|
versions.
|
||||||
|
|
||||||
Using BSD-style lwIP instead of Winsock TCP/IP stack in Win32 builds
|
Using BSD-style lwIP instead of Winsock TCP/IP stack in Win32 builds
|
||||||
--------------------------------------------------------------------
|
--------------------------------------------------------------------
|
||||||
@@ -480,8 +442,12 @@ Win32
|
|||||||
|
|
||||||
- Modify lib/config-win32.h and src/config-win32.h
|
- Modify lib/config-win32.h and src/config-win32.h
|
||||||
- Modify lib/Makefile.vc6
|
- Modify lib/Makefile.vc6
|
||||||
- Add definition to Project/Settings/C/C++/General/Preprocessor Definitions
|
- Modify the "Preprocessor Definitions" in the libcurl project
|
||||||
in the vc6libcurl.dsw/vc6libcurl.dsp Visual C++ 6 IDE project.
|
|
||||||
|
Note: The pre-processor settings can be found using the Visual Studio IDE
|
||||||
|
under "Project -> Settings -> C/C++ -> General" in VC6 and "Project ->
|
||||||
|
Properties -> Configuration Properties -> C/C++ -> Preprocessor" in later
|
||||||
|
versions.
|
||||||
|
|
||||||
Once that libcurl has been built with BSD-style lwIP TCP/IP stack support,
|
Once that libcurl has been built with BSD-style lwIP TCP/IP stack support,
|
||||||
in order to use it with your program it is mandatory that your program
|
in order to use it with your program it is mandatory that your program
|
||||||
@@ -505,9 +471,9 @@ Win32
|
|||||||
add '-DCURL_STATICLIB' to your CFLAGS. Otherwise the linker will look for
|
add '-DCURL_STATICLIB' to your CFLAGS. Otherwise the linker will look for
|
||||||
dynamic import symbols.
|
dynamic import symbols.
|
||||||
|
|
||||||
|
|
||||||
Apple iOS and Mac OS X
|
Apple iOS and Mac OS X
|
||||||
======================
|
======================
|
||||||
|
|
||||||
On recent Apple operating systems, curl can be built to use Apple's
|
On recent Apple operating systems, curl can be built to use Apple's
|
||||||
SSL/TLS implementation, Secure Transport, instead of OpenSSL. To build with
|
SSL/TLS implementation, Secure Transport, instead of OpenSSL. To build with
|
||||||
Secure Transport for SSL/TLS, use the configure option --with-darwinssl. (It
|
Secure Transport for SSL/TLS, use the configure option --with-darwinssl. (It
|
||||||
@@ -537,9 +503,9 @@ Apple iOS and Mac OS X
|
|||||||
./configure --with-darwinssl
|
./configure --with-darwinssl
|
||||||
make
|
make
|
||||||
|
|
||||||
|
|
||||||
IBM OS/2
|
IBM OS/2
|
||||||
========
|
========
|
||||||
|
|
||||||
Building under OS/2 is not much different from building under unix.
|
Building under OS/2 is not much different from building under unix.
|
||||||
You need:
|
You need:
|
||||||
|
|
||||||
@@ -567,9 +533,9 @@ IBM OS/2
|
|||||||
If you're getting huge binaries, probably your makefiles have the -g in
|
If you're getting huge binaries, probably your makefiles have the -g in
|
||||||
CFLAGS.
|
CFLAGS.
|
||||||
|
|
||||||
|
|
||||||
VMS
|
VMS
|
||||||
===
|
===
|
||||||
|
|
||||||
(The VMS section is in whole contributed by the friendly Nico Baggus)
|
(The VMS section is in whole contributed by the friendly Nico Baggus)
|
||||||
|
|
||||||
Curl seems to work with FTP & HTTP other protocols are not tested. (the
|
Curl seems to work with FTP & HTTP other protocols are not tested. (the
|
||||||
@@ -614,6 +580,7 @@ VMS
|
|||||||
the name can be fetched from external or internal message libraries
|
the name can be fetched from external or internal message libraries
|
||||||
Error code - the err codes assigned by the application
|
Error code - the err codes assigned by the application
|
||||||
Sev. - severity: Even = error, off = non error
|
Sev. - severity: Even = error, off = non error
|
||||||
|
|
||||||
0 = Warning
|
0 = Warning
|
||||||
1 = Success
|
1 = Success
|
||||||
2 = Error
|
2 = Error
|
||||||
@@ -635,12 +602,13 @@ VMS
|
|||||||
Compaq C V6.2-003 on OpenVMS Alpha V7.1-1H2
|
Compaq C V6.2-003 on OpenVMS Alpha V7.1-1H2
|
||||||
|
|
||||||
So far for porting notes as of:
|
So far for porting notes as of:
|
||||||
|
|
||||||
13-jul-2001
|
13-jul-2001
|
||||||
N. Baggus
|
N. Baggus
|
||||||
|
|
||||||
|
|
||||||
QNX
|
QNX
|
||||||
===
|
===
|
||||||
|
|
||||||
(This section was graciously brought to us by David Bentham)
|
(This section was graciously brought to us by David Bentham)
|
||||||
|
|
||||||
As QNX is targeted for resource constrained environments, the QNX headers
|
As QNX is targeted for resource constrained environments, the QNX headers
|
||||||
@@ -651,11 +619,12 @@ QNX
|
|||||||
|
|
||||||
A good all-round solution to this is to override the default when building
|
A good all-round solution to this is to override the default when building
|
||||||
libcurl, by overriding CFLAGS during configure, example
|
libcurl, by overriding CFLAGS during configure, example
|
||||||
# configure CFLAGS='-DFD_SETSIZE=64 -g -O2'
|
|
||||||
|
|
||||||
|
# configure CFLAGS='-DFD_SETSIZE=64 -g -O2'
|
||||||
|
|
||||||
RISC OS
|
RISC OS
|
||||||
=======
|
=======
|
||||||
|
|
||||||
The library can be cross-compiled using gccsdk as follows:
|
The library can be cross-compiled using gccsdk as follows:
|
||||||
|
|
||||||
CC=riscos-gcc AR=riscos-ar RANLIB='riscos-ar -s' ./configure \
|
CC=riscos-gcc AR=riscos-ar RANLIB='riscos-ar -s' ./configure \
|
||||||
@@ -665,9 +634,9 @@ RISC OS
|
|||||||
where riscos-gcc and riscos-ar are links to the gccsdk tools.
|
where riscos-gcc and riscos-ar are links to the gccsdk tools.
|
||||||
You can then link your program with curl/lib/.libs/libcurl.a
|
You can then link your program with curl/lib/.libs/libcurl.a
|
||||||
|
|
||||||
|
|
||||||
AmigaOS
|
AmigaOS
|
||||||
=======
|
=======
|
||||||
|
|
||||||
(This section was graciously brought to us by Diego Casorran)
|
(This section was graciously brought to us by Diego Casorran)
|
||||||
|
|
||||||
To build cURL/libcurl on AmigaOS just type 'make amiga' ...
|
To build cURL/libcurl on AmigaOS just type 'make amiga' ...
|
||||||
@@ -687,10 +656,11 @@ AmigaOS
|
|||||||
To enable SSL support, you need a OpenSSL native version (without ixemul),
|
To enable SSL support, you need a OpenSSL native version (without ixemul),
|
||||||
you can find a precompiled package at http://amiga.sourceforge.net/OpenSSL/
|
you can find a precompiled package at http://amiga.sourceforge.net/OpenSSL/
|
||||||
|
|
||||||
|
|
||||||
NetWare
|
NetWare
|
||||||
=======
|
=======
|
||||||
|
|
||||||
To compile curl.nlm / libcurl.nlm you need:
|
To compile curl.nlm / libcurl.nlm you need:
|
||||||
|
|
||||||
- either any gcc / nlmconv, or CodeWarrior 7 PDK 4 or later.
|
- either any gcc / nlmconv, or CodeWarrior 7 PDK 4 or later.
|
||||||
- gnu make and awk running on the platform you compile on;
|
- gnu make and awk running on the platform you compile on;
|
||||||
native Win32 versions can be downloaded from:
|
native Win32 versions can be downloaded from:
|
||||||
@@ -731,9 +701,9 @@ NetWare
|
|||||||
the status of these builds can be viewed at the autobuild table:
|
the status of these builds can be viewed at the autobuild table:
|
||||||
http://curl.haxx.se/dev/builds.html
|
http://curl.haxx.se/dev/builds.html
|
||||||
|
|
||||||
|
|
||||||
eCos
|
eCos
|
||||||
====
|
====
|
||||||
|
|
||||||
curl does not use the eCos build system, so you must first build eCos
|
curl does not use the eCos build system, so you must first build eCos
|
||||||
separately, then link curl to the resulting eCos library. Here's a sample
|
separately, then link curl to the resulting eCos library. Here's a sample
|
||||||
configure line to do so on an x86 Linux box targeting x86:
|
configure line to do so on an x86 Linux box targeting x86:
|
||||||
@@ -801,9 +771,9 @@ eCos
|
|||||||
|
|
||||||
config.errors = stderr; /* default errors to stderr */
|
config.errors = stderr; /* default errors to stderr */
|
||||||
|
|
||||||
|
|
||||||
Minix
|
Minix
|
||||||
=====
|
=====
|
||||||
|
|
||||||
curl can be compiled on Minix 3 using gcc or ACK (starting with
|
curl can be compiled on Minix 3 using gcc or ACK (starting with
|
||||||
ver. 3.1.3). Ensure that GNU gawk and bash are both installed and
|
ver. 3.1.3). Ensure that GNU gawk and bash are both installed and
|
||||||
available in the PATH.
|
available in the PATH.
|
||||||
@@ -833,9 +803,9 @@ Minix
|
|||||||
make
|
make
|
||||||
chmem =256000 src/curl
|
chmem =256000 src/curl
|
||||||
|
|
||||||
|
|
||||||
Symbian OS
|
Symbian OS
|
||||||
==========
|
==========
|
||||||
|
|
||||||
The Symbian OS port uses the Symbian build system to compile. From the
|
The Symbian OS port uses the Symbian build system to compile. From the
|
||||||
packages/Symbian/group/ directory, run:
|
packages/Symbian/group/ directory, run:
|
||||||
|
|
||||||
@@ -846,9 +816,9 @@ Symbian OS
|
|||||||
SDK doesn't include support for P.I.P.S., you will need to contact
|
SDK doesn't include support for P.I.P.S., you will need to contact
|
||||||
your SDK vendor to obtain that first.
|
your SDK vendor to obtain that first.
|
||||||
|
|
||||||
|
|
||||||
VxWorks
|
VxWorks
|
||||||
========
|
========
|
||||||
|
|
||||||
Build for VxWorks is performed using cross compilation.
|
Build for VxWorks is performed using cross compilation.
|
||||||
That means you build on Windows machine using VxWorks tools and
|
That means you build on Windows machine using VxWorks tools and
|
||||||
run the built image on the VxWorks device.
|
run the built image on the VxWorks device.
|
||||||
@@ -872,13 +842,15 @@ VxWorks
|
|||||||
As a result the libcurl.a library should be created in the 'lib' folder.
|
As a result the libcurl.a library should be created in the 'lib' folder.
|
||||||
To clean the build results type 'make -f ./Makefile.vxworks clean'.
|
To clean the build results type 'make -f ./Makefile.vxworks clean'.
|
||||||
|
|
||||||
|
|
||||||
Android
|
Android
|
||||||
=======
|
=======
|
||||||
|
|
||||||
Method using the static makefile:
|
Method using the static makefile:
|
||||||
|
|
||||||
- see the build notes in the packages/Android/Android.mk file.
|
- see the build notes in the packages/Android/Android.mk file.
|
||||||
|
|
||||||
Method using a configure cross-compile (tested with Android NDK r7c, r8):
|
Method using a configure cross-compile (tested with Android NDK r7c, r8):
|
||||||
|
|
||||||
- prepare the toolchain of the Android NDK for standalone use; this can
|
- prepare the toolchain of the Android NDK for standalone use; this can
|
||||||
be done by invoking the script:
|
be done by invoking the script:
|
||||||
./build/tools/make-standalone-toolchain.sh
|
./build/tools/make-standalone-toolchain.sh
|
||||||
@@ -900,7 +872,8 @@ Android
|
|||||||
found in your automake folder:
|
found in your automake folder:
|
||||||
find /usr -name config.sub
|
find /usr -name config.sub
|
||||||
|
|
||||||
Wrapper for pkg-config
|
Wrapper for pkg-config:
|
||||||
|
|
||||||
- In order to make proper use of pkg-config so that configure is able to
|
- In order to make proper use of pkg-config so that configure is able to
|
||||||
find all dependencies you should create a wrapper script for pkg-config;
|
find all dependencies you should create a wrapper script for pkg-config;
|
||||||
file /opt/arm-linux-androideabi-4.4.3/bin/arm-linux-androideabi-pkg-config:
|
file /opt/arm-linux-androideabi-4.4.3/bin/arm-linux-androideabi-pkg-config:
|
||||||
@@ -914,9 +887,9 @@ Android
|
|||||||
|
|
||||||
also create a copy or symlink with name arm-unknown-linux-androideabi-pkg-config.
|
also create a copy or symlink with name arm-unknown-linux-androideabi-pkg-config.
|
||||||
|
|
||||||
|
|
||||||
CROSS COMPILE
|
CROSS COMPILE
|
||||||
=============
|
=============
|
||||||
|
|
||||||
(This section was graciously brought to us by Jim Duey, with additions by
|
(This section was graciously brought to us by Jim Duey, with additions by
|
||||||
Dan Fandrich)
|
Dan Fandrich)
|
||||||
|
|
||||||
@@ -962,9 +935,9 @@ CROSS COMPILE
|
|||||||
|
|
||||||
./configure --host=ARCH-OS
|
./configure --host=ARCH-OS
|
||||||
|
|
||||||
|
|
||||||
REDUCING SIZE
|
REDUCING SIZE
|
||||||
=============
|
=============
|
||||||
|
|
||||||
There are a number of configure options that can be used to reduce the
|
There are a number of configure options that can be used to reduce the
|
||||||
size of libcurl for embedded applications where binary size is an
|
size of libcurl for embedded applications where binary size is an
|
||||||
important factor. First, be sure to set the CFLAGS variable when
|
important factor. First, be sure to set the CFLAGS variable when
|
||||||
@@ -993,6 +966,7 @@ REDUCING SIZE
|
|||||||
--disable-verbose (eliminates debugging strings and error code strings)
|
--disable-verbose (eliminates debugging strings and error code strings)
|
||||||
--enable-hidden-symbols (eliminates unneeded symbols in the shared library)
|
--enable-hidden-symbols (eliminates unneeded symbols in the shared library)
|
||||||
--without-libidn (disables support for the libidn DNS library)
|
--without-libidn (disables support for the libidn DNS library)
|
||||||
|
--without-librtmp (disables support for RTMP)
|
||||||
--without-ssl (disables support for SSL/TLS)
|
--without-ssl (disables support for SSL/TLS)
|
||||||
--without-zlib (disables support for on-the-fly decompression)
|
--without-zlib (disables support for on-the-fly decompression)
|
||||||
|
|
||||||
@@ -1000,6 +974,7 @@ REDUCING SIZE
|
|||||||
size of the libcurl dynamic libraries on some platforms even further.
|
size of the libcurl dynamic libraries on some platforms even further.
|
||||||
Specify them by providing appropriate CFLAGS and LDFLAGS variables on the
|
Specify them by providing appropriate CFLAGS and LDFLAGS variables on the
|
||||||
configure command-line, e.g.
|
configure command-line, e.g.
|
||||||
|
|
||||||
CFLAGS="-Os -ffunction-sections -fdata-sections \
|
CFLAGS="-Os -ffunction-sections -fdata-sections \
|
||||||
-fno-unwind-tables -fno-asynchronous-unwind-tables" \
|
-fno-unwind-tables -fno-asynchronous-unwind-tables" \
|
||||||
LDFLAGS="-Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections"
|
LDFLAGS="-Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections"
|
||||||
@@ -1011,9 +986,9 @@ REDUCING SIZE
|
|||||||
.comment section).
|
.comment section).
|
||||||
|
|
||||||
Using these techniques it is possible to create a basic HTTP-only shared
|
Using these techniques it is possible to create a basic HTTP-only shared
|
||||||
libcurl library for i386 Linux platforms that is only 106 KiB in size, and
|
libcurl library for i386 Linux platforms that is only 114 KiB in size, and
|
||||||
an FTP-only library that is 108 KiB in size (as of libcurl version 7.27.0,
|
an FTP-only library that is 115 KiB in size (as of libcurl version 7.35.0,
|
||||||
using gcc 4.6.3).
|
using gcc 4.8.2).
|
||||||
|
|
||||||
You may find that statically linking libcurl to your application will
|
You may find that statically linking libcurl to your application will
|
||||||
result in a lower total size than dynamically linking.
|
result in a lower total size than dynamically linking.
|
||||||
@@ -1025,13 +1000,12 @@ REDUCING SIZE
|
|||||||
command line. Following is a list of appropriate key words:
|
command line. Following is a list of appropriate key words:
|
||||||
|
|
||||||
--disable-cookies !cookies
|
--disable-cookies !cookies
|
||||||
--disable-crypto-auth !HTTP\ Digest\ auth !HTTP\ proxy\ Digest\ auth
|
|
||||||
--disable-manual !--manual
|
--disable-manual !--manual
|
||||||
--disable-proxy !HTTP\ proxy !proxytunnel !SOCKS4 !SOCKS5
|
--disable-proxy !HTTP\ proxy !proxytunnel !SOCKS4 !SOCKS5
|
||||||
|
|
||||||
|
|
||||||
PORTS
|
PORTS
|
||||||
=====
|
=====
|
||||||
|
|
||||||
This is a probably incomplete list of known hardware and operating systems
|
This is a probably incomplete list of known hardware and operating systems
|
||||||
that curl has been compiled for. If you know a system curl compiles and
|
that curl has been compiled for. If you know a system curl compiles and
|
||||||
runs on, that isn't listed, please let us know!
|
runs on, that isn't listed, please let us know!
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ Current flaws in the curl CMake build
|
|||||||
Missing features in the cmake build:
|
Missing features in the cmake build:
|
||||||
|
|
||||||
- Builds libcurl without large file support
|
- Builds libcurl without large file support
|
||||||
- It doesn't build src/tool_hugehelp.c which creates the --manual output
|
|
||||||
- Can't select which SSL library to build with, only OpenSSL
|
- Can't select which SSL library to build with, only OpenSSL
|
||||||
- Doesn't build with SCP and SFTP support (libssh2)
|
- Doesn't build with SCP and SFTP support (libssh2)
|
||||||
- Doesn't allow different resolver backends (no c-ares build support)
|
- Doesn't allow different resolver backends (no c-ares build support)
|
||||||
@@ -32,7 +31,6 @@ Current flaws in the curl CMake build
|
|||||||
- Doesn't allow build curl and libcurl debug enabled
|
- Doesn't allow build curl and libcurl debug enabled
|
||||||
- Doesn't allow a custom CA bundle path
|
- Doesn't allow a custom CA bundle path
|
||||||
- Doesn't allow you to disable specific protocols from the build
|
- Doesn't allow you to disable specific protocols from the build
|
||||||
- Doesn't properly enable IPv6 support by default
|
|
||||||
- Doesn't find or use krb4 or GSS
|
- Doesn't find or use krb4 or GSS
|
||||||
- Rebuilds test files too eagerly, but still can't run the tests
|
- Rebuilds test files too eagerly, but still can't run the tests
|
||||||
|
|
||||||
@@ -71,7 +69,7 @@ Command Line CMake
|
|||||||
|
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
(The teste suit does not work with the cmake build)
|
(The test suite does not work with the cmake build)
|
||||||
|
|
||||||
ccmake
|
ccmake
|
||||||
=========
|
=========
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ INTERNALS
|
|||||||
|
|
||||||
GIT
|
GIT
|
||||||
===
|
===
|
||||||
|
|
||||||
All changes to the sources are committed to the git repository as soon as
|
All changes to the sources are committed to the git repository as soon as
|
||||||
they're somewhat verified to work. Changes shall be committed as independently
|
they're somewhat verified to work. Changes shall be committed as independently
|
||||||
as possible so that individual changes can be easier spotted and tracked
|
as possible so that individual changes can be easier spotted and tracked
|
||||||
@@ -33,7 +34,7 @@ Portability
|
|||||||
want it to remain functional and buildable with these and later versions
|
want it to remain functional and buildable with these and later versions
|
||||||
(older versions may still work but is not what we work hard to maintain):
|
(older versions may still work but is not what we work hard to maintain):
|
||||||
|
|
||||||
OpenSSL 0.9.6
|
OpenSSL 0.9.7
|
||||||
GnuTLS 1.2
|
GnuTLS 1.2
|
||||||
zlib 1.1.4
|
zlib 1.1.4
|
||||||
libssh2 0.16
|
libssh2 0.16
|
||||||
@@ -41,11 +42,13 @@ Portability
|
|||||||
libidn 0.4.1
|
libidn 0.4.1
|
||||||
cyassl 2.0.0
|
cyassl 2.0.0
|
||||||
openldap 2.0
|
openldap 2.0
|
||||||
MIT krb5 lib 1.2.4
|
MIT Kerberos 1.2.4
|
||||||
qsossl V5R3M0
|
GSKit V5R3M0
|
||||||
NSS 3.12.x
|
NSS 3.14.x
|
||||||
axTLS 1.2.7
|
axTLS 1.2.7
|
||||||
|
PolarSSL 1.3.0
|
||||||
Heimdal ?
|
Heimdal ?
|
||||||
|
nghttp2 0.6.0
|
||||||
|
|
||||||
On systems where configure runs, we aim at working on them all - if they have
|
On systems where configure runs, we aim at working on them all - if they have
|
||||||
a suitable C compiler. On systems that don't run configure, we strive to keep
|
a suitable C compiler. On systems that don't run configure, we strive to keep
|
||||||
@@ -249,7 +252,9 @@ Library
|
|||||||
|
|
||||||
Kerberos
|
Kerberos
|
||||||
|
|
||||||
The kerberos support is mainly in lib/krb4.c and lib/security.c.
|
Kerberos support is mainly in lib/krb5.c and lib/security.c but also
|
||||||
|
curl_sasl_sspi.c and curl_sasl_gssapi.c for the email protocols and
|
||||||
|
socks_gssapi.c & socks_sspi.c for SOCKS5 proxy specifics.
|
||||||
|
|
||||||
TELNET
|
TELNET
|
||||||
|
|
||||||
@@ -259,10 +264,18 @@ Library
|
|||||||
|
|
||||||
The file:// protocol is dealt with in lib/file.c.
|
The file:// protocol is dealt with in lib/file.c.
|
||||||
|
|
||||||
|
SMB
|
||||||
|
|
||||||
|
The smb:// protocol is dealt with in lib/smb.c.
|
||||||
|
|
||||||
LDAP
|
LDAP
|
||||||
|
|
||||||
Everything LDAP is in lib/ldap.c and lib/openldap.c
|
Everything LDAP is in lib/ldap.c and lib/openldap.c
|
||||||
|
|
||||||
|
E-mail
|
||||||
|
|
||||||
|
The e-mail related source code is in lib/imap.c, lib/pop3.c and lib/smtp.c.
|
||||||
|
|
||||||
GENERAL
|
GENERAL
|
||||||
|
|
||||||
URL encoding and decoding, called escaping and unescaping in the source code,
|
URL encoding and decoding, called escaping and unescaping in the source code,
|
||||||
@@ -300,7 +313,7 @@ Persistent Connections
|
|||||||
o When libcurl is told to perform a transfer, it first checks for an already
|
o When libcurl is told to perform a transfer, it first checks for an already
|
||||||
existing connection in the cache that we can use. Otherwise it creates a
|
existing connection in the cache that we can use. Otherwise it creates a
|
||||||
new one and adds that the cache. If the cache is full already when a new
|
new one and adds that the cache. If the cache is full already when a new
|
||||||
conncetion is added added, it will first close the oldest unused one.
|
connection is added added, it will first close the oldest unused one.
|
||||||
o When the transfer operation is complete, the connection is left
|
o When the transfer operation is complete, the connection is left
|
||||||
open. Particular options may tell libcurl not to, and protocols may signal
|
open. Particular options may tell libcurl not to, and protocols may signal
|
||||||
closure on connections and then they won't be kept open of course.
|
closure on connections and then they won't be kept open of course.
|
||||||
@@ -337,10 +350,10 @@ SSL libraries
|
|||||||
in future libcurl versions.
|
in future libcurl versions.
|
||||||
|
|
||||||
To deal with this internally in the best way possible, we have a generic SSL
|
To deal with this internally in the best way possible, we have a generic SSL
|
||||||
function API as provided by the sslgen.[ch] system, and they are the only SSL
|
function API as provided by the vtls.[ch] system, and they are the only SSL
|
||||||
functions we must use from within libcurl. sslgen is then crafted to use the
|
functions we must use from within libcurl. vtls is then crafted to use the
|
||||||
appropriate lower-level function calls to whatever SSL library that is in
|
appropriate lower-level function calls to whatever SSL library that is in
|
||||||
use.
|
use. For example vtls/openssl.[ch] for the OpenSSL library.
|
||||||
|
|
||||||
Library Symbols
|
Library Symbols
|
||||||
===============
|
===============
|
||||||
|
|||||||
@@ -3,25 +3,39 @@ join in and help us correct one or more of these! Also be sure to check the
|
|||||||
changelog of the current development status, as one or more of these problems
|
changelog of the current development status, as one or more of these problems
|
||||||
may have been fixed since this was written!
|
may have been fixed since this was written!
|
||||||
|
|
||||||
|
88. libcurl doesn't support CURLINFO_FILETIME for SFTP transfers and thus
|
||||||
|
curl's -R option also doesn't work then.
|
||||||
|
|
||||||
|
87. -J/--remote-header-name doesn't decode %-encoded file names. RFC6266
|
||||||
|
details how it should be done. The can of worm is basically that we have no
|
||||||
|
charset handling in curl and ascii >=128 is a challenge for us. Not to
|
||||||
|
mention that decoding also means that we need to check for nastiness that is
|
||||||
|
attempted, like "../" sequences and the like. Probably everything to the left
|
||||||
|
of any embedded slashes should be cut off.
|
||||||
|
http://curl.haxx.se/bug/view.cgi?id=1294
|
||||||
|
|
||||||
|
86. The disconnect commands (LOGOUT and QUIT) may not be sent by IMAP, POP3
|
||||||
|
and SMTP if a failure occurs during the authentication phase of a
|
||||||
|
connection.
|
||||||
|
|
||||||
|
85. Wrong STARTTRANSFER timer accounting for POST requests
|
||||||
|
Timer works fine with GET requests, but while using POST the time for
|
||||||
|
CURLINFO_STARTTRANSFER_TIME is wrong. While using POST
|
||||||
|
CURLINFO_STARTTRANSFER_TIME minus CURLINFO_PRETRANSFER_TIME is near to zero
|
||||||
|
every time.
|
||||||
|
http://curl.haxx.se/bug/view.cgi?id=1213
|
||||||
|
|
||||||
84. CURLINFO_SSL_VERIFYRESULT is only implemented for the OpenSSL and NSS
|
84. CURLINFO_SSL_VERIFYRESULT is only implemented for the OpenSSL and NSS
|
||||||
backends, so relying on this information in a generic app is flaky.
|
backends, so relying on this information in a generic app is flaky.
|
||||||
|
|
||||||
83. curl is unable to load non-default openssl engines, because openssl isn't
|
|
||||||
initialized properly. This seems to require OpenSSL_config() or
|
|
||||||
CONF_modules_load_file() to be used by libcurl but the first seems to not
|
|
||||||
work and we've gotten not reports from tests with the latter. Possibly we
|
|
||||||
need to discuss with OpenSSL developers how this is supposed to be done. We
|
|
||||||
need users with actual external openssl engines for testing to work on this.
|
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1208
|
|
||||||
|
|
||||||
82. When building with the Windows Borland compiler, it fails because the
|
82. When building with the Windows Borland compiler, it fails because the
|
||||||
"tlib" tool doesn't support hyphens (minus signs) in file names and we have
|
"tlib" tool doesn't support hyphens (minus signs) in file names and we have
|
||||||
such in the build.
|
such in the build.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1222
|
http://curl.haxx.se/bug/view.cgi?id=1222
|
||||||
|
|
||||||
81. When using -J (with -O), automaticly resumed downloading together with "-C
|
81. When using -J (with -O), automatically resumed downloading together with
|
||||||
-" fails. Without -J the same command line works! This happens because the
|
"-C -" fails. Without -J the same command line works! This happens because
|
||||||
resume logic is worked out before the target file name (and thus its
|
the resume logic is worked out before the target file name (and thus its
|
||||||
pre-transfer size) has been figured out!
|
pre-transfer size) has been figured out!
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1169
|
http://curl.haxx.se/bug/view.cgi?id=1169
|
||||||
|
|
||||||
@@ -40,22 +54,18 @@ may have been fixed since this was written!
|
|||||||
any file at all. Like when using FTP.
|
any file at all. Like when using FTP.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=1063
|
http://curl.haxx.se/bug/view.cgi?id=1063
|
||||||
|
|
||||||
77. CURLOPT_FORBID_REUSE on a handle prevents NTLM from working since it
|
|
||||||
"abuses" the underlying connection re-use system and if connections are
|
|
||||||
forced to close they break the NTLM support.
|
|
||||||
|
|
||||||
76. The SOCKET type in Win64 is 64 bits large (and thus so is curl_socket_t on
|
76. The SOCKET type in Win64 is 64 bits large (and thus so is curl_socket_t on
|
||||||
that platform), and long is only 32 bits. It makes it impossible for
|
that platform), and long is only 32 bits. It makes it impossible for
|
||||||
curl_easy_getinfo() to return a socket properly with the CURLINFO_LASTSOCKET
|
curl_easy_getinfo() to return a socket properly with the CURLINFO_LASTSOCKET
|
||||||
option as for all other operating systems.
|
option as for all other operating systems.
|
||||||
|
|
||||||
75. NTLM authentication involving unicode user name or password only works
|
75. NTLM authentication involving unicode user name or password only works
|
||||||
properly if built with UNICODE defined together with the schannel/winssl
|
properly if built with UNICODE defined together with the WinSSL/schannel
|
||||||
backend. The original problem was mentioned in:
|
backend. The original problem was mentioned in:
|
||||||
http://curl.haxx.se/mail/lib-2009-10/0024.html
|
http://curl.haxx.se/mail/lib-2009-10/0024.html
|
||||||
http://curl.haxx.se/bug/view.cgi?id=896
|
http://curl.haxx.se/bug/view.cgi?id=896
|
||||||
|
|
||||||
The schannel version verified to work as mentioned in
|
The WinSSL/schannel version verified to work as mentioned in
|
||||||
http://curl.haxx.se/mail/lib-2012-07/0073.html
|
http://curl.haxx.se/mail/lib-2012-07/0073.html
|
||||||
|
|
||||||
73. if a connection is made to a FTP server but the server then just never
|
73. if a connection is made to a FTP server but the server then just never
|
||||||
@@ -160,18 +170,6 @@ may have been fixed since this was written!
|
|||||||
run that might be needed only for building libcurl. Further, curl-config
|
run that might be needed only for building libcurl. Further, curl-config
|
||||||
--cflags suffers from the same effects with CFLAGS/CPPFLAGS.
|
--cflags suffers from the same effects with CFLAGS/CPPFLAGS.
|
||||||
|
|
||||||
30. You need to use -g to the command line tool in order to use RFC2732-style
|
|
||||||
IPv6 numerical addresses in URLs.
|
|
||||||
|
|
||||||
29. IPv6 URLs with zone ID is not nicely supported.
|
|
||||||
http://www.ietf.org/internet-drafts/draft-fenner-literal-zone-02.txt (expired)
|
|
||||||
specifies the use of a plus sign instead of a percent when specifying zone
|
|
||||||
IDs in URLs to get around the problem of percent signs being
|
|
||||||
special. According to the reporter, Firefox deals with the URL _with_ a
|
|
||||||
percent letter (which seems like a blatant URL spec violation).
|
|
||||||
libcurl supports zone IDs where the percent sign is URL-escaped (i.e. %25):
|
|
||||||
http://curl.haxx.se/bug/view.cgi?id=555
|
|
||||||
|
|
||||||
26. NTLM authentication using SSPI (on Windows) when (lib)curl is running in
|
26. NTLM authentication using SSPI (on Windows) when (lib)curl is running in
|
||||||
"system context" will make it use wrong(?) user name - at least when compared
|
"system context" will make it use wrong(?) user name - at least when compared
|
||||||
to what winhttp does. See http://curl.haxx.se/bug/view.cgi?id=535
|
to what winhttp does. See http://curl.haxx.se/bug/view.cgi?id=535
|
||||||
@@ -202,7 +200,7 @@ may have been fixed since this was written!
|
|||||||
be to use a data structure other than a plain C string, one that can handle
|
be to use a data structure other than a plain C string, one that can handle
|
||||||
embedded NUL characters. From a practical standpoint, most FTP servers
|
embedded NUL characters. From a practical standpoint, most FTP servers
|
||||||
would not meaningfully support NUL characters within RFC 959 <string>,
|
would not meaningfully support NUL characters within RFC 959 <string>,
|
||||||
anyway (e.g., UNIX pathnames may not contain NUL).
|
anyway (e.g., Unix pathnames may not contain NUL).
|
||||||
|
|
||||||
14. Test case 165 might fail on a system which has libidn present, but with an
|
14. Test case 165 might fail on a system which has libidn present, but with an
|
||||||
old iconv version (2.1.3 is a known bad version), since it doesn't recognize
|
old iconv version (2.1.3 is a known bad version), since it doesn't recognize
|
||||||
@@ -217,9 +215,9 @@ may have been fixed since this was written!
|
|||||||
acknowledged after the actual TCP connect (during the SOCKS "negotiate"
|
acknowledged after the actual TCP connect (during the SOCKS "negotiate"
|
||||||
phase).
|
phase).
|
||||||
|
|
||||||
10. To get HTTP Negotiate authentication to work fine, you need to provide a
|
10. To get HTTP Negotiate (SPNEGO) authentication to work fine, you need to
|
||||||
(fake) user name (this concerns both curl and the lib) because the code
|
provide a (fake) user name (this concerns both curl and the lib) because the
|
||||||
wrongly only considers authentication if there's a user name provided.
|
code wrongly only considers authentication if there's a user name provided.
|
||||||
http://curl.haxx.se/bug/view.cgi?id=440 How?
|
http://curl.haxx.se/bug/view.cgi?id=440 How?
|
||||||
http://curl.haxx.se/mail/lib-2004-08/0182.html
|
http://curl.haxx.se/mail/lib-2004-08/0182.html
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ for older and later versions as things don't change drastically that often.
|
|||||||
->mstate is the multi state of this particular SessionHandle. When
|
->mstate is the multi state of this particular SessionHandle. When
|
||||||
multi_runsingle() is called, it will act on this handle according to which
|
multi_runsingle() is called, it will act on this handle according to which
|
||||||
state it is in. The mstate is also what tells which sockets to return for a
|
state it is in. The mstate is also what tells which sockets to return for a
|
||||||
speicific SessionHandle when curl_multi_fdset() is called etc.
|
specific SessionHandle when curl_multi_fdset() is called etc.
|
||||||
|
|
||||||
The libcurl source code generally use the name 'data' for the variable that
|
The libcurl source code generally use the name 'data' for the variable that
|
||||||
points to the SessionHandle.
|
points to the SessionHandle.
|
||||||
@@ -60,7 +60,7 @@ for older and later versions as things don't change drastically that often.
|
|||||||
re-use an existing one instead of creating a new as it creates a significant
|
re-use an existing one instead of creating a new as it creates a significant
|
||||||
performance boost.
|
performance boost.
|
||||||
|
|
||||||
Each 'connectdata' identifies a single physical conncetion to a server. If
|
Each 'connectdata' identifies a single physical connection to a server. If
|
||||||
the connection can't be kept alive, the connection will be closed after use
|
the connection can't be kept alive, the connection will be closed after use
|
||||||
and then this struct can be removed from the cache and freed.
|
and then this struct can be removed from the cache and freed.
|
||||||
|
|
||||||
@@ -158,18 +158,18 @@ for older and later versions as things don't change drastically that often.
|
|||||||
|
|
||||||
->do_it is the function called to issue the transfer request. What we call
|
->do_it is the function called to issue the transfer request. What we call
|
||||||
the DO action internally. If the DO is not enough and things need to be kept
|
the DO action internally. If the DO is not enough and things need to be kept
|
||||||
getting done for the entier DO sequence to complete, ->doing is then usually
|
getting done for the entire DO sequence to complete, ->doing is then usually
|
||||||
also provided. Each protocol that needs to do multiple commands or similar
|
also provided. Each protocol that needs to do multiple commands or similar
|
||||||
for do/doing need to implement their own state machines (see SCP, SFTP,
|
for do/doing need to implement their own state machines (see SCP, SFTP,
|
||||||
FTP). Some protocols (only FTP and only due to historical reasons) has a
|
FTP). Some protocols (only FTP and only due to historical reasons) has a
|
||||||
separate piece of the DO state called DO_MORE.
|
separate piece of the DO state called DO_MORE.
|
||||||
|
|
||||||
->doing keeps getting called while issudeing the transfer request command(s)
|
->doing keeps getting called while issuing the transfer request command(s)
|
||||||
|
|
||||||
->done gets called when the transfer is complete and DONE. That's after the
|
->done gets called when the transfer is complete and DONE. That's after the
|
||||||
main data has been transferred.
|
main data has been transferred.
|
||||||
|
|
||||||
->do_more gets called doring the DO_MORE state. The FTP protocol uses this
|
->do_more gets called during the DO_MORE state. The FTP protocol uses this
|
||||||
state when setting up the second connection.
|
state when setting up the second connection.
|
||||||
|
|
||||||
->proto_getsock
|
->proto_getsock
|
||||||
|
|||||||
@@ -21,9 +21,7 @@ announcement clause that collides with GPL.
|
|||||||
libcurl http://curl.haxx.se/docs/copyright.html
|
libcurl http://curl.haxx.se/docs/copyright.html
|
||||||
|
|
||||||
Uses an MIT (or Modified BSD)-style license that is as liberal as
|
Uses an MIT (or Modified BSD)-style license that is as liberal as
|
||||||
possible. Some of the source files that deal with KRB4 have Original
|
possible.
|
||||||
BSD-style announce-clause licenses. You may not distribute binaries
|
|
||||||
with krb4-enabled libcurl that also link with GPL-licensed code!
|
|
||||||
|
|
||||||
OpenSSL http://www.openssl.org/source/license.html
|
OpenSSL http://www.openssl.org/source/license.html
|
||||||
|
|
||||||
@@ -70,14 +68,6 @@ zlib http://www.gzip.org/zlib/zlib_license.html
|
|||||||
(Used for compressed Transfer-Encoding support) Uses an MIT-style
|
(Used for compressed Transfer-Encoding support) Uses an MIT-style
|
||||||
license that shouldn't collide with any other library.
|
license that shouldn't collide with any other library.
|
||||||
|
|
||||||
krb4
|
|
||||||
|
|
||||||
While nothing in particular says that a Kerberos4 library must use any
|
|
||||||
particular license, the one I've tried and used successfully so far
|
|
||||||
(kth-krb4) is partly Original BSD-licensed with the announcement
|
|
||||||
clause. Some of the code in libcurl that is written to deal with
|
|
||||||
Kerberos4 is Modified BSD-licensed.
|
|
||||||
|
|
||||||
MIT Kerberos http://web.mit.edu/kerberos/www/dist/
|
MIT Kerberos http://web.mit.edu/kerberos/www/dist/
|
||||||
|
|
||||||
(May be used for GSS support) MIT licensed, that shouldn't collide
|
(May be used for GSS support) MIT licensed, that shouldn't collide
|
||||||
@@ -94,12 +84,6 @@ GNU GSS http://www.gnu.org/software/gss/
|
|||||||
may not distribute binary curl packages that uses this if you build
|
may not distribute binary curl packages that uses this if you build
|
||||||
curl to also link and use any Original BSD licensed libraries!
|
curl to also link and use any Original BSD licensed libraries!
|
||||||
|
|
||||||
fbopenssl
|
|
||||||
|
|
||||||
(Used for SPNEGO support) Unclear license. Based on its name, I assume
|
|
||||||
that it uses the OpenSSL license and thus shares the same issues as
|
|
||||||
described for OpenSSL above.
|
|
||||||
|
|
||||||
libidn http://josefsson.org/libidn/
|
libidn http://josefsson.org/libidn/
|
||||||
|
|
||||||
(Used for IDNA support) Uses the GNU Lesser General Public
|
(Used for IDNA support) Uses the GNU Lesser General Public
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ MAIL ETIQUETTE
|
|||||||
1.5 Moderation of new posters
|
1.5 Moderation of new posters
|
||||||
1.6 Handling trolls and spam
|
1.6 Handling trolls and spam
|
||||||
1.7 How to unsubscribe
|
1.7 How to unsubscribe
|
||||||
|
1.8 I posted, now what?
|
||||||
|
|
||||||
2. Sending mail
|
2. Sending mail
|
||||||
2.1 Reply or New Mail
|
2.1 Reply or New Mail
|
||||||
@@ -105,7 +106,7 @@ MAIL ETIQUETTE
|
|||||||
No matter what, we NEVER EVER respond to trolls or spammers on the list. If
|
No matter what, we NEVER EVER respond to trolls or spammers on the list. If
|
||||||
you believe the list admin should do something particular, contact him/her
|
you believe the list admin should do something particular, contact him/her
|
||||||
off-list. The subject will be taken care of as good as possible to prevent
|
off-list. The subject will be taken care of as good as possible to prevent
|
||||||
repeated offences, but responding on the list to such messages never lead to
|
repeated offenses, but responding on the list to such messages never lead to
|
||||||
anything good and only puts the light even more on the offender: which was
|
anything good and only puts the light even more on the offender: which was
|
||||||
the entire purpose of it getting to the list in the first place.
|
the entire purpose of it getting to the list in the first place.
|
||||||
|
|
||||||
@@ -125,6 +126,42 @@ MAIL ETIQUETTE
|
|||||||
You NEVER EVER email the mailing list requesting someone else to get you off
|
You NEVER EVER email the mailing list requesting someone else to get you off
|
||||||
the list.
|
the list.
|
||||||
|
|
||||||
|
1.8 I posted, now what?
|
||||||
|
|
||||||
|
If you aren't subscribed with the exact same email address that you used to
|
||||||
|
send the email, your post will just be silently discarded.
|
||||||
|
|
||||||
|
If you posted for the first time to the mailing list, you first need to wait
|
||||||
|
for an administrator to allow your email to go through. This normally
|
||||||
|
happens very quickly but in case we're asleep, you may have to wait a few
|
||||||
|
hours.
|
||||||
|
|
||||||
|
Once your email goes through it is sent out to several hundred or even
|
||||||
|
thousand recipients. Your email may cover an area that not that many people
|
||||||
|
know about or are interested in. Or possibly the person who knows about it
|
||||||
|
is on vacation or under a very heavy work load right now. You have to wait
|
||||||
|
for a response and you must not expect to get a response at all, but
|
||||||
|
hopefully you get an answer within a couple of days.
|
||||||
|
|
||||||
|
You do yourself and all of us a service when you include as many details as
|
||||||
|
possible already in your first email. Mention your operating system and
|
||||||
|
environment. Tell us which curl version you're using and tell us what you
|
||||||
|
did, what happened and what you expected would happen. Preferably, show us
|
||||||
|
what you did in details enough to allow others to help point out the problem
|
||||||
|
or repeat the same steps in their places.
|
||||||
|
|
||||||
|
Failing to include details will only delay responses and make people respond
|
||||||
|
and ask for the details and you have to send a follow-up email that includes
|
||||||
|
them.
|
||||||
|
|
||||||
|
Expect the responses to primarily help YOU debug the issue, or ask you
|
||||||
|
questions that can lead you or others towards a solution or explanation to
|
||||||
|
whatever you experience.
|
||||||
|
|
||||||
|
If you are a repeat offender to the guidelines outlined in this document,
|
||||||
|
chances are that people will ignore you at will and your chances to get
|
||||||
|
responses will greatly diminish.
|
||||||
|
|
||||||
|
|
||||||
2. Sending mail
|
2. Sending mail
|
||||||
|
|
||||||
|
|||||||
51
docs/MANUAL
51
docs/MANUAL
@@ -41,16 +41,27 @@ SIMPLE USAGE
|
|||||||
|
|
||||||
Get a file from an SSH server using SFTP:
|
Get a file from an SSH server using SFTP:
|
||||||
|
|
||||||
curl -u username sftp://shell.example.com/etc/issue
|
curl -u username sftp://example.com/etc/issue
|
||||||
|
|
||||||
Get a file from an SSH server using SCP using a private key to authenticate:
|
Get a file from an SSH server using SCP using a private key
|
||||||
|
(not password-protected) to authenticate:
|
||||||
|
|
||||||
curl -u username: --key ~/.ssh/id_dsa --pubkey ~/.ssh/id_dsa.pub \
|
curl -u username: --key ~/.ssh/id_rsa \
|
||||||
scp://shell.example.com/~/personal.txt
|
scp://example.com/~/file.txt
|
||||||
|
|
||||||
|
Get a file from an SSH server using SCP using a private key
|
||||||
|
(password-protected) to authenticate:
|
||||||
|
|
||||||
|
curl -u username: --key ~/.ssh/id_rsa --pass private_key_password \
|
||||||
|
scp://example.com/~/file.txt
|
||||||
|
|
||||||
Get the main page from an IPv6 web server:
|
Get the main page from an IPv6 web server:
|
||||||
|
|
||||||
curl -g "http://[2001:1890:1112:1::20]/"
|
curl "http://[2001:1890:1112:1::20]/"
|
||||||
|
|
||||||
|
Get a file from an SMB server:
|
||||||
|
|
||||||
|
curl -u "domain\username:passwd" smb://server.example.com/share/file.txt
|
||||||
|
|
||||||
DOWNLOAD TO A FILE
|
DOWNLOAD TO A FILE
|
||||||
|
|
||||||
@@ -91,10 +102,13 @@ USING PASSWORDS
|
|||||||
|
|
||||||
SFTP / SCP
|
SFTP / SCP
|
||||||
|
|
||||||
This is similar to FTP, but you can specify a private key to use instead of
|
This is similar to FTP, but you can use the --key option to specify a
|
||||||
a password. Note that the private key may itself be protected by a password
|
private key to use instead of a password. Note that the private key may
|
||||||
that is unrelated to the login password of the remote system. If you
|
itself be protected by a password that is unrelated to the login password
|
||||||
provide a private key file you must also provide a public key file.
|
of the remote system; this password is specified using the --pass option.
|
||||||
|
Typically, curl will automatically extract the public key from the private
|
||||||
|
key file, but in cases where curl does not have the proper library support,
|
||||||
|
a matching public key file must be specified using the --pubkey option.
|
||||||
|
|
||||||
HTTP
|
HTTP
|
||||||
|
|
||||||
@@ -108,10 +122,10 @@ USING PASSWORDS
|
|||||||
curl -u name:passwd http://machine.domain/full/path/to/file
|
curl -u name:passwd http://machine.domain/full/path/to/file
|
||||||
|
|
||||||
HTTP offers many different methods of authentication and curl supports
|
HTTP offers many different methods of authentication and curl supports
|
||||||
several: Basic, Digest, NTLM and Negotiate. Without telling which method to
|
several: Basic, Digest, NTLM and Negotiate (SPNEGO). Without telling which
|
||||||
use, curl defaults to Basic. You can also ask curl to pick the most secure
|
method to use, curl defaults to Basic. You can also ask curl to pick the
|
||||||
ones out of the ones that the server accepts for the given URL, by using
|
most secure ones out of the ones that the server accepts for the given URL,
|
||||||
--anyauth.
|
by using --anyauth.
|
||||||
|
|
||||||
NOTE! According to the URL specification, HTTP URLs can not contain a user
|
NOTE! According to the URL specification, HTTP URLs can not contain a user
|
||||||
and password, so that style will not work when using curl via a proxy, even
|
and password, so that style will not work when using curl via a proxy, even
|
||||||
@@ -218,6 +232,11 @@ UPLOADING
|
|||||||
|
|
||||||
curl --proxytunnel -x proxy:port -T localfile ftp.upload.com
|
curl --proxytunnel -x proxy:port -T localfile ftp.upload.com
|
||||||
|
|
||||||
|
SMB / SMBS
|
||||||
|
|
||||||
|
curl -T file.txt -u "domain\username:passwd"
|
||||||
|
smb://server.example.com/share/
|
||||||
|
|
||||||
HTTP
|
HTTP
|
||||||
|
|
||||||
Upload all data on stdin to a specified HTTP site:
|
Upload all data on stdin to a specified HTTP site:
|
||||||
@@ -956,9 +975,9 @@ IPv6
|
|||||||
When this style is used, the -g option must be given to stop curl from
|
When this style is used, the -g option must be given to stop curl from
|
||||||
interpreting the square brackets as special globbing characters. Link local
|
interpreting the square brackets as special globbing characters. Link local
|
||||||
and site local addresses including a scope identifier, such as fe80::1234%1,
|
and site local addresses including a scope identifier, such as fe80::1234%1,
|
||||||
may also be used, but the scope portion must be numeric and the percent
|
may also be used, but the scope portion must be numeric or match an existing
|
||||||
character must be URL escaped. The previous example in an SFTP URL might
|
network interface on Linux and the percent character must be URL escaped. The
|
||||||
look like:
|
previous example in an SFTP URL might look like:
|
||||||
|
|
||||||
sftp://[fe80::1234%251]/
|
sftp://[fe80::1234%251]/
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
#
|
#
|
||||||
# This software is licensed as described in the file COPYING, which
|
# This software is licensed as described in the file COPYING, which
|
||||||
# you should have received as part of this distribution. The terms
|
# you should have received as part of this distribution. The terms
|
||||||
@@ -37,7 +37,8 @@ EXTRA_DIST = MANUAL BUGS CONTRIBUTE FAQ FEATURES INTERNALS SSLCERTS \
|
|||||||
README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS \
|
README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS \
|
||||||
KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) HISTORY INSTALL \
|
KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) HISTORY INSTALL \
|
||||||
$(PDFPAGES) LICENSE-MIXING README.netware DISTRO-DILEMMA INSTALL.devcpp \
|
$(PDFPAGES) LICENSE-MIXING README.netware DISTRO-DILEMMA INSTALL.devcpp \
|
||||||
MAIL-ETIQUETTE HTTP-COOKIES LIBCURL-STRUCTS
|
MAIL-ETIQUETTE HTTP-COOKIES LIBCURL-STRUCTS SECURITY RELEASE-PROCEDURE \
|
||||||
|
SSL-PROBLEMS
|
||||||
|
|
||||||
MAN2HTML= roffit < $< >$@
|
MAN2HTML= roffit < $< >$@
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ README.netware
|
|||||||
|
|
||||||
Curl has been successfully compiled with gcc / nlmconv on different flavours
|
Curl has been successfully compiled with gcc / nlmconv on different flavours
|
||||||
of Linux as well as with the official Metrowerks CodeWarrior compiler.
|
of Linux as well as with the official Metrowerks CodeWarrior compiler.
|
||||||
While not being the main development target, a continously growing share of
|
While not being the main development target, a continuously growing share of
|
||||||
curl users are NetWare-based, specially also consuming the lib from PHP.
|
curl users are NetWare-based, specially also consuming the lib from PHP.
|
||||||
|
|
||||||
The unix-style man pages are tricky to read on windows, so therefore are all
|
The unix-style man pages are tricky to read on windows, so therefore are all
|
||||||
|
|||||||
94
docs/RELEASE-PROCEDURE
Normal file
94
docs/RELEASE-PROCEDURE
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
_ _ ____ _
|
||||||
|
___| | | | _ \| |
|
||||||
|
/ __| | | | |_) | |
|
||||||
|
| (__| |_| | _ <| |___
|
||||||
|
\___|\___/|_| \_\_____|
|
||||||
|
|
||||||
|
curl release procedure - how to do a release
|
||||||
|
============================================
|
||||||
|
|
||||||
|
in the source code repo
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
- edit `RELEASE-NOTES` to be accurate
|
||||||
|
|
||||||
|
- update `docs/THANKS`
|
||||||
|
|
||||||
|
- make sure all relevant changes are committed on the master branch
|
||||||
|
|
||||||
|
- tag the git repo in this style: `git tag -a curl-7_34_0`. -a annotates the
|
||||||
|
tag and we use underscores instead of dots in the version number.
|
||||||
|
|
||||||
|
- run "./maketgz 7.34.0" to build the release tarballs. It is important that
|
||||||
|
you run this on a machine with the correct set of autotools etc installed
|
||||||
|
as this is what then will be shipped and used by most users on *nix like
|
||||||
|
systems.
|
||||||
|
|
||||||
|
- push the git commits and the new tag
|
||||||
|
|
||||||
|
- gpg sign the 4 tarballs as maketgz suggests
|
||||||
|
|
||||||
|
- upload the 8 resulting files to the primary download directory
|
||||||
|
|
||||||
|
in the curl-www repo
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
- edit `Makefile` (version number and date),
|
||||||
|
|
||||||
|
- edit `_newslog.html` (announce the new release) and
|
||||||
|
|
||||||
|
- edit `_changes.html` (insert changes+bugfixes from RELEASE-NOTES)
|
||||||
|
|
||||||
|
- commit all local changes
|
||||||
|
|
||||||
|
- tag the repo with the same tag as used for the source repo
|
||||||
|
|
||||||
|
- make sure all relevant changes are committed and pushed on the master branch
|
||||||
|
|
||||||
|
(the web site then updates its contents automatically)
|
||||||
|
|
||||||
|
inform
|
||||||
|
------
|
||||||
|
|
||||||
|
- send an email to curl-users, curl-announce and curl-library. Insert the
|
||||||
|
RELEASE-NOTES into the mail.
|
||||||
|
|
||||||
|
celebrate
|
||||||
|
---------
|
||||||
|
|
||||||
|
- suitable beverage intake is encouraged for the festivities
|
||||||
|
|
||||||
|
curl release scheduling
|
||||||
|
=======================
|
||||||
|
|
||||||
|
Basics
|
||||||
|
------
|
||||||
|
|
||||||
|
We do releases every 8 weeks on Wednesdays. If critical problems arise, we can
|
||||||
|
insert releases outside of the schedule or we can move the release date - but
|
||||||
|
this is very rare.
|
||||||
|
|
||||||
|
Each 8 week release cycle is split in two 4-week periods.
|
||||||
|
|
||||||
|
- During the first 4 weeks after a release, we allow new features and changes
|
||||||
|
to curl and libcurl. If we accept any such changes, we bump the minor number
|
||||||
|
used for the next release.
|
||||||
|
|
||||||
|
- During the second 4-week period we do not merge any features or changes, we
|
||||||
|
then only focus on fixing bugs and polishing things to make a solid coming
|
||||||
|
release.
|
||||||
|
|
||||||
|
Coming dates
|
||||||
|
------------
|
||||||
|
|
||||||
|
Based on the description above, here are some planned release dates (at the
|
||||||
|
time of this writing):
|
||||||
|
|
||||||
|
- November 5, 2014 (version 7.39.0)
|
||||||
|
- December 31, 2014
|
||||||
|
- February 25, 2015
|
||||||
|
- April 22, 2015
|
||||||
|
- June 17, 2015
|
||||||
|
- August 12, 2015
|
||||||
|
- October 7, 2015
|
||||||
|
- December 2, 2015
|
||||||
83
docs/ROADMAP.md
Normal file
83
docs/ROADMAP.md
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
curl the next few years - perhaps
|
||||||
|
=================================
|
||||||
|
|
||||||
|
Roadmap of things Daniel Stenberg and Steve Holme want to work on next. It is
|
||||||
|
intended to serve as a guideline for others for information, feedback and
|
||||||
|
possible participation.
|
||||||
|
|
||||||
|
New stuff - libcurl
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
1. HTTP/2
|
||||||
|
|
||||||
|
- test suite
|
||||||
|
- http2 multiplexing/pipelining
|
||||||
|
- provide option for HTTP/2 "prior knowledge" over clear text
|
||||||
|
- provide option to allow curl to default to HTTP/2 only when using HTTPS
|
||||||
|
|
||||||
|
2. SRV records
|
||||||
|
|
||||||
|
3. HTTPS to proxy
|
||||||
|
|
||||||
|
4. make sure there's an easy handle passed in to `curl_formadd()`,
|
||||||
|
`curl_formget()` and `curl_formfree()` by adding replacement functions and
|
||||||
|
deprecating the old ones to allow custom mallocs and more
|
||||||
|
|
||||||
|
5. add support for third-party SASL libraries such as Cyrus SASL - may need to
|
||||||
|
move existing native and SSPI based authentication into vsasl folder after
|
||||||
|
reworking HTTP and SASL code
|
||||||
|
|
||||||
|
6. SASL authentication in LDAP
|
||||||
|
|
||||||
|
7. Simplify the SMTP email interface so that programmers don't have to
|
||||||
|
construct the body of an email that contains all the headers, alternative
|
||||||
|
content, images and attachments - maintain raw interface so that
|
||||||
|
programmers that want to do this can
|
||||||
|
|
||||||
|
8. Allow the email protocols to return the capabilities before
|
||||||
|
authenticating. This will allow an application to decide on the best
|
||||||
|
authentication mechanism
|
||||||
|
|
||||||
|
9. Allow Windows threading model to be replaced by Win32 pthreads port
|
||||||
|
|
||||||
|
10. Implement a dynamic buffer size to allow SFTP to use much larger buffers
|
||||||
|
and possibly allow the size to be customizable by applications. Use less
|
||||||
|
memory when handles are not in use?
|
||||||
|
|
||||||
|
New stuff - curl
|
||||||
|
----------------
|
||||||
|
|
||||||
|
1. Embed a language interpreter (lua?). For that middle ground where curl
|
||||||
|
isn’t enough and a libcurl binding feels “too much”. Build-time conditional
|
||||||
|
of course.
|
||||||
|
|
||||||
|
2. Simplify the SMTP command line so that the headers and multi-part content
|
||||||
|
don't have to be constructed before calling curl
|
||||||
|
|
||||||
|
Improve
|
||||||
|
-------
|
||||||
|
|
||||||
|
1. build for windows (considered hard by many users)
|
||||||
|
|
||||||
|
2. curl -h output (considered overwhelming to users)
|
||||||
|
|
||||||
|
3. we have > 160 command line options, is there a way to redo things to
|
||||||
|
simplify or improve the situation as we are likely to keep adding
|
||||||
|
features/options in the future too
|
||||||
|
|
||||||
|
4. docs (considered "bad" by users but how do we make it better?)
|
||||||
|
|
||||||
|
- split up curl.1
|
||||||
|
|
||||||
|
5. authentication framework (consider merging HTTP and SASL authentication to
|
||||||
|
give one API for protocols to call)
|
||||||
|
|
||||||
|
6. Perform some of the clean up from the TODO document, removing old
|
||||||
|
definitions and such like that are currently earmarked to be removed years
|
||||||
|
ago
|
||||||
|
|
||||||
|
Remove
|
||||||
|
------
|
||||||
|
|
||||||
|
1. makefile.vc files as there is no point in maintaining two sets of Windows
|
||||||
|
makefiles. Note: These are currently being used by the Windows autobuilds
|
||||||
107
docs/SECURITY
Normal file
107
docs/SECURITY
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
_ _ ____ _
|
||||||
|
___| | | | _ \| |
|
||||||
|
/ __| | | | |_) | |
|
||||||
|
| (__| |_| | _ <| |___
|
||||||
|
\___|\___/|_| \_\_____|
|
||||||
|
|
||||||
|
curl security for developers
|
||||||
|
============================
|
||||||
|
|
||||||
|
This document is intended to provide guidance to curl developers on how
|
||||||
|
security vulnerabilities should be handled.
|
||||||
|
|
||||||
|
Publishing Information
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
All known and public curl or libcurl related vulnerabilities are listed on
|
||||||
|
[the curl web site security page](http://curl.haxx.se/docs/security.html).
|
||||||
|
|
||||||
|
Security vulnerabilities should not be entered in the project's public bug
|
||||||
|
tracker unless the necessary configuration is in place to limit access to the
|
||||||
|
issue to only the reporter and the project's security team.
|
||||||
|
|
||||||
|
Vulnerability Handling
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
The typical process for handling a new security vulnerability is as follows.
|
||||||
|
|
||||||
|
No information should be made public about a vulnerability until it is
|
||||||
|
formally announced at the end of this process. That means, for example that a
|
||||||
|
bug tracker entry must NOT be created to track the issue since that will make
|
||||||
|
the issue public and it should not be discussed on any of the project's public
|
||||||
|
mailing lists. Also messages associated with any commits should not make
|
||||||
|
any reference to the security nature of the commit if done prior to the public
|
||||||
|
announcement.
|
||||||
|
|
||||||
|
- The person discovering the issue, the reporter, reports the vulnerability
|
||||||
|
privately to `curl-security@haxx.se`. That's an email alias that reaches a
|
||||||
|
handful of selected and trusted people.
|
||||||
|
|
||||||
|
- Messages that do not relate to the reporting or managing of an undisclosed
|
||||||
|
security vulnerability in curl or libcurl are ignored and no further action
|
||||||
|
is required.
|
||||||
|
|
||||||
|
- A person in the security team sends an e-mail to the original reporter to
|
||||||
|
acknowledge the report.
|
||||||
|
|
||||||
|
- The security team investigates the report and either rejects it or accepts
|
||||||
|
it.
|
||||||
|
|
||||||
|
- If the report is rejected, the team writes to the reporter to explain why.
|
||||||
|
|
||||||
|
- If the report is accepted, the team writes to the reporter to let him/her
|
||||||
|
know it is accepted and that they are working on a fix.
|
||||||
|
|
||||||
|
- The security team discusses the problem, works out a fix, considers the
|
||||||
|
impact of the problem and suggests a release schedule. This discussion
|
||||||
|
should involve the reporter as much as possible.
|
||||||
|
|
||||||
|
- The release of the information should be "as soon as possible" and is most
|
||||||
|
often synced with an upcoming release that contains the fix. If the
|
||||||
|
reporter, or anyone else, thinks the next planned release is too far away
|
||||||
|
then a separate earlier release for security reasons should be considered.
|
||||||
|
|
||||||
|
- Write a security advisory draft about the problem that explains what the
|
||||||
|
problem is, its impact, which versions it affects, solutions or
|
||||||
|
workarounds, when the release is out and make sure to credit all
|
||||||
|
contributors properly.
|
||||||
|
|
||||||
|
- Request a CVE number from distros@openwall[1] when also informing and
|
||||||
|
preparing them for the upcoming public security vulnerability announcement -
|
||||||
|
attach the advisory draft for information. Note that 'distros' won't accept
|
||||||
|
an embargo longer than 19 days.
|
||||||
|
|
||||||
|
- Update the "security advisory" with the CVE number.
|
||||||
|
|
||||||
|
- The security team commits the fix in a private branch. The commit message
|
||||||
|
should ideally contain the CVE number. This fix is usually also distributed
|
||||||
|
to the 'distros' mailing list to allow them to use the fix prior to the
|
||||||
|
public announcement.
|
||||||
|
|
||||||
|
- At the day of the next release, the private branch is merged into the master
|
||||||
|
branch and pushed. Once pushed, the information is accessible to the public
|
||||||
|
and the actual release should follow suit immediately afterwards.
|
||||||
|
|
||||||
|
- The project team creates a release that includes the fix.
|
||||||
|
|
||||||
|
- The project team announces the release and the vulnerability to the world in
|
||||||
|
the same manner we always announce releases. It gets sent to the
|
||||||
|
curl-announce, curl-library and curl-users mailing lists.
|
||||||
|
|
||||||
|
- The security web page on the web site should get the new vulnerability
|
||||||
|
mentioned.
|
||||||
|
|
||||||
|
[1] = http://oss-security.openwall.org/wiki/mailing-lists/distros
|
||||||
|
|
||||||
|
CURL-SECURITY (at haxx dot se)
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
Who is on this list? There are a couple of criteria you must meet, and then we
|
||||||
|
might ask you to join the list or you can ask to join it. It really isn't very
|
||||||
|
formal. We basically only require that you have a long-term presence in the
|
||||||
|
curl project and you have shown an understanding for the project and its way
|
||||||
|
of working. You must've been around for a good while and you should have no
|
||||||
|
plans in vanishing in the near future.
|
||||||
|
|
||||||
|
We do not make the list of partipants public mostly because it tends to vary
|
||||||
|
somewhat over time and a list somewhere will only risk getting outdated.
|
||||||
67
docs/SSL-PROBLEMS
Normal file
67
docs/SSL-PROBLEMS
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
_ _ ____ _
|
||||||
|
___| | | | _ \| |
|
||||||
|
/ __| | | | |_) | |
|
||||||
|
| (__| |_| | _ <| |___
|
||||||
|
\___|\___/|_| \_\_____|
|
||||||
|
|
||||||
|
SSL problems
|
||||||
|
|
||||||
|
First, let's establish that we often refer to TLS and SSL interchangeably as
|
||||||
|
SSL here. The current protocol is called TLS, it was called SSL a long time
|
||||||
|
ago.
|
||||||
|
|
||||||
|
There are several known reasons why a connection that involves SSL might
|
||||||
|
fail. This is a document that attempts to details the most common ones and
|
||||||
|
how to mitigate them.
|
||||||
|
|
||||||
|
CA certs
|
||||||
|
|
||||||
|
CA certs are used to digitally verify the server's certificate. You need a
|
||||||
|
"ca bundle" for this. See lots of more details on this in the SSLCERTS
|
||||||
|
document.
|
||||||
|
|
||||||
|
CA bundle missing intermediate certificates
|
||||||
|
|
||||||
|
When using said CA bundle to verify a server cert, you will experience
|
||||||
|
problems if your CA cert does not have the certificates for the
|
||||||
|
intermediates in the whole trust chain.
|
||||||
|
|
||||||
|
SSL version
|
||||||
|
|
||||||
|
Some broken servers fail to support the protocol negotiation properly that
|
||||||
|
SSL servers are supposed to handle. This may cause the connection to fail
|
||||||
|
completely. Sometimes you may need to explicitly select a SSL version to use
|
||||||
|
when connecting to make the connection succeed.
|
||||||
|
|
||||||
|
An additional complication can be that modern SSL libraries sometimes are
|
||||||
|
built with support for older SSL and TLS versions disabled!
|
||||||
|
|
||||||
|
SSL ciphers
|
||||||
|
|
||||||
|
Clients give servers a list of ciphers to select from. If the list doesn't
|
||||||
|
include any ciphers the server wants/can use, the connection handshake
|
||||||
|
fails.
|
||||||
|
|
||||||
|
curl has recently disabled the user of a whole bunch of seriously insecure
|
||||||
|
ciphers from its default set (slightly depending on SSL backend in use).
|
||||||
|
|
||||||
|
You may have to explicitly provide an alternative list of ciphers for curl
|
||||||
|
to use to allow the server to use a WEAK cipher for you.
|
||||||
|
|
||||||
|
Note that these weak ciphers are identified as flawed. For example, this
|
||||||
|
includes symmetric ciphers with less than 128 bit keys and RC4.
|
||||||
|
|
||||||
|
References:
|
||||||
|
|
||||||
|
http://tools.ietf.org/html/draft-popov-tls-prohibiting-rc4-01
|
||||||
|
|
||||||
|
Allow BEAST
|
||||||
|
|
||||||
|
BEAST is the name of a TLS 1.0 attack that surfaced 2011. When adding means
|
||||||
|
to mitigate this attack, it turned out that some broken servers out there in
|
||||||
|
the wild didn't work properly with the BEAST mitigation in place.
|
||||||
|
|
||||||
|
To make such broken servers work, the --ssl-allow-beast option was
|
||||||
|
introduced. Exactly as it sounds, it re-introduces the BEAST vulnerability
|
||||||
|
but on the other hand it allows curl to connect to that kind of strange
|
||||||
|
servers.
|
||||||
125
docs/SSLCERTS
125
docs/SSLCERTS
@@ -1,23 +1,46 @@
|
|||||||
Peer SSL Certificate Verification
|
SSL Certificate Verification
|
||||||
=================================
|
============================
|
||||||
|
|
||||||
(NOTE: If libcurl was built with Schannel or Secure Transport support, then
|
SSL is TLS
|
||||||
this does not apply to you. Scroll down for details on how the OS-native
|
----------
|
||||||
engines handle SSL certificates. If you're not sure, then run "curl -V" and
|
|
||||||
read the results. If the version string says "WinSSL" in it, then it was built
|
SSL is the old name. It is called TLS these days.
|
||||||
with Schannel support.)
|
|
||||||
|
|
||||||
|
Native SSL
|
||||||
|
----------
|
||||||
|
|
||||||
|
If libcurl was built with Schannel or Secure Transport support (the native SSL
|
||||||
|
libraries included in Windows and Mac OS X), then this does not apply to
|
||||||
|
you. Scroll down for details on how the OS-native engines handle SSL
|
||||||
|
certificates. If you're not sure, then run "curl -V" and read the results. If
|
||||||
|
the version string says "WinSSL" in it, then it was built with Schannel
|
||||||
|
support.
|
||||||
|
|
||||||
|
It is about trust
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
This system is about trust. In your local CA cert bundle you have certs from
|
||||||
|
*trusted* Certificate Authorities that you then can use to verify that the
|
||||||
|
server certificates you see are valid. They're signed by one of the CAs you
|
||||||
|
trust.
|
||||||
|
|
||||||
|
Which CAs do you trust? You can decide to trust the same set of companies your
|
||||||
|
operating system trusts, or the set one of the known browsers trust. That's
|
||||||
|
basically trust via someone else you trust. You should just be aware that
|
||||||
|
modern operating systems and browsers are setup to trust *hundreds* of
|
||||||
|
companies and recent years several such CAs have been found untrustworthy.
|
||||||
|
|
||||||
|
Certificate Verification
|
||||||
|
------------------------
|
||||||
|
|
||||||
libcurl performs peer SSL certificate verification by default. This is done
|
libcurl performs peer SSL certificate verification by default. This is done
|
||||||
by using CA cert bundle that the SSL library can use to make sure the peer's
|
by using CA cert bundle that the SSL library can use to make sure the peer's
|
||||||
server certificate is valid.
|
server certificate is valid.
|
||||||
|
|
||||||
If you communicate with HTTPS or FTPS servers using certificates that are
|
If you communicate with HTTPS, FTPS or other TLS-using servers using
|
||||||
signed by CAs present in the bundle, you can be sure that the remote server
|
certificates that are signed by CAs present in the bundle, you can be sure
|
||||||
really is the one it claims to be.
|
that the remote server really is the one it claims to be.
|
||||||
|
|
||||||
Until 7.18.0, curl bundled a severely outdated ca bundle file that was
|
|
||||||
installed by default. These days, the curl archives include no ca certs at
|
|
||||||
all. You need to get them elsewhere. See below for example.
|
|
||||||
|
|
||||||
If the remote server uses a self-signed certificate, if you don't install a CA
|
If the remote server uses a self-signed certificate, if you don't install a CA
|
||||||
cert bundle, if the server uses a certificate signed by a CA that isn't
|
cert bundle, if the server uses a certificate signed by a CA that isn't
|
||||||
@@ -26,13 +49,13 @@ impersonating your favorite site, and you want to transfer files from this
|
|||||||
server, do one of the following:
|
server, do one of the following:
|
||||||
|
|
||||||
1. Tell libcurl to *not* verify the peer. With libcurl you disable this with
|
1. Tell libcurl to *not* verify the peer. With libcurl you disable this with
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
|
`curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);`
|
||||||
|
|
||||||
With the curl command line tool, you disable this with -k/--insecure.
|
With the curl command line tool, you disable this with -k/--insecure.
|
||||||
|
|
||||||
2. Get a CA certificate that can verify the remote server and use the proper
|
2. Get a CA certificate that can verify the remote server and use the proper
|
||||||
option to point out this CA cert for verification when connecting. For
|
option to point out this CA cert for verification when connecting. For
|
||||||
libcurl hackers: curl_easy_setopt(curl, CURLOPT_CAPATH, capath);
|
libcurl hackers: `curl_easy_setopt(curl, CURLOPT_CAPATH, capath);`
|
||||||
|
|
||||||
With the curl command line tool: --cacert [file]
|
With the curl command line tool: --cacert [file]
|
||||||
|
|
||||||
@@ -46,32 +69,32 @@ server, do one of the following:
|
|||||||
If you use Internet Explorer, this is one way to get extract the CA cert
|
If you use Internet Explorer, this is one way to get extract the CA cert
|
||||||
for a particular server:
|
for a particular server:
|
||||||
|
|
||||||
o View the certificate by double-clicking the padlock
|
- View the certificate by double-clicking the padlock
|
||||||
o Find out where the CA certificate is kept (Certificate>
|
- Find out where the CA certificate is kept (Certificate>
|
||||||
Authority Information Access>URL)
|
Authority Information Access>URL)
|
||||||
o Get a copy of the crt file using curl
|
- Get a copy of the crt file using curl
|
||||||
o Convert it from crt to PEM using the openssl tool:
|
- Convert it from crt to PEM using the openssl tool:
|
||||||
openssl x509 -inform DES -in yourdownloaded.crt \
|
openssl x509 -inform DES -in yourdownloaded.crt \
|
||||||
-out outcert.pem -text
|
-out outcert.pem -text
|
||||||
o Append the 'outcert.pem' to the CA cert bundle or use it stand-alone
|
- Append the 'outcert.pem' to the CA cert bundle or use it stand-alone
|
||||||
as described below.
|
as described below.
|
||||||
|
|
||||||
If you use the 'openssl' tool, this is one way to get extract the CA cert
|
If you use the 'openssl' tool, this is one way to get extract the CA cert
|
||||||
for a particular server:
|
for a particular server:
|
||||||
|
|
||||||
o openssl s_client -connect xxxxx.com:443 |tee logfile
|
- `openssl s_client -connect xxxxx.com:443 |tee logfile`
|
||||||
o type "QUIT", followed by the "ENTER" key
|
- type "QUIT", followed by the "ENTER" key
|
||||||
o The certificate will have "BEGIN CERTIFICATE" and "END CERTIFICATE"
|
- The certificate will have "BEGIN CERTIFICATE" and "END CERTIFICATE"
|
||||||
markers.
|
markers.
|
||||||
o If you want to see the data in the certificate, you can do: "openssl
|
- If you want to see the data in the certificate, you can do: "openssl
|
||||||
x509 -inform PEM -in certfile -text -out certdata" where certfile is
|
x509 -inform PEM -in certfile -text -out certdata" where certfile is
|
||||||
the cert you extracted from logfile. Look in certdata.
|
the cert you extracted from logfile. Look in certdata.
|
||||||
o If you want to trust the certificate, you can append it to your
|
- If you want to trust the certificate, you can append it to your
|
||||||
cert_bundle or use it stand-alone as described. Just remember that the
|
cert bundle or use it stand-alone as described. Just remember that the
|
||||||
security is no better than the way you obtained the certificate.
|
security is no better than the way you obtained the certificate.
|
||||||
|
|
||||||
4. If you're using the curl command line tool, you can specify your own CA
|
4. If you're using the curl command line tool, you can specify your own CA
|
||||||
cert path by setting the environment variable CURL_CA_BUNDLE to the path
|
cert path by setting the environment variable `CURL_CA_BUNDLE` to the path
|
||||||
of your choice.
|
of your choice.
|
||||||
|
|
||||||
If you're using the curl command line tool on Windows, curl will search
|
If you're using the curl command line tool on Windows, curl will search
|
||||||
@@ -86,9 +109,7 @@ server, do one of the following:
|
|||||||
5. Get a better/different/newer CA cert bundle! One option is to extract the
|
5. Get a better/different/newer CA cert bundle! One option is to extract the
|
||||||
one a recent Firefox browser uses by running 'make ca-bundle' in the curl
|
one a recent Firefox browser uses by running 'make ca-bundle' in the curl
|
||||||
build tree root, or possibly download a version that was generated this
|
build tree root, or possibly download a version that was generated this
|
||||||
way for you:
|
way for you: [CA Extract](http://curl.haxx.se/docs/caextract.html)
|
||||||
|
|
||||||
http://curl.haxx.se/docs/caextract.html
|
|
||||||
|
|
||||||
Neglecting to use one of the above methods when dealing with a server using a
|
Neglecting to use one of the above methods when dealing with a server using a
|
||||||
certificate that isn't signed by one of the certificates in the installed CA
|
certificate that isn't signed by one of the certificates in the installed CA
|
||||||
@@ -96,35 +117,29 @@ cert bundle, will cause SSL to report an error ("certificate verify failed")
|
|||||||
during the handshake and SSL will then refuse further communication with that
|
during the handshake and SSL will then refuse further communication with that
|
||||||
server.
|
server.
|
||||||
|
|
||||||
Peer SSL Certificate Verification with NSS
|
Certificate Verification with NSS
|
||||||
==========================================
|
---------------------------------
|
||||||
|
|
||||||
If libcurl was built with NSS support, then depending on the OS distribution,
|
If libcurl was built with NSS support, then depending on the OS distribution,
|
||||||
it is probably required to take some additional steps to use the system-wide CA
|
it is probably required to take some additional steps to use the system-wide
|
||||||
cert db. RedHat ships with an additional module, libnsspem.so, which enables
|
CA cert db. RedHat ships with an additional module, libnsspem.so, which
|
||||||
NSS to read the OpenSSL PEM CA bundle. This library is missing in OpenSuSE, and
|
enables NSS to read the OpenSSL PEM CA bundle. This library is missing in
|
||||||
without it, NSS can only work with its own internal formats. NSS also has a new
|
OpenSuSE, and without it, NSS can only work with its own internal formats. NSS
|
||||||
database format: https://wiki.mozilla.org/NSS_Shared_DB
|
also has a new [database format](https://wiki.mozilla.org/NSS_Shared_DB).
|
||||||
|
|
||||||
Starting with version 7.19.7, libcurl will check for the NSS version it runs,
|
Starting with version 7.19.7, libcurl automatically adds the 'sql:' prefix to
|
||||||
and automatically add the 'sql:' prefix to the certdb directory (either the
|
the certdb directory (either the hardcoded default /etc/pki/nssdb or the
|
||||||
hardcoded default /etc/pki/nssdb or the directory configured with SSL_DIR
|
directory configured with SSL_DIR environment variable). To check which certdb
|
||||||
environment variable) if version 3.12.0 or later is detected. To check which
|
format your distribution provides, examine the default certdb location:
|
||||||
ertdb format your distribution provides, examine the default
|
/etc/pki/nssdb; the new certdb format can be identified by the filenames
|
||||||
certdb location: /etc/pki/nssdb; the new certdb format can be identified by
|
cert9.db, key4.db, pkcs11.txt; filenames of older versions are cert8.db,
|
||||||
the filenames cert9.db, key4.db, pkcs11.txt; filenames of older versions are
|
key3.db, secmod.db.
|
||||||
cert8.db, key3.db, modsec.db.
|
|
||||||
|
|
||||||
Usually these cert databases are empty, but NSS also has built-in CAs which are
|
Certificate Verification with Schannel and Secure Transport
|
||||||
provided through a shared library, libnssckbi.so; if you want to use these
|
-----------------------------------------------------------
|
||||||
built-in CAs, then create a symlink to libnssckbi.so in /etc/pki/nssdb:
|
|
||||||
ln -s /usr/lib[64]/libnssckbi.so /etc/pki/nssdb/libnssckbi.so
|
|
||||||
|
|
||||||
Peer SSL Certificate Verification with Schannel and Secure Transport
|
If libcurl was built with Schannel (Microsoft's native TLS engine) or Secure
|
||||||
====================================================================
|
Transport (Apple's native TLS engine) support, then libcurl will still perform
|
||||||
|
|
||||||
If libcurl was built with Schannel (Microsoft's TLS/SSL engine) or Secure
|
|
||||||
Transport (Apple's TLS/SSL engine) support, then libcurl will still perform
|
|
||||||
peer certificate verification, but instead of using a CA cert bundle, it will
|
peer certificate verification, but instead of using a CA cert bundle, it will
|
||||||
use the certificates that are built into the OS. These are the same
|
use the certificates that are built into the OS. These are the same
|
||||||
certificates that appear in the Internet Options control panel (under Windows)
|
certificates that appear in the Internet Options control panel (under Windows)
|
||||||
|
|||||||
223
docs/THANKS
223
docs/THANKS
@@ -4,11 +4,14 @@
|
|||||||
|
|
||||||
If you have contributed but are missing here, please let us know!
|
If you have contributed but are missing here, please let us know!
|
||||||
|
|
||||||
|
Aaro Koskinen
|
||||||
Aaron Oneal
|
Aaron Oneal
|
||||||
Aaron Orenstein
|
Aaron Orenstein
|
||||||
|
Abram Pousada
|
||||||
Adam D. Moss
|
Adam D. Moss
|
||||||
Adam Light
|
Adam Light
|
||||||
Adam Piggott
|
Adam Piggott
|
||||||
|
Adam Sampson
|
||||||
Adam Tkac
|
Adam Tkac
|
||||||
Adrian Schuur
|
Adrian Schuur
|
||||||
Adriano Meirelles
|
Adriano Meirelles
|
||||||
@@ -19,7 +22,7 @@ Alan Pinstein
|
|||||||
Albert Chin-A-Young
|
Albert Chin-A-Young
|
||||||
Albert Choy
|
Albert Choy
|
||||||
Ale Vesely
|
Ale Vesely
|
||||||
Alejandro Alvarez
|
Alejandro Alvarez Ayllon
|
||||||
Aleksandar Milivojevic
|
Aleksandar Milivojevic
|
||||||
Aleksey Tulinov
|
Aleksey Tulinov
|
||||||
Alessandro Ghedini
|
Alessandro Ghedini
|
||||||
@@ -27,6 +30,7 @@ Alessandro Vesely
|
|||||||
Alex Bligh
|
Alex Bligh
|
||||||
Alex Fishman
|
Alex Fishman
|
||||||
Alex Gruz
|
Alex Gruz
|
||||||
|
Alex McLellan
|
||||||
Alex Neblett
|
Alex Neblett
|
||||||
Alex Suykov
|
Alex Suykov
|
||||||
Alex Vinnik
|
Alex Vinnik
|
||||||
@@ -36,6 +40,7 @@ Alexander Klauer
|
|||||||
Alexander Kourakos
|
Alexander Kourakos
|
||||||
Alexander Krasnostavsky
|
Alexander Krasnostavsky
|
||||||
Alexander Lazic
|
Alexander Lazic
|
||||||
|
Alexander Peslyak
|
||||||
Alexander Zhuravlev
|
Alexander Zhuravlev
|
||||||
Alexey Borzov
|
Alexey Borzov
|
||||||
Alexey Pesternikov
|
Alexey Pesternikov
|
||||||
@@ -44,6 +49,7 @@ Alexey Zakhlestin
|
|||||||
Alexis Carvalho
|
Alexis Carvalho
|
||||||
Alfred Gebert
|
Alfred Gebert
|
||||||
Allen Pulsifer
|
Allen Pulsifer
|
||||||
|
Alona Rossen
|
||||||
Amol Pattekar
|
Amol Pattekar
|
||||||
Amr Shahin
|
Amr Shahin
|
||||||
Anatoli Tubman
|
Anatoli Tubman
|
||||||
@@ -51,6 +57,7 @@ Anders Gustafsson
|
|||||||
Anders Havn
|
Anders Havn
|
||||||
Andi Jahja
|
Andi Jahja
|
||||||
Andre Guibert de Bruet
|
Andre Guibert de Bruet
|
||||||
|
Andre Heinecke
|
||||||
Andreas Damm
|
Andreas Damm
|
||||||
Andreas Faerber
|
Andreas Faerber
|
||||||
Andreas Farber
|
Andreas Farber
|
||||||
@@ -62,7 +69,8 @@ Andreas Schuldei
|
|||||||
Andreas Wurf
|
Andreas Wurf
|
||||||
Andrei Benea
|
Andrei Benea
|
||||||
Andrei Cipu
|
Andrei Cipu
|
||||||
Andres Garcia
|
Andrei Kurushin
|
||||||
|
Andrej E Baranov
|
||||||
Andrew Benham
|
Andrew Benham
|
||||||
Andrew Biggs
|
Andrew Biggs
|
||||||
Andrew Bushnell
|
Andrew Bushnell
|
||||||
@@ -72,12 +80,14 @@ Andrew Kurushin
|
|||||||
Andrew Moise
|
Andrew Moise
|
||||||
Andrew Wansink
|
Andrew Wansink
|
||||||
Andrew de los Reyes
|
Andrew de los Reyes
|
||||||
|
Andrey Labunets
|
||||||
Andrii Moiseiev
|
Andrii Moiseiev
|
||||||
Andrés García
|
Andrés García
|
||||||
Andy Cedilnik
|
Andy Cedilnik
|
||||||
Andy Serpa
|
Andy Serpa
|
||||||
Andy Tsouladze
|
Andy Tsouladze
|
||||||
Angus Mackay
|
Angus Mackay
|
||||||
|
Anthon Pang
|
||||||
Anthony Bryan
|
Anthony Bryan
|
||||||
Anthony G. Basile
|
Anthony G. Basile
|
||||||
Antoine Calando
|
Antoine Calando
|
||||||
@@ -91,14 +101,20 @@ Arnaud Compan
|
|||||||
Arnaud Ebalard
|
Arnaud Ebalard
|
||||||
Arthur Murray
|
Arthur Murray
|
||||||
Arve Knudsen
|
Arve Knudsen
|
||||||
|
Arvid Norberg
|
||||||
|
Ask Bjørn Hansen
|
||||||
|
Askar Safin
|
||||||
Ates Goral
|
Ates Goral
|
||||||
Augustus Saunders
|
Augustus Saunders
|
||||||
Avery Fay
|
Avery Fay
|
||||||
Axel Tillequin
|
Axel Tillequin
|
||||||
Balaji Parasuram
|
Balaji Parasuram
|
||||||
|
Balaji Salunke
|
||||||
Balint Szilakszi
|
Balint Szilakszi
|
||||||
|
Barry Abrahamson
|
||||||
Bart Whiteley
|
Bart Whiteley
|
||||||
Bas Mevissen
|
Bas Mevissen
|
||||||
|
Ben Boeckel
|
||||||
Ben Darnell
|
Ben Darnell
|
||||||
Ben Greear
|
Ben Greear
|
||||||
Ben Madsen
|
Ben Madsen
|
||||||
@@ -109,12 +125,16 @@ Benbuck Nason
|
|||||||
Benjamin Gerard
|
Benjamin Gerard
|
||||||
Benjamin Gilbert
|
Benjamin Gilbert
|
||||||
Benjamin Johnson
|
Benjamin Johnson
|
||||||
|
Benoit Neil
|
||||||
|
Benoit Sigoure
|
||||||
Bernard Leak
|
Bernard Leak
|
||||||
Bernhard Reutner-Fischer
|
Bernhard Reutner-Fischer
|
||||||
Bertrand Demiddelaer
|
Bertrand Demiddelaer
|
||||||
|
Bill Doyle
|
||||||
Bill Egert
|
Bill Egert
|
||||||
Bill Hoffman
|
Bill Hoffman
|
||||||
Bill Middlecamp
|
Bill Middlecamp
|
||||||
|
Bill Nagel
|
||||||
Bjoern Sikora
|
Bjoern Sikora
|
||||||
Bjorn Augustsson
|
Bjorn Augustsson
|
||||||
Bjorn Reese
|
Bjorn Reese
|
||||||
@@ -125,9 +145,12 @@ Bob Richmond
|
|||||||
Bob Schader
|
Bob Schader
|
||||||
Bogdan Nicula
|
Bogdan Nicula
|
||||||
Brad Burdick
|
Brad Burdick
|
||||||
|
Brad Harder
|
||||||
Brad Hards
|
Brad Hards
|
||||||
Brad King
|
Brad King
|
||||||
|
Brad Spencer
|
||||||
Bradford Bruce
|
Bradford Bruce
|
||||||
|
Brandon Casey
|
||||||
Brandon Wang
|
Brandon Wang
|
||||||
Brendan Jurd
|
Brendan Jurd
|
||||||
Brent Beardsley
|
Brent Beardsley
|
||||||
@@ -138,6 +161,7 @@ Brian R Duffy
|
|||||||
Brian Ulm
|
Brian Ulm
|
||||||
Brock Noland
|
Brock Noland
|
||||||
Bruce Mitchener
|
Bruce Mitchener
|
||||||
|
Bruno Thomsen
|
||||||
Bruno de Carvalho
|
Bruno de Carvalho
|
||||||
Bryan Henderson
|
Bryan Henderson
|
||||||
Bryan Kemp
|
Bryan Kemp
|
||||||
@@ -145,22 +169,25 @@ Byrial Jensen
|
|||||||
Cameron Kaiser
|
Cameron Kaiser
|
||||||
Camille Moncelier
|
Camille Moncelier
|
||||||
Caolan McNamara
|
Caolan McNamara
|
||||||
|
Carlo Wood
|
||||||
Carsten Lange
|
Carsten Lange
|
||||||
Casey O'Donnell
|
Casey O'Donnell
|
||||||
Cedric Deltheil
|
Catalin Patulea
|
||||||
Chad Monroe
|
Chad Monroe
|
||||||
Chandrakant Bagul
|
Chandrakant Bagul
|
||||||
Charles Kerr
|
Charles Kerr
|
||||||
|
Chen Prog
|
||||||
Chih-Chung Chang
|
Chih-Chung Chang
|
||||||
Chris "Bob Bob"
|
Chris "Bob Bob"
|
||||||
Chris Combes
|
Chris Combes
|
||||||
Chris Conroy
|
Chris Conlon
|
||||||
Chris Deidun
|
Chris Deidun
|
||||||
Chris Flerackers
|
Chris Flerackers
|
||||||
Chris Gaukroger
|
Chris Gaukroger
|
||||||
Chris Maltby
|
Chris Maltby
|
||||||
Chris Mumford
|
Chris Mumford
|
||||||
Chris Smowton
|
Chris Smowton
|
||||||
|
Chris Young
|
||||||
Christian Grothoff
|
Christian Grothoff
|
||||||
Christian Hägele
|
Christian Hägele
|
||||||
Christian Krause
|
Christian Krause
|
||||||
@@ -181,6 +208,9 @@ Clarence Gardner
|
|||||||
Clemens Gruber
|
Clemens Gruber
|
||||||
Clifford Wolf
|
Clifford Wolf
|
||||||
Cody Jones
|
Cody Jones
|
||||||
|
Cody Mack
|
||||||
|
Colby Ranger
|
||||||
|
Colin Blair
|
||||||
Colin Hogben
|
Colin Hogben
|
||||||
Colin Watson
|
Colin Watson
|
||||||
Colm Buckley
|
Colm Buckley
|
||||||
@@ -194,8 +224,10 @@ Cristian Rodríguez
|
|||||||
Curt Bogmine
|
Curt Bogmine
|
||||||
Cyrill Osterwalder
|
Cyrill Osterwalder
|
||||||
Cédric Deltheil
|
Cédric Deltheil
|
||||||
|
D. Flinkmann
|
||||||
Dag Ekengren
|
Dag Ekengren
|
||||||
Dagobert Michelsen
|
Dagobert Michelsen
|
||||||
|
Damian Dixon
|
||||||
Damien Adant
|
Damien Adant
|
||||||
Dan Becker
|
Dan Becker
|
||||||
Dan C
|
Dan C
|
||||||
@@ -221,6 +253,7 @@ Dave Halbakken
|
|||||||
Dave Hamilton
|
Dave Hamilton
|
||||||
Dave May
|
Dave May
|
||||||
Dave Reisner
|
Dave Reisner
|
||||||
|
Dave Thompson
|
||||||
Dave Vasilevsky
|
Dave Vasilevsky
|
||||||
David Bau
|
David Bau
|
||||||
David Binderman
|
David Binderman
|
||||||
@@ -237,21 +270,31 @@ David Kimdon
|
|||||||
David Lang
|
David Lang
|
||||||
David LeBlanc
|
David LeBlanc
|
||||||
David McCreedy
|
David McCreedy
|
||||||
|
David Meyer
|
||||||
David Odin
|
David Odin
|
||||||
David Phillips
|
David Phillips
|
||||||
David Rosenstrauch
|
David Rosenstrauch
|
||||||
|
David Ryskalczyk
|
||||||
David Shaw
|
David Shaw
|
||||||
David Strauss
|
David Strauss
|
||||||
David Tarendash
|
David Tarendash
|
||||||
David Thiel
|
David Thiel
|
||||||
|
David Walser
|
||||||
|
David Woodhouse
|
||||||
David Wright
|
David Wright
|
||||||
David Yan
|
David Yan
|
||||||
Dengminwen
|
Dengminwen
|
||||||
|
Dennis Clarke
|
||||||
|
Derek Higgins
|
||||||
Detlef Schmier
|
Detlef Schmier
|
||||||
Didier Brisebourg
|
Didier Brisebourg
|
||||||
Diego Casorran
|
Diego Casorran
|
||||||
|
Dilyan Palauzov
|
||||||
Dima Barsky
|
Dima Barsky
|
||||||
|
Dima Tisnek
|
||||||
|
Dimitar Boevski
|
||||||
Dimitre Dimitrov
|
Dimitre Dimitrov
|
||||||
|
Dimitrios Siganos
|
||||||
Dimitris Sarris
|
Dimitris Sarris
|
||||||
Dinar
|
Dinar
|
||||||
Dirk Eddelbuettel
|
Dirk Eddelbuettel
|
||||||
@@ -259,6 +302,7 @@ Dirk Manske
|
|||||||
Dmitri Shubin
|
Dmitri Shubin
|
||||||
Dmitriy Sergeyev
|
Dmitriy Sergeyev
|
||||||
Dmitry Bartsevich
|
Dmitry Bartsevich
|
||||||
|
Dmitry Falko
|
||||||
Dmitry Kurochkin
|
Dmitry Kurochkin
|
||||||
Dmitry Popov
|
Dmitry Popov
|
||||||
Dmitry Rechkin
|
Dmitry Rechkin
|
||||||
@@ -274,13 +318,13 @@ Douglas R. Horner
|
|||||||
Douglas Steinwand
|
Douglas Steinwand
|
||||||
Dov Murik
|
Dov Murik
|
||||||
Duane Cathey
|
Duane Cathey
|
||||||
Duncan
|
|
||||||
Duncan Mac-Vicar Prett
|
Duncan Mac-Vicar Prett
|
||||||
Dustin Boswell
|
Dustin Boswell
|
||||||
Dylan Ellicott
|
Dylan Ellicott
|
||||||
Dylan Salisbury
|
Dylan Salisbury
|
||||||
Early Ehlinger
|
Early Ehlinger
|
||||||
Ebenezer Ikonne
|
Ebenezer Ikonne
|
||||||
|
Ed Morley
|
||||||
Edin Kadribasic
|
Edin Kadribasic
|
||||||
Eduard Bloch
|
Eduard Bloch
|
||||||
Edward Rudd
|
Edward Rudd
|
||||||
@@ -289,6 +333,7 @@ Eelco Dolstra
|
|||||||
Eetu Ojanen
|
Eetu Ojanen
|
||||||
Eldar Zaitov
|
Eldar Zaitov
|
||||||
Ellis Pritchard
|
Ellis Pritchard
|
||||||
|
Elmira A Semenova
|
||||||
Emanuele Bovisio
|
Emanuele Bovisio
|
||||||
Emil Romanus
|
Emil Romanus
|
||||||
Emiliano Ida
|
Emiliano Ida
|
||||||
@@ -298,6 +343,7 @@ Eric Cooper
|
|||||||
Eric Hu
|
Eric Hu
|
||||||
Eric Landes
|
Eric Landes
|
||||||
Eric Lavigne
|
Eric Lavigne
|
||||||
|
Eric Lubin
|
||||||
Eric Melville
|
Eric Melville
|
||||||
Eric Mertens
|
Eric Mertens
|
||||||
Eric Rautman
|
Eric Rautman
|
||||||
@@ -308,20 +354,26 @@ Eric Wong
|
|||||||
Eric Young
|
Eric Young
|
||||||
Erick Nuwendam
|
Erick Nuwendam
|
||||||
Erik Johansson
|
Erik Johansson
|
||||||
|
Ernest Beinrohr
|
||||||
Erwan Legrand
|
Erwan Legrand
|
||||||
Erwin Authried
|
Erwin Authried
|
||||||
|
Ethan Glasser Camp
|
||||||
Eugene Kotlyarov
|
Eugene Kotlyarov
|
||||||
Evan Jordan
|
Evan Jordan
|
||||||
Evgeny Turnaev
|
Evgeny Turnaev
|
||||||
Eygene Ryabinkin
|
Eygene Ryabinkin
|
||||||
|
Fabian Frank
|
||||||
Fabian Hiernaux
|
Fabian Hiernaux
|
||||||
Fabian Keil
|
Fabian Keil
|
||||||
Fabrizio Ammollo
|
Fabrizio Ammollo
|
||||||
Fedor Karpelevitch
|
Fedor Karpelevitch
|
||||||
|
Felix Yan
|
||||||
Felix von Leitner
|
Felix von Leitner
|
||||||
Feng Tu
|
Feng Tu
|
||||||
Florian Schoppmann
|
Florian Schoppmann
|
||||||
|
Florian Weimer
|
||||||
Forrest Cahoon
|
Forrest Cahoon
|
||||||
|
Frank Gevaerts
|
||||||
Frank Hempel
|
Frank Hempel
|
||||||
Frank Keeney
|
Frank Keeney
|
||||||
Frank McGeough
|
Frank McGeough
|
||||||
@@ -329,6 +381,7 @@ Frank Meier
|
|||||||
Frank Ticheler
|
Frank Ticheler
|
||||||
Frank Van Uffelen
|
Frank Van Uffelen
|
||||||
František Kučera
|
František Kučera
|
||||||
|
François Charlier
|
||||||
Fred Machado
|
Fred Machado
|
||||||
Fred New
|
Fred New
|
||||||
Fred Noz
|
Fred Noz
|
||||||
@@ -342,11 +395,14 @@ Gautam Kachroo
|
|||||||
Gautam Mani
|
Gautam Mani
|
||||||
Gavrie Philipson
|
Gavrie Philipson
|
||||||
Gaz Iqbal
|
Gaz Iqbal
|
||||||
|
Gaël Portay
|
||||||
|
Geoff Beier
|
||||||
Georg Horn
|
Georg Horn
|
||||||
Georg Huettenegger
|
Georg Huettenegger
|
||||||
Georg Lippitsch
|
Georg Lippitsch
|
||||||
Georg Wicherski
|
Georg Wicherski
|
||||||
Gerd v. Egidy
|
Gerd v. Egidy
|
||||||
|
Gergely Nagy
|
||||||
Gerhard Herre
|
Gerhard Herre
|
||||||
Gerrit Bruchhäuser
|
Gerrit Bruchhäuser
|
||||||
Ghennadi Procopciuc
|
Ghennadi Procopciuc
|
||||||
@@ -359,21 +415,27 @@ Gilles Blanc
|
|||||||
Gisle Vanem
|
Gisle Vanem
|
||||||
Giuseppe Attardi
|
Giuseppe Attardi
|
||||||
Giuseppe D'Ambrosio
|
Giuseppe D'Ambrosio
|
||||||
|
Glen A Johnson Jr.
|
||||||
Glen Nakamura
|
Glen Nakamura
|
||||||
Glen Scott
|
Glen Scott
|
||||||
Gokhan Sengun
|
Glenn Sheridan
|
||||||
|
Gordon Marler
|
||||||
|
Gorilla Maguila
|
||||||
Grant Erickson
|
Grant Erickson
|
||||||
Greg Hewgill
|
Greg Hewgill
|
||||||
Greg Morse
|
Greg Morse
|
||||||
Greg Onufer
|
Greg Onufer
|
||||||
|
Greg Pratt
|
||||||
Greg Zavertnik
|
Greg Zavertnik
|
||||||
Grigory Entin
|
Grigory Entin
|
||||||
Guenole Bescon
|
Guenole Bescon
|
||||||
Guenter Knauf
|
Guenter Knauf
|
||||||
Guido Berhoerster
|
Guido Berhoerster
|
||||||
Guillaume Arluison
|
Guillaume Arluison
|
||||||
|
Gunter Knauf
|
||||||
Gustaf Hui
|
Gustaf Hui
|
||||||
Gwenole Beauchesne
|
Gwenole Beauchesne
|
||||||
|
Gökhan Şengün
|
||||||
Götz Babin-Ebell
|
Götz Babin-Ebell
|
||||||
Hamish Mackenzie
|
Hamish Mackenzie
|
||||||
Hang Kin Lau
|
Hang Kin Lau
|
||||||
@@ -382,10 +444,14 @@ Hanno Kranzhoff
|
|||||||
Hans Steegers
|
Hans Steegers
|
||||||
Hans-Jurgen May
|
Hans-Jurgen May
|
||||||
Hardeep Singh
|
Hardeep Singh
|
||||||
|
Haris Okanovic
|
||||||
Harshal Pradhan
|
Harshal Pradhan
|
||||||
Hauke Duden
|
Hauke Duden
|
||||||
|
He Qin
|
||||||
Heikki Korpela
|
Heikki Korpela
|
||||||
Heinrich Ko
|
Heinrich Ko
|
||||||
|
Heinrich Schaefer
|
||||||
|
Helwing Lutz
|
||||||
Hendrik Visage
|
Hendrik Visage
|
||||||
Henrik Storner
|
Henrik Storner
|
||||||
Henry Ludemann
|
Henry Ludemann
|
||||||
@@ -395,6 +461,7 @@ Ho-chi Chen
|
|||||||
Hoi-Ho Chan
|
Hoi-Ho Chan
|
||||||
Hongli Lai
|
Hongli Lai
|
||||||
Howard Chu
|
Howard Chu
|
||||||
|
Hubert Kario
|
||||||
Hzhijun
|
Hzhijun
|
||||||
Ian D Allen
|
Ian D Allen
|
||||||
Ian Ford
|
Ian Ford
|
||||||
@@ -406,6 +473,7 @@ Ignacio Vazquez-Abrams
|
|||||||
Igor Franchuk
|
Igor Franchuk
|
||||||
Igor Novoseltsev
|
Igor Novoseltsev
|
||||||
Igor Polyakov
|
Igor Polyakov
|
||||||
|
Iida Yosiaki
|
||||||
Ilguiz Latypov
|
Ilguiz Latypov
|
||||||
Ilja van Sprundel
|
Ilja van Sprundel
|
||||||
Immanuel Gregoire
|
Immanuel Gregoire
|
||||||
@@ -413,15 +481,18 @@ Ingmar Runge
|
|||||||
Ingo Ralf Blum
|
Ingo Ralf Blum
|
||||||
Ingo Wilken
|
Ingo Wilken
|
||||||
Ishan SinghLevett
|
Ishan SinghLevett
|
||||||
|
Ivo Bellin Salarin
|
||||||
Jack Zhang
|
Jack Zhang
|
||||||
Jacky Lam
|
Jacky Lam
|
||||||
Jacob Meuser
|
Jacob Meuser
|
||||||
Jacob Moshenko
|
Jacob Moshenko
|
||||||
Jad Chamcham
|
Jad Chamcham
|
||||||
|
Jakub Zakrzewski
|
||||||
James Bursa
|
James Bursa
|
||||||
James Cheng
|
James Cheng
|
||||||
James Clancy
|
James Clancy
|
||||||
James Cone
|
James Cone
|
||||||
|
James Dury
|
||||||
James Gallagher
|
James Gallagher
|
||||||
James Griffiths
|
James Griffiths
|
||||||
James Housley
|
James Housley
|
||||||
@@ -436,32 +507,40 @@ Jan Schaumann
|
|||||||
Jan Van Boghout
|
Jan Van Boghout
|
||||||
Jared Jennings
|
Jared Jennings
|
||||||
Jared Lundell
|
Jared Lundell
|
||||||
|
Jari Aalto
|
||||||
Jari Sundell
|
Jari Sundell
|
||||||
Jason Glasgow
|
Jason Glasgow
|
||||||
Jason Liu
|
Jason Liu
|
||||||
Jason McDonald
|
Jason McDonald
|
||||||
Jason S. Priebe
|
Jason S. Priebe
|
||||||
|
Javier Barroso
|
||||||
Jay Austin
|
Jay Austin
|
||||||
Jayesh A Shah
|
Jayesh A Shah
|
||||||
Jaz Fresh
|
Jaz Fresh
|
||||||
Jean Jacques Drouin
|
Jean Jacques Drouin
|
||||||
Jean-Claude Chauve
|
Jean-Claude Chauve
|
||||||
Jean-Francois Bertrand
|
Jean-Francois Bertrand
|
||||||
|
Jean-Francois Durand
|
||||||
Jean-Louis Lemaire
|
Jean-Louis Lemaire
|
||||||
Jean-Marc Ranger
|
Jean-Marc Ranger
|
||||||
Jean-Noel Rouvignac
|
Jean-Noël Rouvignac
|
||||||
Jean-Philippe Barrette-LaPierre
|
Jean-Philippe Barrette-LaPierre
|
||||||
Jeff Connelly
|
Jeff Connelly
|
||||||
|
Jeff Hodges
|
||||||
Jeff Johnson
|
Jeff Johnson
|
||||||
|
Jeff King
|
||||||
Jeff Lawson
|
Jeff Lawson
|
||||||
Jeff Phillips
|
Jeff Phillips
|
||||||
Jeff Pohlmeyer
|
Jeff Pohlmeyer
|
||||||
Jeff Weber
|
Jeff Weber
|
||||||
Jeffrey Pohlmeyer
|
|
||||||
Jeremy Friesner
|
Jeremy Friesner
|
||||||
Jeremy Huddleston
|
Jeremy Huddleston
|
||||||
|
Jeremy Lin
|
||||||
|
Jeroen Koekkoek
|
||||||
Jerome Muffat-Meridol
|
Jerome Muffat-Meridol
|
||||||
|
Jerome Robert
|
||||||
Jerome Vouillon
|
Jerome Vouillon
|
||||||
|
Jerry Krinock
|
||||||
Jerry Wu
|
Jerry Wu
|
||||||
Jes Badwal
|
Jes Badwal
|
||||||
Jesper Jensen
|
Jesper Jensen
|
||||||
@@ -473,6 +552,7 @@ Jim Hollinger
|
|||||||
Jim Meyering
|
Jim Meyering
|
||||||
Jiri Hruska
|
Jiri Hruska
|
||||||
Jiri Jaburek
|
Jiri Jaburek
|
||||||
|
Jiri Malak
|
||||||
Jocelyn Jaubert
|
Jocelyn Jaubert
|
||||||
Joe Halpin
|
Joe Halpin
|
||||||
Joe Malicki
|
Joe Malicki
|
||||||
@@ -480,12 +560,16 @@ Joe Mason
|
|||||||
Joel Chen
|
Joel Chen
|
||||||
Jofell Gallardo
|
Jofell Gallardo
|
||||||
Johan Anderson
|
Johan Anderson
|
||||||
|
Johan Lantz
|
||||||
Johan Nilsson
|
Johan Nilsson
|
||||||
Johan van Selst
|
Johan van Selst
|
||||||
Johannes Bauer
|
Johannes Bauer
|
||||||
|
Johannes Ernst
|
||||||
John Bradshaw
|
John Bradshaw
|
||||||
|
John Coffey
|
||||||
John Crow
|
John Crow
|
||||||
John Dennis
|
John Dennis
|
||||||
|
John Dunn
|
||||||
John E. Malmberg
|
John E. Malmberg
|
||||||
John Gardiner Myers
|
John Gardiner Myers
|
||||||
John Janssen
|
John Janssen
|
||||||
@@ -503,14 +587,20 @@ Johnny Luong
|
|||||||
Jon Grubbs
|
Jon Grubbs
|
||||||
Jon Nelson
|
Jon Nelson
|
||||||
Jon Sargeant
|
Jon Sargeant
|
||||||
|
Jon Seymour
|
||||||
|
Jon Spencer
|
||||||
|
Jon Torrey
|
||||||
Jon Travis
|
Jon Travis
|
||||||
Jon Turner
|
Jon Turner
|
||||||
Jonas Forsman
|
Jonas Forsman
|
||||||
Jonas Schnelli
|
Jonas Schnelli
|
||||||
Jonatan Lander
|
Jonatan Lander
|
||||||
|
Jonatan Vela
|
||||||
|
Jonathan Cardoso Machado
|
||||||
Jonathan Hseu
|
Jonathan Hseu
|
||||||
Jonathan Nieder
|
Jonathan Nieder
|
||||||
Jongki Suwandi
|
Jongki Suwandi
|
||||||
|
Jose Alf
|
||||||
Jose Kahan
|
Jose Kahan
|
||||||
Josef Wolf
|
Josef Wolf
|
||||||
Josh Kapell
|
Josh Kapell
|
||||||
@@ -523,22 +613,25 @@ Judson Bishop
|
|||||||
Juergen Wilke
|
Juergen Wilke
|
||||||
Jukka Pihl
|
Jukka Pihl
|
||||||
Julian Noble
|
Julian Noble
|
||||||
|
Julian Ospald
|
||||||
Julian Taylor
|
Julian Taylor
|
||||||
Julien Chaffraix
|
Julien Chaffraix
|
||||||
|
Julien Nabet
|
||||||
Julien Royer
|
Julien Royer
|
||||||
Jun-ichiro itojun Hagino
|
Jun-ichiro itojun Hagino
|
||||||
Jurij Smakov
|
Jurij Smakov
|
||||||
Justin Fletcher
|
Justin Fletcher
|
||||||
Justin Karneges
|
Justin Karneges
|
||||||
|
Justin Maggard
|
||||||
Jörg Mueller-Tolk
|
Jörg Mueller-Tolk
|
||||||
Jörn Hartroth
|
Jörn Hartroth
|
||||||
|
K. R. Walker
|
||||||
Kai Engert
|
Kai Engert
|
||||||
Kai Sommerfeld
|
Kai Sommerfeld
|
||||||
Kai-Uwe Rommel
|
Kai-Uwe Rommel
|
||||||
Kalle Vahlman
|
Kalle Vahlman
|
||||||
Kamil Dudka
|
Kamil Dudka
|
||||||
Kang-Jin Lee
|
Kang-Jin Lee
|
||||||
Karl M
|
|
||||||
Karl Moerder
|
Karl Moerder
|
||||||
Karol Pietrzak
|
Karol Pietrzak
|
||||||
Kaspar Brand
|
Kaspar Brand
|
||||||
@@ -569,10 +662,14 @@ Krishnendu Majumdar
|
|||||||
Krister Johansen
|
Krister Johansen
|
||||||
Kristian Gunstone
|
Kristian Gunstone
|
||||||
Kristian Köhntopp
|
Kristian Köhntopp
|
||||||
|
Kyle J. McKay
|
||||||
|
Kyle L. Huff
|
||||||
Kyle Sallee
|
Kyle Sallee
|
||||||
Lachlan O'Dea
|
Lachlan O'Dea
|
||||||
Larry Campbell
|
Larry Campbell
|
||||||
Larry Fahnoe
|
Larry Fahnoe
|
||||||
|
Larry Lin
|
||||||
|
Larry Stone
|
||||||
Lars Buitinck
|
Lars Buitinck
|
||||||
Lars Gustafsson
|
Lars Gustafsson
|
||||||
Lars J. Aas
|
Lars J. Aas
|
||||||
@@ -583,12 +680,17 @@ Lau Hang Kin
|
|||||||
Laurent Rabret
|
Laurent Rabret
|
||||||
Legoff Vincent
|
Legoff Vincent
|
||||||
Lehel Bernadt
|
Lehel Bernadt
|
||||||
|
Leif W
|
||||||
|
Leith Bade
|
||||||
Len Krause
|
Len Krause
|
||||||
Lenaic Lefever
|
Lenaic Lefever
|
||||||
Lenny Rachitsky
|
Lenny Rachitsky
|
||||||
|
Leon Winter
|
||||||
|
Leonardo Rosati
|
||||||
Liam Healy
|
Liam Healy
|
||||||
Lijo Antony
|
Lijo Antony
|
||||||
Linas Vepstas
|
Linas Vepstas
|
||||||
|
Lindley French
|
||||||
Ling Thio
|
Ling Thio
|
||||||
Linus Nielsen Feltzing
|
Linus Nielsen Feltzing
|
||||||
Lisa Xu
|
Lisa Xu
|
||||||
@@ -596,28 +698,38 @@ Liza Alenchery
|
|||||||
Lluís Batlle i Rossell
|
Lluís Batlle i Rossell
|
||||||
Loic Dachary
|
Loic Dachary
|
||||||
Loren Kirkby
|
Loren Kirkby
|
||||||
|
Luan Cestari
|
||||||
Luca Altea
|
Luca Altea
|
||||||
Luca Alteas
|
|
||||||
Lucas Adamski
|
Lucas Adamski
|
||||||
|
Lucas Pardue
|
||||||
|
Ludek Finstrle
|
||||||
Ludovico Cavedon
|
Ludovico Cavedon
|
||||||
Lukasz Czekierda
|
Lukasz Czekierda
|
||||||
Luke Amery
|
Luke Amery
|
||||||
Luke Call
|
Luke Call
|
||||||
|
Luke Dashjr
|
||||||
Luong Dinh Dung
|
Luong Dinh Dung
|
||||||
|
Lyndon Hill
|
||||||
Maciej Karpiuk
|
Maciej Karpiuk
|
||||||
|
Maciej Puzio
|
||||||
Maciej W. Rozycki
|
Maciej W. Rozycki
|
||||||
|
Maks Naumov
|
||||||
Mamoru Tasaka
|
Mamoru Tasaka
|
||||||
Mandy Wu
|
Mandy Wu
|
||||||
Manfred Schwarb
|
Manfred Schwarb
|
||||||
Manuel Massing
|
Manuel Massing
|
||||||
Marc Boucher
|
Marc Boucher
|
||||||
|
Marc Deslauriers
|
||||||
Marc Doughty
|
Marc Doughty
|
||||||
|
Marc Hesse
|
||||||
Marc Hoersken
|
Marc Hoersken
|
||||||
Marc Kleine-Budde
|
Marc Kleine-Budde
|
||||||
|
Marc Renault
|
||||||
Marcel Raad
|
Marcel Raad
|
||||||
Marcel Roelofs
|
Marcel Roelofs
|
||||||
Marcelo Juchem
|
Marcelo Juchem
|
||||||
Marcin Adamski
|
Marcin Adamski
|
||||||
|
Marcin Gryszkalis
|
||||||
Marcin Konicki
|
Marcin Konicki
|
||||||
Marco G. Salvagno
|
Marco G. Salvagno
|
||||||
Marco Maggi
|
Marco Maggi
|
||||||
@@ -655,6 +767,7 @@ Mateusz Loskot
|
|||||||
Mathias Axelsson
|
Mathias Axelsson
|
||||||
Mats Lidell
|
Mats Lidell
|
||||||
Matt Arsenault
|
Matt Arsenault
|
||||||
|
Matt Ford
|
||||||
Matt Kraai
|
Matt Kraai
|
||||||
Matt Veenstra
|
Matt Veenstra
|
||||||
Matt Witherspoon
|
Matt Witherspoon
|
||||||
@@ -672,6 +785,7 @@ Maxim Prohorov
|
|||||||
Maxime Larocque
|
Maxime Larocque
|
||||||
Mehmet Bozkurt
|
Mehmet Bozkurt
|
||||||
Mekonikum
|
Mekonikum
|
||||||
|
Melissa Mears
|
||||||
Mettgut Jamalla
|
Mettgut Jamalla
|
||||||
Michael Benedict
|
Michael Benedict
|
||||||
Michael Calmer
|
Michael Calmer
|
||||||
@@ -681,17 +795,20 @@ Michael Day
|
|||||||
Michael Goffioul
|
Michael Goffioul
|
||||||
Michael Jahn
|
Michael Jahn
|
||||||
Michael Jerris
|
Michael Jerris
|
||||||
|
Michael Kaufmann
|
||||||
Michael Mealling
|
Michael Mealling
|
||||||
Michael Mueller
|
Michael Mueller
|
||||||
|
Michael Osipov
|
||||||
Michael Smith
|
Michael Smith
|
||||||
Michael Stillwell
|
Michael Stillwell
|
||||||
Michael Wallner
|
Michael Wallner
|
||||||
Michal Bonino
|
Michal Bonino
|
||||||
Michal Gorny
|
|
||||||
Michal Kowalczyk
|
|
||||||
Michal Marek
|
Michal Marek
|
||||||
|
Michał Górny
|
||||||
|
Michał Kowalczyk
|
||||||
Michele Bini
|
Michele Bini
|
||||||
Miguel Angel
|
Miguel Angel
|
||||||
|
Miguel Diaz
|
||||||
Mihai Ionescu
|
Mihai Ionescu
|
||||||
Mikael Johansson
|
Mikael Johansson
|
||||||
Mikael Sennerholm
|
Mikael Sennerholm
|
||||||
@@ -699,17 +816,22 @@ Mike Bytnar
|
|||||||
Mike Crowe
|
Mike Crowe
|
||||||
Mike Dobbs
|
Mike Dobbs
|
||||||
Mike Giancola
|
Mike Giancola
|
||||||
|
Mike Hasselberg
|
||||||
|
Mike Henshaw
|
||||||
Mike Hommey
|
Mike Hommey
|
||||||
|
Mike Mio
|
||||||
Mike Power
|
Mike Power
|
||||||
Mike Protts
|
Mike Protts
|
||||||
Mike Revi
|
Mike Revi
|
||||||
Miklos Nemeth
|
Miklos Nemeth
|
||||||
|
Miroslav Spousta
|
||||||
Mitz Wark
|
Mitz Wark
|
||||||
Mohamed Lrhazi
|
Mohamed Lrhazi
|
||||||
|
Mohammad AlSaleh
|
||||||
Mohun Biswas
|
Mohun Biswas
|
||||||
Moonesamy
|
|
||||||
Myk Taylor
|
Myk Taylor
|
||||||
Nach M. S.
|
Nach M. S.
|
||||||
|
Nagai H
|
||||||
Nathan Coulter
|
Nathan Coulter
|
||||||
Nathan O'Sullivan
|
Nathan O'Sullivan
|
||||||
Nathanael Nerode
|
Nathanael Nerode
|
||||||
@@ -736,14 +858,17 @@ Nikos Mavrogiannopoulos
|
|||||||
Ning Dong
|
Ning Dong
|
||||||
Nir Soffer
|
Nir Soffer
|
||||||
Nis Jorgensen
|
Nis Jorgensen
|
||||||
|
Nobuhiro Ban
|
||||||
Nodak Sodak
|
Nodak Sodak
|
||||||
Norbert Frese
|
Norbert Frese
|
||||||
Norbert Novotny
|
Norbert Novotny
|
||||||
Ofer
|
Ofer
|
||||||
|
Ola Mork
|
||||||
Olaf Flebbe
|
Olaf Flebbe
|
||||||
Olaf Stueben
|
|
||||||
Olaf Stüben
|
Olaf Stüben
|
||||||
Oliver Gondža
|
Oliver Gondža
|
||||||
|
Oliver Kuckertz
|
||||||
|
Oliver Schindler
|
||||||
Olivier Berger
|
Olivier Berger
|
||||||
Oren Tirosh
|
Oren Tirosh
|
||||||
Ori Avtalion
|
Ori Avtalion
|
||||||
@@ -751,23 +876,30 @@ Oscar Koeroo
|
|||||||
Oscar Norlander
|
Oscar Norlander
|
||||||
P R Schaffner
|
P R Schaffner
|
||||||
Paolo Piacentini
|
Paolo Piacentini
|
||||||
|
Paras Sethia
|
||||||
Pascal Terjan
|
Pascal Terjan
|
||||||
Pasha Kuznetsov
|
Pasha Kuznetsov
|
||||||
|
Pasi Karkkainen
|
||||||
Pat Ray
|
Pat Ray
|
||||||
Patrice Guerin
|
Patrice Guerin
|
||||||
Patricia Muscalu
|
Patricia Muscalu
|
||||||
Patrick Bihan-Faou
|
Patrick Bihan-Faou
|
||||||
|
Patrick McManus
|
||||||
Patrick Monnerat
|
Patrick Monnerat
|
||||||
Patrick Scott
|
Patrick Scott
|
||||||
Patrick Smith
|
Patrick Smith
|
||||||
|
Patrick Watson
|
||||||
Patrik Thunstrom
|
Patrik Thunstrom
|
||||||
Pau Garcia i Quiles
|
Pau Garcia i Quiles
|
||||||
|
Paul Donohue
|
||||||
Paul Harrington
|
Paul Harrington
|
||||||
Paul Howarth
|
Paul Howarth
|
||||||
|
Paul Marks
|
||||||
Paul Marquis
|
Paul Marquis
|
||||||
Paul Moore
|
Paul Moore
|
||||||
Paul Nolan
|
Paul Nolan
|
||||||
Paul Querna
|
Paul Querna
|
||||||
|
Paul Saab
|
||||||
Pavel Cenek
|
Pavel Cenek
|
||||||
Pavel Orehov
|
Pavel Orehov
|
||||||
Pavel Raiskup
|
Pavel Raiskup
|
||||||
@@ -775,7 +907,6 @@ Pawel A. Gajda
|
|||||||
Pawel Kierski
|
Pawel Kierski
|
||||||
Pedro Larroy
|
Pedro Larroy
|
||||||
Pedro Neves
|
Pedro Neves
|
||||||
Pete Su
|
|
||||||
Peter Bray
|
Peter Bray
|
||||||
Peter Forret
|
Peter Forret
|
||||||
Peter Gal
|
Peter Gal
|
||||||
@@ -790,8 +921,13 @@ Peter Su
|
|||||||
Peter Sylvester
|
Peter Sylvester
|
||||||
Peter Todd
|
Peter Todd
|
||||||
Peter Verhas
|
Peter Verhas
|
||||||
|
Peter Wang
|
||||||
|
Peter Wu
|
||||||
Peter Wullinger
|
Peter Wullinger
|
||||||
Peteris Krumins
|
Peteris Krumins
|
||||||
|
Petr Bahula
|
||||||
|
Petr Novak
|
||||||
|
Petr Pisar
|
||||||
Phil Blundell
|
Phil Blundell
|
||||||
Phil Karn
|
Phil Karn
|
||||||
Phil Lisiecki
|
Phil Lisiecki
|
||||||
@@ -809,12 +945,16 @@ Pierre Joye
|
|||||||
Pierre Ynard
|
Pierre Ynard
|
||||||
Pooyan McSporran
|
Pooyan McSporran
|
||||||
Pramod Sharma
|
Pramod Sharma
|
||||||
|
Prash Dush
|
||||||
|
Priyanka Shah
|
||||||
Puneet Pawaia
|
Puneet Pawaia
|
||||||
Quagmire
|
Quagmire
|
||||||
Quanah Gibson-Mount
|
Quanah Gibson-Mount
|
||||||
Quinn Slack
|
Quinn Slack
|
||||||
|
Radu Simionescu
|
||||||
Rafa Muyo
|
Rafa Muyo
|
||||||
Rafael Sagula
|
Rafael Sagula
|
||||||
|
Rafaël Carré
|
||||||
Rainer Canavan
|
Rainer Canavan
|
||||||
Rainer Jung
|
Rainer Jung
|
||||||
Rainer Koenig
|
Rainer Koenig
|
||||||
@@ -827,7 +967,9 @@ Randy McMurchy
|
|||||||
Ravi Pratap
|
Ravi Pratap
|
||||||
Ray Dassen
|
Ray Dassen
|
||||||
Ray Pekowski
|
Ray Pekowski
|
||||||
|
Ray Satiro
|
||||||
Reinout van Schouwen
|
Reinout van Schouwen
|
||||||
|
Remi Gacogne
|
||||||
Renato Botelho
|
Renato Botelho
|
||||||
Renaud Chaillat
|
Renaud Chaillat
|
||||||
Renaud Duhaut
|
Renaud Duhaut
|
||||||
@@ -837,6 +979,7 @@ Rene Rebe
|
|||||||
Reuven Wachtfogel
|
Reuven Wachtfogel
|
||||||
Reza Arbab
|
Reza Arbab
|
||||||
Ricardo Cadime
|
Ricardo Cadime
|
||||||
|
Rich Burridge
|
||||||
Rich Gray
|
Rich Gray
|
||||||
Rich Rauenzahn
|
Rich Rauenzahn
|
||||||
Richard Archer
|
Richard Archer
|
||||||
@@ -846,11 +989,13 @@ Richard Clayton
|
|||||||
Richard Cooper
|
Richard Cooper
|
||||||
Richard Gorton
|
Richard Gorton
|
||||||
Richard Michael
|
Richard Michael
|
||||||
|
Richard Moore
|
||||||
Richard Prescott
|
Richard Prescott
|
||||||
Richard Silverman
|
Richard Silverman
|
||||||
Rick Jones
|
Rick Jones
|
||||||
Rick Richardson
|
Rick Richardson
|
||||||
Rob Crittenden
|
Rob Crittenden
|
||||||
|
Rob Davies
|
||||||
Rob Jones
|
Rob Jones
|
||||||
Rob Stanzel
|
Rob Stanzel
|
||||||
Rob Ward
|
Rob Ward
|
||||||
@@ -868,6 +1013,7 @@ Robin Johnson
|
|||||||
Robin Kay
|
Robin Kay
|
||||||
Robson Braga Araujo
|
Robson Braga Araujo
|
||||||
Rodney Simmons
|
Rodney Simmons
|
||||||
|
Rodric Glaser
|
||||||
Rodrigo Silva
|
Rodrigo Silva
|
||||||
Roland Blom
|
Roland Blom
|
||||||
Roland Krikava
|
Roland Krikava
|
||||||
@@ -875,20 +1021,25 @@ Roland Zimmermann
|
|||||||
Rolland Dudemaine
|
Rolland Dudemaine
|
||||||
Roman Koifman
|
Roman Koifman
|
||||||
Roman Mamedov
|
Roman Mamedov
|
||||||
|
Romulo A. Ceccon
|
||||||
|
Ron Parker
|
||||||
Ron Zapp
|
Ron Zapp
|
||||||
Rosimildo da Silva
|
Rosimildo da Silva
|
||||||
Roy Shan
|
Roy Shan
|
||||||
Rune Kleveland
|
Rune Kleveland
|
||||||
Ruslan Gazizov
|
Ruslan Gazizov
|
||||||
Rutger Hofman
|
Rutger Hofman
|
||||||
|
Ryan Braud
|
||||||
Ryan Chan
|
Ryan Chan
|
||||||
Ryan Nelson
|
Ryan Nelson
|
||||||
Ryan Schmidt
|
Ryan Schmidt
|
||||||
|
Rémy Léone
|
||||||
S. Moonesamy
|
S. Moonesamy
|
||||||
Salvador Dávila
|
Salvador Dávila
|
||||||
Salvatore Sorrentino
|
Salvatore Sorrentino
|
||||||
Sam Deane
|
Sam Deane
|
||||||
Sam Listopad
|
Sam Hurst
|
||||||
|
Sam Schanken
|
||||||
Sampo Kellomaki
|
Sampo Kellomaki
|
||||||
Samuel Díaz García
|
Samuel Díaz García
|
||||||
Samuel Listopad
|
Samuel Listopad
|
||||||
@@ -899,6 +1050,7 @@ Santhana Todatry
|
|||||||
Saqib Ali
|
Saqib Ali
|
||||||
Sara Golemon
|
Sara Golemon
|
||||||
Saran Neti
|
Saran Neti
|
||||||
|
Sascha Swiercy
|
||||||
Saul good
|
Saul good
|
||||||
Scott Bailey
|
Scott Bailey
|
||||||
Scott Barrett
|
Scott Barrett
|
||||||
@@ -906,14 +1058,16 @@ Scott Cantor
|
|||||||
Scott Davis
|
Scott Davis
|
||||||
Scott McCreary
|
Scott McCreary
|
||||||
Sebastian Rasmussen
|
Sebastian Rasmussen
|
||||||
Sebastien Willemijns
|
|
||||||
Senthil Raja Velu
|
Senthil Raja Velu
|
||||||
Sergei Nikulov
|
Sergei Nikulov
|
||||||
|
Sergey Tatarincev
|
||||||
Sergio Ballestrero
|
Sergio Ballestrero
|
||||||
Seshubabu Pasam
|
Seshubabu Pasam
|
||||||
Sh Diao
|
Sh Diao
|
||||||
|
Shao Shuchao
|
||||||
Sharad Gupta
|
Sharad Gupta
|
||||||
Shard
|
Shard
|
||||||
|
Shawn Landden
|
||||||
Shawn Poulson
|
Shawn Poulson
|
||||||
Shmulik Regev
|
Shmulik Regev
|
||||||
Siddhartha Prakash Jain
|
Siddhartha Prakash Jain
|
||||||
@@ -926,15 +1080,18 @@ Song Ma
|
|||||||
Sonia Subramanian
|
Sonia Subramanian
|
||||||
Spacen Jasset
|
Spacen Jasset
|
||||||
Spiridonoff A.V
|
Spiridonoff A.V
|
||||||
|
Spork Schivago
|
||||||
Stadler Stephan
|
Stadler Stephan
|
||||||
Stan van de Burgt
|
Stan van de Burgt
|
||||||
Stanislav Ivochkin
|
Stanislav Ivochkin
|
||||||
|
Stefan Bühler
|
||||||
Stefan Esser
|
Stefan Esser
|
||||||
Stefan Krause
|
Stefan Krause
|
||||||
Stefan Neis
|
Stefan Neis
|
||||||
Stefan Teleman
|
Stefan Teleman
|
||||||
Stefan Tomanek
|
Stefan Tomanek
|
||||||
Stefan Ulrich
|
Stefan Ulrich
|
||||||
|
Steinar H. Gunderson
|
||||||
Stephan Bergmann
|
Stephan Bergmann
|
||||||
Stephen Collyer
|
Stephen Collyer
|
||||||
Stephen Kick
|
Stephen Kick
|
||||||
@@ -954,22 +1111,28 @@ Steven Gu
|
|||||||
Steven M. Schweda
|
Steven M. Schweda
|
||||||
Steven Parkes
|
Steven Parkes
|
||||||
Stoned Elipot
|
Stoned Elipot
|
||||||
|
Sune Ahlgren
|
||||||
Sven Anders
|
Sven Anders
|
||||||
Sven Neuhaus
|
Sven Neuhaus
|
||||||
Sven Wegener
|
Sven Wegener
|
||||||
|
Symeon Paraschoudis
|
||||||
Sébastien Willemijns
|
Sébastien Willemijns
|
||||||
T. Bharath
|
T. Bharath
|
||||||
T. Yamada
|
T. Yamada
|
||||||
|
Tae Hyoung Ahn
|
||||||
Taneli Vahakangas
|
Taneli Vahakangas
|
||||||
Tanguy Fautre
|
Tanguy Fautre
|
||||||
Tatsuhiro Tsujikawa
|
Tatsuhiro Tsujikawa
|
||||||
Temprimus
|
Temprimus
|
||||||
|
Thomas Braun
|
||||||
Thomas J. Moore
|
Thomas J. Moore
|
||||||
Thomas Klausner
|
Thomas Klausner
|
||||||
Thomas L. Shinnick
|
Thomas L. Shinnick
|
||||||
Thomas Lopatic
|
Thomas Lopatic
|
||||||
Thomas Schwinge
|
Thomas Schwinge
|
||||||
Thomas Tonino
|
Thomas Tonino
|
||||||
|
Tiit Pikma
|
||||||
|
Till Maas
|
||||||
Tim Ansell
|
Tim Ansell
|
||||||
Tim Baker
|
Tim Baker
|
||||||
Tim Bartley
|
Tim Bartley
|
||||||
@@ -978,9 +1141,12 @@ Tim Costello
|
|||||||
Tim Harder
|
Tim Harder
|
||||||
Tim Heckman
|
Tim Heckman
|
||||||
Tim Newsome
|
Tim Newsome
|
||||||
|
Tim Ruehsen
|
||||||
Tim Sneddon
|
Tim Sneddon
|
||||||
|
Tim Starling
|
||||||
Timo Sirainen
|
Timo Sirainen
|
||||||
Tinus van den Berg
|
Tinus van den Berg
|
||||||
|
Tobias Markus
|
||||||
Tobias Rundström
|
Tobias Rundström
|
||||||
Toby Peterson
|
Toby Peterson
|
||||||
Todd A Ouska
|
Todd A Ouska
|
||||||
@@ -995,11 +1161,14 @@ Tom Mattison
|
|||||||
Tom Moers
|
Tom Moers
|
||||||
Tom Mueller
|
Tom Mueller
|
||||||
Tom Regner
|
Tom Regner
|
||||||
|
Tom Sparrow
|
||||||
Tom Wright
|
Tom Wright
|
||||||
Tom Zerucha
|
Tom Zerucha
|
||||||
|
Tomas Hoger
|
||||||
Tomas Mlcoch
|
Tomas Mlcoch
|
||||||
Tomas Pospisek
|
Tomas Pospisek
|
||||||
Tomas Szepe
|
Tomas Szepe
|
||||||
|
Tomasz Kojm
|
||||||
Tomasz Lacki
|
Tomasz Lacki
|
||||||
Tommie Gannert
|
Tommie Gannert
|
||||||
Tommy Tam
|
Tommy Tam
|
||||||
@@ -1014,12 +1183,18 @@ Traian Nicolescu
|
|||||||
Troels Walsted Hansen
|
Troels Walsted Hansen
|
||||||
Troy Engel
|
Troy Engel
|
||||||
Tupone Alfredo
|
Tupone Alfredo
|
||||||
|
Tyler Hall
|
||||||
|
Török Edwin
|
||||||
Ulf Härnhammar
|
Ulf Härnhammar
|
||||||
|
Ulf Samuelsson
|
||||||
Ulrich Doehner
|
Ulrich Doehner
|
||||||
|
Ulrich Telle
|
||||||
Ulrich Zadow
|
Ulrich Zadow
|
||||||
Venkat Akella
|
Venkat Akella
|
||||||
Victor Snezhko
|
Victor Snezhko
|
||||||
|
Vijay Panghal
|
||||||
Vikram Saxena
|
Vikram Saxena
|
||||||
|
Viktor Szakáts
|
||||||
Vilmos Nebehaj
|
Vilmos Nebehaj
|
||||||
Vincent Bronner
|
Vincent Bronner
|
||||||
Vincent Le Normand
|
Vincent Le Normand
|
||||||
@@ -1032,25 +1207,36 @@ Vladimir Grishchenko
|
|||||||
Vladimir Lazarenko
|
Vladimir Lazarenko
|
||||||
Vojtech Janota
|
Vojtech Janota
|
||||||
Vojtech Minarik
|
Vojtech Minarik
|
||||||
|
Vojtěch Král
|
||||||
Vsevolod Novikov
|
Vsevolod Novikov
|
||||||
|
Waldek Kozba
|
||||||
Walter J. Mack
|
Walter J. Mack
|
||||||
Ward Willats
|
Ward Willats
|
||||||
|
Warren Menzer
|
||||||
Wayne Haigh
|
Wayne Haigh
|
||||||
Werner Koch
|
Werner Koch
|
||||||
Wesley Laxton
|
Wesley Laxton
|
||||||
Wesley Miaw
|
Wesley Miaw
|
||||||
Wez Furlong
|
Wez Furlong
|
||||||
Wilfredo Sanchez
|
Wilfredo Sanchez
|
||||||
|
Will Dietz
|
||||||
Willem Sparreboom
|
Willem Sparreboom
|
||||||
|
William Ahern
|
||||||
Wojciech Zwiefka
|
Wojciech Zwiefka
|
||||||
Wouter Van Rooy
|
Wouter Van Rooy
|
||||||
Wu Yongzheng
|
Wu Yongzheng
|
||||||
Xavier Bouchoux
|
Xavier Bouchoux
|
||||||
Yamada Yasuharu
|
Yaakov Selkowitz
|
||||||
Yang Tse
|
Yang Tse
|
||||||
Yarram Sunil
|
Yarram Sunil
|
||||||
|
Yasuharu Yamada
|
||||||
|
Yehezkel Horowitz
|
||||||
Yehoshua Hershberg
|
Yehoshua Hershberg
|
||||||
|
Yi Huang
|
||||||
|
Yingwei Liu
|
||||||
|
Yousuke Kimoto
|
||||||
Yukihiro Kawada
|
Yukihiro Kawada
|
||||||
|
Yun SangHo
|
||||||
Yuriy Sosov
|
Yuriy Sosov
|
||||||
Yves Arrouye
|
Yves Arrouye
|
||||||
Yves Lejeune
|
Yves Lejeune
|
||||||
@@ -1061,3 +1247,4 @@ Zvi Har'El
|
|||||||
nk
|
nk
|
||||||
swalkaus at yahoo.com
|
swalkaus at yahoo.com
|
||||||
tommink[at]post.pl
|
tommink[at]post.pl
|
||||||
|
Никита Дорохин
|
||||||
|
|||||||
49
docs/THANKS-filter
Normal file
49
docs/THANKS-filter
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
# This is a list of names we have recorded that already are thanked
|
||||||
|
# appropriately in THANKS. This list contains variations of their names and
|
||||||
|
# their "canonical" name. This file is used for scripting purposes to avoid
|
||||||
|
# duplicate entries and will not be included in release tarballs.
|
||||||
|
# When removing dupes that aren't identical names from THANKS, add a line
|
||||||
|
# here!
|
||||||
|
#
|
||||||
|
# Used-by: contributor.sh
|
||||||
|
s/Andres Garcia/Andrés García/
|
||||||
|
s/Chris Conroy/Christopher Conroy/
|
||||||
|
s/Francois Charlier/François Charlier/
|
||||||
|
s/Gokhan Sengun/Gökhan Şengün/
|
||||||
|
s/John Malmberg/John E. Malmberg/
|
||||||
|
s/Luca Alteas/Luca Altea/
|
||||||
|
s/Michal Gorny/Michał Górny/
|
||||||
|
s/Michal Górny/Michał Górny/
|
||||||
|
s/Moonesamy/S. Moonesamy/
|
||||||
|
s/Pete Su$/Peter Su/
|
||||||
|
s/Sam Listopad/Samuel Listopad/
|
||||||
|
s/Sebastien Willemijns/Sébastien Willemijns/
|
||||||
|
s/YAMADA Yasuharu/Yasuharu Yamada/
|
||||||
|
s/Karl M$/Karl Moerder/
|
||||||
|
s/Bjorn Stenberg/Björn Stenberg/
|
||||||
|
s/upstream tests 305 and 404//
|
||||||
|
s/Gaël PORTAY/Gaël Portay/
|
||||||
|
s/Romulo Ceccon/Romulo A. Ceccon/
|
||||||
|
s/Nach M. S$/Nach M. S./
|
||||||
|
s/Jay Satiro/Ray Satiro/
|
||||||
|
s/Richard J. Moore/Richard Moore/
|
||||||
|
s/Sergey Nikulov/Sergei Nikulov/
|
||||||
|
s/Petr Písař/Petr Pisar/
|
||||||
|
s/Nick Zitzmann (originally)/Nick Zitzmann/
|
||||||
|
s/product-security at Apple//
|
||||||
|
s/IT DOES NOT WORK//
|
||||||
|
s/Albert Chin/Albert Chin-A-Young/
|
||||||
|
s/Paras S/Paras Sethia/
|
||||||
|
s/Дмитрий Фалько/Dmitry Falko/
|
||||||
|
s/byte_bucket in the #curl IRC channel//
|
||||||
|
s/Michal Górny and Anthony G. Basile//
|
||||||
|
s/Alejandro Alvarez$/Alejandro Alvarez Ayllon/
|
||||||
|
s/Ant Bryan/Anthony Bryan/
|
||||||
|
s/Cédric Deltheil/Cédric Deltheil/
|
||||||
|
s/Christian Hagele/Christian Hägele/
|
||||||
|
s/douglas steinwand/Douglas Steinwand/
|
||||||
|
s/Frank Van Uffelen and Fabian Hiernaux//
|
||||||
|
s/Rodrigo Silva (MestreLion)/Rodrigo Silva/
|
||||||
|
s/tetetest tetetest//
|
||||||
|
s/Jiří Hruška/Jiri Hruska/
|
||||||
|
s/Viktor Szakats/Viktor Szakáts/
|
||||||
476
docs/TODO
476
docs/TODO
@@ -16,29 +16,34 @@
|
|||||||
1.3 struct lifreq
|
1.3 struct lifreq
|
||||||
1.4 signal-based resolver timeouts
|
1.4 signal-based resolver timeouts
|
||||||
1.5 get rid of PATH_MAX
|
1.5 get rid of PATH_MAX
|
||||||
1.6 Happy Eyeball dual stack connect
|
1.6 Modified buffer size approach
|
||||||
1.7 Modified buffer size approach
|
1.7 Detect when called from within callbacks
|
||||||
|
1.8 Allow SSL (HTTPS) to proxy
|
||||||
|
1.9 Cache negative name resolves
|
||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
2.1 More non-blocking
|
2.1 More non-blocking
|
||||||
2.2 Fix HTTP Pipelining for PUT
|
2.2 Fix HTTP Pipelining for PUT
|
||||||
|
2.3 Better support for same name resolves
|
||||||
|
|
||||||
3. Documentation
|
3. Documentation
|
||||||
3.1 More and better
|
3.1 Update date and version in man pages
|
||||||
|
|
||||||
4. FTP
|
4. FTP
|
||||||
4.1 HOST
|
4.1 HOST
|
||||||
4.2 Alter passive/active on failure and retry
|
4.2 Alter passive/active on failure and retry
|
||||||
4.3 Earlier bad letter detection
|
4.3 Earlier bad letter detection
|
||||||
4.4 REST for large files
|
4.4 REST for large files
|
||||||
4.5 FTP proxy support
|
4.5 ASCII support
|
||||||
4.6 ASCII support
|
4.6 GSSAPI via Windows SSPI
|
||||||
|
4.7 STAT for LIST without data connection
|
||||||
|
|
||||||
5. HTTP
|
5. HTTP
|
||||||
5.1 Better persistency for HTTP 1.0
|
5.1 Better persistency for HTTP 1.0
|
||||||
5.2 support FF3 sqlite cookie files
|
5.2 support FF3 sqlite cookie files
|
||||||
5.3 Rearrange request header order
|
5.3 Rearrange request header order
|
||||||
5.4 HTTP2/SPDY
|
5.4 SPDY
|
||||||
|
5.5 auth= in URLs
|
||||||
|
|
||||||
6. TELNET
|
6. TELNET
|
||||||
6.1 ditch stdin
|
6.1 ditch stdin
|
||||||
@@ -48,77 +53,83 @@
|
|||||||
|
|
||||||
7. SMTP
|
7. SMTP
|
||||||
7.1 Pipelining
|
7.1 Pipelining
|
||||||
7.2 Graceful base64 decoding failure
|
7.2 Enhanced capability support
|
||||||
7.3 Enhanced capability support
|
|
||||||
|
|
||||||
8. POP3
|
8. POP3
|
||||||
8.1 Pipelining
|
8.1 Pipelining
|
||||||
8.2 Graceful base64 decoding failure
|
8.2 Enhanced capability support
|
||||||
8.3 Enhanced capability support
|
|
||||||
|
|
||||||
9. IMAP
|
9. IMAP
|
||||||
9.1 Graceful base64 decoding failure
|
9.1 Enhanced capability support
|
||||||
9.2 Enhanced capability support
|
|
||||||
|
|
||||||
10. LDAP
|
10. LDAP
|
||||||
10.1 SASL based authentication mechanisms
|
10.1 SASL based authentication mechanisms
|
||||||
|
|
||||||
11. New protocols
|
11. SMB
|
||||||
11.1 RSYNC
|
11.1 File listing support
|
||||||
|
11.2 Honor file timestamps
|
||||||
12. SSL
|
11.3 Use NTLMv2
|
||||||
12.1 Disable specific versions
|
|
||||||
12.2 Provide mutex locking API
|
|
||||||
12.3 Evaluate SSL patches
|
|
||||||
12.4 Cache OpenSSL contexts
|
|
||||||
12.5 Export session ids
|
|
||||||
12.6 Provide callback for cert verification
|
|
||||||
12.7 Support other SSL libraries
|
|
||||||
12.8 improve configure --with-ssl
|
|
||||||
12.9 Support DANE
|
|
||||||
|
|
||||||
13. GnuTLS
|
|
||||||
13.1 SSL engine stuff
|
|
||||||
13.2 check connection
|
|
||||||
|
|
||||||
14. SASL
|
|
||||||
14.1 Other authentication mechanisms
|
|
||||||
|
|
||||||
15. Client
|
12. New protocols
|
||||||
15.1 sync
|
12.1 RSYNC
|
||||||
15.2 glob posts
|
|
||||||
15.3 prevent file overwriting
|
|
||||||
15.4 simultaneous parallel transfers
|
|
||||||
15.5 provide formpost headers
|
|
||||||
15.6 url-specific options
|
|
||||||
15.7 warning when setting an option
|
|
||||||
15.8 IPv6 addresses with globbing
|
|
||||||
|
|
||||||
16. Build
|
13. SSL
|
||||||
16.1 roffit
|
13.1 Disable specific versions
|
||||||
|
13.2 Provide mutex locking API
|
||||||
|
13.3 Evaluate SSL patches
|
||||||
|
13.4 Cache OpenSSL contexts
|
||||||
|
13.5 Export session ids
|
||||||
|
13.6 Provide callback for cert verification
|
||||||
|
13.7 improve configure --with-ssl
|
||||||
|
13.8 Support DANE
|
||||||
|
|
||||||
17. Test suite
|
14. GnuTLS
|
||||||
17.1 SSL tunnel
|
14.1 SSL engine stuff
|
||||||
17.2 nicer lacking perl message
|
14.2 check connection
|
||||||
17.3 more protocols supported
|
|
||||||
17.4 more platforms supported
|
|
||||||
|
|
||||||
18. Next SONAME bump
|
15. WinSSL/SChannel
|
||||||
18.1 http-style HEAD output for ftp
|
15.1 Add support for client certificate authentication
|
||||||
18.2 combine error codes
|
15.2 Add support for custom server certificate validation
|
||||||
18.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
15.3 Add support for the --ciphers option
|
||||||
|
|
||||||
19. Next major release
|
16. SASL
|
||||||
19.1 cleanup return codes
|
16.1 Other authentication mechanisms
|
||||||
19.2 remove obsolete defines
|
16.2 Add QOP support to GSSAPI authentication
|
||||||
19.3 size_t
|
|
||||||
19.4 remove several functions
|
17. Client
|
||||||
19.5 remove CURLOPT_FAILONERROR
|
17.1 sync
|
||||||
19.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
17.2 glob posts
|
||||||
19.7 remove progress meter from libcurl
|
17.3 prevent file overwriting
|
||||||
19.8 remove 'curl_httppost' from public
|
17.4 simultaneous parallel transfers
|
||||||
19.9 have form functions use CURL handle argument
|
17.5 provide formpost headers
|
||||||
19.10 Add CURLOPT_MAIL_CLIENT option
|
17.6 warning when setting an option
|
||||||
|
|
||||||
|
18. Build
|
||||||
|
18.1 roffit
|
||||||
|
|
||||||
|
19. Test suite
|
||||||
|
19.1 SSL tunnel
|
||||||
|
19.2 nicer lacking perl message
|
||||||
|
19.3 more protocols supported
|
||||||
|
19.4 more platforms supported
|
||||||
|
19.5 Add support for concurrent connections
|
||||||
|
|
||||||
|
20. Next SONAME bump
|
||||||
|
20.1 http-style HEAD output for FTP
|
||||||
|
20.2 combine error codes
|
||||||
|
20.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
||||||
|
|
||||||
|
21. Next major release
|
||||||
|
21.1 cleanup return codes
|
||||||
|
21.2 remove obsolete defines
|
||||||
|
21.3 size_t
|
||||||
|
21.4 remove several functions
|
||||||
|
21.5 remove CURLOPT_FAILONERROR
|
||||||
|
21.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
||||||
|
21.7 remove progress meter from libcurl
|
||||||
|
21.8 remove 'curl_httppost' from public
|
||||||
|
21.9 have form functions use CURL handle argument
|
||||||
|
21.10 Add CURLOPT_MAIL_CLIENT option
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
@@ -134,7 +145,7 @@
|
|||||||
|
|
||||||
Use 'struct lifreq' and SIOCGLIFADDR instead of 'struct ifreq' and
|
Use 'struct lifreq' and SIOCGLIFADDR instead of 'struct ifreq' and
|
||||||
SIOCGIFADDR on newer Solaris versions as they claim the latter is obsolete.
|
SIOCGIFADDR on newer Solaris versions as they claim the latter is obsolete.
|
||||||
To support ipv6 interface addresses for network interfaces properly.
|
To support IPv6 interface addresses for network interfaces properly.
|
||||||
|
|
||||||
1.4 signal-based resolver timeouts
|
1.4 signal-based resolver timeouts
|
||||||
|
|
||||||
@@ -157,19 +168,7 @@
|
|||||||
we need libssh2 to properly tell us when we pass in a too small buffer and
|
we need libssh2 to properly tell us when we pass in a too small buffer and
|
||||||
its current API (as of libssh2 1.2.7) doesn't.
|
its current API (as of libssh2 1.2.7) doesn't.
|
||||||
|
|
||||||
1.6 Happy Eyeball dual stack connect
|
1.6 Modified buffer size approach
|
||||||
|
|
||||||
In order to make alternative technologies not suffer when transitioning, like
|
|
||||||
when introducing IPv6 as an alternative to IPv4 and there are more than one
|
|
||||||
option existing simultaneously there are reasons to reconsider internal
|
|
||||||
choices.
|
|
||||||
|
|
||||||
To make libcurl do blazing fast IPv6 in a dual-stack configuration, this needs
|
|
||||||
to be addressed:
|
|
||||||
|
|
||||||
http://tools.ietf.org/html/rfc6555
|
|
||||||
|
|
||||||
1.7 Modified buffer size approach
|
|
||||||
|
|
||||||
Current libcurl allocates a fixed 16K size buffer for download and an
|
Current libcurl allocates a fixed 16K size buffer for download and an
|
||||||
additional 16K for upload. They are always unconditionally part of the easy
|
additional 16K for upload. They are always unconditionally part of the easy
|
||||||
@@ -190,6 +189,26 @@
|
|||||||
Dynamically allocate buffer size depending on protocol in use in combination
|
Dynamically allocate buffer size depending on protocol in use in combination
|
||||||
with freeing it after each individual transfer? Other suggestions?
|
with freeing it after each individual transfer? Other suggestions?
|
||||||
|
|
||||||
|
1.7 Detect when called from within callbacks
|
||||||
|
|
||||||
|
We should set a state variable before calling callbacks, so that we
|
||||||
|
subsequently can add code within libcurl that returns error if called within
|
||||||
|
callbacks for when that's not supported.
|
||||||
|
|
||||||
|
1.8 Allow SSL (HTTPS) to proxy
|
||||||
|
|
||||||
|
To prevent local users from snooping on your traffic to the proxy. Supported
|
||||||
|
by Chrome already:
|
||||||
|
http://www.chromium.org/developers/design-documents/secure-web-proxy
|
||||||
|
|
||||||
|
...and by Firefox soon:
|
||||||
|
https://bugzilla.mozilla.org/show_bug.cgi?id=378637
|
||||||
|
|
||||||
|
1.9 Cache negative name resolves
|
||||||
|
|
||||||
|
A name resolve that has failed is likely to fail when made again within a
|
||||||
|
short period of time. Currently we only cache positive responses.
|
||||||
|
|
||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
|
|
||||||
@@ -213,20 +232,31 @@
|
|||||||
serial requests and currently libcurl only supports that for HEAD and GET
|
serial requests and currently libcurl only supports that for HEAD and GET
|
||||||
requests but it should also be possible for PUT.
|
requests but it should also be possible for PUT.
|
||||||
|
|
||||||
|
2.3 Better support for same name resolves
|
||||||
|
|
||||||
|
If a name resolve has been initiated for name NN and a second easy handle
|
||||||
|
wants to resolve that name as well, make it wait for the first resolve to end
|
||||||
|
up in the cache instead of doing a second separate resolve. This is
|
||||||
|
especially needed when adding many simultaneous handles using the same host
|
||||||
|
name when the DNS resolver can get flooded.
|
||||||
|
|
||||||
|
|
||||||
3. Documentation
|
3. Documentation
|
||||||
|
|
||||||
3.1 More and better
|
3.1 Update date and version in man pages
|
||||||
|
|
||||||
Exactly
|
'maketgz' or another suitable script could update the .TH sections of the man
|
||||||
|
pages at release time to use the current date and curl/libcurl version
|
||||||
|
number.
|
||||||
|
|
||||||
4. FTP
|
4. FTP
|
||||||
|
|
||||||
4.1 HOST
|
4.1 HOST
|
||||||
|
|
||||||
HOST is a suggested command in the works for a client to tell which host name
|
HOST is a command for a client to tell which host name to use, to offer FTP
|
||||||
to use, to offer FTP servers named-based virtual hosting:
|
servers named-based virtual hosting:
|
||||||
|
|
||||||
http://tools.ietf.org/html/draft-hethmon-mcmurray-ftp-hosts-11
|
http://tools.ietf.org/html/rfc7151
|
||||||
|
|
||||||
4.2 Alter passive/active on failure and retry
|
4.2 Alter passive/active on failure and retry
|
||||||
|
|
||||||
@@ -237,7 +267,7 @@
|
|||||||
|
|
||||||
4.3 Earlier bad letter detection
|
4.3 Earlier bad letter detection
|
||||||
|
|
||||||
Make the detection of (bad) %0d and %0a codes in FTP url parts earlier in the
|
Make the detection of (bad) %0d and %0a codes in FTP URL parts earlier in the
|
||||||
process to avoid doing a resolve and connect in vain.
|
process to avoid doing a resolve and connect in vain.
|
||||||
|
|
||||||
4.4 REST for large files
|
4.4 REST for large files
|
||||||
@@ -246,17 +276,25 @@
|
|||||||
the server doesn't set the pointer to the requested index. The tricky
|
the server doesn't set the pointer to the requested index. The tricky
|
||||||
(impossible?) part is to figure out if the server did the right thing or not.
|
(impossible?) part is to figure out if the server did the right thing or not.
|
||||||
|
|
||||||
4.5 FTP proxy support
|
4.5 ASCII support
|
||||||
|
|
||||||
Support the most common FTP proxies, Philip Newton provided a list allegedly
|
|
||||||
from ncftp. This is not a subject without debate, and is probably not really
|
|
||||||
suitable for libcurl. http://curl.haxx.se/mail/archive-2003-04/0126.html
|
|
||||||
|
|
||||||
4.6 ASCII support
|
|
||||||
|
|
||||||
FTP ASCII transfers do not follow RFC959. They don't convert the data
|
FTP ASCII transfers do not follow RFC959. They don't convert the data
|
||||||
accordingly.
|
accordingly.
|
||||||
|
|
||||||
|
4.6 GSSAPI via Windows SSPI
|
||||||
|
|
||||||
|
In addition to currently supporting the SASL GSSAPI mechanism (Kerberos V5)
|
||||||
|
via third-party GSS-API libraries, such as Heimdal or MIT Kerberos, also add
|
||||||
|
support for GSSAPI authentication via Windows SSPI.
|
||||||
|
|
||||||
|
4.7 STAT for LIST without data connection
|
||||||
|
|
||||||
|
Some FTP servers allow STAT for listing directories instead of using LIST, and
|
||||||
|
the response is then sent over the control connection instead of as the
|
||||||
|
otherwise usedw data connection: http://www.nsftools.com/tips/RawFTP.htm#STAT
|
||||||
|
|
||||||
|
This is not detailed in any FTP specification.
|
||||||
|
|
||||||
5. HTTP
|
5. HTTP
|
||||||
|
|
||||||
5.1 Better persistency for HTTP 1.0
|
5.1 Better persistency for HTTP 1.0
|
||||||
@@ -282,24 +320,25 @@
|
|||||||
headers use a default value so only headers that need to be moved have to be
|
headers use a default value so only headers that need to be moved have to be
|
||||||
specified.
|
specified.
|
||||||
|
|
||||||
5.4 HTTP2/SPDY
|
5.4 SPDY
|
||||||
|
|
||||||
The first drafts for HTTP2 have been published
|
Chrome and Firefox already support SPDY and lots of web services do. There's
|
||||||
(http://tools.ietf.org/html/draft-ietf-httpbis-http2-03) and is so far based
|
a library for us to use for this (spdylay) that has a similar API and the
|
||||||
on SPDY (http://www.chromium.org/spdy) designs and experiences. Chances are
|
same author as nghttp2.
|
||||||
it will end up in that style. Chrome and Firefox already support SPDY and
|
|
||||||
lots of web services do.
|
|
||||||
|
|
||||||
It would make sense to implement SPDY support now and later transition into
|
spdylay: https://github.com/tatsuhiro-t/spdylay
|
||||||
or add HTTP2 support as well.
|
|
||||||
|
|
||||||
We should base or HTTP2/SPDY work on a 3rd party library for the protocol
|
5.5 auth= in URLs
|
||||||
fiddling. The Spindy library (http://spindly.haxx.se/) was an attempt to make
|
|
||||||
such a library with an API suitable for use by libcurl but that effort has
|
|
||||||
more or less stalled. spdylay (https://github.com/tatsuhiro-t/spdylay) may
|
|
||||||
be a better option, either used directly or wrapped with a more spindly-like
|
|
||||||
API.
|
|
||||||
|
|
||||||
|
Add the ability to specify the preferred authentication mechanism to use by
|
||||||
|
using ;auth=<mech> in the login part of the URL.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
http://test:pass;auth=NTLM@example.com would be equivalent to specifying --user
|
||||||
|
test:pass;auth=NTLM or --user test:pass --ntlm from the command line.
|
||||||
|
|
||||||
|
Additionally this should be implemented for proxy base URLs as well.
|
||||||
|
|
||||||
6. TELNET
|
6. TELNET
|
||||||
|
|
||||||
@@ -331,14 +370,7 @@ to provide the data to send.
|
|||||||
|
|
||||||
Add support for pipelining emails.
|
Add support for pipelining emails.
|
||||||
|
|
||||||
7.2 Graceful base64 decoding failure
|
7.2 Enhanced capability support
|
||||||
|
|
||||||
Rather than shutting down the session and returning an error when the
|
|
||||||
decoding of a base64 encoded authentication response fails, we should
|
|
||||||
gracefully shutdown the authentication process by sending a * response to the
|
|
||||||
server as per RFC4954.
|
|
||||||
|
|
||||||
7.3 Enhanced capability support
|
|
||||||
|
|
||||||
Add the ability, for an application that uses libcurl, to obtain the list of
|
Add the ability, for an application that uses libcurl, to obtain the list of
|
||||||
capabilities returned from the EHLO command.
|
capabilities returned from the EHLO command.
|
||||||
@@ -349,28 +381,14 @@ to provide the data to send.
|
|||||||
|
|
||||||
Add support for pipelining commands.
|
Add support for pipelining commands.
|
||||||
|
|
||||||
8.2 Graceful base64 decoding failure
|
8.2 Enhanced capability support
|
||||||
|
|
||||||
Rather than shutting down the session and returning an error when the
|
|
||||||
decoding of a base64 encoded authentication response fails, we should
|
|
||||||
gracefully shutdown the authentication process by sending a * response to the
|
|
||||||
server as per RFC5034.
|
|
||||||
|
|
||||||
8.3 Enhanced capability support
|
|
||||||
|
|
||||||
Add the ability, for an application that uses libcurl, to obtain the list of
|
Add the ability, for an application that uses libcurl, to obtain the list of
|
||||||
capabilities returned from the CAPA command.
|
capabilities returned from the CAPA command.
|
||||||
|
|
||||||
9. IMAP
|
9. IMAP
|
||||||
|
|
||||||
9.1 Graceful base64 decoding failure
|
9.1 Enhanced capability support
|
||||||
|
|
||||||
Rather than shutting down the session and returning an error when the
|
|
||||||
decoding of a base64 encoded authentication response fails, we should
|
|
||||||
gracefully shutdown the authentication process by sending a * response to the
|
|
||||||
server as per RFC3501.
|
|
||||||
|
|
||||||
9.2 Enhanced capability support
|
|
||||||
|
|
||||||
Add the ability, for an application that uses libcurl, to obtain the list of
|
Add the ability, for an application that uses libcurl, to obtain the list of
|
||||||
capabilities returned from the CAPABILITY command.
|
capabilities returned from the CAPABILITY command.
|
||||||
@@ -382,45 +400,60 @@ to provide the data to send.
|
|||||||
Currently the LDAP module only supports ldap_simple_bind_s() in order to bind
|
Currently the LDAP module only supports ldap_simple_bind_s() in order to bind
|
||||||
to an LDAP server. However, this function sends username and password details
|
to an LDAP server. However, this function sends username and password details
|
||||||
using the simple authentication mechanism (as clear text). However, it should
|
using the simple authentication mechanism (as clear text). However, it should
|
||||||
be possible to use ldap_bind_s() instead specifing the security context
|
be possible to use ldap_bind_s() instead specifying the security context
|
||||||
information ourselves.
|
information ourselves.
|
||||||
|
|
||||||
11. New protocols
|
11. SMB
|
||||||
|
|
||||||
11.1 RSYNC
|
11.1 File listing support
|
||||||
|
|
||||||
|
Add support for listing the contents of a SMB share. The output should probably
|
||||||
|
be the same as/similar to FTP.
|
||||||
|
|
||||||
|
11.2 Honor file timestamps
|
||||||
|
|
||||||
|
The timestamp of the transfered file should reflect that of the original file.
|
||||||
|
|
||||||
|
11.3 Use NTLMv2
|
||||||
|
|
||||||
|
Currently the SMB authentication uses NTLMv1.
|
||||||
|
|
||||||
|
12. New protocols
|
||||||
|
|
||||||
|
12.1 RSYNC
|
||||||
|
|
||||||
There's no RFC for the protocol or an URI/URL format. An implementation
|
There's no RFC for the protocol or an URI/URL format. An implementation
|
||||||
should most probably use an existing rsync library, such as librsync.
|
should most probably use an existing rsync library, such as librsync.
|
||||||
|
|
||||||
12. SSL
|
13. SSL
|
||||||
|
|
||||||
12.1 Disable specific versions
|
13.1 Disable specific versions
|
||||||
|
|
||||||
Provide an option that allows for disabling specific SSL versions, such as
|
Provide an option that allows for disabling specific SSL versions, such as
|
||||||
SSLv2 http://curl.haxx.se/bug/feature.cgi?id=1767276
|
SSLv2 http://curl.haxx.se/bug/feature.cgi?id=1767276
|
||||||
|
|
||||||
12.2 Provide mutex locking API
|
13.2 Provide mutex locking API
|
||||||
|
|
||||||
Provide a libcurl API for setting mutex callbacks in the underlying SSL
|
Provide a libcurl API for setting mutex callbacks in the underlying SSL
|
||||||
library, so that the same application code can use mutex-locking
|
library, so that the same application code can use mutex-locking
|
||||||
independently of OpenSSL or GnutTLS being used.
|
independently of OpenSSL or GnutTLS being used.
|
||||||
|
|
||||||
12.3 Evaluate SSL patches
|
13.3 Evaluate SSL patches
|
||||||
|
|
||||||
Evaluate/apply Gertjan van Wingerde's SSL patches:
|
Evaluate/apply Gertjan van Wingerde's SSL patches:
|
||||||
http://curl.haxx.se/mail/lib-2004-03/0087.html
|
http://curl.haxx.se/mail/lib-2004-03/0087.html
|
||||||
|
|
||||||
12.4 Cache OpenSSL contexts
|
13.4 Cache OpenSSL contexts
|
||||||
|
|
||||||
"Look at SSL cafile - quick traces look to me like these are done on every
|
"Look at SSL cafile - quick traces look to me like these are done on every
|
||||||
request as well, when they should only be necessary once per ssl context (or
|
request as well, when they should only be necessary once per SSL context (or
|
||||||
once per handle)". The major improvement we can rather easily do is to make
|
once per handle)". The major improvement we can rather easily do is to make
|
||||||
sure we don't create and kill a new SSL "context" for every request, but
|
sure we don't create and kill a new SSL "context" for every request, but
|
||||||
instead make one for every connection and re-use that SSL context in the same
|
instead make one for every connection and re-use that SSL context in the same
|
||||||
style connections are re-used. It will make us use slightly more memory but
|
style connections are re-used. It will make us use slightly more memory but
|
||||||
it will libcurl do less creations and deletions of SSL contexts.
|
it will libcurl do less creations and deletions of SSL contexts.
|
||||||
|
|
||||||
12.5 Export session ids
|
13.5 Export session ids
|
||||||
|
|
||||||
Add an interface to libcurl that enables "session IDs" to get
|
Add an interface to libcurl that enables "session IDs" to get
|
||||||
exported/imported. Cris Bailiff said: "OpenSSL has functions which can
|
exported/imported. Cris Bailiff said: "OpenSSL has functions which can
|
||||||
@@ -428,23 +461,18 @@ to provide the data to send.
|
|||||||
the state from such a buffer at a later date - this is used by mod_ssl for
|
the state from such a buffer at a later date - this is used by mod_ssl for
|
||||||
apache to implement and SSL session ID cache".
|
apache to implement and SSL session ID cache".
|
||||||
|
|
||||||
12.6 Provide callback for cert verification
|
13.6 Provide callback for cert verification
|
||||||
|
|
||||||
OpenSSL supports a callback for customised verification of the peer
|
OpenSSL supports a callback for customised verification of the peer
|
||||||
certificate, but this doesn't seem to be exposed in the libcurl APIs. Could
|
certificate, but this doesn't seem to be exposed in the libcurl APIs. Could
|
||||||
it be? There's so much that could be done if it were!
|
it be? There's so much that could be done if it were!
|
||||||
|
|
||||||
12.7 Support other SSL libraries
|
13.7 improve configure --with-ssl
|
||||||
|
|
||||||
Make curl's SSL layer capable of using other free SSL libraries. Such as
|
|
||||||
MatrixSSL (http://www.matrixssl.org/).
|
|
||||||
|
|
||||||
12.8 improve configure --with-ssl
|
|
||||||
|
|
||||||
make the configure --with-ssl option first check for OpenSSL, then GnuTLS,
|
make the configure --with-ssl option first check for OpenSSL, then GnuTLS,
|
||||||
then NSS...
|
then NSS...
|
||||||
|
|
||||||
12.9 Support DANE
|
13.8 Support DANE
|
||||||
|
|
||||||
DNS-Based Authentication of Named Entities (DANE) is a way to provide SSL
|
DNS-Based Authentication of Named Entities (DANE) is a way to provide SSL
|
||||||
keys and certs over DNS using DNSSEC as an alternative to the CA model.
|
keys and certs over DNS using DNSSEC as an alternative to the CA model.
|
||||||
@@ -456,26 +484,69 @@ to provide the data to send.
|
|||||||
http://curl.haxx.se/mail/lib-2013-03/0103.html . libunbound may be the
|
http://curl.haxx.se/mail/lib-2013-03/0103.html . libunbound may be the
|
||||||
correct library to base this development on.
|
correct library to base this development on.
|
||||||
|
|
||||||
13. GnuTLS
|
14. GnuTLS
|
||||||
|
|
||||||
13.1 SSL engine stuff
|
14.1 SSL engine stuff
|
||||||
|
|
||||||
Is this even possible?
|
Is this even possible?
|
||||||
|
|
||||||
13.2 check connection
|
14.2 check connection
|
||||||
|
|
||||||
Add a way to check if the connection seems to be alive, to correspond to the
|
Add a way to check if the connection seems to be alive, to correspond to the
|
||||||
SSL_peak() way we use with OpenSSL.
|
SSL_peak() way we use with OpenSSL.
|
||||||
|
|
||||||
14. SASL
|
15. WinSSL/SChannel
|
||||||
|
|
||||||
14.1 Other authentication mechanisms
|
15.1 Add support for client certificate authentication
|
||||||
|
|
||||||
Add support for GSSAPI to SMTP, POP3 and IMAP.
|
WinSSL/SChannel currently makes use of the OS-level system and user
|
||||||
|
certificate and private key stores. This does not allow the application
|
||||||
|
or the user to supply a custom client certificate using curl or libcurl.
|
||||||
|
|
||||||
15. Client
|
Therefore support for the existing -E/--cert and --key options should be
|
||||||
|
implemented by supplying a custom certificate to the SChannel APIs, see:
|
||||||
|
- Getting a Certificate for Schannel
|
||||||
|
http://msdn.microsoft.com/en-us/library/windows/desktop/aa375447.aspx
|
||||||
|
|
||||||
15.1 sync
|
15.2 Add support for custom server certificate validation
|
||||||
|
|
||||||
|
WinSSL/SChannel currently makes use of the OS-level system and user
|
||||||
|
certificate trust store. This does not allow the application or user to
|
||||||
|
customize the server certificate validation process using curl or libcurl.
|
||||||
|
|
||||||
|
Therefore support for the existing --cacert or --capath options should be
|
||||||
|
implemented by supplying a custom certificate to the SChannel APIs, see:
|
||||||
|
- Getting a Certificate for Schannel
|
||||||
|
http://msdn.microsoft.com/en-us/library/windows/desktop/aa375447.aspx
|
||||||
|
|
||||||
|
15.3 Add support for the --ciphers option
|
||||||
|
|
||||||
|
The cipher suites used by WinSSL/SChannel are configured on an OS-level
|
||||||
|
instead of an application-level. This does not allow the application or
|
||||||
|
the user to customize the configured cipher suites using curl or libcurl.
|
||||||
|
|
||||||
|
Therefore support for the existing --ciphers option should be implemented
|
||||||
|
by mapping the OpenSSL/GnuTLS cipher suites to the SChannel APIs, see
|
||||||
|
- Specifying Schannel Ciphers and Cipher Strengths
|
||||||
|
http://msdn.microsoft.com/en-us/library/windows/desktop/aa380161.aspx
|
||||||
|
|
||||||
|
16. SASL
|
||||||
|
|
||||||
|
16.1 Other authentication mechanisms
|
||||||
|
|
||||||
|
Add support for other authentication mechanisms such as OLP,
|
||||||
|
GSS-SPNEGO and others.
|
||||||
|
|
||||||
|
16.2 Add QOP support to GSSAPI authentication
|
||||||
|
|
||||||
|
Currently the GSSAPI authentication only supports the default QOP of auth
|
||||||
|
(Authentication), whilst Kerberos V5 supports both auth-int (Authentication
|
||||||
|
with integrity protection) and auth-conf (Authentication with integrity and
|
||||||
|
privacy protection).
|
||||||
|
|
||||||
|
17. Client
|
||||||
|
|
||||||
|
17.1 sync
|
||||||
|
|
||||||
"curl --sync http://example.com/feed[1-100].rss" or
|
"curl --sync http://example.com/feed[1-100].rss" or
|
||||||
"curl --sync http://example.net/{index,calendar,history}.html"
|
"curl --sync http://example.net/{index,calendar,history}.html"
|
||||||
@@ -484,12 +555,12 @@ to provide the data to send.
|
|||||||
remote file is newer than the local file. A Last-Modified HTTP date header
|
remote file is newer than the local file. A Last-Modified HTTP date header
|
||||||
should also be used to set the mod date on the downloaded file.
|
should also be used to set the mod date on the downloaded file.
|
||||||
|
|
||||||
15.2 glob posts
|
17.2 glob posts
|
||||||
|
|
||||||
Globbing support for -d and -F, as in 'curl -d "name=foo[0-9]" URL'.
|
Globbing support for -d and -F, as in 'curl -d "name=foo[0-9]" URL'.
|
||||||
This is easily scripted though.
|
This is easily scripted though.
|
||||||
|
|
||||||
15.3 prevent file overwriting
|
17.3 prevent file overwriting
|
||||||
|
|
||||||
Add an option that prevents cURL from overwriting existing local files. When
|
Add an option that prevents cURL from overwriting existing local files. When
|
||||||
used, and there already is an existing file with the target file name
|
used, and there already is an existing file with the target file name
|
||||||
@@ -497,14 +568,14 @@ to provide the data to send.
|
|||||||
existing). So that index.html becomes first index.html.1 and then
|
existing). So that index.html becomes first index.html.1 and then
|
||||||
index.html.2 etc.
|
index.html.2 etc.
|
||||||
|
|
||||||
15.4 simultaneous parallel transfers
|
17.4 simultaneous parallel transfers
|
||||||
|
|
||||||
The client could be told to use maximum N simultaneous parallel transfers and
|
The client could be told to use maximum N simultaneous parallel transfers and
|
||||||
then just make sure that happens. It should of course not make more than one
|
then just make sure that happens. It should of course not make more than one
|
||||||
connection to the same remote host. This would require the client to use the
|
connection to the same remote host. This would require the client to use the
|
||||||
multi interface. http://curl.haxx.se/bug/feature.cgi?id=1558595
|
multi interface. http://curl.haxx.se/bug/feature.cgi?id=1558595
|
||||||
|
|
||||||
15.5 provide formpost headers
|
17.5 provide formpost headers
|
||||||
|
|
||||||
Extending the capabilities of the multipart formposting. How about leaving
|
Extending the capabilities of the multipart formposting. How about leaving
|
||||||
the ';type=foo' syntax as it is and adding an extra tag (headers) which
|
the ';type=foo' syntax as it is and adding an extra tag (headers) which
|
||||||
@@ -518,71 +589,64 @@ to provide the data to send.
|
|||||||
which should overwrite the program reasonable defaults (plain/text,
|
which should overwrite the program reasonable defaults (plain/text,
|
||||||
8bit...)
|
8bit...)
|
||||||
|
|
||||||
15.6 url-specific options
|
17.6 warning when setting an option
|
||||||
|
|
||||||
Provide a way to make options bound to a specific URL among several on the
|
|
||||||
command line. Possibly by letting ':' separate options between URLs,
|
|
||||||
similar to this:
|
|
||||||
|
|
||||||
curl --data foo --url url.com : \
|
|
||||||
--url url2.com : \
|
|
||||||
--url url3.com --data foo3
|
|
||||||
|
|
||||||
(More details: http://curl.haxx.se/mail/archive-2004-07/0133.html)
|
|
||||||
|
|
||||||
The example would do a POST-GET-POST combination on a single command line.
|
|
||||||
|
|
||||||
15.7 warning when setting an option
|
|
||||||
|
|
||||||
Display a warning when libcurl returns an error when setting an option.
|
Display a warning when libcurl returns an error when setting an option.
|
||||||
This can be useful to tell when support for a particular feature hasn't been
|
This can be useful to tell when support for a particular feature hasn't been
|
||||||
compiled into the library.
|
compiled into the library.
|
||||||
|
|
||||||
15.8 IPv6 addresses with globbing
|
18. Build
|
||||||
|
|
||||||
Currently the command line client needs to get url globbing disabled (with
|
18.1 roffit
|
||||||
-g) for it to support IPv6 numerical addresses. This is a rather silly flaw
|
|
||||||
that should be corrected. It probably involves a smarter detection of the
|
|
||||||
'[' and ']' letters.
|
|
||||||
|
|
||||||
16. Build
|
|
||||||
|
|
||||||
16.1 roffit
|
|
||||||
|
|
||||||
Consider extending 'roffit' to produce decent ASCII output, and use that
|
Consider extending 'roffit' to produce decent ASCII output, and use that
|
||||||
instead of (g)nroff when building src/tool_hugehelp.c
|
instead of (g)nroff when building src/tool_hugehelp.c
|
||||||
|
|
||||||
17. Test suite
|
19. Test suite
|
||||||
|
|
||||||
17.1 SSL tunnel
|
19.1 SSL tunnel
|
||||||
|
|
||||||
Make our own version of stunnel for simple port forwarding to enable HTTPS
|
Make our own version of stunnel for simple port forwarding to enable HTTPS
|
||||||
and FTP-SSL tests without the stunnel dependency, and it could allow us to
|
and FTP-SSL tests without the stunnel dependency, and it could allow us to
|
||||||
provide test tools built with either OpenSSL or GnuTLS
|
provide test tools built with either OpenSSL or GnuTLS
|
||||||
|
|
||||||
17.2 nicer lacking perl message
|
19.2 nicer lacking perl message
|
||||||
|
|
||||||
If perl wasn't found by the configure script, don't attempt to run the tests
|
If perl wasn't found by the configure script, don't attempt to run the tests
|
||||||
but explain something nice why it doesn't.
|
but explain something nice why it doesn't.
|
||||||
|
|
||||||
17.3 more protocols supported
|
19.3 more protocols supported
|
||||||
|
|
||||||
Extend the test suite to include more protocols. The telnet could just do ftp
|
Extend the test suite to include more protocols. The telnet could just do FTP
|
||||||
or http operations (for which we have test servers).
|
or http operations (for which we have test servers).
|
||||||
|
|
||||||
17.4 more platforms supported
|
19.4 more platforms supported
|
||||||
|
|
||||||
Make the test suite work on more platforms. OpenBSD and Mac OS. Remove
|
Make the test suite work on more platforms. OpenBSD and Mac OS. Remove
|
||||||
fork()s and it should become even more portable.
|
fork()s and it should become even more portable.
|
||||||
|
|
||||||
18. Next SONAME bump
|
19.5 Add support for concurrent connections
|
||||||
|
|
||||||
18.1 http-style HEAD output for ftp
|
Tests 836, 882 and 938 were designed to verify that separate connections aren't
|
||||||
|
used when using different login credentials in protocols that shouldn't re-use
|
||||||
|
a connection under such circumstances.
|
||||||
|
|
||||||
|
Unfortunately, ftpserver.pl doesn't appear to support multiple concurrent
|
||||||
|
connections. The read while() loop seems to loop until it receives a disconnect
|
||||||
|
from the client, where it then enters the waiting for connections loop. When
|
||||||
|
the client opens a second connection to the server, the first connection hasn't
|
||||||
|
been dropped (unless it has been forced - which we shouldn't do in these tests)
|
||||||
|
and thus the wait for connections loop is never entered to receive the second
|
||||||
|
connection.
|
||||||
|
|
||||||
|
20. Next SONAME bump
|
||||||
|
|
||||||
|
20.1 http-style HEAD output for FTP
|
||||||
|
|
||||||
#undef CURL_FTP_HTTPSTYLE_HEAD in lib/ftp.c to remove the HTTP-style headers
|
#undef CURL_FTP_HTTPSTYLE_HEAD in lib/ftp.c to remove the HTTP-style headers
|
||||||
from being output in NOBODY requests over ftp
|
from being output in NOBODY requests over FTP
|
||||||
|
|
||||||
18.2 combine error codes
|
20.2 combine error codes
|
||||||
|
|
||||||
Combine some of the error codes to remove duplicates. The original
|
Combine some of the error codes to remove duplicates. The original
|
||||||
numbering should not be changed, and the old identifiers would be
|
numbering should not be changed, and the old identifiers would be
|
||||||
@@ -607,29 +671,29 @@ to provide the data to send.
|
|||||||
|
|
||||||
CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
|
CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
|
||||||
|
|
||||||
18.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
20.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
||||||
|
|
||||||
The current prototype only provides 'purpose' that tells what the
|
The current prototype only provides 'purpose' that tells what the
|
||||||
connection/socket is for, but not any protocol or similar. It makes it hard
|
connection/socket is for, but not any protocol or similar. It makes it hard
|
||||||
for applications to differentiate on TCP vs UDP and even HTTP vs FTP and
|
for applications to differentiate on TCP vs UDP and even HTTP vs FTP and
|
||||||
similar.
|
similar.
|
||||||
|
|
||||||
10. Next major release
|
21. Next major release
|
||||||
|
|
||||||
19.1 cleanup return codes
|
21.1 cleanup return codes
|
||||||
|
|
||||||
curl_easy_cleanup() returns void, but curl_multi_cleanup() returns a
|
curl_easy_cleanup() returns void, but curl_multi_cleanup() returns a
|
||||||
CURLMcode. These should be changed to be the same.
|
CURLMcode. These should be changed to be the same.
|
||||||
|
|
||||||
19.2 remove obsolete defines
|
21.2 remove obsolete defines
|
||||||
|
|
||||||
remove obsolete defines from curl/curl.h
|
remove obsolete defines from curl/curl.h
|
||||||
|
|
||||||
19.3 size_t
|
21.3 size_t
|
||||||
|
|
||||||
make several functions use size_t instead of int in their APIs
|
make several functions use size_t instead of int in their APIs
|
||||||
|
|
||||||
19.4 remove several functions
|
21.4 remove several functions
|
||||||
|
|
||||||
remove the following functions from the public API:
|
remove the following functions from the public API:
|
||||||
|
|
||||||
@@ -650,18 +714,18 @@ to provide the data to send.
|
|||||||
|
|
||||||
curl_multi_socket_all
|
curl_multi_socket_all
|
||||||
|
|
||||||
19.5 remove CURLOPT_FAILONERROR
|
21.5 remove CURLOPT_FAILONERROR
|
||||||
|
|
||||||
Remove support for CURLOPT_FAILONERROR, it has gotten too kludgy and weird
|
Remove support for CURLOPT_FAILONERROR, it has gotten too kludgy and weird
|
||||||
internally. Let the app judge success or not for itself.
|
internally. Let the app judge success or not for itself.
|
||||||
|
|
||||||
19.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
21.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
||||||
|
|
||||||
Remove support for a global DNS cache. Anything global is silly, and we
|
Remove support for a global DNS cache. Anything global is silly, and we
|
||||||
already offer the share interface for the same functionality but done
|
already offer the share interface for the same functionality but done
|
||||||
"right".
|
"right".
|
||||||
|
|
||||||
19.7 remove progress meter from libcurl
|
21.7 remove progress meter from libcurl
|
||||||
|
|
||||||
The internally provided progress meter output doesn't belong in the library.
|
The internally provided progress meter output doesn't belong in the library.
|
||||||
Basically no application wants it (apart from curl) but instead applications
|
Basically no application wants it (apart from curl) but instead applications
|
||||||
@@ -671,16 +735,16 @@ to provide the data to send.
|
|||||||
variable types passed to it instead of doubles so that big files work
|
variable types passed to it instead of doubles so that big files work
|
||||||
correctly.
|
correctly.
|
||||||
|
|
||||||
19.8 remove 'curl_httppost' from public
|
21.8 remove 'curl_httppost' from public
|
||||||
|
|
||||||
curl_formadd() was made to fill in a public struct, but the fact that the
|
curl_formadd() was made to fill in a public struct, but the fact that the
|
||||||
struct is public is never really used by application for their own advantage
|
struct is public is never really used by application for their own advantage
|
||||||
but instead often restricts how the form functions can or can't be modified.
|
but instead often restricts how the form functions can or can't be modified.
|
||||||
|
|
||||||
Changing them to return a private handle will benefit the implementation and
|
Changing them to return a private handle will benefit the implementation and
|
||||||
allow us much greater freedoms while still maintining a solid API and ABI.
|
allow us much greater freedoms while still maintaining a solid API and ABI.
|
||||||
|
|
||||||
19.9 have form functions use CURL handle argument
|
21.9 have form functions use CURL handle argument
|
||||||
|
|
||||||
curl_formadd() and curl_formget() both currently have no CURL handle
|
curl_formadd() and curl_formget() both currently have no CURL handle
|
||||||
argument, but both can use a callback that is set in the easy handle, and
|
argument, but both can use a callback that is set in the easy handle, and
|
||||||
@@ -688,11 +752,11 @@ to provide the data to send.
|
|||||||
curl_easy_perform() (or similar) called - which is hard to grasp and a design
|
curl_easy_perform() (or similar) called - which is hard to grasp and a design
|
||||||
mistake.
|
mistake.
|
||||||
|
|
||||||
19.10 Add CURLOPT_MAIL_CLIENT option
|
21.10 Add CURLOPT_MAIL_CLIENT option
|
||||||
|
|
||||||
Rather than use the URL to specify the mail client string to present in the
|
Rather than use the URL to specify the mail client string to present in the
|
||||||
HELO and EHLO commands, libcurl should support a new CURLOPT specifically for
|
HELO and EHLO commands, libcurl should support a new CURLOPT specifically for
|
||||||
specifing this data as the URL is non-standard and to be honest a bit of a
|
specifying this data as the URL is non-standard and to be honest a bit of a
|
||||||
hack ;-)
|
hack ;-)
|
||||||
|
|
||||||
Please see the following thread for more information:
|
Please see the following thread for more information:
|
||||||
|
|||||||
@@ -1,16 +1,71 @@
|
|||||||
Online: http://curl.haxx.se/docs/httpscripting.html
|
_ _ ____ _
|
||||||
Date: Jan 19, 2011
|
___| | | | _ \| |
|
||||||
|
/ __| | | | |_) | |
|
||||||
|
| (__| |_| | _ <| |___
|
||||||
|
\___|\___/|_| \_\_____|
|
||||||
|
|
||||||
The Art Of Scripting HTTP Requests Using Curl
|
|
||||||
=============================================
|
|
||||||
|
|
||||||
This document will assume that you're familiar with HTML and general
|
The Art Of Scripting HTTP Requests Using Curl
|
||||||
networking.
|
|
||||||
|
|
||||||
The possibility to write scripts is essential to make a good computer
|
1. HTTP Scripting
|
||||||
system. Unix' capability to be extended by shell scripts and various tools to
|
1.1 Background
|
||||||
run various automated commands and scripts is one reason why it has succeeded
|
1.2 The HTTP Protocol
|
||||||
so well.
|
1.3 See the Protocol
|
||||||
|
1.4 See the Timing
|
||||||
|
1.5 See the Response
|
||||||
|
2. URL
|
||||||
|
2.1 Spec
|
||||||
|
2.2 Host
|
||||||
|
2.3 Port number
|
||||||
|
2.4 User name and password
|
||||||
|
2.5 Path part
|
||||||
|
3. Fetch a page
|
||||||
|
3.1 GET
|
||||||
|
3.2 HEAD
|
||||||
|
4. HTML forms
|
||||||
|
4.1 Forms explained
|
||||||
|
4.2 GET
|
||||||
|
4.3 POST
|
||||||
|
4.4 File Upload POST
|
||||||
|
4.5 Hidden Fields
|
||||||
|
4.6 Figure Out What A POST Looks Like
|
||||||
|
5. HTTP upload
|
||||||
|
5.1 PUT
|
||||||
|
6. HTTP Authentication
|
||||||
|
6.1 Basic Authentication
|
||||||
|
6.2 Other Authentication
|
||||||
|
6.3 Proxy Authentication
|
||||||
|
6.4 Hiding credentials
|
||||||
|
7. More HTTP Headers
|
||||||
|
7.1 Referer
|
||||||
|
7.2 User Agent
|
||||||
|
8. Redirects
|
||||||
|
8.1 Location header
|
||||||
|
8.2 Other redirects
|
||||||
|
9. Cookies
|
||||||
|
9.1 Cookie Basics
|
||||||
|
9.2 Cookie options
|
||||||
|
10. HTTPS
|
||||||
|
10.1 HTTPS is HTTP secure
|
||||||
|
10.2 Certificates
|
||||||
|
11. Custom Request Elements
|
||||||
|
11.1 Modify method and headers
|
||||||
|
11.2 More on changed methods
|
||||||
|
12. Web Login
|
||||||
|
12.1 Some login tricks
|
||||||
|
13. Debug
|
||||||
|
13.1 Some debug tricks
|
||||||
|
14. References
|
||||||
|
14.1 Standards
|
||||||
|
14.2 Sites
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
|
||||||
|
1. HTTP Scripting
|
||||||
|
|
||||||
|
1.1 Background
|
||||||
|
|
||||||
|
This document assumes that you're familiar with HTML and general networking.
|
||||||
|
|
||||||
The increasing amount of applications moving to the web has made "HTTP
|
The increasing amount of applications moving to the web has made "HTTP
|
||||||
Scripting" more frequently requested and wanted. To be able to automatically
|
Scripting" more frequently requested and wanted. To be able to automatically
|
||||||
@@ -27,7 +82,7 @@ Date: Jan 19, 2011
|
|||||||
to glue everything together using some kind of script language or repeated
|
to glue everything together using some kind of script language or repeated
|
||||||
manual invokes.
|
manual invokes.
|
||||||
|
|
||||||
1. The HTTP Protocol
|
1.2 The HTTP Protocol
|
||||||
|
|
||||||
HTTP is the protocol used to fetch data from web servers. It is a very simple
|
HTTP is the protocol used to fetch data from web servers. It is a very simple
|
||||||
protocol that is built upon TCP/IP. The protocol also allows information to
|
protocol that is built upon TCP/IP. The protocol also allows information to
|
||||||
@@ -44,7 +99,7 @@ Date: Jan 19, 2011
|
|||||||
well), response headers and most often also a response body. The "body" part
|
well), response headers and most often also a response body. The "body" part
|
||||||
is the plain data you requested, like the actual HTML or the image etc.
|
is the plain data you requested, like the actual HTML or the image etc.
|
||||||
|
|
||||||
1.1 See the Protocol
|
1.3 See the Protocol
|
||||||
|
|
||||||
Using curl's option --verbose (-v as a short option) will display what kind
|
Using curl's option --verbose (-v as a short option) will display what kind
|
||||||
of commands curl sends to the server, as well as a few other informational
|
of commands curl sends to the server, as well as a few other informational
|
||||||
@@ -59,13 +114,88 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
curl --trace-ascii debugdump.txt http://www.example.com/
|
curl --trace-ascii debugdump.txt http://www.example.com/
|
||||||
|
|
||||||
|
1.4 See the Timing
|
||||||
|
|
||||||
|
Many times you may wonder what exactly is taking all the time, or you just
|
||||||
|
want to know the amount of milliseconds between two points in a
|
||||||
|
transfer. For those, and other similar situations, the --trace-time option
|
||||||
|
is what you need. It'll prepend the time to each trace output line:
|
||||||
|
|
||||||
|
curl --trace-ascii d.txt --trace-time http://example.com/
|
||||||
|
|
||||||
|
1.5 See the Response
|
||||||
|
|
||||||
|
By default curl sends the response to stdout. You need to redirect it
|
||||||
|
somewhere to avoid that, most often that is done with -o or -O.
|
||||||
|
|
||||||
2. URL
|
2. URL
|
||||||
|
|
||||||
|
2.1 Spec
|
||||||
|
|
||||||
The Uniform Resource Locator format is how you specify the address of a
|
The Uniform Resource Locator format is how you specify the address of a
|
||||||
particular resource on the Internet. You know these, you've seen URLs like
|
particular resource on the Internet. You know these, you've seen URLs like
|
||||||
http://curl.haxx.se or https://yourbank.com a million times.
|
http://curl.haxx.se or https://yourbank.com a million times. RFC 3986 is the
|
||||||
|
canonical spec.
|
||||||
|
|
||||||
3. GET a page
|
2.2 Host
|
||||||
|
|
||||||
|
The host name is usually resolved using DNS or your /etc/hosts file to an IP
|
||||||
|
address and that's what curl will communicate with. Alternatively you specify
|
||||||
|
the IP address directly in the URL instead of a name.
|
||||||
|
|
||||||
|
For development and other trying out situation, you can point out a different
|
||||||
|
IP address for a host name than what would otherwise be used, by using curl's
|
||||||
|
--resolve option:
|
||||||
|
|
||||||
|
curl --resolve www.example.org:80:127.0.0.1 http://www.example.org/
|
||||||
|
|
||||||
|
2.3 Port number
|
||||||
|
|
||||||
|
Each protocol curl supports operate on a default port number, be it over TCP
|
||||||
|
or in some cases UDP. Normally you don't have to take that into
|
||||||
|
consideration, but at times you run test servers on other ports or
|
||||||
|
similar. Then you can specify the port number in the URL with a colon and a
|
||||||
|
number immediately following the host name. Like when doing HTTP to port
|
||||||
|
1234:
|
||||||
|
|
||||||
|
curl http://www.example.org:1234/
|
||||||
|
|
||||||
|
The port number you specify in the URL is the number that the server uses to
|
||||||
|
offer its services. Sometimes you may use a local proxy, and then you may
|
||||||
|
need to specify that proxy's port number separate on what curl needs to
|
||||||
|
connect to locally. Like when using a HTTP proxy on port 4321:
|
||||||
|
|
||||||
|
curl --proxy http://proxy.example.org:4321 http://remote.example.org/
|
||||||
|
|
||||||
|
2.4 User name and password
|
||||||
|
|
||||||
|
Some services are setup to require HTTP authentication and then you need to
|
||||||
|
provide name and password which then is transferred to the remote site in
|
||||||
|
various ways depending on the exact authentication protocol used.
|
||||||
|
|
||||||
|
You can opt to either insert the user and password in the URL or you can
|
||||||
|
provide them separately:
|
||||||
|
|
||||||
|
curl http://user:password@example.org/
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
curl -u user:password http://example.org/
|
||||||
|
|
||||||
|
You need to pay attention that this kind of HTTP authentication is not what
|
||||||
|
is usually done and requested by user-oriented web sites these days. They
|
||||||
|
tend to use forms and cookies instead.
|
||||||
|
|
||||||
|
2.5 Path part
|
||||||
|
|
||||||
|
The path part is just sent off to the server to request that it sends back
|
||||||
|
the associated response. The path is what is to the right side of the slash
|
||||||
|
that follows the host name and possibly port number.
|
||||||
|
|
||||||
|
|
||||||
|
3. Fetch a page
|
||||||
|
|
||||||
|
3.1 GET
|
||||||
|
|
||||||
The simplest and most common request/operation made using HTTP is to get a
|
The simplest and most common request/operation made using HTTP is to get a
|
||||||
URL. The URL could itself refer to a web page, an image or a file. The client
|
URL. The URL could itself refer to a web page, an image or a file. The client
|
||||||
@@ -79,10 +209,23 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
All HTTP replies contain a set of response headers that are normally hidden,
|
All HTTP replies contain a set of response headers that are normally hidden,
|
||||||
use curl's --include (-i) option to display them as well as the rest of the
|
use curl's --include (-i) option to display them as well as the rest of the
|
||||||
document. You can also ask the remote server for ONLY the headers by using
|
document.
|
||||||
the --head (-I) option (which will make curl issue a HEAD request).
|
|
||||||
|
|
||||||
4. Forms
|
3.2 HEAD
|
||||||
|
|
||||||
|
You can ask the remote server for ONLY the headers by using the --head (-I)
|
||||||
|
option which will make curl issue a HEAD request. In some special cases
|
||||||
|
servers deny the HEAD method while others still work, which is a particular
|
||||||
|
kind of annoyance.
|
||||||
|
|
||||||
|
The HEAD method is defined and made so that the server returns the headers
|
||||||
|
exactly the way it would do for a GET, but without a body. It means that you
|
||||||
|
may see a Content-Length: in the response headers, but there must not be an
|
||||||
|
actual body in the HEAD response.
|
||||||
|
|
||||||
|
4. HTML forms
|
||||||
|
|
||||||
|
4.1 Forms explained
|
||||||
|
|
||||||
Forms are the general way a web site can present a HTML page with fields for
|
Forms are the general way a web site can present a HTML page with fields for
|
||||||
the user to enter data in, and then press some kind of 'OK' or 'submit'
|
the user to enter data in, and then press some kind of 'OK' or 'submit'
|
||||||
@@ -95,7 +238,7 @@ Date: Jan 19, 2011
|
|||||||
Of course there has to be some kind of program in the server end to receive
|
Of course there has to be some kind of program in the server end to receive
|
||||||
the data you send. You cannot just invent something out of the air.
|
the data you send. You cannot just invent something out of the air.
|
||||||
|
|
||||||
4.1 GET
|
4.2 GET
|
||||||
|
|
||||||
A GET-form uses the method GET, as specified in HTML like:
|
A GET-form uses the method GET, as specified in HTML like:
|
||||||
|
|
||||||
@@ -121,7 +264,7 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
curl "http://www.hotmail.com/when/junk.cgi?birthyear=1905&press=OK"
|
curl "http://www.hotmail.com/when/junk.cgi?birthyear=1905&press=OK"
|
||||||
|
|
||||||
4.2 POST
|
4.3 POST
|
||||||
|
|
||||||
The GET method makes all input field names get displayed in the URL field of
|
The GET method makes all input field names get displayed in the URL field of
|
||||||
your browser. That's generally a good thing when you want to be able to
|
your browser. That's generally a good thing when you want to be able to
|
||||||
@@ -158,7 +301,7 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
curl --data-urlencode "name=I am Daniel" http://www.example.com
|
curl --data-urlencode "name=I am Daniel" http://www.example.com
|
||||||
|
|
||||||
4.3 File Upload POST
|
4.4 File Upload POST
|
||||||
|
|
||||||
Back in late 1995 they defined an additional way to post data over HTTP. It
|
Back in late 1995 they defined an additional way to post data over HTTP. It
|
||||||
is documented in the RFC 1867, why this method sometimes is referred to as
|
is documented in the RFC 1867, why this method sometimes is referred to as
|
||||||
@@ -179,7 +322,7 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
curl --form upload=@localfilename --form press=OK [URL]
|
curl --form upload=@localfilename --form press=OK [URL]
|
||||||
|
|
||||||
4.4 Hidden Fields
|
4.5 Hidden Fields
|
||||||
|
|
||||||
A very common way for HTML based application to pass state information
|
A very common way for HTML based application to pass state information
|
||||||
between pages is to add hidden fields to the forms. Hidden fields are
|
between pages is to add hidden fields to the forms. Hidden fields are
|
||||||
@@ -200,7 +343,7 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
curl --data "birthyear=1905&press=OK&person=daniel" [URL]
|
curl --data "birthyear=1905&press=OK&person=daniel" [URL]
|
||||||
|
|
||||||
4.5 Figure Out What A POST Looks Like
|
4.6 Figure Out What A POST Looks Like
|
||||||
|
|
||||||
When you're about fill in a form and send to a server by using curl instead
|
When you're about fill in a form and send to a server by using curl instead
|
||||||
of a browser, you're of course very interested in sending a POST exactly the
|
of a browser, you're of course very interested in sending a POST exactly the
|
||||||
@@ -213,7 +356,9 @@ Date: Jan 19, 2011
|
|||||||
You will then clearly see the data get appended to the URL, separated with a
|
You will then clearly see the data get appended to the URL, separated with a
|
||||||
'?'-letter as GET forms are supposed to.
|
'?'-letter as GET forms are supposed to.
|
||||||
|
|
||||||
5. PUT
|
5. HTTP upload
|
||||||
|
|
||||||
|
5.1 PUT
|
||||||
|
|
||||||
The perhaps best way to upload data to a HTTP server is to use PUT. Then
|
The perhaps best way to upload data to a HTTP server is to use PUT. Then
|
||||||
again, this of course requires that someone put a program or script on the
|
again, this of course requires that someone put a program or script on the
|
||||||
@@ -225,6 +370,8 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
6. HTTP Authentication
|
6. HTTP Authentication
|
||||||
|
|
||||||
|
6.1 Basic Authentication
|
||||||
|
|
||||||
HTTP Authentication is the ability to tell the server your username and
|
HTTP Authentication is the ability to tell the server your username and
|
||||||
password so that it can verify that you're allowed to do the request you're
|
password so that it can verify that you're allowed to do the request you're
|
||||||
doing. The Basic authentication used in HTTP (which is the type curl uses by
|
doing. The Basic authentication used in HTTP (which is the type curl uses by
|
||||||
@@ -236,10 +383,14 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
curl --user name:password http://www.example.com
|
curl --user name:password http://www.example.com
|
||||||
|
|
||||||
|
6.2 Other Authentication
|
||||||
|
|
||||||
The site might require a different authentication method (check the headers
|
The site might require a different authentication method (check the headers
|
||||||
returned by the server), and then --ntlm, --digest, --negotiate or even
|
returned by the server), and then --ntlm, --digest, --negotiate or even
|
||||||
--anyauth might be options that suit you.
|
--anyauth might be options that suit you.
|
||||||
|
|
||||||
|
6.3 Proxy Authentication
|
||||||
|
|
||||||
Sometimes your HTTP access is only available through the use of a HTTP
|
Sometimes your HTTP access is only available through the use of a HTTP
|
||||||
proxy. This seems to be especially common at various companies. A HTTP proxy
|
proxy. This seems to be especially common at various companies. A HTTP proxy
|
||||||
may require its own user and password to allow the client to get through to
|
may require its own user and password to allow the client to get through to
|
||||||
@@ -253,6 +404,8 @@ Date: Jan 19, 2011
|
|||||||
If you use any one these user+password options but leave out the password
|
If you use any one these user+password options but leave out the password
|
||||||
part, curl will prompt for the password interactively.
|
part, curl will prompt for the password interactively.
|
||||||
|
|
||||||
|
6.4 Hiding credentials
|
||||||
|
|
||||||
Do note that when a program is run, its parameters might be possible to see
|
Do note that when a program is run, its parameters might be possible to see
|
||||||
when listing the running processes of the system. Thus, other users may be
|
when listing the running processes of the system. Thus, other users may be
|
||||||
able to watch your passwords if you pass them as plain command line
|
able to watch your passwords if you pass them as plain command line
|
||||||
@@ -262,7 +415,9 @@ Date: Jan 19, 2011
|
|||||||
many web sites will not use this concept when they provide logins etc. See
|
many web sites will not use this concept when they provide logins etc. See
|
||||||
the Web Login chapter further below for more details on that.
|
the Web Login chapter further below for more details on that.
|
||||||
|
|
||||||
7. Referer
|
7. More HTTP Headers
|
||||||
|
|
||||||
|
7.1 Referer
|
||||||
|
|
||||||
A HTTP request may include a 'referer' field (yes it is misspelled), which
|
A HTTP request may include a 'referer' field (yes it is misspelled), which
|
||||||
can be used to tell from which URL the client got to this particular
|
can be used to tell from which URL the client got to this particular
|
||||||
@@ -276,7 +431,7 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
curl --referer http://www.example.come http://www.example.com
|
curl --referer http://www.example.come http://www.example.com
|
||||||
|
|
||||||
8. User Agent
|
7.2 User Agent
|
||||||
|
|
||||||
Very similar to the referer field, all HTTP requests may set the User-Agent
|
Very similar to the referer field, all HTTP requests may set the User-Agent
|
||||||
field. It names what user agent (client) that is being used. Many
|
field. It names what user agent (client) that is being used. Many
|
||||||
@@ -298,7 +453,9 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
curl --user-agent "Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)" [URL]
|
curl --user-agent "Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)" [URL]
|
||||||
|
|
||||||
9. Redirects
|
8. Redirects
|
||||||
|
|
||||||
|
8.1 Location header
|
||||||
|
|
||||||
When a resource is requested from a server, the reply from the server may
|
When a resource is requested from a server, the reply from the server may
|
||||||
include a hint about where the browser should go next to find this page, or a
|
include a hint about where the browser should go next to find this page, or a
|
||||||
@@ -318,7 +475,16 @@ Date: Jan 19, 2011
|
|||||||
only use POST in the first request, and then revert to GET in the following
|
only use POST in the first request, and then revert to GET in the following
|
||||||
operations.
|
operations.
|
||||||
|
|
||||||
10. Cookies
|
8.2 Other redirects
|
||||||
|
|
||||||
|
Browser typically support at least two other ways of redirects that curl
|
||||||
|
doesn't: first the html may contain a meta refresh tag that asks the browser
|
||||||
|
to load a specific URL after a set number of seconds, or it may use
|
||||||
|
javascript to do it.
|
||||||
|
|
||||||
|
9. Cookies
|
||||||
|
|
||||||
|
9.1 Cookie Basics
|
||||||
|
|
||||||
The way the web browsers do "client side state control" is by using
|
The way the web browsers do "client side state control" is by using
|
||||||
cookies. Cookies are just names with associated contents. The cookies are
|
cookies. Cookies are just names with associated contents. The cookies are
|
||||||
@@ -335,6 +501,8 @@ Date: Jan 19, 2011
|
|||||||
must be able to record and send back cookies the way the web application
|
must be able to record and send back cookies the way the web application
|
||||||
expects them. The same way browsers deal with them.
|
expects them. The same way browsers deal with them.
|
||||||
|
|
||||||
|
9.2 Cookie options
|
||||||
|
|
||||||
The simplest way to send a few cookies to the server when getting a page with
|
The simplest way to send a few cookies to the server when getting a page with
|
||||||
curl is to add them on the command line like:
|
curl is to add them on the command line like:
|
||||||
|
|
||||||
@@ -351,7 +519,7 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
Curl has a full blown cookie parsing engine built-in that comes to use if you
|
Curl has a full blown cookie parsing engine built-in that comes to use if you
|
||||||
want to reconnect to a server and use cookies that were stored from a
|
want to reconnect to a server and use cookies that were stored from a
|
||||||
previous connection (or handicrafted manually to fool the server into
|
previous connection (or hand-crafted manually to fool the server into
|
||||||
believing you had a previous connection). To use previously stored cookies,
|
believing you had a previous connection). To use previously stored cookies,
|
||||||
you run curl like:
|
you run curl like:
|
||||||
|
|
||||||
@@ -366,16 +534,18 @@ Date: Jan 19, 2011
|
|||||||
curl --cookie nada --location http://www.example.com
|
curl --cookie nada --location http://www.example.com
|
||||||
|
|
||||||
Curl has the ability to read and write cookie files that use the same file
|
Curl has the ability to read and write cookie files that use the same file
|
||||||
format that Netscape and Mozilla do. It is a convenient way to share cookies
|
format that Netscape and Mozilla once used. It is a convenient way to share
|
||||||
between browsers and automatic scripts. The --cookie (-b) switch
|
cookies between scripts or invokes. The --cookie (-b) switch automatically
|
||||||
automatically detects if a given file is such a cookie file and parses it,
|
detects if a given file is such a cookie file and parses it, and by using the
|
||||||
and by using the --cookie-jar (-c) option you'll make curl write a new cookie
|
--cookie-jar (-c) option you'll make curl write a new cookie file at the end
|
||||||
file at the end of an operation:
|
of an operation:
|
||||||
|
|
||||||
curl --cookie cookies.txt --cookie-jar newcookies.txt \
|
curl --cookie cookies.txt --cookie-jar newcookies.txt \
|
||||||
http://www.example.com
|
http://www.example.com
|
||||||
|
|
||||||
11. HTTPS
|
10. HTTPS
|
||||||
|
|
||||||
|
10.1 HTTPS is HTTP secure
|
||||||
|
|
||||||
There are a few ways to do secure HTTP transfers. The by far most common
|
There are a few ways to do secure HTTP transfers. The by far most common
|
||||||
protocol for doing this is what is generally known as HTTPS, HTTP over
|
protocol for doing this is what is generally known as HTTPS, HTTP over
|
||||||
@@ -386,12 +556,14 @@ Date: Jan 19, 2011
|
|||||||
truckload of advanced features to allow all those encryptions and key
|
truckload of advanced features to allow all those encryptions and key
|
||||||
infrastructure mechanisms encrypted HTTP requires.
|
infrastructure mechanisms encrypted HTTP requires.
|
||||||
|
|
||||||
Curl supports encrypted fetches thanks to the freely available OpenSSL
|
Curl supports encrypted fetches when built to use a TLS library and it can be
|
||||||
libraries. To get a page from a HTTPS server, simply run curl like:
|
built to use one out of a fairly large set of libraries - "curl -V" will show
|
||||||
|
which one your curl was built to use (if any!). To get a page from a HTTPS
|
||||||
|
server, simply run curl like:
|
||||||
|
|
||||||
curl https://secure.example.com
|
curl https://secure.example.com
|
||||||
|
|
||||||
11.1 Certificates
|
10.2 Certificates
|
||||||
|
|
||||||
In the HTTPS world, you use certificates to validate that you are the one
|
In the HTTPS world, you use certificates to validate that you are the one
|
||||||
you claim to be, as an addition to normal passwords. Curl supports client-
|
you claim to be, as an addition to normal passwords. Curl supports client-
|
||||||
@@ -413,7 +585,9 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
http://curl.haxx.se/docs/sslcerts.html
|
http://curl.haxx.se/docs/sslcerts.html
|
||||||
|
|
||||||
12. Custom Request Elements
|
11. Custom Request Elements
|
||||||
|
|
||||||
|
11.1 Modify method and headers
|
||||||
|
|
||||||
Doing fancy stuff, you may need to add or change elements of a single curl
|
Doing fancy stuff, you may need to add or change elements of a single curl
|
||||||
request.
|
request.
|
||||||
@@ -434,7 +608,26 @@ Date: Jan 19, 2011
|
|||||||
|
|
||||||
curl --header "Destination: http://nowhere" http://example.com
|
curl --header "Destination: http://nowhere" http://example.com
|
||||||
|
|
||||||
13. Web Login
|
11.2 More on changed methods
|
||||||
|
|
||||||
|
It should be noted that curl selects which methods to use on its own
|
||||||
|
depending on what action to ask for. -d will do POST, -I will do HEAD and so
|
||||||
|
on. If you use the --request / -X option you can change the method keyword
|
||||||
|
curl selects, but you will not modify curl's behavior. This means that if you
|
||||||
|
for example use -d "data" to do a POST, you can modify the method to a
|
||||||
|
PROPFIND with -X and curl will still think it sends a POST. You can change
|
||||||
|
the normal GET to a POST method by simply adding -X POST in a command line
|
||||||
|
like:
|
||||||
|
|
||||||
|
curl -X POST http://example.org/
|
||||||
|
|
||||||
|
... but curl will still think and act as if it sent a GET so it won't send any
|
||||||
|
request body etc.
|
||||||
|
|
||||||
|
|
||||||
|
12. Web Login
|
||||||
|
|
||||||
|
12.1 Some login tricks
|
||||||
|
|
||||||
While not strictly just HTTP related, it still cause a lot of people problems
|
While not strictly just HTTP related, it still cause a lot of people problems
|
||||||
so here's the executive run-down of how the vast majority of all login forms
|
so here's the executive run-down of how the vast majority of all login forms
|
||||||
@@ -453,7 +646,7 @@ Date: Jan 19, 2011
|
|||||||
sometimes they use such code to set or modify cookie contents. Possibly they
|
sometimes they use such code to set or modify cookie contents. Possibly they
|
||||||
do that to prevent programmed logins, like this manual describes how to...
|
do that to prevent programmed logins, like this manual describes how to...
|
||||||
Anyway, if reading the code isn't enough to let you repeat the behavior
|
Anyway, if reading the code isn't enough to let you repeat the behavior
|
||||||
manually, capturing the HTTP requests done by your browers and analyzing the
|
manually, capturing the HTTP requests done by your browsers and analyzing the
|
||||||
sent cookies is usually a working method to work out how to shortcut the
|
sent cookies is usually a working method to work out how to shortcut the
|
||||||
javascript need.
|
javascript need.
|
||||||
|
|
||||||
@@ -463,7 +656,9 @@ Date: Jan 19, 2011
|
|||||||
to do a proper login POST. Remember that the contents need to be URL encoded
|
to do a proper login POST. Remember that the contents need to be URL encoded
|
||||||
when sent in a normal POST.
|
when sent in a normal POST.
|
||||||
|
|
||||||
14. Debug
|
13. Debug
|
||||||
|
|
||||||
|
13.1 Some debug tricks
|
||||||
|
|
||||||
Many times when you run curl on a site, you'll notice that the site doesn't
|
Many times when you run curl on a site, you'll notice that the site doesn't
|
||||||
seem to respond the same way to your curl requests as it does to your
|
seem to respond the same way to your curl requests as it does to your
|
||||||
@@ -473,35 +668,40 @@ Date: Jan 19, 2011
|
|||||||
browser's requests:
|
browser's requests:
|
||||||
|
|
||||||
* Use the --trace-ascii option to store fully detailed logs of the requests
|
* Use the --trace-ascii option to store fully detailed logs of the requests
|
||||||
for easier analyzing and better understanding
|
for easier analyzing and better understanding
|
||||||
|
|
||||||
* Make sure you check for and use cookies when needed (both reading with
|
* Make sure you check for and use cookies when needed (both reading with
|
||||||
--cookie and writing with --cookie-jar)
|
--cookie and writing with --cookie-jar)
|
||||||
|
|
||||||
* Set user-agent to one like a recent popular browser does
|
* Set user-agent to one like a recent popular browser does
|
||||||
|
|
||||||
* Set referer like it is set by the browser
|
* Set referer like it is set by the browser
|
||||||
|
|
||||||
* If you use POST, make sure you send all the fields and in the same order as
|
* If you use POST, make sure you send all the fields and in the same order as
|
||||||
the browser does it. (See chapter 4.5 above)
|
the browser does it.
|
||||||
|
|
||||||
A very good helper to make sure you do this right, is the LiveHTTPHeader tool
|
A very good helper to make sure you do this right, is the LiveHTTPHeader tool
|
||||||
that lets you view all headers you send and receive with Mozilla/Firefox
|
that lets you view all headers you send and receive with Mozilla/Firefox
|
||||||
(even when using HTTPS).
|
(even when using HTTPS). Chrome features similar functionality out of the box
|
||||||
|
among the developer's tools.
|
||||||
|
|
||||||
A more raw approach is to capture the HTTP traffic on the network with tools
|
A more raw approach is to capture the HTTP traffic on the network with tools
|
||||||
such as ethereal or tcpdump and check what headers that were sent and
|
such as ethereal or tcpdump and check what headers that were sent and
|
||||||
received by the browser. (HTTPS makes this technique inefficient.)
|
received by the browser. (HTTPS makes this technique inefficient.)
|
||||||
|
|
||||||
15. References
|
14. References
|
||||||
|
|
||||||
|
14.1 Standards
|
||||||
|
|
||||||
RFC 2616 is a must to read if you want in-depth understanding of the HTTP
|
RFC 2616 is a must to read if you want in-depth understanding of the HTTP
|
||||||
protocol.
|
protocol
|
||||||
|
|
||||||
RFC 3986 explains the URL syntax.
|
RFC 3986 explains the URL syntax
|
||||||
|
|
||||||
RFC 2109 defines how cookies are supposed to work.
|
RFC 1867 defines the HTTP post upload format
|
||||||
|
|
||||||
RFC 1867 defines the HTTP post upload format.
|
RFC 6525 defines how HTTP cookies work
|
||||||
|
|
||||||
|
14.2 Sites
|
||||||
|
|
||||||
http://curl.haxx.se is the home of the cURL project
|
http://curl.haxx.se is the home of the cURL project
|
||||||
|
|||||||
519
docs/curl.1
519
docs/curl.1
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
.\" *
|
.\" *
|
||||||
.\" **************************************************************************
|
.\" **************************************************************************
|
||||||
.\"
|
.\"
|
||||||
.TH curl 1 "27 July 2012" "Curl 7.27.0" "Curl Manual"
|
.TH curl 1 "30 Nov 2014" "Curl 7.40.0" "Curl Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
curl \- transfer a URL
|
curl \- transfer a URL
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@@ -30,8 +30,8 @@ curl \- transfer a URL
|
|||||||
.B curl
|
.B curl
|
||||||
is a tool to transfer data from or to a server, using one of the supported
|
is a tool to transfer data from or to a server, using one of the supported
|
||||||
protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP,
|
protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP,
|
||||||
LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP). The
|
LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET
|
||||||
command is designed to work without user interaction.
|
and TFTP). The command is designed to work without user interaction.
|
||||||
|
|
||||||
curl offers a busload of useful tricks like proxy support, user
|
curl offers a busload of useful tricks like proxy support, user
|
||||||
authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer
|
authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer
|
||||||
@@ -48,18 +48,20 @@ RFC 3986.
|
|||||||
You can specify multiple URLs or parts of URLs by writing part sets within
|
You can specify multiple URLs or parts of URLs by writing part sets within
|
||||||
braces as in:
|
braces as in:
|
||||||
|
|
||||||
http://site.{one,two,three}.com
|
http://site.{one,two,three}.com
|
||||||
|
|
||||||
or you can get sequences of alphanumeric series by using [] as in:
|
or you can get sequences of alphanumeric series by using [] as in:
|
||||||
|
|
||||||
ftp://ftp.numericals.com/file[1-100].txt
|
ftp://ftp.numericals.com/file[1-100].txt
|
||||||
ftp://ftp.numericals.com/file[001-100].txt (with leading zeros)
|
|
||||||
ftp://ftp.letters.com/file[a-z].txt
|
ftp://ftp.numericals.com/file[001-100].txt (with leading zeros)
|
||||||
|
|
||||||
|
ftp://ftp.letters.com/file[a-z].txt
|
||||||
|
|
||||||
Nested sequences are not supported, but you can use several ones next to each
|
Nested sequences are not supported, but you can use several ones next to each
|
||||||
other:
|
other:
|
||||||
|
|
||||||
http://any.org/archive[1996-1999]/vol[1-4]/part{a,b,c}.html
|
http://any.org/archive[1996-1999]/vol[1-4]/part{a,b,c}.html
|
||||||
|
|
||||||
You can specify any amount of URLs on the command line. They will be fetched
|
You can specify any amount of URLs on the command line. They will be fetched
|
||||||
in a sequential manner in the specified order.
|
in a sequential manner in the specified order.
|
||||||
@@ -67,8 +69,19 @@ in a sequential manner in the specified order.
|
|||||||
You can specify a step counter for the ranges to get every Nth number or
|
You can specify a step counter for the ranges to get every Nth number or
|
||||||
letter:
|
letter:
|
||||||
|
|
||||||
http://www.numericals.com/file[1-100:10].txt
|
http://www.numericals.com/file[1-100:10].txt
|
||||||
http://www.letters.com/file[a-z:2].txt
|
|
||||||
|
http://www.letters.com/file[a-z:2].txt
|
||||||
|
|
||||||
|
When using [] or {} sequences when invoked from a command line prompt, you
|
||||||
|
probably have to put the full URL within double quotes to avoid the shell from
|
||||||
|
interfering with it. This also goes for other characters treated special, like
|
||||||
|
for example '&', '?' and '*'.
|
||||||
|
|
||||||
|
Provide the IPv6 zone index in the URL with an escaped percentage sign and the
|
||||||
|
interface name. Like in
|
||||||
|
|
||||||
|
http://[fe80::3%25eth0]/
|
||||||
|
|
||||||
If you specify URL without protocol:// prefix, curl will attempt to guess what
|
If you specify URL without protocol:// prefix, curl will attempt to guess what
|
||||||
protocol you might want. It will then default to HTTP but try other protocols
|
protocol you might want. It will then default to HTTP but try other protocols
|
||||||
@@ -103,8 +116,8 @@ any response data to the terminal.
|
|||||||
If you prefer a progress "bar" instead of the regular meter, \fI-#\fP is your
|
If you prefer a progress "bar" instead of the regular meter, \fI-#\fP is your
|
||||||
friend.
|
friend.
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
Options start with one or two dashes. Many of the options require an addition
|
Options start with one or two dashes. Many of the options require an
|
||||||
value next to it.
|
additional value next to them.
|
||||||
|
|
||||||
The short "single-dash" form of the options, -d for example, may be used with
|
The short "single-dash" form of the options, -d for example, may be used with
|
||||||
or without a space between it and its value, although a space is a recommended
|
or without a space between it and its value, although a space is a recommended
|
||||||
@@ -124,36 +137,56 @@ same command line option.)
|
|||||||
.IP "-#, --progress-bar"
|
.IP "-#, --progress-bar"
|
||||||
Make curl display progress as a simple progress bar instead of the standard,
|
Make curl display progress as a simple progress bar instead of the standard,
|
||||||
more informational, meter.
|
more informational, meter.
|
||||||
|
.IP "-:, --next"
|
||||||
|
Tells curl to use a separate operation for the following URL and associated
|
||||||
|
options. This allows you to send several URL requests, each with their own
|
||||||
|
specific options, for example, such as different user names or custom requests
|
||||||
|
for each. (Added in 7.36.0)
|
||||||
.IP "-0, --http1.0"
|
.IP "-0, --http1.0"
|
||||||
(HTTP) Tells curl to use HTTP version 1.0 instead of using its internally
|
(HTTP) Tells curl to use HTTP version 1.0 instead of using its internally
|
||||||
preferred: HTTP 1.1.
|
preferred: HTTP 1.1.
|
||||||
.IP "--http1.1"
|
.IP "--http1.1"
|
||||||
(HTTP) Tells curl to use HTTP version 1.1. This is the internal default
|
(HTTP) Tells curl to use HTTP version 1.1. This is the internal default
|
||||||
version. (Added in 7.33.0)
|
version. (Added in 7.33.0)
|
||||||
.IP "--http2.0"
|
.IP "--http2"
|
||||||
(HTTP) Tells curl to issue its requests using HTTP 2.0. This requires that the
|
(HTTP) Tells curl to issue its requests using HTTP 2. This requires that the
|
||||||
underlying libcurl was built to support it. (Added in 7.33.0)
|
underlying libcurl was built to support it. (Added in 7.33.0)
|
||||||
|
.IP "--no-npn"
|
||||||
|
Disable the NPN TLS extension. NPN is enabled by default if libcurl was built
|
||||||
|
with an SSL library that supports NPN. NPN is used by a libcurl that supports
|
||||||
|
HTTP 2 to negotiate HTTP 2 support with the server during https sessions.
|
||||||
|
|
||||||
|
(Added in 7.36.0)
|
||||||
|
.IP "--no-alpn"
|
||||||
|
Disable the ALPN TLS extension. ALPN is enabled by default if libcurl was built
|
||||||
|
with an SSL library that supports ALPN. ALPN is used by a libcurl that supports
|
||||||
|
HTTP 2 to negotiate HTTP 2 support with the server during https sessions.
|
||||||
|
|
||||||
|
(Added in 7.36.0)
|
||||||
.IP "-1, --tlsv1"
|
.IP "-1, --tlsv1"
|
||||||
(SSL)
|
(SSL)
|
||||||
Forces curl to use TLS version 1 when negotiating with a remote TLS server.
|
Forces curl to use TLS version 1.x when negotiating with a remote TLS server.
|
||||||
|
You can use options \fI--tlsv1.0\fP, \fI--tlsv1.1\fP, and \fI--tlsv1.2\fP to
|
||||||
|
control the TLS version more precisely (if the SSL backend in use supports such
|
||||||
|
a level of control).
|
||||||
.IP "-2, --sslv2"
|
.IP "-2, --sslv2"
|
||||||
(SSL)
|
(SSL) Forces curl to use SSL version 2 when negotiating with a remote SSL
|
||||||
Forces curl to use SSL version 2 when negotiating with a remote SSL server.
|
server. Sometimes curl is built without SSLv2 support. SSLv2 is widely
|
||||||
|
considered insecure.
|
||||||
.IP "-3, --sslv3"
|
.IP "-3, --sslv3"
|
||||||
(SSL)
|
(SSL) Forces curl to use SSL version 3 when negotiating with a remote SSL
|
||||||
Forces curl to use SSL version 3 when negotiating with a remote SSL server.
|
server. Sometimes curl is built without SSLv3 support.
|
||||||
.IP "-4, --ipv4"
|
.IP "-4, --ipv4"
|
||||||
If curl is capable of resolving an address to multiple IP versions (which it
|
This option tells curl to resolve names to IPv4 addresses only, and not for
|
||||||
is if it is IPv6-capable), this option tells curl to resolve names to IPv4
|
example try IPv6.
|
||||||
addresses only.
|
|
||||||
.IP "-6, --ipv6"
|
.IP "-6, --ipv6"
|
||||||
If curl is capable of resolving an address to multiple IP versions (which it
|
This option tells curl to resolve names to IPv6 addresses only, and not for
|
||||||
is if it is IPv6-capable), this option tells curl to resolve names to IPv6
|
example try IPv4.
|
||||||
addresses only.
|
|
||||||
.IP "-a, --append"
|
.IP "-a, --append"
|
||||||
(FTP/SFTP) When used in an upload, this will tell curl to append to the target
|
(FTP/SFTP) When used in an upload, this makes curl append to the target file
|
||||||
file instead of overwriting it. If the file doesn't exist, it will be created.
|
instead of overwriting it. If the remote file doesn't exist, it will be
|
||||||
Note that this flag is ignored by some SSH servers (including OpenSSH).
|
created. Note that this flag is ignored by some SFTP servers (including
|
||||||
|
OpenSSH).
|
||||||
.IP "-A, --user-agent <agent string>"
|
.IP "-A, --user-agent <agent string>"
|
||||||
(HTTP) Specify the User-Agent string to send to the HTTP server. Some badly
|
(HTTP) Specify the User-Agent string to send to the HTTP server. Some badly
|
||||||
done CGIs fail if this field isn't set to "Mozilla/4.0". To encode blanks in
|
done CGIs fail if this field isn't set to "Mozilla/4.0". To encode blanks in
|
||||||
@@ -174,10 +207,9 @@ since it may require data to be sent twice and then the client must be able to
|
|||||||
rewind. If the need should arise when uploading from stdin, the upload
|
rewind. If the need should arise when uploading from stdin, the upload
|
||||||
operation will fail.
|
operation will fail.
|
||||||
.IP "-b, --cookie <name=data>"
|
.IP "-b, --cookie <name=data>"
|
||||||
(HTTP)
|
(HTTP) Pass the data to the HTTP server as a cookie. It is supposedly the data
|
||||||
Pass the data to the HTTP server as a cookie. It is supposedly the
|
previously received from the server in a "Set-Cookie:" line. The data should
|
||||||
data previously received from the server in a "Set-Cookie:" line.
|
be in the format "NAME1=VALUE1; NAME2=VALUE2".
|
||||||
The data should be in the format "NAME1=VALUE1; NAME2=VALUE2".
|
|
||||||
|
|
||||||
If no '=' symbol is used in the line, it is treated as a filename to use to
|
If no '=' symbol is used in the line, it is treated as a filename to use to
|
||||||
read previously stored cookie lines from, which should be used in this session
|
read previously stored cookie lines from, which should be used in this session
|
||||||
@@ -187,26 +219,29 @@ in combination with the \fI-L, --location\fP option. The file format of the
|
|||||||
file to read cookies from should be plain HTTP headers or the Netscape/Mozilla
|
file to read cookies from should be plain HTTP headers or the Netscape/Mozilla
|
||||||
cookie file format.
|
cookie file format.
|
||||||
|
|
||||||
\fBNOTE\fP that the file specified with \fI-b, --cookie\fP is only used as
|
The file specified with \fI-b, --cookie\fP is only used as input. No cookies
|
||||||
input. No cookies will be stored in the file. To store cookies, use the
|
will be written to the file. To store cookies, use the \fI-c, --cookie-jar\fP
|
||||||
\fI-c, --cookie-jar\fP option or you could even save the HTTP headers to a file
|
option.
|
||||||
using \fI-D, --dump-header\fP!
|
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-B, --use-ascii"
|
.IP "-B, --use-ascii"
|
||||||
(FTP/LDAP) Enable ASCII transfer. For FTP, this can also be
|
(FTP/LDAP) Enable ASCII transfer. For FTP, this can also be enforced by using
|
||||||
enforced by using an URL that ends with ";type=A". This option causes data
|
an URL that ends with ";type=A". This option causes data sent to stdout to be
|
||||||
sent to stdout to be in text mode for win32 systems.
|
in text mode for win32 systems.
|
||||||
.IP "--basic"
|
.IP "--basic"
|
||||||
(HTTP) Tells curl to use HTTP Basic authentication. This is the default and
|
(HTTP) Tells curl to use HTTP Basic authentication with the remote host. This
|
||||||
this option is usually pointless, unless you use it to override a previously
|
is the default and this option is usually pointless, unless you use it to
|
||||||
set option that sets a different authentication method (such as \fI--ntlm\fP,
|
override a previously set option that sets a different authentication method
|
||||||
\fI--digest\fP, or \fI--negotiate\fP).
|
(such as \fI--ntlm\fP, \fI--digest\fP, or \fI--negotiate\fP).
|
||||||
|
|
||||||
|
Used together with \fI-u, --user\fP and \fI-x, --proxy\fP.
|
||||||
|
|
||||||
|
See also \fI--proxy-basic\fP.
|
||||||
.IP "-c, --cookie-jar <file name>"
|
.IP "-c, --cookie-jar <file name>"
|
||||||
(HTTP) Specify to which file you want curl to write all cookies after a
|
(HTTP) Specify to which file you want curl to write all cookies after a
|
||||||
completed operation. Curl writes all cookies previously read from a specified
|
completed operation. Curl writes all cookies previously read from a specified
|
||||||
file as well as all cookies received from remote server(s). If no cookies are
|
file as well as all cookies received from remote server(s). If no cookies are
|
||||||
known, no file will be written. The file will be written using the Netscape
|
known, no data will be written. The file will be written using the Netscape
|
||||||
cookie file format. If you set the file name to a single dash, "-", the
|
cookie file format. If you set the file name to a single dash, "-", the
|
||||||
cookies will be written to stdout.
|
cookies will be written to stdout.
|
||||||
|
|
||||||
@@ -246,11 +281,12 @@ If this option is used several times, the last one will be used.
|
|||||||
supports, and save the uncompressed document. If this option is used and the
|
supports, and save the uncompressed document. If this option is used and the
|
||||||
server sends an unsupported encoding, curl will report an error.
|
server sends an unsupported encoding, curl will report an error.
|
||||||
.IP "--connect-timeout <seconds>"
|
.IP "--connect-timeout <seconds>"
|
||||||
Maximum time in seconds that you allow the connection to the server to take.
|
Maximum time in seconds that you allow curl's connection to take. This only
|
||||||
This only limits the connection phase, once curl has connected this option is
|
limits the connection phase, so if curl connects within the given period it
|
||||||
of no more use. Since 7.32.0, this option accepts decimal values, but the
|
will continue - if not it will exit. Since version 7.32.0, this option
|
||||||
actual timeout will decrease in accuracy as the specified timeout increases in
|
accepts decimal values.
|
||||||
decimal precision. See also the \fI-m, --max-time\fP option.
|
|
||||||
|
See also the \fI-m, --max-time\fP option.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--create-dirs"
|
.IP "--create-dirs"
|
||||||
@@ -262,7 +298,9 @@ uses no dir or if the dirs it mentions already exist, no dir will be created.
|
|||||||
To create remote directories when using FTP or SFTP, try
|
To create remote directories when using FTP or SFTP, try
|
||||||
\fI--ftp-create-dirs\fP.
|
\fI--ftp-create-dirs\fP.
|
||||||
.IP "--crlf"
|
.IP "--crlf"
|
||||||
(FTP) Convert LF to CRLF in upload. Useful for MVS (OS/390).
|
Convert LF to CRLF in upload. Useful for MVS (OS/390).
|
||||||
|
|
||||||
|
(SMTP added in 7.40.0)
|
||||||
.IP "--crlfile <file>"
|
.IP "--crlfile <file>"
|
||||||
(HTTPS/FTPS) Provide a file using PEM format with a Certificate Revocation
|
(HTTPS/FTPS) Provide a file using PEM format with a Certificate Revocation
|
||||||
List that may specify peer certificates that are to be considered revoked.
|
List that may specify peer certificates that are to be considered revoked.
|
||||||
@@ -287,24 +325,23 @@ data pieces specified will be merged together with a separating
|
|||||||
chunk that looks like \&'name=daniel&skill=lousy'.
|
chunk that looks like \&'name=daniel&skill=lousy'.
|
||||||
|
|
||||||
If you start the data with the letter @, the rest should be a file name to
|
If you start the data with the letter @, the rest should be a file name to
|
||||||
read the data from, or - if you want curl to read the data from stdin. The
|
read the data from, or - if you want curl to read the data from
|
||||||
contents of the file must already be URL-encoded. Multiple files can also be
|
stdin. Multiple files can also be specified. Posting data from a file
|
||||||
specified. Posting data from a file named 'foobar' would thus be done with
|
named 'foobar' would thus be done with \fI--data\fP @foobar. When --data is
|
||||||
\fI--data\fP @foobar. When --data is told to read from a file like that,
|
told to read from a file like that, carriage returns and newlines will be
|
||||||
carriage returns and newlines will be stripped out.
|
stripped out.
|
||||||
.IP "-D, --dump-header <file>"
|
.IP "-D, --dump-header <file>"
|
||||||
Write the protocol headers to the specified file.
|
Write the protocol headers to the specified file.
|
||||||
|
|
||||||
This option is handy to use when you want to store the headers that an HTTP
|
This option is handy to use when you want to store the headers that an HTTP
|
||||||
site sends to you. Cookies from the headers could then be read in a second
|
site sends to you. Cookies from the headers could then be read in a second
|
||||||
curl invocation by using the \fI-b, --cookie\fP option! The
|
curl invocation by using the \fI-b, --cookie\fP option! The
|
||||||
\fI-c, --cookie-jar\fP option is however a better way to store cookies.
|
\fI-c, --cookie-jar\fP option is a better way to store cookies.
|
||||||
|
|
||||||
When used in FTP, the FTP server response lines are considered being "headers"
|
When used in FTP, the FTP server response lines are considered being "headers"
|
||||||
and thus are saved there.
|
and thus are saved there.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
|
|
||||||
.IP "--data-ascii <data>"
|
.IP "--data-ascii <data>"
|
||||||
See \fI-d, --data\fP.
|
See \fI-d, --data\fP.
|
||||||
.IP "--data-binary <data>"
|
.IP "--data-binary <data>"
|
||||||
@@ -422,7 +459,7 @@ This option requires that libcurl was built with a resolver backend that
|
|||||||
supports this operation. The c-ares backend is the only such one. (Added in
|
supports this operation. The c-ares backend is the only such one. (Added in
|
||||||
7.33.0)
|
7.33.0)
|
||||||
.IP "-e, --referer <URL>"
|
.IP "-e, --referer <URL>"
|
||||||
(HTTP) Sends the "Referer Page" information to the HTTP server. This can also
|
(HTTP) Sends the "Referrer Page" information to the HTTP server. This can also
|
||||||
be set with the \fI-H, --header\fP flag of course. When used with
|
be set with the \fI-H, --header\fP flag of course. When used with
|
||||||
\fI-L, --location\fP you can append ";auto" to the --referer URL to make curl
|
\fI-L, --location\fP you can append ";auto" to the --referer URL to make curl
|
||||||
automatically set the previous URL when it follows a Location: header. The
|
automatically set the previous URL when it follows a Location: header. The
|
||||||
@@ -502,12 +539,35 @@ OpenSSL-powered curl to make SSL-connections much more efficiently than using
|
|||||||
|
|
||||||
If this option is set, the default capath value will be ignored, and if it is
|
If this option is set, the default capath value will be ignored, and if it is
|
||||||
used several times, the last one will be used.
|
used several times, the last one will be used.
|
||||||
|
.IP "--pinnedpubkey <pinned public key>"
|
||||||
|
(SSL) Tells curl to use the specified public key file to verify the peer. The
|
||||||
|
file must contain a single public key in PEM or DER format.
|
||||||
|
|
||||||
|
When negotiating a TLS or SSL connection, the server sends a certificate
|
||||||
|
indicating its identity. A public key is extracted from this certificate and
|
||||||
|
if it does not exactly match the public key provided to this option, curl will
|
||||||
|
abort the connection before sending or receiving any data.
|
||||||
|
|
||||||
|
This is currently only implemented in the OpenSSL, GnuTLS and GSKit backends.
|
||||||
|
|
||||||
|
If this option is used several times, the last one will be used.
|
||||||
|
(Added in 7.39.0)
|
||||||
|
.IP "--cert-status"
|
||||||
|
(SSL) Tells curl to verify the status of the server certificate by using the
|
||||||
|
Certificate Status Request (aka. OCSP stapling) TLS extension.
|
||||||
|
|
||||||
|
If this option is enabled and the server sends an invalid (e.g. expired)
|
||||||
|
response, if the response suggests that the server certificate has been revoked,
|
||||||
|
or no response at all is received, the verification fails.
|
||||||
|
|
||||||
|
This is currently only implemented in the OpenSSL, GnuTLS and NSS backends.
|
||||||
|
(Added in 7.41.0)
|
||||||
.IP "-f, --fail"
|
.IP "-f, --fail"
|
||||||
(HTTP) Fail silently (no output at all) on server errors. This is mostly done
|
(HTTP) Fail silently (no output at all) on server errors. This is mostly done
|
||||||
to better enable scripts etc to better deal with failed attempts. In
|
to better enable scripts etc to better deal with failed attempts. In normal
|
||||||
normal cases when an HTTP server fails to deliver a document, it returns an
|
cases when an HTTP server fails to deliver a document, it returns an HTML
|
||||||
HTML document stating so (which often also describes why and more). This flag
|
document stating so (which often also describes why and more). This flag will
|
||||||
will prevent curl from outputting that and return error 22.
|
prevent curl from outputting that and return error 22.
|
||||||
|
|
||||||
This method is not fail-safe and there are occasions where non-successful
|
This method is not fail-safe and there are occasions where non-successful
|
||||||
response codes will slip through, especially when authentication is involved
|
response codes will slip through, especially when authentication is involved
|
||||||
@@ -516,11 +576,11 @@ response codes will slip through, especially when authentication is involved
|
|||||||
(HTTP) This lets curl emulate a filled-in form in which a user has pressed the
|
(HTTP) This lets curl emulate a filled-in form in which a user has pressed the
|
||||||
submit button. This causes curl to POST data using the Content-Type
|
submit button. This causes curl to POST data using the Content-Type
|
||||||
multipart/form-data according to RFC 2388. This enables uploading of binary
|
multipart/form-data according to RFC 2388. This enables uploading of binary
|
||||||
files etc. To force the 'content' part to be a file, prefix the file name
|
files etc. To force the 'content' part to be a file, prefix the file name with
|
||||||
with an @ sign. To just get the content part from a file, prefix the file name
|
an @ sign. To just get the content part from a file, prefix the file name with
|
||||||
with the symbol <. The difference between @ and < is then that @ makes a file
|
the symbol <. The difference between @ and < is then that @ makes a file get
|
||||||
get attached in the post as a file upload, while the < makes a text field and
|
attached in the post as a file upload, while the < makes a text field and just
|
||||||
just get the contents for that text field from a file.
|
get the contents for that text field from a file.
|
||||||
|
|
||||||
Example, to send your password file to the server, where
|
Example, to send your password file to the server, where
|
||||||
\&'password' is the name of the form-field to which /etc/passwd will be the
|
\&'password' is the name of the form-field to which /etc/passwd will be the
|
||||||
@@ -646,10 +706,10 @@ you can specify URLs that contain the letters {}[] without having them being
|
|||||||
interpreted by curl itself. Note that these letters are not normal legal URL
|
interpreted by curl itself. Note that these letters are not normal legal URL
|
||||||
contents but they should be encoded according to the URI standard.
|
contents but they should be encoded according to the URI standard.
|
||||||
.IP "-G, --get"
|
.IP "-G, --get"
|
||||||
When used, this option will make all data specified with \fI-d, --data\fP or
|
When used, this option will make all data specified with \fI-d, --data\fP,
|
||||||
\fI--data-binary\fP to be used in an HTTP GET request instead of the POST
|
\fI--data-binary\fP or \fI--data-urlencode\fP to be used in an HTTP GET
|
||||||
request that otherwise would be used. The data will be appended to the URL
|
request instead of the POST request that otherwise would be used. The data
|
||||||
with a '?' separator.
|
will be appended to the URL with a '?' separator.
|
||||||
|
|
||||||
If used in combination with -I, the POST data will instead be appended to the
|
If used in combination with -I, the POST data will instead be appended to the
|
||||||
URL with a HEAD request.
|
URL with a HEAD request.
|
||||||
@@ -658,16 +718,16 @@ If this option is used several times, only the first one is used. This is
|
|||||||
because undoing a GET doesn't make sense, but you should then instead enforce
|
because undoing a GET doesn't make sense, but you should then instead enforce
|
||||||
the alternative method you prefer.
|
the alternative method you prefer.
|
||||||
.IP "-H, --header <header>"
|
.IP "-H, --header <header>"
|
||||||
(HTTP) Extra header to use when getting a web page. You may specify any number
|
(HTTP) Extra header to include in the request when sending HTTP to a
|
||||||
of extra headers. Note that if you should add a custom header that has the
|
server. You may specify any number of extra headers. Note that if you should
|
||||||
same name as one of the internal ones curl would use, your externally set
|
add a custom header that has the same name as one of the internal ones curl
|
||||||
header will be used instead of the internal one. This allows you to make even
|
would use, your externally set header will be used instead of the internal
|
||||||
trickier stuff than curl would normally do. You should not replace internally
|
one. This allows you to make even trickier stuff than curl would normally
|
||||||
set headers without knowing perfectly well what you're doing. Remove an
|
do. You should not replace internally set headers without knowing perfectly
|
||||||
internal header by giving a replacement without content on the right side of
|
well what you're doing. Remove an internal header by giving a replacement
|
||||||
the colon, as in: -H \&"Host:". If you send the custom header with no-value
|
without content on the right side of the colon, as in: -H \&"Host:". If you
|
||||||
then its header must be terminated with a semicolon, such as \-H
|
send the custom header with no-value then its header must be terminated with a
|
||||||
\&"X-Custom-Header;" to send "X-Custom-Header:".
|
semicolon, such as \-H \&"X-Custom-Header;" to send "X-Custom-Header:".
|
||||||
|
|
||||||
curl will make sure that each header you add/replace is sent with the proper
|
curl will make sure that each header you add/replace is sent with the proper
|
||||||
end-of-line marker, you should thus \fBnot\fP add that as a part of the header
|
end-of-line marker, you should thus \fBnot\fP add that as a part of the header
|
||||||
@@ -676,6 +736,19 @@ for you.
|
|||||||
|
|
||||||
See also the \fI-A, --user-agent\fP and \fI-e, --referer\fP options.
|
See also the \fI-A, --user-agent\fP and \fI-e, --referer\fP options.
|
||||||
|
|
||||||
|
Starting in 7.37.0, you need \fI--proxy-header\fP to send custom headers
|
||||||
|
intended for a proxy.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
\&# curl -H "X-First-Name: Joe" http://192.168.0.1/
|
||||||
|
|
||||||
|
\fBWARNING\fP: headers set with this option will be set in all requests - even
|
||||||
|
after redirects are followed, like when told with \fB-L, --location\fP. This
|
||||||
|
can lead to the header being sent to other hosts than the original host, so
|
||||||
|
sensitive headers should be used with caution combined with following
|
||||||
|
redirects.
|
||||||
|
|
||||||
This option can be used multiple times to add/replace/remove multiple headers.
|
This option can be used multiple times to add/replace/remove multiple headers.
|
||||||
.IP "--hostpubmd5 <md5>"
|
.IP "--hostpubmd5 <md5>"
|
||||||
(SCP/SFTP) Pass a string containing 32 hexadecimal digits. The string should
|
(SCP/SFTP) Pass a string containing 32 hexadecimal digits. The string should
|
||||||
@@ -711,6 +784,9 @@ cookies when they're closed down.
|
|||||||
(HTTP) This option tells the \fI-O, --remote-name\fP option to use the
|
(HTTP) This option tells the \fI-O, --remote-name\fP option to use the
|
||||||
server-specified Content-Disposition filename instead of extracting a filename
|
server-specified Content-Disposition filename instead of extracting a filename
|
||||||
from the URL.
|
from the URL.
|
||||||
|
|
||||||
|
There's no attempt to decode %-sequences (yet) in the provided file name, so
|
||||||
|
this option may provide you with rather unexpected file names.
|
||||||
.IP "-k, --insecure"
|
.IP "-k, --insecure"
|
||||||
(SSL) This option explicitly allows curl to perform "insecure" SSL connections
|
(SSL) This option explicitly allows curl to perform "insecure" SSL connections
|
||||||
and transfers. All SSL connections are attempted to be made secure by using
|
and transfers. All SSL connections are attempted to be made secure by using
|
||||||
@@ -722,16 +798,21 @@ See this online resource for further details:
|
|||||||
.IP "-K, --config <config file>"
|
.IP "-K, --config <config file>"
|
||||||
Specify which config file to read curl arguments from. The config file is a
|
Specify which config file to read curl arguments from. The config file is a
|
||||||
text file in which command line arguments can be written which then will be
|
text file in which command line arguments can be written which then will be
|
||||||
used as if they were written on the actual command line. Options and their
|
used as if they were written on the actual command line.
|
||||||
parameters must be specified on the same config file line, separated by
|
|
||||||
whitespace, colon, the equals sign or any combination thereof (however,
|
Options and their parameters must be specified on the same config file line,
|
||||||
the preferred separator is the equals sign). If the parameter is to contain
|
separated by whitespace, colon, or the equals sign. Long option names can
|
||||||
whitespace, the parameter must be enclosed within quotes. Within double
|
optionally be given in the config file without the initial double dashes and
|
||||||
quotes, the following escape sequences are available: \\\\, \\", \\t, \\n,
|
if so, the colon or equals characters can be used as separators. If the option
|
||||||
\\r and \\v. A backslash preceding any other letter is ignored. If the
|
is specified with one or two dashes, there can be no colon or equals character
|
||||||
first column of a config line is a '#' character, the rest of the line will be
|
between the option and its parameter.
|
||||||
treated as a comment. Only write one option per physical line in the config
|
|
||||||
file.
|
If the parameter is to contain whitespace, the parameter must be enclosed
|
||||||
|
within quotes. Within double quotes, the following escape sequences are
|
||||||
|
available: \\\\, \\", \\t, \\n, \\r and \\v. A backslash preceding any other
|
||||||
|
letter is ignored. If the first column of a config line is a '#' character,
|
||||||
|
the rest of the line will be treated as a comment. Only write one option per
|
||||||
|
physical line in the config file.
|
||||||
|
|
||||||
Specify the filename to -K, --config as '-' to make curl read the file from
|
Specify the filename to -K, --config as '-' to make curl read the file from
|
||||||
stdin.
|
stdin.
|
||||||
@@ -742,21 +823,18 @@ line. So, it could look similar to this:
|
|||||||
|
|
||||||
url = "http://curl.haxx.se/docs/"
|
url = "http://curl.haxx.se/docs/"
|
||||||
|
|
||||||
Long option names can optionally be given in the config file without the
|
|
||||||
initial double dashes.
|
|
||||||
|
|
||||||
When curl is invoked, it always (unless \fI-q\fP is used) checks for a default
|
When curl is invoked, it always (unless \fI-q\fP is used) checks for a default
|
||||||
config file and uses it if found. The default config file is checked for in
|
config file and uses it if found. The default config file is checked for in
|
||||||
the following places in this order:
|
the following places in this order:
|
||||||
|
|
||||||
1) curl tries to find the "home dir": It first checks for the CURL_HOME and
|
1) curl tries to find the "home dir": It first checks for the CURL_HOME and
|
||||||
then the HOME environment variables. Failing that, it uses getpwuid() on
|
then the HOME environment variables. Failing that, it uses getpwuid() on
|
||||||
UNIX-like systems (which returns the home dir given the current user in your
|
Unix-like systems (which returns the home dir given the current user in your
|
||||||
system). On Windows, it then checks for the APPDATA variable, or as a last
|
system). On Windows, it then checks for the APPDATA variable, or as a last
|
||||||
resort the '%USERPROFILE%\\Application Data'.
|
resort the '%USERPROFILE%\\Application Data'.
|
||||||
|
|
||||||
2) On windows, if there is no _curlrc file in the home dir, it checks for one
|
2) On windows, if there is no _curlrc file in the home dir, it checks for one
|
||||||
in the same dir the curl executable is placed. On UNIX-like systems, it will
|
in the same dir the curl executable is placed. On Unix-like systems, it will
|
||||||
simply try to load .curlrc from the determined home dir.
|
simply try to load .curlrc from the determined home dir.
|
||||||
|
|
||||||
.nf
|
.nf
|
||||||
@@ -785,7 +863,8 @@ If this option is used several times, the last one will be used. If
|
|||||||
unspecified, the option defaults to 60 seconds.
|
unspecified, the option defaults to 60 seconds.
|
||||||
.IP "--key <key>"
|
.IP "--key <key>"
|
||||||
(SSL/SSH) Private key file name. Allows you to provide your private key in this
|
(SSL/SSH) Private key file name. Allows you to provide your private key in this
|
||||||
separate file.
|
separate file. For SSH, if not specified, curl tries the following candidates
|
||||||
|
in order: '~/.ssh/id_rsa', '~/.ssh/id_dsa', './id_rsa', './id_dsa'.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--key-type <type>"
|
.IP "--key-type <type>"
|
||||||
@@ -799,22 +878,29 @@ If this option is used several times, the last one will be used.
|
|||||||
should be one of 'clear', 'safe', 'confidential', or 'private'. Should you use
|
should be one of 'clear', 'safe', 'confidential', or 'private'. Should you use
|
||||||
a level that is not one of these, 'private' will instead be used.
|
a level that is not one of these, 'private' will instead be used.
|
||||||
|
|
||||||
This option requires a library built with kerberos4 or GSSAPI
|
This option requires a library built with kerberos4 support. This is not
|
||||||
(GSS-Negotiate) support. This is not very common. Use \fI-V, --version\fP to
|
very common. Use \fI-V, --version\fP to see if your curl supports it.
|
||||||
see if your curl supports it.
|
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-l, --list-only"
|
.IP "-l, --list-only"
|
||||||
(FTP)
|
(FTP)
|
||||||
When listing an FTP directory, this switch forces a name-only view.
|
When listing an FTP directory, this switch forces a name-only view. This is
|
||||||
Especially useful if you want to machine-parse the contents of an FTP
|
especially useful if the user wants to machine-parse the contents of an FTP
|
||||||
directory since the normal directory view doesn't use a standard look
|
directory since the normal directory view doesn't use a standard look or
|
||||||
or format.
|
format. When used like this, the option causes a NLST command to be sent to
|
||||||
|
the server instead of LIST.
|
||||||
|
|
||||||
This option causes an FTP NLST command to be sent. Some FTP servers
|
Note: Some FTP servers list only files in their response to NLST; they do not
|
||||||
list only files in their response to NLST; they do not include
|
include sub-directories and symbolic links.
|
||||||
subdirectories and symbolic links.
|
|
||||||
|
|
||||||
|
(POP3)
|
||||||
|
When retrieving a specific email from POP3, this switch forces a LIST command
|
||||||
|
to be performed instead of RETR. This is particularly useful if the user wants
|
||||||
|
to see if a specific message id exists on the server and what size it is.
|
||||||
|
|
||||||
|
Note: When combined with \fI-X, --request <command>\fP, this option can be used
|
||||||
|
to send an UIDL command instead, so the user may use the email's unique
|
||||||
|
identifier rather than it's message id to make the request. (Added in 7.21.5)
|
||||||
.IP "-L, --location"
|
.IP "-L, --location"
|
||||||
(HTTP/HTTPS) If the server reports that the requested page has moved to a
|
(HTTP/HTTPS) If the server reports that the requested page has moved to a
|
||||||
different location (indicated with a Location: header and a 3XX response code),
|
different location (indicated with a Location: header and a 3XX response code),
|
||||||
@@ -830,6 +916,10 @@ When curl follows a redirect and the request is not a plain GET (for example
|
|||||||
POST or PUT), it will do the following request with a GET if the HTTP response
|
POST or PUT), it will do the following request with a GET if the HTTP response
|
||||||
was 301, 302, or 303. If the response code was any other 3xx code, curl will
|
was 301, 302, or 303. If the response code was any other 3xx code, curl will
|
||||||
re-send the following request using the same unmodified method.
|
re-send the following request using the same unmodified method.
|
||||||
|
|
||||||
|
You can tell curl to not change the non-GET request method to GET after a 30x
|
||||||
|
response by using the dedicated options for that: \fI--post301\fP,
|
||||||
|
\fI--post302\fP and \fI-post303\fP.
|
||||||
.IP "--libcurl <file>"
|
.IP "--libcurl <file>"
|
||||||
Append this option to any ordinary curl command line, and you will get a
|
Append this option to any ordinary curl command line, and you will get a
|
||||||
libcurl-using C source code written to the file that does the equivalent
|
libcurl-using C source code written to the file that does the equivalent
|
||||||
@@ -838,9 +928,10 @@ of what your command-line operation does!
|
|||||||
If this option is used several times, the last given file name will be
|
If this option is used several times, the last given file name will be
|
||||||
used. (Added in 7.16.1)
|
used. (Added in 7.16.1)
|
||||||
.IP "--limit-rate <speed>"
|
.IP "--limit-rate <speed>"
|
||||||
Specify the maximum transfer rate you want curl to use. This feature is useful
|
Specify the maximum transfer rate you want curl to use - for both downloads
|
||||||
if you have a limited pipe and you'd like your transfer not to use your entire
|
and uploads. This feature is useful if you have a limited pipe and you'd like
|
||||||
bandwidth.
|
your transfer not to use your entire bandwidth. To make it slower than it
|
||||||
|
otherwise would be.
|
||||||
|
|
||||||
The given speed is measured in bytes/second, unless a suffix is appended.
|
The given speed is measured in bytes/second, unless a suffix is appended.
|
||||||
Appending 'k' or 'K' will count the number as kilobytes, 'm' or M' makes it
|
Appending 'k' or 'K' will count the number as kilobytes, 'm' or M' makes it
|
||||||
@@ -874,6 +965,16 @@ values, but the actual timeout will decrease in accuracy as the specified
|
|||||||
timeout increases in decimal precision. See also the \fI--connect-timeout\fP
|
timeout increases in decimal precision. See also the \fI--connect-timeout\fP
|
||||||
option.
|
option.
|
||||||
|
|
||||||
|
If this option is used several times, the last one will be used.
|
||||||
|
.IP "--login-options <options>"
|
||||||
|
Specify the login options to use during server authentication.
|
||||||
|
|
||||||
|
You can use the login options to specify protocol specific options that may
|
||||||
|
be used during authentication. At present only IMAP, POP3 and SMTP support
|
||||||
|
login options. For more information about the login options please see
|
||||||
|
RFC 2384, RFC 5092 and IETF draft draft-earhart-url-smtp-00.txt (Added in
|
||||||
|
7.34.0).
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--mail-auth <address>"
|
.IP "--mail-auth <address>"
|
||||||
(SMTP) Specify a single address. This will be used to specify the
|
(SMTP) Specify a single address. This will be used to specify the
|
||||||
@@ -894,10 +995,18 @@ return with exit code 63.
|
|||||||
files this option has no effect even if the file transfer ends up being larger
|
files this option has no effect even if the file transfer ends up being larger
|
||||||
than this given limit. This concerns both FTP and HTTP transfers.
|
than this given limit. This concerns both FTP and HTTP transfers.
|
||||||
.IP "--mail-rcpt <address>"
|
.IP "--mail-rcpt <address>"
|
||||||
(SMTP) Specify a single address that the given mail should get sent to. This
|
(SMTP) Specify a single address, user name or mailing list name.
|
||||||
option can be used multiple times to specify many recipients.
|
|
||||||
|
|
||||||
(Added in 7.20.0)
|
When performing a mail transfer, the recipient should specify a valid email
|
||||||
|
address to send the mail to. (Added in 7.20.0)
|
||||||
|
|
||||||
|
When performing an address verification (VRFY command), the recipient should be
|
||||||
|
specified as the user name or user name and domain (as per Section 3.5 of
|
||||||
|
RFC5321). (Added in 7.34.0)
|
||||||
|
|
||||||
|
When performing a mailing list expand (EXPN command), the recipient should be
|
||||||
|
specified using the mailing list name, such as "Friends" or "London-Office".
|
||||||
|
(Added in 7.34.0)
|
||||||
.IP "--max-redirs <num>"
|
.IP "--max-redirs <num>"
|
||||||
Set maximum number of redirection-followings allowed. If \fI-L, --location\fP
|
Set maximum number of redirection-followings allowed. If \fI-L, --location\fP
|
||||||
is used, this option can be used to prevent curl from following redirections
|
is used, this option can be used to prevent curl from following redirections
|
||||||
@@ -933,7 +1042,7 @@ in Metalink file, hash check will fail.
|
|||||||
.IP "-n, --netrc"
|
.IP "-n, --netrc"
|
||||||
Makes curl scan the \fI.netrc\fP (\fI_netrc\fP on Windows) file in the user's
|
Makes curl scan the \fI.netrc\fP (\fI_netrc\fP on Windows) file in the user's
|
||||||
home directory for login name and password. This is typically used for FTP on
|
home directory for login name and password. This is typically used for FTP on
|
||||||
UNIX. If used with HTTP, curl will enable user authentication. See
|
Unix. If used with HTTP, curl will enable user authentication. See
|
||||||
.BR netrc(4)
|
.BR netrc(4)
|
||||||
or
|
or
|
||||||
.BR ftp(1)
|
.BR ftp(1)
|
||||||
@@ -970,18 +1079,13 @@ Very similar to \fI--netrc\fP, but this option makes the .netrc usage
|
|||||||
\fBoptional\fP and not mandatory as the \fI--netrc\fP option does.
|
\fBoptional\fP and not mandatory as the \fI--netrc\fP option does.
|
||||||
|
|
||||||
.IP "--negotiate"
|
.IP "--negotiate"
|
||||||
(HTTP) Enables GSS-Negotiate authentication. The GSS-Negotiate method was
|
(HTTP) Enables Negotiate (SPNEGO) authentication.
|
||||||
designed by Microsoft and is used in their web applications. It is primarily
|
|
||||||
meant as a support for Kerberos5 authentication but may be also used along
|
|
||||||
with another authentication method. For more information see IETF draft
|
|
||||||
draft-brezak-spnego-http-04.txt.
|
|
||||||
|
|
||||||
If you want to enable Negotiate for your proxy authentication, then use
|
If you want to enable Negotiate (SPNEGO) for proxy authentication, then use
|
||||||
\fI--proxy-negotiate\fP.
|
\fI--proxy-negotiate\fP.
|
||||||
|
|
||||||
This option requires a library built with GSSAPI support. This is
|
This option requires a library built with GSS-API or SSPI support. Use \fI-V,
|
||||||
not very common. Use \fI-V, --version\fP to see if your version supports
|
--version\fP to see if your curl supports GSS-API/SSPI and SPNEGO.
|
||||||
GSS-Negotiate.
|
|
||||||
|
|
||||||
When using this option, you must also provide a fake \fI-u, --user\fP option to
|
When using this option, you must also provide a fake \fI-u, --user\fP option to
|
||||||
activate the authentication code properly. Sending a '-u :' is enough as the
|
activate the authentication code properly. Sending a '-u :' is enough as the
|
||||||
@@ -1053,15 +1157,37 @@ Consequentially, the file will be saved in the current working directory. If
|
|||||||
you want the file saved in a different directory, make sure you change current
|
you want the file saved in a different directory, make sure you change current
|
||||||
working directory before you invoke curl with the \fB-O, --remote-name\fP flag!
|
working directory before you invoke curl with the \fB-O, --remote-name\fP flag!
|
||||||
|
|
||||||
|
There is no URL decoding done on the file name. If it has %20 or other URL
|
||||||
|
encoded parts of the name, they will end up as-is as file name.
|
||||||
|
|
||||||
You may use this option as many times as the number of URLs you have.
|
You may use this option as many times as the number of URLs you have.
|
||||||
.IP "--oauth2-bearer"
|
.IP "--oauth2-bearer"
|
||||||
(IMAP/POP3/SMTP) Specify the Bearer Token for OAUTH 2.0 server authentication.
|
(IMAP, POP3, SMTP)
|
||||||
The Bearer Token is used in conjuction with the user name which can be
|
Specify the Bearer Token for OAUTH 2.0 server authentication. The Bearer Token
|
||||||
specified as part of the \fI--url\fP or \fI-u, --user\fP options.
|
is used in conjunction with the user name which can be specified as part of the
|
||||||
|
\fI--url\fP or \fI-u, --user\fP options.
|
||||||
|
|
||||||
The Bearer Token and user name are formatted according to RFC 6750.
|
The Bearer Token and user name are formatted according to RFC 6750.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
|
.IP "--proxy-header <header>"
|
||||||
|
(HTTP) Extra header to include in the request when sending HTTP to a
|
||||||
|
proxy. You may specify any number of extra headers. This is the equivalent
|
||||||
|
option to \fI-H, --header\fP but is for proxy communication only like in
|
||||||
|
CONNECT requests when you want a separate header sent to the proxy to what is
|
||||||
|
sent to the actual remote host.
|
||||||
|
|
||||||
|
curl will make sure that each header you add/replace is sent with the proper
|
||||||
|
end-of-line marker, you should thus \fBnot\fP add that as a part of the header
|
||||||
|
content: do not add newlines or carriage returns, they will only mess things
|
||||||
|
up for you.
|
||||||
|
|
||||||
|
Headers specified with this option will not be included in requests that curl
|
||||||
|
knows will not be sent to a proxy.
|
||||||
|
|
||||||
|
This option can be used multiple times to add/replace/remove multiple headers.
|
||||||
|
|
||||||
|
(Added in 7.37.0)
|
||||||
.IP "-p, --proxytunnel"
|
.IP "-p, --proxytunnel"
|
||||||
When an HTTP proxy is used (\fI-x, --proxy\fP), this option will cause non-HTTP
|
When an HTTP proxy is used (\fI-x, --proxy\fP), this option will cause non-HTTP
|
||||||
protocols to attempt to tunnel through the proxy instead of merely using it to
|
protocols to attempt to tunnel through the proxy instead of merely using it to
|
||||||
@@ -1178,8 +1304,8 @@ the default authentication method curl uses with proxies.
|
|||||||
Tells curl to use HTTP Digest authentication when communicating with the given
|
Tells curl to use HTTP Digest authentication when communicating with the given
|
||||||
proxy. Use \fI--digest\fP for enabling HTTP Digest with a remote host.
|
proxy. Use \fI--digest\fP for enabling HTTP Digest with a remote host.
|
||||||
.IP "--proxy-negotiate"
|
.IP "--proxy-negotiate"
|
||||||
Tells curl to use HTTP Negotiate authentication when communicating
|
Tells curl to use HTTP Negotiate (SPNEGO) authentication when communicating
|
||||||
with the given proxy. Use \fI--negotiate\fP for enabling HTTP Negotiate
|
with the given proxy. Use \fI--negotiate\fP for enabling HTTP Negotiate (SPNEGO)
|
||||||
with a remote host. (Added in 7.17.1)
|
with a remote host. (Added in 7.17.1)
|
||||||
.IP "--proxy-ntlm"
|
.IP "--proxy-ntlm"
|
||||||
Tells curl to use HTTP NTLM authentication when communicating with the given
|
Tells curl to use HTTP NTLM authentication when communicating with the given
|
||||||
@@ -1196,6 +1322,11 @@ protocol instead of the default HTTP 1.1.
|
|||||||
separate file.
|
separate file.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
|
|
||||||
|
(As of 7.39.0, curl attempts to automatically extract the public key from the
|
||||||
|
private key file, so passing this option is generally not required. Note that
|
||||||
|
this public key extraction requires libcurl to be linked against a copy of
|
||||||
|
libssh2 1.2.8 or higher that is itself linked against OpenSSL.)
|
||||||
.IP "-q"
|
.IP "-q"
|
||||||
If used as the first parameter on the command line, the \fIcurlrc\fP config
|
If used as the first parameter on the command line, the \fIcurlrc\fP config
|
||||||
file will not be read and used. See the \fI-K, --config\fP for details on the
|
file will not be read and used. See the \fI-K, --config\fP for details on the
|
||||||
@@ -1379,7 +1510,7 @@ option name can still be used but will be removed in a future version.
|
|||||||
.IP "--ssl-allow-beast"
|
.IP "--ssl-allow-beast"
|
||||||
(SSL) This option tells curl to not work around a security flaw in the SSL3
|
(SSL) This option tells curl to not work around a security flaw in the SSL3
|
||||||
and TLS1.0 protocols known as BEAST. If this option isn't used, the SSL layer
|
and TLS1.0 protocols known as BEAST. If this option isn't used, the SSL layer
|
||||||
may use work-arounds known to cause interoperability problems with some older
|
may use workarounds known to cause interoperability problems with some older
|
||||||
SSL implementations. WARNING: this option loosens the SSL security, and by
|
SSL implementations. WARNING: this option loosens the SSL security, and by
|
||||||
using this flag you ask for exactly that. (Added in 7.25.0)
|
using this flag you ask for exactly that. (Added in 7.25.0)
|
||||||
.IP "--socks4 <host[:port]>"
|
.IP "--socks4 <host[:port]>"
|
||||||
@@ -1442,7 +1573,7 @@ sockd/proxy-name --socks5 proxy-name \fI--socks5-gssapi-service\fP
|
|||||||
sockd/real-name would use sockd/real-name for cases where the proxy-name does
|
sockd/real-name would use sockd/real-name for cases where the proxy-name does
|
||||||
not match the principal name. (Added in 7.19.4).
|
not match the principal name. (Added in 7.19.4).
|
||||||
.IP "--socks5-gssapi-nec"
|
.IP "--socks5-gssapi-nec"
|
||||||
As part of the gssapi negotiation a protection mode is negotiated. RFC 1961
|
As part of the GSS-API negotiation a protection mode is negotiated. RFC 1961
|
||||||
says in section 4.3/4.4 it should be protected, but the NEC reference
|
says in section 4.3/4.4 it should be protected, but the NEC reference
|
||||||
implementation does not. The option \fI--socks5-gssapi-nec\fP allows the
|
implementation does not. The option \fI--socks5-gssapi-nec\fP allows the
|
||||||
unprotected exchange of the protection mode negotiation. (Added in 7.19.4).
|
unprotected exchange of the protection mode negotiation. (Added in 7.19.4).
|
||||||
@@ -1498,14 +1629,26 @@ Set TLS authentication type. Currently, the only supported option is "SRP",
|
|||||||
for TLS-SRP (RFC 5054). If \fI--tlsuser\fP and \fI--tlspassword\fP are
|
for TLS-SRP (RFC 5054). If \fI--tlsuser\fP and \fI--tlspassword\fP are
|
||||||
specified but \fI--tlsauthtype\fP is not, then this option defaults to "SRP".
|
specified but \fI--tlsauthtype\fP is not, then this option defaults to "SRP".
|
||||||
(Added in 7.21.4)
|
(Added in 7.21.4)
|
||||||
.IP "--tlsuser <user>"
|
|
||||||
Set username for use with the TLS authentication method specified with
|
|
||||||
\fI--tlsauthtype\fP. Requires that \fI--tlspassword\fP also be set. (Added in
|
|
||||||
7.21.4)
|
|
||||||
.IP "--tlspassword <password>"
|
.IP "--tlspassword <password>"
|
||||||
Set password for use with the TLS authentication method specified with
|
Set password for use with the TLS authentication method specified with
|
||||||
\fI--tlsauthtype\fP. Requires that \fI--tlsuser\fP also be set. (Added in
|
\fI--tlsauthtype\fP. Requires that \fI--tlsuser\fP also be set. (Added in
|
||||||
7.21.4)
|
7.21.4)
|
||||||
|
.IP "--tlsuser <user>"
|
||||||
|
Set username for use with the TLS authentication method specified with
|
||||||
|
\fI--tlsauthtype\fP. Requires that \fI--tlspassword\fP also be set. (Added in
|
||||||
|
7.21.4)
|
||||||
|
.IP "--tlsv1.0"
|
||||||
|
(SSL)
|
||||||
|
Forces curl to use TLS version 1.0 when negotiating with a remote TLS server.
|
||||||
|
(Added in 7.34.0)
|
||||||
|
.IP "--tlsv1.1"
|
||||||
|
(SSL)
|
||||||
|
Forces curl to use TLS version 1.1 when negotiating with a remote TLS server.
|
||||||
|
(Added in 7.34.0)
|
||||||
|
.IP "--tlsv1.2"
|
||||||
|
(SSL)
|
||||||
|
Forces curl to use TLS version 1.2 when negotiating with a remote TLS server.
|
||||||
|
(Added in 7.34.0)
|
||||||
.IP "--tr-encoding"
|
.IP "--tr-encoding"
|
||||||
(HTTP) Request a compressed Transfer-Encoding response using one of the
|
(HTTP) Request a compressed Transfer-Encoding response using one of the
|
||||||
algorithms curl supports, and uncompress the data while receiving it.
|
algorithms curl supports, and uncompress the data while receiving it.
|
||||||
@@ -1535,31 +1678,44 @@ If this option is used several times, the last one will be used.
|
|||||||
.IP "--trace-time"
|
.IP "--trace-time"
|
||||||
Prepends a time stamp to each trace or verbose line that curl displays.
|
Prepends a time stamp to each trace or verbose line that curl displays.
|
||||||
(Added in 7.14.0)
|
(Added in 7.14.0)
|
||||||
.IP "-u, --user <user:password;options>"
|
.IP "--unix-socket <path>"
|
||||||
Specify the user name, password and optional login options to use for server
|
(HTTP) Connect through this Unix domain socket, instead of using the
|
||||||
authentication. Overrides \fI-n, --netrc\fP and \fI--netrc-optional\fP.
|
network. (Added in 7.40.0)
|
||||||
|
.IP "-u, --user <user:password>"
|
||||||
|
Specify the user name and password to use for server authentication. Overrides
|
||||||
|
\fI-n, --netrc\fP and \fI--netrc-optional\fP.
|
||||||
|
|
||||||
If you simply specify the user name, with or without the login options, curl
|
If you simply specify the user name, curl will prompt for a password.
|
||||||
will prompt for a password.
|
|
||||||
|
|
||||||
If you use an SSPI-enabled curl binary and perform NTLM authentication, you
|
The user name and passwords are split up on the first colon, which makes it
|
||||||
can force curl to select the user name and password from your environment by
|
impossible to use a colon in the user name with this option. The password can,
|
||||||
simply specifying a single colon with this option: "-u :" or by specfying the
|
still.
|
||||||
login options on their own, for example "-u ;auth=NTLM".
|
|
||||||
|
|
||||||
You can use the optional login options part to specify protocol specific
|
When using Kerberos V5 with a Windows based server you should include the
|
||||||
options that may be used during authentication. At present only IMAP, POP3 and
|
Windows domain name in the user name, in order for the server to succesfully
|
||||||
SMTP support login options as part of the user login information. For more
|
obtain a Kerberos Ticket. If you don't then the initial authentication
|
||||||
information about the login options please see RFC 2384, RFC 5092 and IETF
|
handshake may fail.
|
||||||
draft draft-earhart-url-smtp-00.txt (Added in 7.31.0).
|
|
||||||
|
When using NTLM, the user name can be specified simply as the user name,
|
||||||
|
without the domain, if there is a single domain and forest in your setup
|
||||||
|
for example.
|
||||||
|
|
||||||
|
To specify the domain name use either Down-Level Logon Name or UPN (User
|
||||||
|
Principal Name) formats. For example, EXAMPLE\\user and user@example.com
|
||||||
|
respectively.
|
||||||
|
|
||||||
|
If you use a Windows SSPI-enabled curl binary and perform Kerberos V5,
|
||||||
|
Negotiate, NTLM or Digest authentication then you can tell curl to select
|
||||||
|
the user name and password from your environment by specifying a single colon
|
||||||
|
with this option: "-u :".
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-U, --proxy-user <user:password>"
|
.IP "-U, --proxy-user <user:password>"
|
||||||
Specify the user name and password to use for proxy authentication.
|
Specify the user name and password to use for proxy authentication.
|
||||||
|
|
||||||
If you use an SSPI-enabled curl binary and do NTLM authentication, you can
|
If you use a Windows SSPI-enabled curl binary and do either Negotiate or NTLM
|
||||||
force curl to pick up the user name and password from your environment by
|
authentication then you can tell curl to select the user name and password
|
||||||
simply specifying a single colon with this option: "-U :".
|
from your environment by specifying a single colon with this option: "-U :".
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--url <URL>"
|
.IP "--url <URL>"
|
||||||
@@ -1569,10 +1725,11 @@ URL(s) in a config file.
|
|||||||
This option may be used any number of times. To control where this URL is
|
This option may be used any number of times. To control where this URL is
|
||||||
written, use the \fI-o, --output\fP or the \fI-O, --remote-name\fP options.
|
written, use the \fI-o, --output\fP or the \fI-O, --remote-name\fP options.
|
||||||
.IP "-v, --verbose"
|
.IP "-v, --verbose"
|
||||||
Makes the fetching more verbose/talkative. Mostly useful for debugging. A line
|
Be more verbose/talkative during the operation. Useful for debugging and
|
||||||
starting with '>' means "header data" sent by curl, '<' means "header data"
|
seeing what's going on "under the hood". A line starting with '>' means
|
||||||
received by curl that is hidden in normal cases, and a line starting with '*'
|
"header data" sent by curl, '<' means "header data" received by curl that is
|
||||||
means additional info provided by curl.
|
hidden in normal cases, and a line starting with '*' means additional info
|
||||||
|
provided by curl.
|
||||||
|
|
||||||
Note that if you only want HTTP headers in the output, \fI-i, --include\fP
|
Note that if you only want HTTP headers in the output, \fI-i, --include\fP
|
||||||
might be the option you're looking for.
|
might be the option you're looking for.
|
||||||
@@ -1584,10 +1741,10 @@ This option overrides previous uses of \fI--trace-ascii\fP or \fI--trace\fP.
|
|||||||
|
|
||||||
Use \fI-s, --silent\fP to make curl quiet.
|
Use \fI-s, --silent\fP to make curl quiet.
|
||||||
.IP "-w, --write-out <format>"
|
.IP "-w, --write-out <format>"
|
||||||
Defines what to display on stdout after a completed and successful
|
Make curl display information on stdout after a completed transfer. The format
|
||||||
operation. The format is a string that may contain plain text mixed with any
|
is a string that may contain plain text mixed with any number of
|
||||||
number of variables. The string can be specified as "string", to get read from
|
variables. The format can be specified as a literal "string", or you can have
|
||||||
a particular file you specify it "@filename" and to tell curl to read the
|
curl read the format from a file with "@filename" and to tell curl to read the
|
||||||
format from stdin you write "@-".
|
format from stdin you write "@-".
|
||||||
|
|
||||||
The variables present in the output format will be substituted by the value or
|
The variables present in the output format will be substituted by the value or
|
||||||
@@ -1743,7 +1900,7 @@ password.
|
|||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-X, --request <command>"
|
.IP "-X, --request <command>"
|
||||||
(HTTP) Specifies a custom request method to use when communicating with the
|
(HTTP) Specifies a custom request method to use when communicating with the
|
||||||
HTTP server. The specified request will be used instead of the method
|
HTTP server. The specified request method will be used instead of the method
|
||||||
otherwise used (which defaults to GET). Read the HTTP 1.1 specification for
|
otherwise used (which defaults to GET). Read the HTTP 1.1 specification for
|
||||||
details and explanations. Common additional HTTP requests include PUT and
|
details and explanations. Common additional HTTP requests include PUT and
|
||||||
DELETE, but related technologies like WebDAV offers PROPFIND, COPY, MOVE and
|
DELETE, but related technologies like WebDAV offers PROPFIND, COPY, MOVE and
|
||||||
@@ -1757,12 +1914,26 @@ alter the way curl behaves. So for example if you want to make a proper HEAD
|
|||||||
request, using -X HEAD will not suffice. You need to use the \fI-I, --head\fP
|
request, using -X HEAD will not suffice. You need to use the \fI-I, --head\fP
|
||||||
option.
|
option.
|
||||||
|
|
||||||
|
The the method string you set with -X will be used for all requests, which if
|
||||||
|
you for example use \fB-L, --location\fP may cause unintended side-effects
|
||||||
|
when curl doesn't change request method according to the HTTP 30x response
|
||||||
|
codes - and similar.
|
||||||
|
|
||||||
(FTP)
|
(FTP)
|
||||||
Specifies a custom FTP command to use instead of LIST when doing file lists
|
Specifies a custom FTP command to use instead of LIST when doing file lists
|
||||||
with FTP.
|
with FTP.
|
||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
(POP3)
|
||||||
|
Specifies a custom POP3 command to use instead of LIST or RETR. (Added in
|
||||||
|
7.26.0)
|
||||||
|
|
||||||
|
(IMAP)
|
||||||
|
Specifies a custom IMAP command to use instead of LIST. (Added in 7.30.0)
|
||||||
|
|
||||||
|
(SMTP)
|
||||||
|
Specifies a custom SMTP command to use instead of HELP or VRFY. (Added in 7.34.0)
|
||||||
|
|
||||||
|
If this option is used several times, the last one will be used.
|
||||||
.IP "--xattr"
|
.IP "--xattr"
|
||||||
When saving output to a file, this option tells curl to store certain file
|
When saving output to a file, this option tells curl to store certain file
|
||||||
metadata in extended file attributes. Currently, the URL is stored in the
|
metadata in extended file attributes. Currently, the URL is stored in the
|
||||||
@@ -1799,7 +1970,8 @@ than the specified date/time.
|
|||||||
|
|
||||||
If this option is used several times, the last one will be used.
|
If this option is used several times, the last one will be used.
|
||||||
.IP "-h, --help"
|
.IP "-h, --help"
|
||||||
Usage help.
|
Usage help. This lists all current command line options with a short
|
||||||
|
description.
|
||||||
.IP "-M, --manual"
|
.IP "-M, --manual"
|
||||||
Manual. Display the huge help text.
|
Manual. Display the huge help text.
|
||||||
.IP "-V, --version"
|
.IP "-V, --version"
|
||||||
@@ -1819,29 +1991,32 @@ You can use IPv6 with this.
|
|||||||
.IP "krb4"
|
.IP "krb4"
|
||||||
Krb4 for FTP is supported.
|
Krb4 for FTP is supported.
|
||||||
.IP "SSL"
|
.IP "SSL"
|
||||||
HTTPS and FTPS are supported.
|
SSL versions of various protocols are supported, such as HTTPS, FTPS, POP3S
|
||||||
|
and so on.
|
||||||
.IP "libz"
|
.IP "libz"
|
||||||
Automatic decompression of compressed files over HTTP is supported.
|
Automatic decompression of compressed files over HTTP is supported.
|
||||||
.IP "NTLM"
|
.IP "NTLM"
|
||||||
NTLM authentication is supported.
|
NTLM authentication is supported.
|
||||||
.IP "GSS-Negotiate"
|
|
||||||
Negotiate authentication and krb5 for FTP is supported.
|
|
||||||
.IP "Debug"
|
.IP "Debug"
|
||||||
This curl uses a libcurl built with Debug. This enables more error-tracking
|
This curl uses a libcurl built with Debug. This enables more error-tracking
|
||||||
and memory debugging etc. For curl-developers only!
|
and memory debugging etc. For curl-developers only!
|
||||||
.IP "AsynchDNS"
|
.IP "AsynchDNS"
|
||||||
This curl uses asynchronous name resolves.
|
This curl uses asynchronous name resolves. Asynchronous name resolves can be
|
||||||
|
done using either the c-ares or the threaded resolver backends.
|
||||||
.IP "SPNEGO"
|
.IP "SPNEGO"
|
||||||
SPNEGO Negotiate authentication is supported.
|
SPNEGO authentication is supported.
|
||||||
.IP "Largefile"
|
.IP "Largefile"
|
||||||
This curl supports transfers of large files, files larger than 2GB.
|
This curl supports transfers of large files, files larger than 2GB.
|
||||||
.IP "IDN"
|
.IP "IDN"
|
||||||
This curl supports IDN - international domain names.
|
This curl supports IDN - international domain names.
|
||||||
|
.IP "GSS-API"
|
||||||
|
GSS-API is supported.
|
||||||
.IP "SSPI"
|
.IP "SSPI"
|
||||||
SSPI is supported. If you use NTLM and set a blank user name, curl will
|
SSPI is supported.
|
||||||
authenticate with your current user and password.
|
|
||||||
.IP "TLS-SRP"
|
.IP "TLS-SRP"
|
||||||
SRP (Secure Remote Password) authentication is supported for TLS.
|
SRP (Secure Remote Password) authentication is supported for TLS.
|
||||||
|
.IP "HTTP2"
|
||||||
|
HTTP/2 support has been built-in.
|
||||||
.IP "Metalink"
|
.IP "Metalink"
|
||||||
This curl supports Metalink (both version 3 and 4 (RFC 5854)), which
|
This curl supports Metalink (both version 3 and 4 (RFC 5854)), which
|
||||||
describes mirrors and hashes. curl will use mirrors for failover if
|
describes mirrors and hashes. curl will use mirrors for failover if
|
||||||
@@ -2055,6 +2230,10 @@ RTSP: mismatch of Session Identifiers
|
|||||||
unable to parse FTP file list
|
unable to parse FTP file list
|
||||||
.IP 88
|
.IP 88
|
||||||
FTP chunk callback reported error
|
FTP chunk callback reported error
|
||||||
|
.IP 89
|
||||||
|
No connection available, the session will be queued
|
||||||
|
.IP 90
|
||||||
|
SSL public key does not matched pinned public key
|
||||||
.IP XX
|
.IP XX
|
||||||
More error codes will appear here in future releases. The existing ones
|
More error codes will appear here in future releases. The existing ones
|
||||||
are meant to never change.
|
are meant to never change.
|
||||||
|
|||||||
28
docs/examples/.gitignore
vendored
28
docs/examples/.gitignore
vendored
@@ -20,15 +20,39 @@ httpcustomheader
|
|||||||
httpput
|
httpput
|
||||||
https
|
https
|
||||||
imap
|
imap
|
||||||
|
imap-append
|
||||||
|
imap-copy
|
||||||
|
imap-create
|
||||||
|
imap-delete
|
||||||
|
imap-examine
|
||||||
|
imap-fetch
|
||||||
|
imap-list
|
||||||
|
imap-multi
|
||||||
|
imap-noop
|
||||||
|
imap-search
|
||||||
|
imap-ssl
|
||||||
|
imap-store
|
||||||
|
imap-tls
|
||||||
multi-app
|
multi-app
|
||||||
multi-debugcallback
|
multi-debugcallback
|
||||||
multi-double
|
multi-double
|
||||||
multi-post
|
multi-post
|
||||||
multi-single
|
multi-single
|
||||||
persistant
|
persistant
|
||||||
|
pop3-dele
|
||||||
|
pop3-list
|
||||||
|
pop3-multi
|
||||||
|
pop3-noop
|
||||||
|
pop3-retr
|
||||||
|
pop3-ssl
|
||||||
|
pop3-stat
|
||||||
|
pop3-tls
|
||||||
|
pop3-top
|
||||||
|
pop3-uidl
|
||||||
pop3s
|
pop3s
|
||||||
pop3slist
|
pop3slist
|
||||||
post-callback
|
post-callback
|
||||||
|
postinmemory
|
||||||
postit2
|
postit2
|
||||||
progressfunc
|
progressfunc
|
||||||
resolve
|
resolve
|
||||||
@@ -40,8 +64,12 @@ simple
|
|||||||
simplepost
|
simplepost
|
||||||
simplesmtp
|
simplesmtp
|
||||||
simplessl
|
simplessl
|
||||||
|
smtp-expn
|
||||||
|
smtp-mail
|
||||||
smtp-multi
|
smtp-multi
|
||||||
|
smtp-ssl
|
||||||
smtp-tls
|
smtp-tls
|
||||||
|
smtp-vrfy
|
||||||
url2file
|
url2file
|
||||||
usercertinmem
|
usercertinmem
|
||||||
xmlstream
|
xmlstream
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ static const char *urls[] = {
|
|||||||
"http://www.uefa.com",
|
"http://www.uefa.com",
|
||||||
"http://www.ieee.org",
|
"http://www.ieee.org",
|
||||||
"http://www.apple.com",
|
"http://www.apple.com",
|
||||||
"http://www.sony.com",
|
|
||||||
"http://www.symantec.com",
|
"http://www.symantec.com",
|
||||||
"http://www.zdnet.com",
|
"http://www.zdnet.com",
|
||||||
"http://www.fujitsu.com",
|
"http://www.fujitsu.com",
|
||||||
|
|||||||
@@ -1,16 +1,42 @@
|
|||||||
|
#***************************************************************************
|
||||||
|
# _ _ ____ _
|
||||||
|
# Project ___| | | | _ \| |
|
||||||
|
# / __| | | | |_) | |
|
||||||
|
# | (__| |_| | _ <| |___
|
||||||
|
# \___|\___/|_| \_\_____|
|
||||||
|
#
|
||||||
|
# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
#
|
||||||
|
# This software is licensed as described in the file COPYING, which
|
||||||
|
# you should have received as part of this distribution. The terms
|
||||||
|
# are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
#
|
||||||
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
# copies of the Software, and permit persons to whom the Software is
|
||||||
|
# furnished to do so, under the terms of the COPYING file.
|
||||||
|
#
|
||||||
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
# KIND, either express or implied.
|
||||||
|
#
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
# These are all libcurl example programs to be test compiled
|
# These are all libcurl example programs to be test compiled
|
||||||
check_PROGRAMS = 10-at-a-time anyauthput cookie_interface debug fileupload \
|
check_PROGRAMS = 10-at-a-time anyauthput cookie_interface debug fileupload \
|
||||||
fopen ftpget ftpgetresp ftpupload getinfo getinmemory http-post httpput \
|
fopen ftpget ftpgetresp ftpupload getinfo getinmemory http-post httpput \
|
||||||
https multi-app multi-debugcallback multi-double multi-post multi-single \
|
https multi-app multi-debugcallback multi-double multi-post multi-single \
|
||||||
persistant post-callback postit2 sepheaders simple simplepost simplessl \
|
persistant post-callback postit2 sepheaders simple simplepost simplessl \
|
||||||
sendrecv httpcustomheader certinfo chkspeed ftpgetinfo ftp-wildcard \
|
sendrecv httpcustomheader certinfo chkspeed ftpgetinfo ftp-wildcard \
|
||||||
smtp-multi simplesmtp smtp-tls rtsp externalsocket resolve \
|
smtp-mail smtp-multi smtp-ssl smtp-tls smtp-vrfy smtp-expn rtsp \
|
||||||
progressfunc pop3s pop3slist imap url2file sftpget ftpsget postinmemory
|
externalsocket resolve progressfunc pop3-retr pop3-list pop3-uidl \
|
||||||
|
pop3-dele pop3-top pop3-stat pop3-noop pop3-ssl pop3-tls pop3-multi \
|
||||||
|
imap-list imap-lsub imap-fetch imap-store imap-append imap-examine \
|
||||||
|
imap-search imap-create imap-delete imap-copy imap-noop imap-ssl \
|
||||||
|
imap-tls imap-multi url2file sftpget ftpsget postinmemory
|
||||||
|
|
||||||
# These examples require external dependencies that may not be commonly
|
# These examples require external dependencies that may not be commonly
|
||||||
# available on POSIX systems, so don't bother attempting to compile them here.
|
# available on POSIX systems, so don't bother attempting to compile them here.
|
||||||
COMPLICATED_EXAMPLES = curlgtk.c curlx.c htmltitle.cpp cacertinmem.c \
|
COMPLICATED_EXAMPLES = curlgtk.c curlx.c htmltitle.cpp cacertinmem.c \
|
||||||
ftpuploadresume.c ghiper.c hiperfifo.c htmltidy.c multithread.c \
|
ftpuploadresume.c ghiper.c hiperfifo.c htmltidy.c multithread.c \
|
||||||
opensslthreadlock.c sampleconv.c synctime.c threaded-ssl.c evhiperfifo.c \
|
opensslthreadlock.c sampleconv.c synctime.c threaded-ssl.c evhiperfifo.c \
|
||||||
smooth-gtk-thread.c version-check.pl href_extractor.c asiohiper.cpp \
|
smooth-gtk-thread.c version-check.pl href_extractor.c asiohiper.cpp \
|
||||||
multi-uv.c xmlstream.c usercertinmem.c
|
multi-uv.c xmlstream.c usercertinmem.c sessioninfo.c
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ ZLIB_PATH = ../../../zlib-1.2.8
|
|||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your OpenSSL package.
|
# Edit the path below to point to the base of your OpenSSL package.
|
||||||
ifndef OPENSSL_PATH
|
ifndef OPENSSL_PATH
|
||||||
OPENSSL_PATH = ../../../openssl-0.9.8y
|
OPENSSL_PATH = ../../../openssl-0.9.8zc
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your LibSSH2 package.
|
# Edit the path below to point to the base of your LibSSH2 package.
|
||||||
ifndef LIBSSH2_PATH
|
ifndef LIBSSH2_PATH
|
||||||
@@ -148,9 +148,6 @@ endif
|
|||||||
ifeq ($(findstring -sspi,$(CFG)),-sspi)
|
ifeq ($(findstring -sspi,$(CFG)),-sspi)
|
||||||
SSPI = 1
|
SSPI = 1
|
||||||
endif
|
endif
|
||||||
ifeq ($(findstring -spnego,$(CFG)),-spnego)
|
|
||||||
SPNEGO = 1
|
|
||||||
endif
|
|
||||||
ifeq ($(findstring -ldaps,$(CFG)),-ldaps)
|
ifeq ($(findstring -ldaps,$(CFG)),-ldaps)
|
||||||
LDAPS = 1
|
LDAPS = 1
|
||||||
endif
|
endif
|
||||||
@@ -230,9 +227,6 @@ ifdef SSPI
|
|||||||
CFLAGS += -DUSE_SCHANNEL
|
CFLAGS += -DUSE_SCHANNEL
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifdef SPNEGO
|
|
||||||
CFLAGS += -DHAVE_SPNEGO
|
|
||||||
endif
|
|
||||||
ifdef IPV6
|
ifdef IPV6
|
||||||
CFLAGS += -DENABLE_IPV6 -D_WIN32_WINNT=0x0501
|
CFLAGS += -DENABLE_IPV6 -D_WIN32_WINNT=0x0501
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ endif
|
|||||||
|
|
||||||
# Edit the path below to point to the base of your OpenSSL package.
|
# Edit the path below to point to the base of your OpenSSL package.
|
||||||
ifndef OPENSSL_PATH
|
ifndef OPENSSL_PATH
|
||||||
OPENSSL_PATH = ../../../openssl-0.9.8y
|
OPENSSL_PATH = ../../../openssl-0.9.8zc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Edit the path below to point to the base of your LibSSH2 package.
|
# Edit the path below to point to the base of your LibSSH2 package.
|
||||||
@@ -211,9 +211,6 @@ endif
|
|||||||
ifeq ($(findstring -idn,$(CFG)),-idn)
|
ifeq ($(findstring -idn,$(CFG)),-idn)
|
||||||
WITH_IDN = 1
|
WITH_IDN = 1
|
||||||
endif
|
endif
|
||||||
ifeq ($(findstring -spnego,$(CFG)),-spnego)
|
|
||||||
WITH_SPNEGO = 1
|
|
||||||
endif
|
|
||||||
ifeq ($(findstring -ipv6,$(CFG)),-ipv6)
|
ifeq ($(findstring -ipv6,$(CFG)),-ipv6)
|
||||||
ENABLE_IPV6 = 1
|
ENABLE_IPV6 = 1
|
||||||
endif
|
endif
|
||||||
@@ -247,10 +244,6 @@ ifdef WITH_SSL
|
|||||||
LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/ssl.$(LIBEXT)
|
LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/ssl.$(LIBEXT)
|
||||||
LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/crypto.$(LIBEXT)
|
LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/crypto.$(LIBEXT)
|
||||||
IMPORTS += GetProcessSwitchCount RunningProcess
|
IMPORTS += GetProcessSwitchCount RunningProcess
|
||||||
ifdef WITH_SPNEGO
|
|
||||||
# INCLUDES += -I$(FBOPENSSL_PATH)/include
|
|
||||||
LDLIBS += $(FBOPENSSL_PATH)/nw/fbopenssl.$(LIBEXT)
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
ifdef WITH_AXTLS
|
ifdef WITH_AXTLS
|
||||||
INCLUDES += -I$(AXTLS_PATH)/inc
|
INCLUDES += -I$(AXTLS_PATH)/inc
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 2012 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -84,7 +84,7 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
|
|||||||
/* cancel running timer */
|
/* cancel running timer */
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
|
|
||||||
if ( timeout_ms > 0 )
|
if(timeout_ms > 0)
|
||||||
{
|
{
|
||||||
/* update timer */
|
/* update timer */
|
||||||
timer.expires_from_now(boost::posix_time::millisec(timeout_ms));
|
timer.expires_from_now(boost::posix_time::millisec(timeout_ms));
|
||||||
@@ -103,26 +103,44 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
|
|||||||
/* Die if we get a bad CURLMcode somewhere */
|
/* Die if we get a bad CURLMcode somewhere */
|
||||||
static void mcode_or_die(const char *where, CURLMcode code)
|
static void mcode_or_die(const char *where, CURLMcode code)
|
||||||
{
|
{
|
||||||
if ( CURLM_OK != code )
|
if(CURLM_OK != code)
|
||||||
{
|
{
|
||||||
const char *s;
|
const char *s;
|
||||||
switch ( code )
|
switch(code)
|
||||||
{
|
{
|
||||||
case CURLM_CALL_MULTI_PERFORM: s="CURLM_CALL_MULTI_PERFORM"; break;
|
case CURLM_CALL_MULTI_PERFORM:
|
||||||
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
s = "CURLM_CALL_MULTI_PERFORM";
|
||||||
case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
|
|
||||||
case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
|
|
||||||
case CURLM_INTERNAL_ERROR: s="CURLM_INTERNAL_ERROR"; break;
|
|
||||||
case CURLM_UNKNOWN_OPTION: s="CURLM_UNKNOWN_OPTION"; break;
|
|
||||||
case CURLM_LAST: s="CURLM_LAST"; break;
|
|
||||||
default: s="CURLM_unknown";
|
|
||||||
break;
|
break;
|
||||||
case CURLM_BAD_SOCKET: s="CURLM_BAD_SOCKET";
|
case CURLM_BAD_HANDLE:
|
||||||
|
s = "CURLM_BAD_HANDLE";
|
||||||
|
break;
|
||||||
|
case CURLM_BAD_EASY_HANDLE:
|
||||||
|
s = "CURLM_BAD_EASY_HANDLE";
|
||||||
|
break;
|
||||||
|
case CURLM_OUT_OF_MEMORY:
|
||||||
|
s = "CURLM_OUT_OF_MEMORY";
|
||||||
|
break;
|
||||||
|
case CURLM_INTERNAL_ERROR:
|
||||||
|
s = "CURLM_INTERNAL_ERROR";
|
||||||
|
break;
|
||||||
|
case CURLM_UNKNOWN_OPTION:
|
||||||
|
s = "CURLM_UNKNOWN_OPTION";
|
||||||
|
break;
|
||||||
|
case CURLM_LAST:
|
||||||
|
s = "CURLM_LAST";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
s = "CURLM_unknown";
|
||||||
|
break;
|
||||||
|
case CURLM_BAD_SOCKET:
|
||||||
|
s = "CURLM_BAD_SOCKET";
|
||||||
fprintf(MSG_OUT, "\nERROR: %s returns %s", where, s);
|
fprintf(MSG_OUT, "\nERROR: %s returns %s", where, s);
|
||||||
/* ignore this error */
|
/* ignore this error */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(MSG_OUT, "\nERROR: %s returns %s", where, s);
|
fprintf(MSG_OUT, "\nERROR: %s returns %s", where, s);
|
||||||
|
|
||||||
exit(code);
|
exit(code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -139,9 +157,9 @@ static void check_multi_info(GlobalInfo *g)
|
|||||||
|
|
||||||
fprintf(MSG_OUT, "\nREMAINING: %d", g->still_running);
|
fprintf(MSG_OUT, "\nREMAINING: %d", g->still_running);
|
||||||
|
|
||||||
while ((msg = curl_multi_info_read(g->multi, &msgs_left)))
|
while((msg = curl_multi_info_read(g->multi, &msgs_left)))
|
||||||
{
|
{
|
||||||
if (msg->msg == CURLMSG_DONE)
|
if(msg->msg == CURLMSG_DONE)
|
||||||
{
|
{
|
||||||
easy = msg->easy_handle;
|
easy = msg->easy_handle;
|
||||||
res = msg->data.result;
|
res = msg->data.result;
|
||||||
@@ -157,17 +175,19 @@ static void check_multi_info(GlobalInfo *g)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Called by asio when there is an action on a socket */
|
/* Called by asio when there is an action on a socket */
|
||||||
static void event_cb(GlobalInfo * g, boost::asio::ip::tcp::socket * tcp_socket, int action)
|
static void event_cb(GlobalInfo *g, boost::asio::ip::tcp::socket *tcp_socket,
|
||||||
|
int action)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nevent_cb: action=%d", action);
|
fprintf(MSG_OUT, "\nevent_cb: action=%d", action);
|
||||||
|
|
||||||
CURLMcode rc;
|
CURLMcode rc;
|
||||||
rc = curl_multi_socket_action(g->multi, tcp_socket->native_handle(), action, &g->still_running);
|
rc = curl_multi_socket_action(g->multi, tcp_socket->native_handle(), action,
|
||||||
|
&g->still_running);
|
||||||
|
|
||||||
mcode_or_die("event_cb: curl_multi_socket_action", rc);
|
mcode_or_die("event_cb: curl_multi_socket_action", rc);
|
||||||
check_multi_info(g);
|
check_multi_info(g);
|
||||||
|
|
||||||
if ( g->still_running <= 0 )
|
if(g->still_running <= 0)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nlast transfer done, kill timeout");
|
fprintf(MSG_OUT, "\nlast transfer done, kill timeout");
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
@@ -177,7 +197,7 @@ static void event_cb(GlobalInfo * g, boost::asio::ip::tcp::socket * tcp_socket,
|
|||||||
/* Called by asio when our timeout expires */
|
/* Called by asio when our timeout expires */
|
||||||
static void timer_cb(const boost::system::error_code & error, GlobalInfo *g)
|
static void timer_cb(const boost::system::error_code & error, GlobalInfo *g)
|
||||||
{
|
{
|
||||||
if ( !error)
|
if(!error)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\ntimer_cb: ");
|
fprintf(MSG_OUT, "\ntimer_cb: ");
|
||||||
|
|
||||||
@@ -194,7 +214,7 @@ static void remsock(int *f, GlobalInfo *g)
|
|||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nremsock: ");
|
fprintf(MSG_OUT, "\nremsock: ");
|
||||||
|
|
||||||
if ( f )
|
if(f)
|
||||||
{
|
{
|
||||||
free(f);
|
free(f);
|
||||||
}
|
}
|
||||||
@@ -206,9 +226,10 @@ static void setsock(int *fdp, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
|||||||
|
|
||||||
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(s);
|
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(s);
|
||||||
|
|
||||||
if ( it == socket_map.end() )
|
if(it == socket_map.end())
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nsocket %d is a c-ares socket, ignoring", s);
|
fprintf(MSG_OUT, "\nsocket %d is a c-ares socket, ignoring", s);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -216,44 +237,36 @@ static void setsock(int *fdp, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
|||||||
|
|
||||||
*fdp = act;
|
*fdp = act;
|
||||||
|
|
||||||
if ( act == CURL_POLL_IN )
|
if(act == CURL_POLL_IN)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nwatching for socket to become readable");
|
fprintf(MSG_OUT, "\nwatching for socket to become readable");
|
||||||
|
|
||||||
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
||||||
boost::bind(&event_cb, g,
|
boost::bind(&event_cb, g, tcp_socket, act));
|
||||||
tcp_socket,
|
|
||||||
act));
|
|
||||||
}
|
}
|
||||||
else if ( act == CURL_POLL_OUT )
|
else if (act == CURL_POLL_OUT)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nwatching for socket to become writable");
|
fprintf(MSG_OUT, "\nwatching for socket to become writable");
|
||||||
|
|
||||||
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
||||||
boost::bind(&event_cb, g,
|
boost::bind(&event_cb, g, tcp_socket, act));
|
||||||
tcp_socket,
|
|
||||||
act));
|
|
||||||
}
|
}
|
||||||
else if ( act == CURL_POLL_INOUT )
|
else if(act == CURL_POLL_INOUT)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nwatching for socket to become readable & writable");
|
fprintf(MSG_OUT, "\nwatching for socket to become readable & writable");
|
||||||
|
|
||||||
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
||||||
boost::bind(&event_cb, g,
|
boost::bind(&event_cb, g, tcp_socket, act));
|
||||||
tcp_socket,
|
|
||||||
act));
|
|
||||||
|
|
||||||
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
||||||
boost::bind(&event_cb, g,
|
boost::bind(&event_cb, g, tcp_socket, act));
|
||||||
tcp_socket,
|
|
||||||
act));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
||||||
{
|
{
|
||||||
int *fdp = (int *)calloc(sizeof(int), 1); /* fdp is used to store current action */
|
/* fdp is used to store current action */
|
||||||
|
int *fdp = (int *) calloc(sizeof(int), 1);
|
||||||
|
|
||||||
setsock(fdp, s, easy, action, g);
|
setsock(fdp, s, easy, action, g);
|
||||||
curl_multi_assign(g->multi, s, fdp);
|
curl_multi_assign(g->multi, s, fdp);
|
||||||
@@ -265,20 +278,20 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
|
|||||||
fprintf(MSG_OUT, "\nsock_cb: socket=%d, what=%d, sockp=%p", s, what, sockp);
|
fprintf(MSG_OUT, "\nsock_cb: socket=%d, what=%d, sockp=%p", s, what, sockp);
|
||||||
|
|
||||||
GlobalInfo *g = (GlobalInfo*) cbp;
|
GlobalInfo *g = (GlobalInfo*) cbp;
|
||||||
int *actionp = (int*) sockp;
|
int *actionp = (int *) sockp;
|
||||||
const char *whatstr[]={ "none", "IN", "OUT", "INOUT", "REMOVE"};
|
const char *whatstr[] = { "none", "IN", "OUT", "INOUT", "REMOVE"};
|
||||||
|
|
||||||
fprintf(MSG_OUT,
|
fprintf(MSG_OUT,
|
||||||
"\nsocket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
"\nsocket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
||||||
|
|
||||||
if ( what == CURL_POLL_REMOVE )
|
if(what == CURL_POLL_REMOVE)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\n");
|
fprintf(MSG_OUT, "\n");
|
||||||
remsock(actionp, g);
|
remsock(actionp, g);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( !actionp )
|
if(!actionp)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nAdding data: %s", whatstr[what]);
|
fprintf(MSG_OUT, "\nAdding data: %s", whatstr[what]);
|
||||||
addsock(s, e, what, g);
|
addsock(s, e, what, g);
|
||||||
@@ -291,19 +304,19 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
|
|||||||
setsock(actionp, s, e, what, g);
|
setsock(actionp, s, e, what, g);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* CURLOPT_WRITEFUNCTION */
|
/* CURLOPT_WRITEFUNCTION */
|
||||||
static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
||||||
{
|
{
|
||||||
|
|
||||||
size_t written = size * nmemb;
|
size_t written = size * nmemb;
|
||||||
char* pBuffer = (char*)malloc(written + 1);
|
char* pBuffer = (char *) malloc(written + 1);
|
||||||
|
|
||||||
strncpy(pBuffer, (const char *)ptr, written);
|
strncpy(pBuffer, (const char *)ptr, written);
|
||||||
pBuffer [written] = '\0';
|
pBuffer[written] = '\0';
|
||||||
|
|
||||||
fprintf(MSG_OUT, "%s", pBuffer);
|
fprintf(MSG_OUT, "%s", pBuffer);
|
||||||
|
|
||||||
@@ -312,12 +325,12 @@ static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
|||||||
return written;
|
return written;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* CURLOPT_PROGRESSFUNCTION */
|
/* CURLOPT_PROGRESSFUNCTION */
|
||||||
static int prog_cb (void *p, double dltotal, double dlnow, double ult,
|
static int prog_cb(void *p, double dltotal, double dlnow, double ult,
|
||||||
double uln)
|
double uln)
|
||||||
{
|
{
|
||||||
ConnInfo *conn = (ConnInfo *)p;
|
ConnInfo *conn = (ConnInfo *)p;
|
||||||
|
|
||||||
(void)ult;
|
(void)ult;
|
||||||
(void)uln;
|
(void)uln;
|
||||||
|
|
||||||
@@ -328,16 +341,15 @@ static int prog_cb (void *p, double dltotal, double dlnow, double ult,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* CURLOPT_OPENSOCKETFUNCTION */
|
/* CURLOPT_OPENSOCKETFUNCTION */
|
||||||
static curl_socket_t opensocket(void *clientp,
|
static curl_socket_t opensocket(void *clientp, curlsocktype purpose,
|
||||||
curlsocktype purpose,
|
|
||||||
struct curl_sockaddr *address)
|
struct curl_sockaddr *address)
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\nopensocket :");
|
fprintf(MSG_OUT, "\nopensocket :");
|
||||||
|
|
||||||
curl_socket_t sockfd = CURL_SOCKET_BAD;
|
curl_socket_t sockfd = CURL_SOCKET_BAD;
|
||||||
|
|
||||||
/* restrict to ipv4 */
|
/* restrict to IPv4 */
|
||||||
if (purpose == CURLSOCKTYPE_IPCXN && address->family == AF_INET)
|
if(purpose == CURLSOCKTYPE_IPCXN && address->family == AF_INET)
|
||||||
{
|
{
|
||||||
/* create a tcp socket object */
|
/* create a tcp socket object */
|
||||||
boost::asio::ip::tcp::socket *tcp_socket = new boost::asio::ip::tcp::socket(io_service);
|
boost::asio::ip::tcp::socket *tcp_socket = new boost::asio::ip::tcp::socket(io_service);
|
||||||
@@ -346,9 +358,9 @@ static curl_socket_t opensocket(void *clientp,
|
|||||||
boost::system::error_code ec;
|
boost::system::error_code ec;
|
||||||
tcp_socket->open(boost::asio::ip::tcp::v4(), ec);
|
tcp_socket->open(boost::asio::ip::tcp::v4(), ec);
|
||||||
|
|
||||||
if (ec)
|
if(ec)
|
||||||
{
|
{
|
||||||
//An error occurred
|
/* An error occurred */
|
||||||
std::cout << std::endl << "Couldn't open socket [" << ec << "][" << ec.message() << "]";
|
std::cout << std::endl << "Couldn't open socket [" << ec << "][" << ec.message() << "]";
|
||||||
fprintf(MSG_OUT, "\nERROR: Returning CURL_SOCKET_BAD to signal error");
|
fprintf(MSG_OUT, "\nERROR: Returning CURL_SOCKET_BAD to signal error");
|
||||||
}
|
}
|
||||||
@@ -372,7 +384,7 @@ static int closesocket(void *clientp, curl_socket_t item)
|
|||||||
|
|
||||||
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(item);
|
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(item);
|
||||||
|
|
||||||
if ( it != socket_map.end() )
|
if(it != socket_map.end())
|
||||||
{
|
{
|
||||||
delete it->second;
|
delete it->second;
|
||||||
socket_map.erase(it);
|
socket_map.erase(it);
|
||||||
@@ -382,22 +394,21 @@ static int closesocket(void *clientp, curl_socket_t item)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Create a new easy handle, and add it to the global curl_multi */
|
/* Create a new easy handle, and add it to the global curl_multi */
|
||||||
static void new_conn(char *url, GlobalInfo *g )
|
static void new_conn(char *url, GlobalInfo *g)
|
||||||
{
|
{
|
||||||
ConnInfo *conn;
|
ConnInfo *conn;
|
||||||
CURLMcode rc;
|
CURLMcode rc;
|
||||||
|
|
||||||
conn = (ConnInfo *)calloc(1, sizeof(ConnInfo));
|
conn = (ConnInfo *) calloc(1, sizeof(ConnInfo));
|
||||||
memset(conn, 0, sizeof(ConnInfo));
|
|
||||||
conn->error[0]='\0';
|
|
||||||
|
|
||||||
conn->easy = curl_easy_init();
|
conn->easy = curl_easy_init();
|
||||||
|
if(!conn->easy)
|
||||||
if ( !conn->easy )
|
|
||||||
{
|
{
|
||||||
fprintf(MSG_OUT, "\ncurl_easy_init() failed, exiting!");
|
fprintf(MSG_OUT, "\ncurl_easy_init() failed, exiting!");
|
||||||
|
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
conn->global = g;
|
conn->global = g;
|
||||||
conn->url = strdup(url);
|
conn->url = strdup(url);
|
||||||
curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
|
curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
|
||||||
@@ -431,6 +442,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
GlobalInfo g;
|
GlobalInfo g;
|
||||||
CURLMcode rc;
|
CURLMcode rc;
|
||||||
|
|
||||||
(void)argc;
|
(void)argc;
|
||||||
(void)argv;
|
(void)argv;
|
||||||
|
|
||||||
@@ -450,5 +462,6 @@ int main(int argc, char **argv)
|
|||||||
curl_multi_cleanup(g.multi);
|
curl_multi_cleanup(g.multi);
|
||||||
|
|
||||||
fprintf(MSG_OUT, "\ndone.\n");
|
fprintf(MSG_OUT, "\ndone.\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -103,6 +103,10 @@ static CURLcode sslctx_function(CURL * curl, void * sslctx, void * parm)
|
|||||||
if (X509_STORE_add_cert(store, cert)==0)
|
if (X509_STORE_add_cert(store, cert)==0)
|
||||||
printf("error adding certificate\n");
|
printf("error adding certificate\n");
|
||||||
|
|
||||||
|
/* decrease reference counts */
|
||||||
|
X509_free(cert);
|
||||||
|
BIO_free(bio);
|
||||||
|
|
||||||
/* all set to go */
|
/* all set to go */
|
||||||
return CURLE_OK ;
|
return CURLE_OK ;
|
||||||
}
|
}
|
||||||
@@ -121,7 +125,7 @@ int main(void)
|
|||||||
rv=curl_easy_setopt(ch,CURLOPT_WRITEFUNCTION, *writefunction);
|
rv=curl_easy_setopt(ch,CURLOPT_WRITEFUNCTION, *writefunction);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_WRITEDATA, stdout);
|
rv=curl_easy_setopt(ch,CURLOPT_WRITEDATA, stdout);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_HEADERFUNCTION, *writefunction);
|
rv=curl_easy_setopt(ch,CURLOPT_HEADERFUNCTION, *writefunction);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_WRITEHEADER, stderr);
|
rv=curl_easy_setopt(ch,CURLOPT_HEADERDATA, stderr);
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM");
|
rv=curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM");
|
||||||
rv=curl_easy_setopt(ch,CURLOPT_SSL_VERIFYPEER,1L);
|
rv=curl_easy_setopt(ch,CURLOPT_SSL_VERIFYPEER,1L);
|
||||||
rv=curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/");
|
rv=curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/");
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -133,7 +133,6 @@ static void mcode_or_die(const char *where, CURLMcode code)
|
|||||||
const char *s;
|
const char *s;
|
||||||
switch ( code )
|
switch ( code )
|
||||||
{
|
{
|
||||||
case CURLM_CALL_MULTI_PERFORM: s="CURLM_CALL_MULTI_PERFORM"; break;
|
|
||||||
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
||||||
case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
|
case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
|
||||||
case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
|
case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
#include <sys/socket.h> /* socket definitions */
|
#include <sys/socket.h> /* socket definitions */
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h> /* inet (3) funtions */
|
#include <arpa/inet.h> /* inet (3) funtions */
|
||||||
#include <unistd.h> /* misc. UNIX functions */
|
#include <unistd.h> /* misc. Unix functions */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ static int fill_buffer(URL_FILE *file, size_t want)
|
|||||||
fd_set fdexcep;
|
fd_set fdexcep;
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
int rc;
|
int rc;
|
||||||
|
CURLMcode mc; /* curl_multi_fdset() return code */
|
||||||
|
|
||||||
/* only attempt to fill buffer if transactions still running and buffer
|
/* only attempt to fill buffer if transactions still running and buffer
|
||||||
* doesnt exceed required size already
|
* doesnt exceed required size already
|
||||||
@@ -158,15 +159,35 @@ static int fill_buffer(URL_FILE *file, size_t want)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* get file descriptors from the transfers */
|
/* get file descriptors from the transfers */
|
||||||
curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
||||||
|
|
||||||
/* In a real-world program you OF COURSE check the return code of the
|
if(mc != CURLM_OK)
|
||||||
function calls. On success, the value of maxfd is guaranteed to be
|
{
|
||||||
greater or equal than -1. We call select(maxfd + 1, ...), specially
|
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc);
|
||||||
in case of (maxfd == -1), we call select(0, ...), which is basically
|
break;
|
||||||
equal to sleep. */
|
}
|
||||||
|
|
||||||
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
/* On success the value of maxfd is guaranteed to be >= -1. We call
|
||||||
|
select(maxfd + 1, ...); specially in case of (maxfd == -1) there are
|
||||||
|
no fds ready yet so we call select(0, ...) --or Sleep() on Windows--
|
||||||
|
to sleep 100ms, which is the minimum suggested value in the
|
||||||
|
curl_multi_fdset() doc. */
|
||||||
|
|
||||||
|
if(maxfd == -1) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(100);
|
||||||
|
rc = 0;
|
||||||
|
#else
|
||||||
|
/* Portable sleep for platforms other than Windows. */
|
||||||
|
struct timeval wait = { 0, 100 * 1000 }; /* 100ms */
|
||||||
|
rc = select(0, NULL, NULL, NULL, &wait);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* Note that on some platforms 'timeout' may be modified by select().
|
||||||
|
If you need access to the original value save a copy beforehand. */
|
||||||
|
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
||||||
|
}
|
||||||
|
|
||||||
switch(rc) {
|
switch(rc) {
|
||||||
case -1:
|
case -1:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -26,9 +26,9 @@ struct callback_data {
|
|||||||
FILE *output;
|
FILE *output;
|
||||||
};
|
};
|
||||||
|
|
||||||
static long file_is_comming(struct curl_fileinfo *finfo,
|
static long file_is_coming(struct curl_fileinfo *finfo,
|
||||||
struct callback_data *data,
|
struct callback_data *data,
|
||||||
int remains);
|
int remains);
|
||||||
|
|
||||||
static long file_is_downloaded(struct callback_data *data);
|
static long file_is_downloaded(struct callback_data *data);
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
|
|||||||
curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L);
|
curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L);
|
||||||
|
|
||||||
/* callback is called before download of concrete file started */
|
/* callback is called before download of concrete file started */
|
||||||
curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_comming);
|
curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_coming);
|
||||||
|
|
||||||
/* callback is called after data from the file have been transferred */
|
/* callback is called after data from the file have been transferred */
|
||||||
curl_easy_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, file_is_downloaded);
|
curl_easy_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, file_is_downloaded);
|
||||||
@@ -89,9 +89,9 @@ int main(int argc, char **argv)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
static long file_is_comming(struct curl_fileinfo *finfo,
|
static long file_is_coming(struct curl_fileinfo *finfo,
|
||||||
struct callback_data *data,
|
struct callback_data *data,
|
||||||
int remains)
|
int remains)
|
||||||
{
|
{
|
||||||
printf("%3d %40s %10luB ", remains, finfo->filename,
|
printf("%3d %40s %10luB ", remains, finfo->filename,
|
||||||
(unsigned long)finfo->size);
|
(unsigned long)finfo->size);
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ int main(void)
|
|||||||
/* If you intend to use this on windows with a libcurl DLL, you must use
|
/* If you intend to use this on windows with a libcurl DLL, you must use
|
||||||
CURLOPT_WRITEFUNCTION as well */
|
CURLOPT_WRITEFUNCTION as well */
|
||||||
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response);
|
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, respfile);
|
curl_easy_setopt(curl, CURLOPT_HEADERDATA, respfile);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
/* Check for errors */
|
/* Check for errors */
|
||||||
if(res != CURLE_OK)
|
if(res != CURLE_OK)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -104,7 +104,6 @@ static void mcode_or_die(const char *where, CURLMcode code) {
|
|||||||
if ( CURLM_OK != code ) {
|
if ( CURLM_OK != code ) {
|
||||||
const char *s;
|
const char *s;
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case CURLM_CALL_MULTI_PERFORM: s="CURLM_CALL_MULTI_PERFORM"; break;
|
|
||||||
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
||||||
case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
|
case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
|
||||||
case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
|
case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -125,7 +125,6 @@ static void mcode_or_die(const char *where, CURLMcode code)
|
|||||||
if ( CURLM_OK != code ) {
|
if ( CURLM_OK != code ) {
|
||||||
const char *s;
|
const char *s;
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case CURLM_CALL_MULTI_PERFORM: s="CURLM_CALL_MULTI_PERFORM"; break;
|
|
||||||
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
|
||||||
case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
|
case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
|
||||||
case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
|
case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ int main(int argc, char *argv[])
|
|||||||
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
|
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp);
|
||||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
|
|
||||||
curl_easy_perform(curl);
|
curl_easy_perform(curl);
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -31,20 +31,25 @@ int main(void)
|
|||||||
if(curl) {
|
if(curl) {
|
||||||
struct curl_slist *chunk = NULL;
|
struct curl_slist *chunk = NULL;
|
||||||
|
|
||||||
chunk = curl_slist_append(chunk, "Accept: moo");
|
/* Remove a header curl would otherwise add by itself */
|
||||||
|
chunk = curl_slist_append(chunk, "Accept:");
|
||||||
|
|
||||||
|
/* Add a custom header */
|
||||||
chunk = curl_slist_append(chunk, "Another: yes");
|
chunk = curl_slist_append(chunk, "Another: yes");
|
||||||
|
|
||||||
/* request with the built-in Accept: */
|
/* Modify a header curl otherwise adds differently */
|
||||||
|
chunk = curl_slist_append(chunk, "Host: example.com");
|
||||||
|
|
||||||
|
/* Add a header with "blank" contents to the right of the colon. Note that
|
||||||
|
we're then using a semicolon in the string we pass to curl! */
|
||||||
|
chunk = curl_slist_append(chunk, "X-silly-header;");
|
||||||
|
|
||||||
|
/* set our custom set of headers */
|
||||||
|
res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "localhost");
|
curl_easy_setopt(curl, CURLOPT_URL, "localhost");
|
||||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
res = curl_easy_perform(curl);
|
|
||||||
/* Check for errors */
|
|
||||||
if(res != CURLE_OK)
|
|
||||||
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
|
||||||
curl_easy_strerror(res));
|
|
||||||
|
|
||||||
/* redo request with our own custom Accept: */
|
|
||||||
res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
|
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
/* Check for errors */
|
/* Check for errors */
|
||||||
if(res != CURLE_OK)
|
if(res != CURLE_OK)
|
||||||
|
|||||||
@@ -22,8 +22,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -59,7 +57,6 @@ int main(int argc, char **argv)
|
|||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
FILE * hd_src ;
|
FILE * hd_src ;
|
||||||
int hd ;
|
|
||||||
struct stat file_info;
|
struct stat file_info;
|
||||||
|
|
||||||
char *file;
|
char *file;
|
||||||
@@ -72,9 +69,7 @@ int main(int argc, char **argv)
|
|||||||
url = argv[2];
|
url = argv[2];
|
||||||
|
|
||||||
/* get the file size of the local file */
|
/* get the file size of the local file */
|
||||||
hd = open(file, O_RDONLY) ;
|
stat(file, &file_info);
|
||||||
fstat(hd, &file_info);
|
|
||||||
close(hd) ;
|
|
||||||
|
|
||||||
/* get a FILE * of the same file, could also be made with
|
/* get a FILE * of the same file, could also be made with
|
||||||
fdopen() from the previous descriptor, but hey this is just
|
fdopen() from the previous descriptor, but hey this is just
|
||||||
|
|||||||
116
docs/examples/imap-append.c
Normal file
116
docs/examples/imap-append.c
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to send mail using libcurl's IMAP
|
||||||
|
* capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define FROM "<sender@example.org>"
|
||||||
|
#define TO "<addressee@example.net>"
|
||||||
|
#define CC "<info@example.org>"
|
||||||
|
|
||||||
|
static const char *payload_text[] = {
|
||||||
|
"Date: Mon, 29 Nov 2010 21:54:29 +1100\r\n",
|
||||||
|
"To: " TO "\r\n",
|
||||||
|
"From: " FROM "(Example User)\r\n",
|
||||||
|
"Cc: " CC "(Another example User)\r\n",
|
||||||
|
"Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@rfcpedant.example.org>\r\n",
|
||||||
|
"Subject: IMAP example message\r\n",
|
||||||
|
"\r\n", /* empty line to divide headers from body, see RFC5322 */
|
||||||
|
"The body of the message starts here.\r\n",
|
||||||
|
"\r\n",
|
||||||
|
"It could be a lot of lines, could be MIME encoded, whatever.\r\n",
|
||||||
|
"Check RFC5322.\r\n",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
struct upload_status {
|
||||||
|
int lines_read;
|
||||||
|
};
|
||||||
|
|
||||||
|
static size_t payload_source(void *ptr, size_t size, size_t nmemb, void *userp)
|
||||||
|
{
|
||||||
|
struct upload_status *upload_ctx = (struct upload_status *)userp;
|
||||||
|
const char *data;
|
||||||
|
|
||||||
|
if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
data = payload_text[upload_ctx->lines_read];
|
||||||
|
|
||||||
|
if(data) {
|
||||||
|
size_t len = strlen(data);
|
||||||
|
memcpy(ptr, data, len);
|
||||||
|
upload_ctx->lines_read++;
|
||||||
|
|
||||||
|
return len;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
struct upload_status upload_ctx;
|
||||||
|
|
||||||
|
upload_ctx.lines_read = 0;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This will create a new message 100. Note that you should perform an
|
||||||
|
* EXAMINE command to obtain the UID of the next message to create and a
|
||||||
|
* SELECT to ensure you are creating the message in the OUTBOX. */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/100");
|
||||||
|
|
||||||
|
/* In this case, we're using a callback function to specify the data. You
|
||||||
|
* could just use the CURLOPT_READDATA option to specify a FILE pointer to
|
||||||
|
* read from. */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
|
||||||
|
curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
|
||||||
|
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
|
||||||
|
|
||||||
|
/* Perform the append */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
65
docs/examples/imap-copy.c
Normal file
65
docs/examples/imap-copy.c
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to copy a mail from one mailbox folder
|
||||||
|
* to another using libcurl's IMAP capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is source mailbox folder to select */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX");
|
||||||
|
|
||||||
|
/* Set the COPY command specifing the message ID and destination folder */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "COPY 1 FOLDER");
|
||||||
|
|
||||||
|
/* Note that to perform a move operation you will need to perform the copy,
|
||||||
|
* then mark the original mail as Deleted and EXPUNGE or CLOSE. Please see
|
||||||
|
* imap-store.c for more information on deleting messages. */
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
61
docs/examples/imap-create.c
Normal file
61
docs/examples/imap-create.c
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to create a new mailbox folder using
|
||||||
|
* libcurl's IMAP capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is just the server URL */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
|
||||||
|
|
||||||
|
/* Set the CREATE command specifing the new folder name */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "CREATE FOLDER");
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
61
docs/examples/imap-delete.c
Normal file
61
docs/examples/imap-delete.c
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to delete an existing mailbox folder
|
||||||
|
* using libcurl's IMAP capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is just the server URL */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
|
||||||
|
|
||||||
|
/* Set the DELETE command specifing the existing folder */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE FOLDER");
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
61
docs/examples/imap-examine.c
Normal file
61
docs/examples/imap-examine.c
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to obtain information about a mailbox
|
||||||
|
* folder using libcurl's IMAP capabilities via the EXAMINE command.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is just the server URL */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
|
||||||
|
|
||||||
|
/* Set the EXAMINE command specifing the mailbox folder */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "EXAMINE OUTBOX");
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -22,6 +22,12 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to fetch mail using libcurl's IMAP
|
||||||
|
* capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
@@ -30,15 +36,23 @@ int main(void)
|
|||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
/* Set username and password */
|
/* Set username and password */
|
||||||
curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
/* This will fetch the mailbox named "foobar" */
|
/* This will fetch message 1 from the user's inbox */
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/foobar");
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX/;UID=1");
|
||||||
|
|
||||||
|
/* Perform the fetch */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
/* always cleanup */
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (int)res;
|
return (int)res;
|
||||||
}
|
}
|
||||||
60
docs/examples/imap-list.c
Normal file
60
docs/examples/imap-list.c
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to list the folders within an IMAP
|
||||||
|
* mailbox.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This will list the folders within the user's mailbox. If you want to
|
||||||
|
* list the folders within a specific folder, for example the inbox, then
|
||||||
|
* specify the folder as a path in the URL such as /INBOX */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
|
||||||
|
|
||||||
|
/* Perform the list */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
62
docs/examples/imap-lsub.c
Normal file
62
docs/examples/imap-lsub.c
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to list the subscribed folders within
|
||||||
|
* an IMAP mailbox.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is just the server URL */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
|
||||||
|
|
||||||
|
/* Set the LSUB command. Note the syntax is very similar to that of a LIST
|
||||||
|
command. */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "LSUB \"\" *");
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
167
docs/examples/imap-multi.c
Normal file
167
docs/examples/imap-multi.c
Normal file
@@ -0,0 +1,167 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to fetch mail using libcurl's IMAP
|
||||||
|
* capabilities. It builds on the imap-fetch.c example to demonstrate how to
|
||||||
|
* use libcurl's multi interface.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
|
||||||
|
|
||||||
|
static struct timeval tvnow(void)
|
||||||
|
{
|
||||||
|
struct timeval now;
|
||||||
|
|
||||||
|
/* time() returns the value of time in seconds since the epoch */
|
||||||
|
now.tv_sec = (long)time(NULL);
|
||||||
|
now.tv_usec = 0;
|
||||||
|
|
||||||
|
return now;
|
||||||
|
}
|
||||||
|
|
||||||
|
static long tvdiff(struct timeval newer, struct timeval older)
|
||||||
|
{
|
||||||
|
return (newer.tv_sec - older.tv_sec) * 1000 +
|
||||||
|
(newer.tv_usec - older.tv_usec) / 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLM *mcurl;
|
||||||
|
int still_running = 1;
|
||||||
|
struct timeval mp_start;
|
||||||
|
|
||||||
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(!curl)
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
mcurl = curl_multi_init();
|
||||||
|
if(!mcurl)
|
||||||
|
return 2;
|
||||||
|
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This will fetch message 1 from the user's inbox */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX/;UID=1");
|
||||||
|
|
||||||
|
/* Tell the multi stack about our easy handle */
|
||||||
|
curl_multi_add_handle(mcurl, curl);
|
||||||
|
|
||||||
|
/* Record the start time which we can use later */
|
||||||
|
mp_start = tvnow();
|
||||||
|
|
||||||
|
/* We start some action by calling perform right away */
|
||||||
|
curl_multi_perform(mcurl, &still_running);
|
||||||
|
|
||||||
|
while(still_running) {
|
||||||
|
struct timeval timeout;
|
||||||
|
fd_set fdread;
|
||||||
|
fd_set fdwrite;
|
||||||
|
fd_set fdexcep;
|
||||||
|
int maxfd = -1;
|
||||||
|
int rc;
|
||||||
|
CURLMcode mc; /* curl_multi_fdset() return code */
|
||||||
|
|
||||||
|
long curl_timeo = -1;
|
||||||
|
|
||||||
|
/* Initialise the file descriptors */
|
||||||
|
FD_ZERO(&fdread);
|
||||||
|
FD_ZERO(&fdwrite);
|
||||||
|
FD_ZERO(&fdexcep);
|
||||||
|
|
||||||
|
/* Set a suitable timeout to play around with */
|
||||||
|
timeout.tv_sec = 1;
|
||||||
|
timeout.tv_usec = 0;
|
||||||
|
|
||||||
|
curl_multi_timeout(mcurl, &curl_timeo);
|
||||||
|
if(curl_timeo >= 0) {
|
||||||
|
timeout.tv_sec = curl_timeo / 1000;
|
||||||
|
if(timeout.tv_sec > 1)
|
||||||
|
timeout.tv_sec = 1;
|
||||||
|
else
|
||||||
|
timeout.tv_usec = (curl_timeo % 1000) * 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* get file descriptors from the transfers */
|
||||||
|
mc = curl_multi_fdset(mcurl, &fdread, &fdwrite, &fdexcep, &maxfd);
|
||||||
|
|
||||||
|
if(mc != CURLM_OK)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* On success the value of maxfd is guaranteed to be >= -1. We call
|
||||||
|
select(maxfd + 1, ...); specially in case of (maxfd == -1) there are
|
||||||
|
no fds ready yet so we call select(0, ...) --or Sleep() on Windows--
|
||||||
|
to sleep 100ms, which is the minimum suggested value in the
|
||||||
|
curl_multi_fdset() doc. */
|
||||||
|
|
||||||
|
if(maxfd == -1) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(100);
|
||||||
|
rc = 0;
|
||||||
|
#else
|
||||||
|
/* Portable sleep for platforms other than Windows. */
|
||||||
|
struct timeval wait = { 0, 100 * 1000 }; /* 100ms */
|
||||||
|
rc = select(0, NULL, NULL, NULL, &wait);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* Note that on some platforms 'timeout' may be modified by select().
|
||||||
|
If you need access to the original value save a copy beforehand. */
|
||||||
|
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(tvdiff(tvnow(), mp_start) > MULTI_PERFORM_HANG_TIMEOUT) {
|
||||||
|
fprintf(stderr,
|
||||||
|
"ABORTING: Since it seems that we would have run forever.\n");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch(rc) {
|
||||||
|
case -1: /* select error */
|
||||||
|
break;
|
||||||
|
case 0: /* timeout */
|
||||||
|
default: /* action */
|
||||||
|
curl_multi_perform(mcurl, &still_running);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_multi_remove_handle(mcurl, curl);
|
||||||
|
curl_multi_cleanup(mcurl);
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
curl_global_cleanup();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
61
docs/examples/imap-noop.c
Normal file
61
docs/examples/imap-noop.c
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to perform a noop using libcurl's IMAP
|
||||||
|
* capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is just the server URL */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
|
||||||
|
|
||||||
|
/* Set the NOOP command */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "NOOP");
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
65
docs/examples/imap-search.c
Normal file
65
docs/examples/imap-search.c
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to search for new messages using
|
||||||
|
* libcurl's IMAP capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is mailbox folder to select */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX");
|
||||||
|
|
||||||
|
/* Set the SEARCH command specifing what we want to search for. Note that
|
||||||
|
* this can contain a message sequence set and a number of search criteria
|
||||||
|
* keywords including flags such as ANSWERED, DELETED, DRAFT, FLAGGED, NEW,
|
||||||
|
* RECENT and SEEN. For more information about the search criteria please
|
||||||
|
* see RFC-3501 section 6.4.4. */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "SEARCH NEW");
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -22,52 +22,64 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to fetch mail using libcurl's IMAP
|
||||||
|
* capabilities. It builds on the imap-fetch.c example adding transport
|
||||||
|
* security to protect the authentication details from being snooped.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
/* Set username and password */
|
/* Set username and password */
|
||||||
curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
/* This will list every message of the given mailbox */
|
/* This will fetch message 1 from the user's inbox. Note the use of
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "pop3s://user@pop.example.com/");
|
* imaps:// rather than imap:// to request a SSL based connection. */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imaps://imap.example.com/INBOX/;UID=1");
|
||||||
|
|
||||||
#ifdef SKIP_PEER_VERIFICATION
|
/* If you want to connect to a site who isn't using a certificate that is
|
||||||
/*
|
|
||||||
* If you want to connect to a site who isn't using a certificate that is
|
|
||||||
* signed by one of the certs in the CA bundle you have, you can skip the
|
* signed by one of the certs in the CA bundle you have, you can skip the
|
||||||
* verification of the server's certificate. This makes the connection
|
* verification of the server's certificate. This makes the connection
|
||||||
* A LOT LESS SECURE.
|
* A LOT LESS SECURE.
|
||||||
*
|
*
|
||||||
* If you have a CA cert for the server stored someplace else than in the
|
* If you have a CA cert for the server stored someplace else than in the
|
||||||
* default bundle, then the CURLOPT_CAPATH option might come handy for
|
* default bundle, then the CURLOPT_CAPATH option might come handy for
|
||||||
* you.
|
* you. */
|
||||||
*/
|
#ifdef SKIP_PEER_VERIFICATION
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SKIP_HOSTNAME_VERFICATION
|
/* If the site you're connecting to uses a different host name that what
|
||||||
/*
|
|
||||||
* If the site you're connecting to uses a different host name that what
|
|
||||||
* they have mentioned in their server certificate's commonName (or
|
* they have mentioned in their server certificate's commonName (or
|
||||||
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
||||||
* this check, but this will make the connection less secure.
|
* this check, but this will make the connection less secure. */
|
||||||
*/
|
#ifdef SKIP_HOSTNAME_VERFICATION
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Perform the request, res will get the return code */
|
/* Since the traffic will be encrypted, it is very useful to turn on debug
|
||||||
|
* information within libcurl to see what is happening during the
|
||||||
|
* transfer */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
|
/* Perform the fetch */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
/* Check for errors */
|
/* Check for errors */
|
||||||
if(res != CURLE_OK)
|
if(res != CURLE_OK)
|
||||||
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
curl_easy_strerror(res));
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* Always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
|
return (int)res;
|
||||||
}
|
}
|
||||||
76
docs/examples/imap-store.c
Normal file
76
docs/examples/imap-store.c
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to modify an existing mail using
|
||||||
|
* libcurl's IMAP capabilities with the STORE command.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is the mailbox folder to select */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX");
|
||||||
|
|
||||||
|
/* Set the STORE command with the Deleted flag for message 1. Note that
|
||||||
|
* you can use the STORE command to set other flags such as Seen, Answered,
|
||||||
|
* Flagged, Draft and Recent. */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "STORE 1 +Flags \\Deleted");
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
else {
|
||||||
|
/* Set the EXPUNGE command, although you can use the CLOSE command if you
|
||||||
|
* don't want to know the result of the STORE */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "EXPUNGE");
|
||||||
|
|
||||||
|
/* Perform the second custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
84
docs/examples/imap-tls.c
Normal file
84
docs/examples/imap-tls.c
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to fetch mail using libcurl's IMAP
|
||||||
|
* capabilities. It builds on the imap-fetch.c example adding transport
|
||||||
|
* security to protect the authentication details from being snooped.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.30.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This will fetch message 1 from the user's inbox */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX/;UID=1");
|
||||||
|
|
||||||
|
/* In this example, we'll start with a plain text connection, and upgrade
|
||||||
|
* to Transport Layer Security (TLS) using the STARTTLS command. Be careful
|
||||||
|
* of using CURLUSESSL_TRY here, because if TLS upgrade fails, the transfer
|
||||||
|
* will continue anyway - see the security discussion in the libcurl
|
||||||
|
* tutorial for more details. */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
|
||||||
|
|
||||||
|
/* If your server doesn't have a valid certificate, then you can disable
|
||||||
|
* part of the Transport Layer Security protection by setting the
|
||||||
|
* CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST options to 0 (false).
|
||||||
|
* curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
|
* curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
|
* That is, in general, a bad idea. It is still better than sending your
|
||||||
|
* authentication details in plain text though.
|
||||||
|
* Instead, you should get the issuer certificate (or the host certificate
|
||||||
|
* if the certificate is self-signed) and add it to the set of certificates
|
||||||
|
* that are known to libcurl using CURLOPT_CAINFO and/or CURLOPT_CAPATH. See
|
||||||
|
* docs/SSLCERTS for more information. */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem");
|
||||||
|
|
||||||
|
/* Since the traffic will be encrypted, it is very useful to turn on debug
|
||||||
|
* information within libcurl to see what is happening during the
|
||||||
|
* transfer */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
|
/* Perform the fetch */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
@@ -73,6 +73,7 @@ int main(void)
|
|||||||
do {
|
do {
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
int rc; /* select() return code */
|
int rc; /* select() return code */
|
||||||
|
CURLMcode mc; /* curl_multi_fdset() return code */
|
||||||
|
|
||||||
fd_set fdread;
|
fd_set fdread;
|
||||||
fd_set fdwrite;
|
fd_set fdwrite;
|
||||||
@@ -99,15 +100,35 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* get file descriptors from the transfers */
|
/* get file descriptors from the transfers */
|
||||||
curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
||||||
|
|
||||||
/* In a real-world program you OF COURSE check the return code of the
|
if(mc != CURLM_OK)
|
||||||
function calls. On success, the value of maxfd is guaranteed to be
|
{
|
||||||
greater or equal than -1. We call select(maxfd + 1, ...), specially in
|
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc);
|
||||||
case of (maxfd == -1), we call select(0, ...), which is basically equal
|
break;
|
||||||
to sleep. */
|
}
|
||||||
|
|
||||||
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
/* On success the value of maxfd is guaranteed to be >= -1. We call
|
||||||
|
select(maxfd + 1, ...); specially in case of (maxfd == -1) there are
|
||||||
|
no fds ready yet so we call select(0, ...) --or Sleep() on Windows--
|
||||||
|
to sleep 100ms, which is the minimum suggested value in the
|
||||||
|
curl_multi_fdset() doc. */
|
||||||
|
|
||||||
|
if(maxfd == -1) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(100);
|
||||||
|
rc = 0;
|
||||||
|
#else
|
||||||
|
/* Portable sleep for platforms other than Windows. */
|
||||||
|
struct timeval wait = { 0, 100 * 1000 }; /* 100ms */
|
||||||
|
rc = select(0, NULL, NULL, NULL, &wait);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* Note that on some platforms 'timeout' may be modified by select().
|
||||||
|
If you need access to the original value save a copy beforehand. */
|
||||||
|
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
||||||
|
}
|
||||||
|
|
||||||
switch(rc) {
|
switch(rc) {
|
||||||
case -1:
|
case -1:
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ int main(void)
|
|||||||
do {
|
do {
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
int rc; /* select() return code */
|
int rc; /* select() return code */
|
||||||
|
CURLMcode mc; /* curl_multi_fdset() return code */
|
||||||
|
|
||||||
fd_set fdread;
|
fd_set fdread;
|
||||||
fd_set fdwrite;
|
fd_set fdwrite;
|
||||||
@@ -173,15 +174,35 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* get file descriptors from the transfers */
|
/* get file descriptors from the transfers */
|
||||||
curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
||||||
|
|
||||||
/* In a real-world program you OF COURSE check the return code of the
|
if(mc != CURLM_OK)
|
||||||
function calls. On success, the value of maxfd is guaranteed to be
|
{
|
||||||
greater or equal than -1. We call select(maxfd + 1, ...), specially in
|
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc);
|
||||||
case of (maxfd == -1), we call select(0, ...), which is basically equal
|
break;
|
||||||
to sleep. */
|
}
|
||||||
|
|
||||||
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
/* On success the value of maxfd is guaranteed to be >= -1. We call
|
||||||
|
select(maxfd + 1, ...); specially in case of (maxfd == -1) there are
|
||||||
|
no fds ready yet so we call select(0, ...) --or Sleep() on Windows--
|
||||||
|
to sleep 100ms, which is the minimum suggested value in the
|
||||||
|
curl_multi_fdset() doc. */
|
||||||
|
|
||||||
|
if(maxfd == -1) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(100);
|
||||||
|
rc = 0;
|
||||||
|
#else
|
||||||
|
/* Portable sleep for platforms other than Windows. */
|
||||||
|
struct timeval wait = { 0, 100 * 1000 }; /* 100ms */
|
||||||
|
rc = select(0, NULL, NULL, NULL, &wait);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* Note that on some platforms 'timeout' may be modified by select().
|
||||||
|
If you need access to the original value save a copy beforehand. */
|
||||||
|
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
||||||
|
}
|
||||||
|
|
||||||
switch(rc) {
|
switch(rc) {
|
||||||
case -1:
|
case -1:
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ int main(void)
|
|||||||
do {
|
do {
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
int rc; /* select() return code */
|
int rc; /* select() return code */
|
||||||
|
CURLMcode mc; /* curl_multi_fdset() return code */
|
||||||
|
|
||||||
fd_set fdread;
|
fd_set fdread;
|
||||||
fd_set fdwrite;
|
fd_set fdwrite;
|
||||||
@@ -88,15 +89,35 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* get file descriptors from the transfers */
|
/* get file descriptors from the transfers */
|
||||||
curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
||||||
|
|
||||||
/* In a real-world program you OF COURSE check the return code of the
|
if(mc != CURLM_OK)
|
||||||
function calls. On success, the value of maxfd is guaranteed to be
|
{
|
||||||
greater or equal than -1. We call select(maxfd + 1, ...), specially in
|
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc);
|
||||||
case of (maxfd == -1), we call select(0, ...), which is basically equal
|
break;
|
||||||
to sleep. */
|
}
|
||||||
|
|
||||||
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
/* On success the value of maxfd is guaranteed to be >= -1. We call
|
||||||
|
select(maxfd + 1, ...); specially in case of (maxfd == -1) there are
|
||||||
|
no fds ready yet so we call select(0, ...) --or Sleep() on Windows--
|
||||||
|
to sleep 100ms, which is the minimum suggested value in the
|
||||||
|
curl_multi_fdset() doc. */
|
||||||
|
|
||||||
|
if(maxfd == -1) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(100);
|
||||||
|
rc = 0;
|
||||||
|
#else
|
||||||
|
/* Portable sleep for platforms other than Windows. */
|
||||||
|
struct timeval wait = { 0, 100 * 1000 }; /* 100ms */
|
||||||
|
rc = select(0, NULL, NULL, NULL, &wait);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* Note that on some platforms 'timeout' may be modified by select().
|
||||||
|
If you need access to the original value save a copy beforehand. */
|
||||||
|
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
||||||
|
}
|
||||||
|
|
||||||
switch(rc) {
|
switch(rc) {
|
||||||
case -1:
|
case -1:
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ int main(void)
|
|||||||
do {
|
do {
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
int rc; /* select() return code */
|
int rc; /* select() return code */
|
||||||
|
CURLMcode mc; /* curl_multi_fdset() return code */
|
||||||
|
|
||||||
fd_set fdread;
|
fd_set fdread;
|
||||||
fd_set fdwrite;
|
fd_set fdwrite;
|
||||||
@@ -109,15 +110,35 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* get file descriptors from the transfers */
|
/* get file descriptors from the transfers */
|
||||||
curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
||||||
|
|
||||||
/* In a real-world program you OF COURSE check the return code of the
|
if(mc != CURLM_OK)
|
||||||
function calls. On success, the value of maxfd is guaranteed to be
|
{
|
||||||
greater or equal than -1. We call select(maxfd + 1, ...), specially in
|
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc);
|
||||||
case of (maxfd == -1), we call select(0, ...), which is basically equal
|
break;
|
||||||
to sleep. */
|
}
|
||||||
|
|
||||||
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
/* On success the value of maxfd is guaranteed to be >= -1. We call
|
||||||
|
select(maxfd + 1, ...); specially in case of (maxfd == -1) there are
|
||||||
|
no fds ready yet so we call select(0, ...) --or Sleep() on Windows--
|
||||||
|
to sleep 100ms, which is the minimum suggested value in the
|
||||||
|
curl_multi_fdset() doc. */
|
||||||
|
|
||||||
|
if(maxfd == -1) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(100);
|
||||||
|
rc = 0;
|
||||||
|
#else
|
||||||
|
/* Portable sleep for platforms other than Windows. */
|
||||||
|
struct timeval wait = { 0, 100 * 1000 }; /* 100ms */
|
||||||
|
rc = select(0, NULL, NULL, NULL, &wait);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* Note that on some platforms 'timeout' may be modified by select().
|
||||||
|
If you need access to the original value save a copy beforehand. */
|
||||||
|
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
||||||
|
}
|
||||||
|
|
||||||
switch(rc) {
|
switch(rc) {
|
||||||
case -1:
|
case -1:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -31,6 +31,15 @@
|
|||||||
/* curl stuff */
|
/* curl stuff */
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define WAITMS(x) Sleep(x)
|
||||||
|
#else
|
||||||
|
/* Portable sleep for platforms other than Windows. */
|
||||||
|
#define WAITMS(x) \
|
||||||
|
struct timeval wait = { 0, (x) * 1000 }; \
|
||||||
|
(void)select(0, NULL, NULL, NULL, &wait);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Simply download a HTTP file.
|
* Simply download a HTTP file.
|
||||||
*/
|
*/
|
||||||
@@ -40,6 +49,7 @@ int main(void)
|
|||||||
CURLM *multi_handle;
|
CURLM *multi_handle;
|
||||||
|
|
||||||
int still_running; /* keep number of running handles */
|
int still_running; /* keep number of running handles */
|
||||||
|
int repeats = 0;
|
||||||
|
|
||||||
curl_global_init(CURL_GLOBAL_DEFAULT);
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
|
||||||
@@ -58,56 +68,33 @@ int main(void)
|
|||||||
curl_multi_perform(multi_handle, &still_running);
|
curl_multi_perform(multi_handle, &still_running);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
struct timeval timeout;
|
CURLMcode mc; /* curl_multi_wait() return code */
|
||||||
int rc; /* select() return code */
|
int numfds;
|
||||||
|
|
||||||
fd_set fdread;
|
/* wait for activity, timeout or "nothing" */
|
||||||
fd_set fdwrite;
|
mc = curl_multi_wait(multi_handle, NULL, 0, 1000, &numfds);
|
||||||
fd_set fdexcep;
|
|
||||||
int maxfd = -1;
|
|
||||||
|
|
||||||
long curl_timeo = -1;
|
if(mc != CURLM_OK)
|
||||||
|
{
|
||||||
FD_ZERO(&fdread);
|
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc);
|
||||||
FD_ZERO(&fdwrite);
|
|
||||||
FD_ZERO(&fdexcep);
|
|
||||||
|
|
||||||
/* set a suitable timeout to play around with */
|
|
||||||
timeout.tv_sec = 1;
|
|
||||||
timeout.tv_usec = 0;
|
|
||||||
|
|
||||||
curl_multi_timeout(multi_handle, &curl_timeo);
|
|
||||||
if(curl_timeo >= 0) {
|
|
||||||
timeout.tv_sec = curl_timeo / 1000;
|
|
||||||
if(timeout.tv_sec > 1)
|
|
||||||
timeout.tv_sec = 1;
|
|
||||||
else
|
|
||||||
timeout.tv_usec = (curl_timeo % 1000) * 1000;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* get file descriptors from the transfers */
|
|
||||||
curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
|
||||||
|
|
||||||
/* In a real-world program you OF COURSE check the return code of the
|
|
||||||
function calls. On success, the value of maxfd is guaranteed to be
|
|
||||||
greater or equal than -1. We call select(maxfd + 1, ...), specially in
|
|
||||||
case of (maxfd == -1), we call select(0, ...), which is basically equal
|
|
||||||
to sleep. */
|
|
||||||
|
|
||||||
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
|
||||||
|
|
||||||
switch(rc) {
|
|
||||||
case -1:
|
|
||||||
/* select error */
|
|
||||||
still_running = 0;
|
|
||||||
printf("select() returns error, this is badness\n");
|
|
||||||
break;
|
|
||||||
case 0:
|
|
||||||
default:
|
|
||||||
/* timeout or readable/writable sockets */
|
|
||||||
curl_multi_perform(multi_handle, &still_running);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 'numfds' being zero means either a timeout or no file descriptors to
|
||||||
|
wait for. Try timeout on first occurance, then assume no file
|
||||||
|
descriptors and no file descriptors to wait for means wait for 100
|
||||||
|
milliseconds. */
|
||||||
|
|
||||||
|
if(!numfds) {
|
||||||
|
repeats++; /* count number of repeated zero numfds */
|
||||||
|
if(repeats > 1) {
|
||||||
|
WAITMS(100); /* sleep 100 milliseconds */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
repeats = 0;
|
||||||
|
|
||||||
|
curl_multi_perform(multi_handle, &still_running);
|
||||||
} while(still_running);
|
} while(still_running);
|
||||||
|
|
||||||
curl_multi_remove_handle(multi_handle, http_handle);
|
curl_multi_remove_handle(multi_handle, http_handle);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -64,13 +64,13 @@ curl_context_t* create_curl_context(curl_socket_t sockfd)
|
|||||||
|
|
||||||
void curl_close_cb(uv_handle_t *handle)
|
void curl_close_cb(uv_handle_t *handle)
|
||||||
{
|
{
|
||||||
curl_context_t* context = (curl_context_t*) handle->data;
|
curl_context_t *context = (curl_context_t *) handle->data;
|
||||||
free(context);
|
free(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
void destroy_curl_context(curl_context_t *context)
|
void destroy_curl_context(curl_context_t *context)
|
||||||
{
|
{
|
||||||
uv_close((uv_handle_t*) &context->poll_handle, curl_close_cb);
|
uv_close((uv_handle_t *) &context->poll_handle, curl_close_cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -83,18 +83,49 @@ void add_download(const char *url, int num)
|
|||||||
sprintf(filename, "%d.download", num);
|
sprintf(filename, "%d.download", num);
|
||||||
|
|
||||||
file = fopen(filename, "w");
|
file = fopen(filename, "w");
|
||||||
if (file == NULL) {
|
if(!file) {
|
||||||
fprintf(stderr, "Error opening %s\n", filename);
|
fprintf(stderr, "Error opening %s\n", filename);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
handle = curl_easy_init();
|
handle = curl_easy_init();
|
||||||
curl_easy_setopt(handle, CURLOPT_WRITEDATA, file);
|
curl_easy_setopt(handle, CURLOPT_WRITEDATA, file);
|
||||||
|
curl_easy_setopt(handle, CURLOPT_PRIVATE, file);
|
||||||
curl_easy_setopt(handle, CURLOPT_URL, url);
|
curl_easy_setopt(handle, CURLOPT_URL, url);
|
||||||
curl_multi_add_handle(curl_handle, handle);
|
curl_multi_add_handle(curl_handle, handle);
|
||||||
fprintf(stderr, "Added download %s -> %s\n", url, filename);
|
fprintf(stderr, "Added download %s -> %s\n", url, filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void check_multi_info(void)
|
||||||
|
{
|
||||||
|
int running_handles;
|
||||||
|
char *done_url;
|
||||||
|
CURLMsg *message;
|
||||||
|
int pending;
|
||||||
|
FILE *file;
|
||||||
|
|
||||||
|
while((message = curl_multi_info_read(curl_handle, &pending))) {
|
||||||
|
switch(message->msg) {
|
||||||
|
case CURLMSG_DONE:
|
||||||
|
curl_easy_getinfo(message->easy_handle, CURLINFO_EFFECTIVE_URL,
|
||||||
|
&done_url);
|
||||||
|
curl_easy_getinfo(message->easy_handle, CURLINFO_PRIVATE, &file);
|
||||||
|
printf("%s DONE\n", done_url);
|
||||||
|
|
||||||
|
curl_multi_remove_handle(curl_handle, message->easy_handle);
|
||||||
|
curl_easy_cleanup(message->easy_handle);
|
||||||
|
if(file) {
|
||||||
|
fclose(file);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
fprintf(stderr, "CURLMSG default\n");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void curl_perform(uv_poll_t *req, int status, int events)
|
void curl_perform(uv_poll_t *req, int status, int events)
|
||||||
{
|
{
|
||||||
int running_handles;
|
int running_handles;
|
||||||
@@ -106,32 +137,17 @@ void curl_perform(uv_poll_t *req, int status, int events)
|
|||||||
|
|
||||||
uv_timer_stop(&timeout);
|
uv_timer_stop(&timeout);
|
||||||
|
|
||||||
if (events & UV_READABLE)
|
if(events & UV_READABLE)
|
||||||
flags |= CURL_CSELECT_IN;
|
flags |= CURL_CSELECT_IN;
|
||||||
if (events & UV_WRITABLE)
|
if(events & UV_WRITABLE)
|
||||||
flags |= CURL_CSELECT_OUT;
|
flags |= CURL_CSELECT_OUT;
|
||||||
|
|
||||||
context = (curl_context_t*)req;
|
context = (curl_context_t *) req;
|
||||||
|
|
||||||
curl_multi_socket_action(curl_handle, context->sockfd, flags,
|
curl_multi_socket_action(curl_handle, context->sockfd, flags,
|
||||||
&running_handles);
|
&running_handles);
|
||||||
|
|
||||||
while ((message = curl_multi_info_read(curl_handle, &pending))) {
|
check_multi_info();
|
||||||
switch (message->msg) {
|
|
||||||
case CURLMSG_DONE:
|
|
||||||
curl_easy_getinfo(message->easy_handle, CURLINFO_EFFECTIVE_URL,
|
|
||||||
&done_url);
|
|
||||||
printf("%s DONE\n", done_url);
|
|
||||||
|
|
||||||
curl_multi_remove_handle(curl_handle, message->easy_handle);
|
|
||||||
curl_easy_cleanup(message->easy_handle);
|
|
||||||
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
fprintf(stderr, "CURLMSG default\n");
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_timeout(uv_timer_t *req, int status)
|
void on_timeout(uv_timer_t *req, int status)
|
||||||
@@ -139,11 +155,12 @@ void on_timeout(uv_timer_t *req, int status)
|
|||||||
int running_handles;
|
int running_handles;
|
||||||
curl_multi_socket_action(curl_handle, CURL_SOCKET_TIMEOUT, 0,
|
curl_multi_socket_action(curl_handle, CURL_SOCKET_TIMEOUT, 0,
|
||||||
&running_handles);
|
&running_handles);
|
||||||
|
check_multi_info();
|
||||||
}
|
}
|
||||||
|
|
||||||
void start_timeout(CURLM *multi, long timeout_ms, void *userp)
|
void start_timeout(CURLM *multi, long timeout_ms, void *userp)
|
||||||
{
|
{
|
||||||
if (timeout_ms <= 0)
|
if(timeout_ms <= 0)
|
||||||
timeout_ms = 1; /* 0 means directly call socket_action, but we'll do it in
|
timeout_ms = 1; /* 0 means directly call socket_action, but we'll do it in
|
||||||
a bit */
|
a bit */
|
||||||
uv_timer_start(&timeout, on_timeout, timeout_ms, 0);
|
uv_timer_start(&timeout, on_timeout, timeout_ms, 0);
|
||||||
@@ -153,9 +170,9 @@ int handle_socket(CURL *easy, curl_socket_t s, int action, void *userp,
|
|||||||
void *socketp)
|
void *socketp)
|
||||||
{
|
{
|
||||||
curl_context_t *curl_context;
|
curl_context_t *curl_context;
|
||||||
if (action == CURL_POLL_IN || action == CURL_POLL_OUT) {
|
if(action == CURL_POLL_IN || action == CURL_POLL_OUT) {
|
||||||
if (socketp) {
|
if(socketp) {
|
||||||
curl_context = (curl_context_t*) socketp;
|
curl_context = (curl_context_t *) socketp;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
curl_context = create_curl_context(s);
|
curl_context = create_curl_context(s);
|
||||||
@@ -163,7 +180,7 @@ int handle_socket(CURL *easy, curl_socket_t s, int action, void *userp,
|
|||||||
curl_multi_assign(curl_handle, s, (void *) curl_context);
|
curl_multi_assign(curl_handle, s, (void *) curl_context);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (action) {
|
switch(action) {
|
||||||
case CURL_POLL_IN:
|
case CURL_POLL_IN:
|
||||||
uv_poll_start(&curl_context->poll_handle, UV_READABLE, curl_perform);
|
uv_poll_start(&curl_context->poll_handle, UV_READABLE, curl_perform);
|
||||||
break;
|
break;
|
||||||
@@ -171,7 +188,7 @@ int handle_socket(CURL *easy, curl_socket_t s, int action, void *userp,
|
|||||||
uv_poll_start(&curl_context->poll_handle, UV_WRITABLE, curl_perform);
|
uv_poll_start(&curl_context->poll_handle, UV_WRITABLE, curl_perform);
|
||||||
break;
|
break;
|
||||||
case CURL_POLL_REMOVE:
|
case CURL_POLL_REMOVE:
|
||||||
if (socketp) {
|
if(socketp) {
|
||||||
uv_poll_stop(&((curl_context_t*)socketp)->poll_handle);
|
uv_poll_stop(&((curl_context_t*)socketp)->poll_handle);
|
||||||
destroy_curl_context((curl_context_t*) socketp);
|
destroy_curl_context((curl_context_t*) socketp);
|
||||||
curl_multi_assign(curl_handle, s, NULL);
|
curl_multi_assign(curl_handle, s, NULL);
|
||||||
@@ -188,10 +205,10 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
loop = uv_default_loop();
|
loop = uv_default_loop();
|
||||||
|
|
||||||
if (argc <= 1)
|
if(argc <= 1)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (curl_global_init(CURL_GLOBAL_ALL)) {
|
if(curl_global_init(CURL_GLOBAL_ALL)) {
|
||||||
fprintf(stderr, "Could not init cURL\n");
|
fprintf(stderr, "Could not init cURL\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -202,11 +219,12 @@ int main(int argc, char **argv)
|
|||||||
curl_multi_setopt(curl_handle, CURLMOPT_SOCKETFUNCTION, handle_socket);
|
curl_multi_setopt(curl_handle, CURLMOPT_SOCKETFUNCTION, handle_socket);
|
||||||
curl_multi_setopt(curl_handle, CURLMOPT_TIMERFUNCTION, start_timeout);
|
curl_multi_setopt(curl_handle, CURLMOPT_TIMERFUNCTION, start_timeout);
|
||||||
|
|
||||||
while (argc-- > 1) {
|
while(argc-- > 1) {
|
||||||
add_download(argv[argc], argc);
|
add_download(argv[argc], argc);
|
||||||
}
|
}
|
||||||
|
|
||||||
uv_run(loop, UV_RUN_DEFAULT);
|
uv_run(loop, UV_RUN_DEFAULT);
|
||||||
curl_multi_cleanup(curl_handle);
|
curl_multi_cleanup(curl_handle);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
64
docs/examples/pop3-dele.c
Normal file
64
docs/examples/pop3-dele.c
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to delete an existing mail using
|
||||||
|
* libcurl's POP3 capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.26.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* You can specify the message either in the URL or DELE command */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
|
||||||
|
|
||||||
|
/* Set the DELE command */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELE");
|
||||||
|
|
||||||
|
/* Do not perform a transfer as DELE returns no data */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
58
docs/examples/pop3-list.c
Normal file
58
docs/examples/pop3-list.c
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example using libcurl's POP3 capabilities to list the
|
||||||
|
* contents of a mailbox.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.20.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This will list every message of the given mailbox */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com");
|
||||||
|
|
||||||
|
/* Perform the list */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
167
docs/examples/pop3-multi.c
Normal file
167
docs/examples/pop3-multi.c
Normal file
@@ -0,0 +1,167 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to retrieve mail using libcurl's POP3
|
||||||
|
* capabilities. It builds on the pop3-retr.c example to demonstrate how to use
|
||||||
|
* libcurl's multi interface.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.20.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
|
||||||
|
|
||||||
|
static struct timeval tvnow(void)
|
||||||
|
{
|
||||||
|
struct timeval now;
|
||||||
|
|
||||||
|
/* time() returns the value of time in seconds since the epoch */
|
||||||
|
now.tv_sec = (long)time(NULL);
|
||||||
|
now.tv_usec = 0;
|
||||||
|
|
||||||
|
return now;
|
||||||
|
}
|
||||||
|
|
||||||
|
static long tvdiff(struct timeval newer, struct timeval older)
|
||||||
|
{
|
||||||
|
return (newer.tv_sec - older.tv_sec) * 1000 +
|
||||||
|
(newer.tv_usec - older.tv_usec) / 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLM *mcurl;
|
||||||
|
int still_running = 1;
|
||||||
|
struct timeval mp_start;
|
||||||
|
|
||||||
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(!curl)
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
mcurl = curl_multi_init();
|
||||||
|
if(!mcurl)
|
||||||
|
return 2;
|
||||||
|
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This will retreive message 1 from the user's mailbox */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
|
||||||
|
|
||||||
|
/* Tell the multi stack about our easy handle */
|
||||||
|
curl_multi_add_handle(mcurl, curl);
|
||||||
|
|
||||||
|
/* Record the start time which we can use later */
|
||||||
|
mp_start = tvnow();
|
||||||
|
|
||||||
|
/* We start some action by calling perform right away */
|
||||||
|
curl_multi_perform(mcurl, &still_running);
|
||||||
|
|
||||||
|
while(still_running) {
|
||||||
|
struct timeval timeout;
|
||||||
|
fd_set fdread;
|
||||||
|
fd_set fdwrite;
|
||||||
|
fd_set fdexcep;
|
||||||
|
int maxfd = -1;
|
||||||
|
int rc;
|
||||||
|
CURLMcode mc; /* curl_multi_fdset() return code */
|
||||||
|
|
||||||
|
long curl_timeo = -1;
|
||||||
|
|
||||||
|
/* Initialise the file descriptors */
|
||||||
|
FD_ZERO(&fdread);
|
||||||
|
FD_ZERO(&fdwrite);
|
||||||
|
FD_ZERO(&fdexcep);
|
||||||
|
|
||||||
|
/* Set a suitable timeout to play around with */
|
||||||
|
timeout.tv_sec = 1;
|
||||||
|
timeout.tv_usec = 0;
|
||||||
|
|
||||||
|
curl_multi_timeout(mcurl, &curl_timeo);
|
||||||
|
if(curl_timeo >= 0) {
|
||||||
|
timeout.tv_sec = curl_timeo / 1000;
|
||||||
|
if(timeout.tv_sec > 1)
|
||||||
|
timeout.tv_sec = 1;
|
||||||
|
else
|
||||||
|
timeout.tv_usec = (curl_timeo % 1000) * 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* get file descriptors from the transfers */
|
||||||
|
mc = curl_multi_fdset(mcurl, &fdread, &fdwrite, &fdexcep, &maxfd);
|
||||||
|
|
||||||
|
if(mc != CURLM_OK)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* On success the value of maxfd is guaranteed to be >= -1. We call
|
||||||
|
select(maxfd + 1, ...); specially in case of (maxfd == -1) there are
|
||||||
|
no fds ready yet so we call select(0, ...) --or Sleep() on Windows--
|
||||||
|
to sleep 100ms, which is the minimum suggested value in the
|
||||||
|
curl_multi_fdset() doc. */
|
||||||
|
|
||||||
|
if(maxfd == -1) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(100);
|
||||||
|
rc = 0;
|
||||||
|
#else
|
||||||
|
/* Portable sleep for platforms other than Windows. */
|
||||||
|
struct timeval wait = { 0, 100 * 1000 }; /* 100ms */
|
||||||
|
rc = select(0, NULL, NULL, NULL, &wait);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* Note that on some platforms 'timeout' may be modified by select().
|
||||||
|
If you need access to the original value save a copy beforehand. */
|
||||||
|
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(tvdiff(tvnow(), mp_start) > MULTI_PERFORM_HANG_TIMEOUT) {
|
||||||
|
fprintf(stderr,
|
||||||
|
"ABORTING: Since it seems that we would have run forever.\n");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch(rc) {
|
||||||
|
case -1: /* select error */
|
||||||
|
break;
|
||||||
|
case 0: /* timeout */
|
||||||
|
default: /* action */
|
||||||
|
curl_multi_perform(mcurl, &still_running);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_multi_remove_handle(mcurl, curl);
|
||||||
|
curl_multi_cleanup(mcurl);
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
curl_global_cleanup();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
64
docs/examples/pop3-noop.c
Normal file
64
docs/examples/pop3-noop.c
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to perform a noop using libcurl's POP3
|
||||||
|
* capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.26.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is just the server URL */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com");
|
||||||
|
|
||||||
|
/* Set the NOOP command */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "NOOP");
|
||||||
|
|
||||||
|
/* Do not perform a transfer as NOOP returns no data */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
58
docs/examples/pop3-retr.c
Normal file
58
docs/examples/pop3-retr.c
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to retrieve mail using libcurl's POP3
|
||||||
|
* capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.20.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This will retreive message 1 from the user's mailbox */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
|
||||||
|
|
||||||
|
/* Perform the retr */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -22,52 +22,64 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to retrieve mail using libcurl's POP3
|
||||||
|
* capabilities. It builds on the pop3-retr.c example adding transport
|
||||||
|
* security to protect the authentication details from being snooped.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.20.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
/* Set username and password */
|
/* Set username and password */
|
||||||
curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
/* This will only fetch the message with ID "1" of the given mailbox */
|
/* This will retreive message 1 from the user's mailbox. Note the use of
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "pop3s://user@pop.example.com/1");
|
* pop3s:// rather than pop3:// to request a SSL based connection. */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1");
|
||||||
|
|
||||||
#ifdef SKIP_PEER_VERIFICATION
|
/* If you want to connect to a site who isn't using a certificate that is
|
||||||
/*
|
|
||||||
* If you want to connect to a site who isn't using a certificate that is
|
|
||||||
* signed by one of the certs in the CA bundle you have, you can skip the
|
* signed by one of the certs in the CA bundle you have, you can skip the
|
||||||
* verification of the server's certificate. This makes the connection
|
* verification of the server's certificate. This makes the connection
|
||||||
* A LOT LESS SECURE.
|
* A LOT LESS SECURE.
|
||||||
*
|
*
|
||||||
* If you have a CA cert for the server stored someplace else than in the
|
* If you have a CA cert for the server stored someplace else than in the
|
||||||
* default bundle, then the CURLOPT_CAPATH option might come handy for
|
* default bundle, then the CURLOPT_CAPATH option might come handy for
|
||||||
* you.
|
* you. */
|
||||||
*/
|
#ifdef SKIP_PEER_VERIFICATION
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SKIP_HOSTNAME_VERFICATION
|
/* If the site you're connecting to uses a different host name that what
|
||||||
/*
|
|
||||||
* If the site you're connecting to uses a different host name that what
|
|
||||||
* they have mentioned in their server certificate's commonName (or
|
* they have mentioned in their server certificate's commonName (or
|
||||||
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
||||||
* this check, but this will make the connection less secure.
|
* this check, but this will make the connection less secure. */
|
||||||
*/
|
#ifdef SKIP_HOSTNAME_VERFICATION
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Perform the request, res will get the return code */
|
/* Since the traffic will be encrypted, it is very useful to turn on debug
|
||||||
|
* information within libcurl to see what is happening during the
|
||||||
|
* transfer */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
|
/* Perform the retr */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
/* Check for errors */
|
/* Check for errors */
|
||||||
if(res != CURLE_OK)
|
if(res != CURLE_OK)
|
||||||
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
curl_easy_strerror(res));
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* Always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
|
return (int)res;
|
||||||
}
|
}
|
||||||
64
docs/examples/pop3-stat.c
Normal file
64
docs/examples/pop3-stat.c
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to obtain message statistics using
|
||||||
|
* libcurl's POP3 capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.26.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is just the server URL */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com");
|
||||||
|
|
||||||
|
/* Set the STAT command */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "STAT");
|
||||||
|
|
||||||
|
/* Do not perform a transfer as the data is in the response */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
84
docs/examples/pop3-tls.c
Normal file
84
docs/examples/pop3-tls.c
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to retrieve mail using libcurl's POP3
|
||||||
|
* capabilities. It builds on the pop3-retr.c example adding transport
|
||||||
|
* security to protect the authentication details from being snooped.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.20.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This will retreive message 1 from the user's mailbox */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
|
||||||
|
|
||||||
|
/* In this example, we'll start with a plain text connection, and upgrade
|
||||||
|
* to Transport Layer Security (TLS) using the STLS command. Be careful of
|
||||||
|
* using CURLUSESSL_TRY here, because if TLS upgrade fails, the transfer
|
||||||
|
* will continue anyway - see the security discussion in the libcurl
|
||||||
|
* tutorial for more details. */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
|
||||||
|
|
||||||
|
/* If your server doesn't have a valid certificate, then you can disable
|
||||||
|
* part of the Transport Layer Security protection by setting the
|
||||||
|
* CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST options to 0 (false).
|
||||||
|
* curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
|
* curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
|
* That is, in general, a bad idea. It is still better than sending your
|
||||||
|
* authentication details in plain text though.
|
||||||
|
* Instead, you should get the issuer certificate (or the host certificate
|
||||||
|
* if the certificate is self-signed) and add it to the set of certificates
|
||||||
|
* that are known to libcurl using CURLOPT_CAINFO and/or CURLOPT_CAPATH. See
|
||||||
|
* docs/SSLCERTS for more information. */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem");
|
||||||
|
|
||||||
|
/* Since the traffic will be encrypted, it is very useful to turn on debug
|
||||||
|
* information within libcurl to see what is happening during the
|
||||||
|
* transfer */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
|
/* Perform the retr */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
61
docs/examples/pop3-top.c
Normal file
61
docs/examples/pop3-top.c
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example showing how to retrieve only the headers of a mail
|
||||||
|
* using libcurl's POP3 capabilities.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.26.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is just the server URL */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com");
|
||||||
|
|
||||||
|
/* Set the TOP command for message 1 to only include the headers */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "TOP 1 0");
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
61
docs/examples/pop3-uidl.c
Normal file
61
docs/examples/pop3-uidl.c
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
/* This is a simple example using libcurl's POP3 capabilities to list the
|
||||||
|
* contents of a mailbox by unique ID.
|
||||||
|
*
|
||||||
|
* Note that this example requires libcurl 7.26.0 or above.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
CURL *curl;
|
||||||
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
/* Set username and password */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
|
/* This is just the server URL */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com");
|
||||||
|
|
||||||
|
/* Set the UIDL command */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "UIDL");
|
||||||
|
|
||||||
|
/* Perform the custom request */
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
|
/* Check for errors */
|
||||||
|
if(res != CURLE_OK)
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
|
/* Always cleanup */
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (int)res;
|
||||||
|
}
|
||||||
@@ -224,7 +224,7 @@ int main(int argc, char * const argv[])
|
|||||||
if (curl != NULL) {
|
if (curl != NULL) {
|
||||||
my_curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
|
my_curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
|
||||||
my_curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
|
my_curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
|
||||||
my_curl_easy_setopt(curl, CURLOPT_WRITEHEADER, stdout);
|
my_curl_easy_setopt(curl, CURLOPT_HEADERDATA, stdout);
|
||||||
my_curl_easy_setopt(curl, CURLOPT_URL, url);
|
my_curl_easy_setopt(curl, CURLOPT_URL, url);
|
||||||
|
|
||||||
/* request server options */
|
/* request server options */
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@@ -53,23 +53,26 @@ int main(void)
|
|||||||
/* send all data to this function */
|
/* send all data to this function */
|
||||||
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data);
|
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data);
|
||||||
|
|
||||||
/* open the files */
|
/* open the header file */
|
||||||
headerfile = fopen(headerfilename,"wb");
|
headerfile = fopen(headerfilename, "wb");
|
||||||
if (headerfile == NULL) {
|
if(!headerfile) {
|
||||||
curl_easy_cleanup(curl_handle);
|
curl_easy_cleanup(curl_handle);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
bodyfile = fopen(bodyfilename,"wb");
|
|
||||||
if (bodyfile == NULL) {
|
/* open the body file */
|
||||||
|
bodyfile = fopen(bodyfilename, "wb");
|
||||||
|
if(!bodyfile) {
|
||||||
curl_easy_cleanup(curl_handle);
|
curl_easy_cleanup(curl_handle);
|
||||||
|
fclose(headerfile);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we want the headers be written to this file handle */
|
/* we want the headers be written to this file handle */
|
||||||
curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, headerfile);
|
curl_easy_setopt(curl_handle, CURLOPT_HEADERDATA, headerfile);
|
||||||
|
|
||||||
/* we want the body be written to this file handle instead of stdout */
|
/* we want the body be written to this file handle instead of stdout */
|
||||||
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, bodyfile);
|
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, bodyfile);
|
||||||
|
|
||||||
/* get it! */
|
/* get it! */
|
||||||
curl_easy_perform(curl_handle);
|
curl_easy_perform(curl_handle);
|
||||||
|
|||||||
105
docs/examples/sessioninfo.c
Normal file
105
docs/examples/sessioninfo.c
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
*
|
||||||
|
* This software is licensed as described in the file COPYING, which
|
||||||
|
* you should have received as part of this distribution. The terms
|
||||||
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
*
|
||||||
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
* copies of the Software, and permit persons to whom the Software is
|
||||||
|
* furnished to do so, under the terms of the COPYING file.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
/* Note that this example currently requires cURL to be linked against
|
||||||
|
GnuTLS (and this program must also be linked against -lgnutls). */
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
|
#include <gnutls/gnutls.h>
|
||||||
|
|
||||||
|
static CURL *curl;
|
||||||
|
|
||||||
|
static size_t wrfu(void *ptr, size_t size, size_t nmemb, void *stream)
|
||||||
|
{
|
||||||
|
const struct curl_tlssessioninfo *info;
|
||||||
|
unsigned int cert_list_size;
|
||||||
|
const gnutls_datum_t *chainp;
|
||||||
|
CURLcode res;
|
||||||
|
|
||||||
|
(void)stream;
|
||||||
|
(void)ptr;
|
||||||
|
|
||||||
|
res = curl_easy_getinfo(curl, CURLINFO_TLS_SESSION, &info);
|
||||||
|
|
||||||
|
if(!res) {
|
||||||
|
switch(info->backend) {
|
||||||
|
case CURLSSLBACKEND_GNUTLS:
|
||||||
|
/* info->internals is now the gnutls_session_t */
|
||||||
|
chainp = gnutls_certificate_get_peers(info->internals, &cert_list_size);
|
||||||
|
if((chainp) && (cert_list_size)) {
|
||||||
|
unsigned int i;
|
||||||
|
|
||||||
|
for(i = 0; i < cert_list_size; i++) {
|
||||||
|
gnutls_x509_crt_t cert;
|
||||||
|
gnutls_datum_t dn;
|
||||||
|
|
||||||
|
if(GNUTLS_E_SUCCESS == gnutls_x509_crt_init(&cert)) {
|
||||||
|
if(GNUTLS_E_SUCCESS ==
|
||||||
|
gnutls_x509_crt_import(cert, &chainp[i], GNUTLS_X509_FMT_DER)) {
|
||||||
|
if(GNUTLS_E_SUCCESS ==
|
||||||
|
gnutls_x509_crt_print(cert, GNUTLS_CRT_PRINT_FULL, &dn)) {
|
||||||
|
fprintf(stderr, "Certificate #%d: %.*s", i, dn.size, dn.data);
|
||||||
|
|
||||||
|
gnutls_free(dn.data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
gnutls_x509_crt_deinit(cert);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case CURLSSLBACKEND_NONE:
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return size * nmemb;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
|
||||||
|
curl = curl_easy_init();
|
||||||
|
if(curl) {
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/");
|
||||||
|
|
||||||
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, wrfu);
|
||||||
|
|
||||||
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
|
|
||||||
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
|
||||||
|
|
||||||
|
(void) curl_easy_perform(curl);
|
||||||
|
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
}
|
||||||
|
|
||||||
|
curl_global_cleanup();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
/***************************************************************************
|
|
||||||
* _ _ ____ _
|
|
||||||
* Project ___| | | | _ \| |
|
|
||||||
* / __| | | | |_) | |
|
|
||||||
* | (__| |_| | _ <| |___
|
|
||||||
* \___|\___/|_| \_\_____|
|
|
||||||
*
|
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
||||||
*
|
|
||||||
* This software is licensed as described in the file COPYING, which
|
|
||||||
* you should have received as part of this distribution. The terms
|
|
||||||
* are also available at http://curl.haxx.se/docs/copyright.html.
|
|
||||||
*
|
|
||||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
||||||
* copies of the Software, and permit persons to whom the Software is
|
|
||||||
* furnished to do so, under the terms of the COPYING file.
|
|
||||||
*
|
|
||||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
||||||
* KIND, either express or implied.
|
|
||||||
*
|
|
||||||
***************************************************************************/
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <curl/curl.h>
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
CURL *curl;
|
|
||||||
CURLcode res;
|
|
||||||
struct curl_slist *recipients = NULL;
|
|
||||||
|
|
||||||
/* value for envelope reverse-path */
|
|
||||||
static const char *from = "<bradh@example.com>";
|
|
||||||
|
|
||||||
/* this becomes the envelope forward-path */
|
|
||||||
static const char *to = "<bradh@example.net>";
|
|
||||||
|
|
||||||
curl = curl_easy_init();
|
|
||||||
if(curl) {
|
|
||||||
/* this is the URL for your mailserver - you can also use an smtps:// URL
|
|
||||||
* here */
|
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.net.");
|
|
||||||
|
|
||||||
/* Note that this option isn't strictly required, omitting it will result in
|
|
||||||
* libcurl will sent the MAIL FROM command with no sender data. All
|
|
||||||
* autoresponses should have an empty reverse-path, and should be directed
|
|
||||||
* to the address in the reverse-path which triggered them. Otherwise, they
|
|
||||||
* could cause an endless loop. See RFC 5321 Section 4.5.5 for more details.
|
|
||||||
*/
|
|
||||||
curl_easy_setopt(curl, CURLOPT_MAIL_FROM, from);
|
|
||||||
|
|
||||||
/* Note that the CURLOPT_MAIL_RCPT takes a list, not a char array. */
|
|
||||||
recipients = curl_slist_append(recipients, to);
|
|
||||||
curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
|
|
||||||
|
|
||||||
/* You provide the payload (headers and the body of the message) as the
|
|
||||||
* "data" element. There are two choices, either:
|
|
||||||
* - provide a callback function and specify the function name using the
|
|
||||||
* CURLOPT_READFUNCTION option; or
|
|
||||||
* - just provide a FILE pointer that can be used to read the data from.
|
|
||||||
* The easiest case is just to read from standard input, (which is available
|
|
||||||
* as a FILE pointer) as shown here.
|
|
||||||
*/
|
|
||||||
curl_easy_setopt(curl, CURLOPT_READDATA, stdin);
|
|
||||||
|
|
||||||
/* send the message (including headers) */
|
|
||||||
res = curl_easy_perform(curl);
|
|
||||||
/* Check for errors */
|
|
||||||
if(res != CURLE_OK)
|
|
||||||
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
|
||||||
curl_easy_strerror(res));
|
|
||||||
|
|
||||||
/* free the list of recipients */
|
|
||||||
curl_slist_free_all(recipients);
|
|
||||||
|
|
||||||
/* curl won't send the QUIT command until you call cleanup, so you should be
|
|
||||||
* able to re-use this connection for additional messages (setting
|
|
||||||
* CURLOPT_MAIL_FROM and CURLOPT_MAIL_RCPT as required, and calling
|
|
||||||
* curl_easy_perform() again. It may not be a good idea to keep the
|
|
||||||
* connection open for a very long time though (more than a few minutes may
|
|
||||||
* result in the server timing out the connection), and you do want to clean
|
|
||||||
* up in the end.
|
|
||||||
*/
|
|
||||||
curl_easy_cleanup(curl);
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user