Compare commits
681 Commits
curl-7_28_
...
curl-7_30_
Author | SHA1 | Date | |
---|---|---|---|
![]() |
80d241046e | ||
![]() |
5c5e1a1cd2 | ||
![]() |
2eb8dcf26c | ||
![]() |
96ffe645fd | ||
![]() |
c86ea58304 | ||
![]() |
577703495e | ||
![]() |
f8da49eec0 | ||
![]() |
e0fb2d86c9 | ||
![]() |
658ec97055 | ||
![]() |
88535d593e | ||
![]() |
11dee0bfae | ||
![]() |
4594ee5e14 | ||
![]() |
d7f4c3772e | ||
![]() |
29fdb2700f | ||
![]() |
32144ca241 | ||
![]() |
4990f46856 | ||
![]() |
5e24db0cba | ||
![]() |
638c6da9db | ||
![]() |
9141c75bfb | ||
![]() |
704a5dfca9 | ||
![]() |
6b8c36954f | ||
![]() |
762961fe35 | ||
![]() |
4b643f1ca4 | ||
![]() |
e73db5dcbd | ||
![]() |
25f08de4d6 | ||
![]() |
f3bd2abb61 | ||
![]() |
4e2ed01a2e | ||
![]() |
ae4558dbb4 | ||
![]() |
ee7669ba3a | ||
![]() |
e34bc917d6 | ||
![]() |
2ba0f1373c | ||
![]() |
b4fae9d73f | ||
![]() |
e51b23c925 | ||
![]() |
18f0ab7bd3 | ||
![]() |
57aeabcc1a | ||
![]() |
9474c4a9a5 | ||
![]() |
090b55c100 | ||
![]() |
a181e7b084 | ||
![]() |
34fa8d1e38 | ||
![]() |
a03d0c5b88 | ||
![]() |
ac09b5a92b | ||
![]() |
91252d9fb9 | ||
![]() |
efa5488448 | ||
![]() |
e3787e862f | ||
![]() |
6eb56e72de | ||
![]() |
eeefcdff54 | ||
![]() |
bf7a270e0b | ||
![]() |
5e722b2d09 | ||
![]() |
688124f0e9 | ||
![]() |
247b291b12 | ||
![]() |
e7c56a8406 | ||
![]() |
e5d25b6c68 | ||
![]() |
a6eade56ca | ||
![]() |
5f5e4c92c4 | ||
![]() |
07cca0dc7c | ||
![]() |
ed35e1fa1b | ||
![]() |
e87e76e2dc | ||
![]() |
984e20d6bb | ||
![]() |
fbc35d394c | ||
![]() |
3dcc1a9c19 | ||
![]() |
7ba091ca82 | ||
![]() |
ce8a35c318 | ||
![]() |
c3fa3aaf2c | ||
![]() |
8efd74de46 | ||
![]() |
962eb3d9ed | ||
![]() |
eb25dd3be2 | ||
![]() |
43e045fc3e | ||
![]() |
74467f8e78 | ||
![]() |
cfb7e80991 | ||
![]() |
c7e56db050 | ||
![]() |
0614b90213 | ||
![]() |
c4d7c1514f | ||
![]() |
e839e7c61b | ||
![]() |
ca62ac69bb | ||
![]() |
048726a5a2 | ||
![]() |
b1ce7c5a6b | ||
![]() |
b8c195974c | ||
![]() |
1e29d275c6 | ||
![]() |
142755fa5c | ||
![]() |
acafe9c160 | ||
![]() |
8ec2cb5544 | ||
![]() |
c5eabd48e8 | ||
![]() |
11219b3c93 | ||
![]() |
bc6037ed3e | ||
![]() |
ce2008066a | ||
![]() |
d85647cfdd | ||
![]() |
c0c46c3137 | ||
![]() |
7713e67bc5 | ||
![]() |
9a13a516b4 | ||
![]() |
b8a986be06 | ||
![]() |
1c44f83e54 | ||
![]() |
6f1f7e5de8 | ||
![]() |
91ab2497c6 | ||
![]() |
d1d0ee075f | ||
![]() |
90110a9be0 | ||
![]() |
b0dfbf305a | ||
![]() |
b3440f490f | ||
![]() |
2dd56991f7 | ||
![]() |
ff3444c36d | ||
![]() |
5e2ef3942f | ||
![]() |
f660fc4423 | ||
![]() |
5d4e12bbea | ||
![]() |
91e2ce6e76 | ||
![]() |
2ba5f4bf1c | ||
![]() |
bf4cef1db1 | ||
![]() |
8ce915c7a4 | ||
![]() |
1700668d78 | ||
![]() |
a8f93d4efc | ||
![]() |
e4b733e3f1 | ||
![]() |
b50285d751 | ||
![]() |
001e664ff7 | ||
![]() |
01dc954f8a | ||
![]() |
c2fab66575 | ||
![]() |
0f147887b0 | ||
![]() |
911b2d3f67 | ||
![]() |
ba7fbd0960 | ||
![]() |
ac890cd5f2 | ||
![]() |
308dc625f7 | ||
![]() |
8ae9ee0cf2 | ||
![]() |
17c088fb45 | ||
![]() |
e60bf25107 | ||
![]() |
e450f66a02 | ||
![]() |
57ccdfa8d2 | ||
![]() |
491e026ccd | ||
![]() |
83a42ee20e | ||
![]() |
90d7d1b727 | ||
![]() |
92295aa73c | ||
![]() |
50a83890c9 | ||
![]() |
817f73dcda | ||
![]() |
bd86528e6b | ||
![]() |
25d040035e | ||
![]() |
8dc7393d89 | ||
![]() |
245f522761 | ||
![]() |
90c8386187 | ||
![]() |
263db764c4 | ||
![]() |
3a5530a1f3 | ||
![]() |
0d49f92872 | ||
![]() |
b12ddc4eed | ||
![]() |
c2e2938a7e | ||
![]() |
62b5015796 | ||
![]() |
85e944928c | ||
![]() |
5a6464ae09 | ||
![]() |
fb327e42c6 | ||
![]() |
a1348aa23c | ||
![]() |
ad361d109b | ||
![]() |
1fcf52cae4 | ||
![]() |
cbea345f61 | ||
![]() |
059647f398 | ||
![]() |
136a3a0ee2 | ||
![]() |
64b2d2d77e | ||
![]() |
8826435571 | ||
![]() |
6645d2ae8f | ||
![]() |
cb07bca689 | ||
![]() |
09b2db2dfd | ||
![]() |
ca3c0ed3a9 | ||
![]() |
6bdd3d4a88 | ||
![]() |
69eca5c252 | ||
![]() |
0840f01e99 | ||
![]() |
b4c9b515aa | ||
![]() |
b482417ac4 | ||
![]() |
4838d196fd | ||
![]() |
f691f9609c | ||
![]() |
e5bb4e86ac | ||
![]() |
6d8d306905 | ||
![]() |
1f41772bef | ||
![]() |
21c1de430a | ||
![]() |
c5a08af579 | ||
![]() |
bd649ac1c5 | ||
![]() |
70b5173410 | ||
![]() |
eacfb5d8a6 | ||
![]() |
170ae51c47 | ||
![]() |
cc890906b1 | ||
![]() |
b99c9f7c7f | ||
![]() |
ad2920fa85 | ||
![]() |
67b6fa5f95 | ||
![]() |
3df1e35838 | ||
![]() |
7e6d2fe9ec | ||
![]() |
442084cdb5 | ||
![]() |
7f963a19ec | ||
![]() |
9ceee69ff7 | ||
![]() |
a9cc5ee0c6 | ||
![]() |
c1ce09d470 | ||
![]() |
81408d2111 | ||
![]() |
5c89413b24 | ||
![]() |
37f3fcd631 | ||
![]() |
c9f9f601b8 | ||
![]() |
24ffceed81 | ||
![]() |
acfce19de1 | ||
![]() |
b7f39156d4 | ||
![]() |
9d0af3018c | ||
![]() |
fa9748df11 | ||
![]() |
198012ee13 | ||
![]() |
742544aad0 | ||
![]() |
041754e3fa | ||
![]() |
b960f1e8bd | ||
![]() |
c29346613d | ||
![]() |
172e6378f8 | ||
![]() |
26eaa83830 | ||
![]() |
fadf33c78a | ||
![]() |
298f806d01 | ||
![]() |
e6b7dae947 | ||
![]() |
fa637c6cab | ||
![]() |
036366f1ef | ||
![]() |
757aa7b09d | ||
![]() |
b1ebf4bda1 | ||
![]() |
284ea5f924 | ||
![]() |
c03cad3a61 | ||
![]() |
ad8b76d094 | ||
![]() |
226c1c6876 | ||
![]() |
711065e4df | ||
![]() |
ee7034800d | ||
![]() |
1d3ccf27ec | ||
![]() |
51dbaae432 | ||
![]() |
dcffd936e1 | ||
![]() |
e94fbcabd7 | ||
![]() |
ec38ac38c7 | ||
![]() |
0f64dd086a | ||
![]() |
459e1bffee | ||
![]() |
7b471fb344 | ||
![]() |
f8c8c76d39 | ||
![]() |
90b7d0ea59 | ||
![]() |
1383522e3a | ||
![]() |
d46d107e0c | ||
![]() |
25884aa197 | ||
![]() |
be51a46353 | ||
![]() |
48596f87a9 | ||
![]() |
b06a786226 | ||
![]() |
b4eb08e7fb | ||
![]() |
10549ee08f | ||
![]() |
d9235e74ed | ||
![]() |
6ff7197e70 | ||
![]() |
0be2251394 | ||
![]() |
4cef525992 | ||
![]() |
11a22f3264 | ||
![]() |
025ba6e9be | ||
![]() |
cdea86ff67 | ||
![]() |
974c663471 | ||
![]() |
692ef0e158 | ||
![]() |
17f032c0d9 | ||
![]() |
ad3177da24 | ||
![]() |
afad1ce753 | ||
![]() |
13006f3de9 | ||
![]() |
1d86d813c3 | ||
![]() |
f53ed631b3 | ||
![]() |
5b3736b533 | ||
![]() |
cce08581ac | ||
![]() |
c368fbcb10 | ||
![]() |
b644c47192 | ||
![]() |
d03aa16164 | ||
![]() |
aa44ec62aa | ||
![]() |
05c03e7edd | ||
![]() |
f67bd1a344 | ||
![]() |
a8eb059203 | ||
![]() |
59c71c7fc7 | ||
![]() |
58efa46a5d | ||
![]() |
acd22f05dd | ||
![]() |
ce9a0a6d65 | ||
![]() |
f92f341a3f | ||
![]() |
91b2184e1b | ||
![]() |
1ffdc5058e | ||
![]() |
0ffefefe7f | ||
![]() |
764b818934 | ||
![]() |
9d45391347 | ||
![]() |
a390454728 | ||
![]() |
005ad9e60d | ||
![]() |
a360944ed6 | ||
![]() |
6f02209cc8 | ||
![]() |
015ceb4706 | ||
![]() |
e63c33d88d | ||
![]() |
94336d3c1e | ||
![]() |
cc27aff7b3 | ||
![]() |
d23d2f2bd8 | ||
![]() |
37f0caeabd | ||
![]() |
671f896c0b | ||
![]() |
7f5824a106 | ||
![]() |
797b004738 | ||
![]() |
1ff6a8338d | ||
![]() |
66149248ba | ||
![]() |
c38d69f06a | ||
![]() |
324b7fe47b | ||
![]() |
e87a3ccc62 | ||
![]() |
cb3ae6894f | ||
![]() |
e0cbfe825d | ||
![]() |
04456a74d0 | ||
![]() |
5c5b7c7146 | ||
![]() |
7f6c7331b2 | ||
![]() |
0b795db731 | ||
![]() |
8a468ef222 | ||
![]() |
ed7d438a12 | ||
![]() |
8960d81b0d | ||
![]() |
429820b180 | ||
![]() |
539ed6f02a | ||
![]() |
e756641040 | ||
![]() |
2f638a8f5e | ||
![]() |
b6f32464e9 | ||
![]() |
4afcb77820 | ||
![]() |
0ee79114ef | ||
![]() |
29a4a16db8 | ||
![]() |
e2201dc849 | ||
![]() |
4cfc7f951c | ||
![]() |
fcf02cbb75 | ||
![]() |
419bcf9d60 | ||
![]() |
d415327bd7 | ||
![]() |
35fb6bee0e | ||
![]() |
13625a0d09 | ||
![]() |
2476b34b95 | ||
![]() |
3906353b41 | ||
![]() |
65644b8335 | ||
![]() |
6b7cf6c72d | ||
![]() |
217024a687 | ||
![]() |
c3ea3eb6a3 | ||
![]() |
a5b231acc2 | ||
![]() |
790abe3fbe | ||
![]() |
1a4dd1aa7c | ||
![]() |
296b9a5af0 | ||
![]() |
1dac29fa83 | ||
![]() |
cd65ecb2e8 | ||
![]() |
44a3cdb9db | ||
![]() |
80e2b3edb9 | ||
![]() |
52605e006c | ||
![]() |
6a87ac8c88 | ||
![]() |
79f1bf32d0 | ||
![]() |
a995ea05b3 | ||
![]() |
25e577b33d | ||
![]() |
52b5eadf3c | ||
![]() |
06e6fd1aa7 | ||
![]() |
ed7174c6f6 | ||
![]() |
072b1ad15a | ||
![]() |
10c1b11f88 | ||
![]() |
e52fc1e297 | ||
![]() |
12ea5beffc | ||
![]() |
d4703fa428 | ||
![]() |
5e2e3cb54e | ||
![]() |
39b79c6b75 | ||
![]() |
b0e0f44934 | ||
![]() |
6d7033b48a | ||
![]() |
f10006ee5f | ||
![]() |
c35a10483d | ||
![]() |
db3f3c14f2 | ||
![]() |
1346cb19f2 | ||
![]() |
2dbeaf7dad | ||
![]() |
673b7ba80a | ||
![]() |
154bf3d699 | ||
![]() |
8c2c4e21b3 | ||
![]() |
c25383ae13 | ||
![]() |
6106eeba16 | ||
![]() |
8481386513 | ||
![]() |
2683927756 | ||
![]() |
5d8ec4a634 | ||
![]() |
4f328b85c3 | ||
![]() |
92a537a2bb | ||
![]() |
7ed689d24a | ||
![]() |
a6dca9d28c | ||
![]() |
358c5c0745 | ||
![]() |
d821525cee | ||
![]() |
ad7291c1a9 | ||
![]() |
d09d08dc1f | ||
![]() |
0c6fa0dd64 | ||
![]() |
cc8fad9a7f | ||
![]() |
72da89a74d | ||
![]() |
beae838ed5 | ||
![]() |
7970821117 | ||
![]() |
d713e9a207 | ||
![]() |
508cdf4da4 | ||
![]() |
e6c1e773d9 | ||
![]() |
52281a10aa | ||
![]() |
66aa9bf52d | ||
![]() |
bd93062ee5 | ||
![]() |
b56c9eb48e | ||
![]() |
586f5d3614 | ||
![]() |
de492b31c5 | ||
![]() |
5cd85db9fa | ||
![]() |
9a6e580e3a | ||
![]() |
ff8c5a329e | ||
![]() |
da3fc1ee91 | ||
![]() |
85a2e9ec82 | ||
![]() |
18d1ea4528 | ||
![]() |
566a3638fa | ||
![]() |
e0f4af4032 | ||
![]() |
b50ce1e5ba | ||
![]() |
b333504327 | ||
![]() |
2e0a295e3b | ||
![]() |
f6010d9a03 | ||
![]() |
c76cb3da04 | ||
![]() |
2f66ca11c1 | ||
![]() |
a1701eea28 | ||
![]() |
8170d1f828 | ||
![]() |
92f7606f29 | ||
![]() |
fd52530b50 | ||
![]() |
572f7864b2 | ||
![]() |
62bd217464 | ||
![]() |
f0bfc0fbd7 | ||
![]() |
7f266f1c99 | ||
![]() |
5be2499e16 | ||
![]() |
f44d0aedc1 | ||
![]() |
23d17190ee | ||
![]() |
21657823ea | ||
![]() |
3bb45aa7f5 | ||
![]() |
40f9bb787f | ||
![]() |
dda53476ca | ||
![]() |
463082bea4 | ||
![]() |
72688317ad | ||
![]() |
07f97809b8 | ||
![]() |
9613cf7211 | ||
![]() |
ce4b554e5d | ||
![]() |
6da7dc026c | ||
![]() |
e07385f853 | ||
![]() |
86dfcf737d | ||
![]() |
4ed469a56f | ||
![]() |
7704621f4c | ||
![]() |
542507f316 | ||
![]() |
0e66d5878e | ||
![]() |
cecb9c0f71 | ||
![]() |
632e50ca8d | ||
![]() |
7be925aefc | ||
![]() |
611ec0a190 | ||
![]() |
de0410fe9a | ||
![]() |
12dbb8aedc | ||
![]() |
d23d69e14e | ||
![]() |
2488a01337 | ||
![]() |
0a4bb75bc5 | ||
![]() |
bf633a584d | ||
![]() |
0f1deac71e | ||
![]() |
f206d6c055 | ||
![]() |
add37cc49f | ||
![]() |
85625c5e28 | ||
![]() |
453e821ad7 | ||
![]() |
e0c491026f | ||
![]() |
12f4ea50f7 | ||
![]() |
ae6b5f1772 | ||
![]() |
5f8f20f5e6 | ||
![]() |
33a182e6c2 | ||
![]() |
68de6a0b3e | ||
![]() |
25d13822ae | ||
![]() |
25f351424b | ||
![]() |
cb3e6dfa35 | ||
![]() |
1d22407863 | ||
![]() |
bb7c2ee37c | ||
![]() |
278ab75e9f | ||
![]() |
0d1b754376 | ||
![]() |
4cd027f17e | ||
![]() |
bd1f170a5a | ||
![]() |
03577a355e | ||
![]() |
022e67294e | ||
![]() |
7fd5f680ea | ||
![]() |
9ca812f386 | ||
![]() |
a94a68a3c1 | ||
![]() |
f850abf439 | ||
![]() |
e1cd753e4d | ||
![]() |
4c26ba9cea | ||
![]() |
c0c334b42a | ||
![]() |
b4270a9af1 | ||
![]() |
6b6bdc83bd | ||
![]() |
56b7c87c74 | ||
![]() |
32e8467a66 | ||
![]() |
e243d80dea | ||
![]() |
a33075b8d3 | ||
![]() |
ddd40a43aa | ||
![]() |
38131d415b | ||
![]() |
c7b6e43ef8 | ||
![]() |
3d7b7b6b84 | ||
![]() |
163a1dca5f | ||
![]() |
23a47ef01b | ||
![]() |
38ec16d671 | ||
![]() |
d411402a65 | ||
![]() |
826e1b81fa | ||
![]() |
11dde6ac72 | ||
![]() |
0494da830b | ||
![]() |
5243b18f3d | ||
![]() |
0e5e720c19 | ||
![]() |
3dbf11d0a1 | ||
![]() |
499e30c4bb | ||
![]() |
73fae58132 | ||
![]() |
44cf225f7a | ||
![]() |
d9c3505e83 | ||
![]() |
593f242803 | ||
![]() |
a76ea8b79a | ||
![]() |
c0e8e94ca2 | ||
![]() |
eb2e62c0af | ||
![]() |
2bfb8b6080 | ||
![]() |
fda0f14f73 | ||
![]() |
f8ba1273af | ||
![]() |
8b275718e2 | ||
![]() |
379d63ecc7 | ||
![]() |
b1826d81fb | ||
![]() |
6a55f25f67 | ||
![]() |
f2f897172f | ||
![]() |
aa9e72d358 | ||
![]() |
c527759701 | ||
![]() |
5c28a64e57 | ||
![]() |
8c6c42a67f | ||
![]() |
045c734e16 | ||
![]() |
de991037e4 | ||
![]() |
56d4de468c | ||
![]() |
2698520aef | ||
![]() |
fa176376c8 | ||
![]() |
efe4656656 | ||
![]() |
0ed4a0923c | ||
![]() |
a3e65b1a50 | ||
![]() |
1347b3085c | ||
![]() |
9d1effad05 | ||
![]() |
e5ea45ec2e | ||
![]() |
63605d281f | ||
![]() |
f4cc54cb47 | ||
![]() |
34ae007d4d | ||
![]() |
d90b9aee64 | ||
![]() |
ece8681a60 | ||
![]() |
7b5be79908 | ||
![]() |
446afec71a | ||
![]() |
e2bfae239f | ||
![]() |
ccb34cb46d | ||
![]() |
0e1855d9d3 | ||
![]() |
c43127414d | ||
![]() |
9fd88abb70 | ||
![]() |
4ed6b07d8d | ||
![]() |
533c31b785 | ||
![]() |
7ab3ae0bf0 | ||
![]() |
4b401b2d99 | ||
![]() |
d7f2c3af5f | ||
![]() |
bc682cbd3e | ||
![]() |
26613d7817 | ||
![]() |
18e7c14f30 | ||
![]() |
16abdd4f39 | ||
![]() |
99229b74eb | ||
![]() |
600cbaca6f | ||
![]() |
b36f1d26f8 | ||
![]() |
d17f536688 | ||
![]() |
b35a176c66 | ||
![]() |
a7db42e4f0 | ||
![]() |
308cce8231 | ||
![]() |
a6848250d2 | ||
![]() |
a9ca5e61e5 | ||
![]() |
06558695d5 | ||
![]() |
dd73c924ac | ||
![]() |
5a053ffe80 | ||
![]() |
e2bcd2ab9e | ||
![]() |
fea3a3d569 | ||
![]() |
75fa3542d0 | ||
![]() |
4ffb8a6398 | ||
![]() |
7a6d8b1b1a | ||
![]() |
905d0be509 | ||
![]() |
fd3efca164 | ||
![]() |
825677ad09 | ||
![]() |
561b551deb | ||
![]() |
6a4f5e5268 | ||
![]() |
f6e33cf669 | ||
![]() |
4e6265ea5a | ||
![]() |
494b8664da | ||
![]() |
d6bebd56f7 | ||
![]() |
70dcde78d0 | ||
![]() |
89a3086231 | ||
![]() |
cfb6f03224 | ||
![]() |
11f55a9672 | ||
![]() |
5475ac279d | ||
![]() |
a77d18efaf | ||
![]() |
dd561c3834 | ||
![]() |
db20517796 | ||
![]() |
4a5aa6682d | ||
![]() |
e0ba958e28 | ||
![]() |
8f80f412fb | ||
![]() |
cc4ac82bb6 | ||
![]() |
1795e24176 | ||
![]() |
b708a522a1 | ||
![]() |
65e8ba8e1d | ||
![]() |
0b3180b4f5 | ||
![]() |
8f13e3ddb9 | ||
![]() |
7d83dfff9c | ||
![]() |
dbf93a8973 | ||
![]() |
5b6e7927c6 | ||
![]() |
13606bbfde | ||
![]() |
8f0171bdd4 | ||
![]() |
c087374c64 | ||
![]() |
dfe4769157 | ||
![]() |
404a95b588 | ||
![]() |
bc5298e25c | ||
![]() |
d86503ea82 | ||
![]() |
bd8ae68006 | ||
![]() |
c02449ca53 | ||
![]() |
1576548428 | ||
![]() |
36837c10b2 | ||
![]() |
f947de4bb5 | ||
![]() |
2424b7ab1b | ||
![]() |
c43af566fa | ||
![]() |
488245f99c | ||
![]() |
27f90c0962 | ||
![]() |
ffa62e5bab | ||
![]() |
2255ac52f7 | ||
![]() |
b3204e6d60 | ||
![]() |
f6f6f278e2 | ||
![]() |
167717b806 | ||
![]() |
8177bc262f | ||
![]() |
ffd8e127e7 | ||
![]() |
f871de0064 | ||
![]() |
ec691ca34b | ||
![]() |
709b3506cd | ||
![]() |
2ee2693a47 | ||
![]() |
431ead1c9a | ||
![]() |
e3ed2b82e6 | ||
![]() |
311151beab | ||
![]() |
ae2a2c9931 | ||
![]() |
eb5aa12c8b | ||
![]() |
77b5c0b2cf | ||
![]() |
b44da5a82a | ||
![]() |
219fe7b29c | ||
![]() |
d49531dd3a | ||
![]() |
4a23b19a13 | ||
![]() |
a662f86f6f | ||
![]() |
d335aa2cdc | ||
![]() |
0aabfd9963 | ||
![]() |
14b77db1b9 | ||
![]() |
e125eea5a6 | ||
![]() |
1649e680f6 | ||
![]() |
2897ce7dc2 | ||
![]() |
5ed03ebe52 | ||
![]() |
3456bbc4cc | ||
![]() |
7a09907146 | ||
![]() |
a1fc9b80c8 | ||
![]() |
dfe382c6ae | ||
![]() |
b3d91a147f | ||
![]() |
c59c5e8ea2 | ||
![]() |
0969045b6e | ||
![]() |
c30c557e4d | ||
![]() |
d738adc1fb | ||
![]() |
c691037517 | ||
![]() |
eafccdb315 | ||
![]() |
b7a1eccce8 | ||
![]() |
c91a6cd78f | ||
![]() |
7d49d774fd | ||
![]() |
9ab5f9dd8d | ||
![]() |
b8dde1cf19 | ||
![]() |
57fa576a35 | ||
![]() |
f6af9d9886 | ||
![]() |
87e8691e7c | ||
![]() |
bbb4bbc0f1 | ||
![]() |
0e8e340cba | ||
![]() |
a0b207164c | ||
![]() |
f254c59dc7 | ||
![]() |
568befb6aa | ||
![]() |
f4b60e7f14 | ||
![]() |
85b77209ae | ||
![]() |
e880680fb6 | ||
![]() |
aee540b831 | ||
![]() |
4710d3d969 | ||
![]() |
d758234ade | ||
![]() |
c07a6f3ff3 | ||
![]() |
d021f2e8a0 | ||
![]() |
ca5f4e2135 | ||
![]() |
3c6ea7ca82 | ||
![]() |
8b15c84ea9 | ||
![]() |
60edbf65b6 | ||
![]() |
fe2b2a3b9d | ||
![]() |
7332a7cafb | ||
![]() |
23f8dca6fb | ||
![]() |
b908376bef | ||
![]() |
8b02afd9a9 | ||
![]() |
3202cc6162 | ||
![]() |
068f7ae264 | ||
![]() |
68d2830ee9 | ||
![]() |
2ecdd48683 | ||
![]() |
6bd6b3a8a1 | ||
![]() |
91b57cd6e5 | ||
![]() |
d27a46f09b | ||
![]() |
4abf4fbaac | ||
![]() |
16a8281f71 | ||
![]() |
534d2ca1d7 | ||
![]() |
79954a1b07 | ||
![]() |
b33074d893 | ||
![]() |
0683adbf50 | ||
![]() |
68e2c9a85f | ||
![]() |
616a0099d1 | ||
![]() |
665adcd4b7 | ||
![]() |
91dc73ef44 | ||
![]() |
14dc679ce0 | ||
![]() |
ef6f040355 | ||
![]() |
c1dd687af6 | ||
![]() |
f435d6699d | ||
![]() |
ba33665d1f | ||
![]() |
67f053b672 | ||
![]() |
cfb67752fe | ||
![]() |
ba476bb6d8 | ||
![]() |
7762192ecf |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -45,3 +45,4 @@ CHANGES.dist
|
|||||||
.project
|
.project
|
||||||
.cproject
|
.cproject
|
||||||
.settings
|
.settings
|
||||||
|
/[0-9]*.patch
|
||||||
|
@@ -132,22 +132,6 @@ 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" OFF)
|
||||||
mark_as_advanced(ENABLE_IPV6)
|
mark_as_advanced(ENABLE_IPV6)
|
||||||
|
|
||||||
if(WIN32)
|
|
||||||
# Windows standard libraries are located in C:/Program Files/Microsoft SDKs/[...]
|
|
||||||
# They are already included in the default MSVC LIBPATH => no find_library is needed!
|
|
||||||
list_spaces_append_once(CMAKE_C_STANDARD_LIBRARIES wsock32.lib ws2_32.lib) # bufferoverflowu.lib
|
|
||||||
if(CURL_DISABLE_LDAP)
|
|
||||||
# Remove wldap32.lib from space-separated list
|
|
||||||
string(REPLACE " " ";" _LIST ${CMAKE_C_STANDARD_LIBRARIES})
|
|
||||||
list(REMOVE_ITEM _LIST "wldap32.lib")
|
|
||||||
to_list_spaces(_LIST CMAKE_C_STANDARD_LIBRARIES)
|
|
||||||
else()
|
|
||||||
# Append wldap32.lib
|
|
||||||
list_spaces_append_once(CMAKE_C_STANDARD_LIBRARIES wldap32.lib)
|
|
||||||
endif()
|
|
||||||
set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES}" CACHE STRING "" FORCE)
|
|
||||||
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}")
|
||||||
@@ -249,26 +233,28 @@ if(CURL_ZLIB) # AND CURL_CONFIG_HAS_BEEN_RUN_BEFORE
|
|||||||
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})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(CMAKE_USE_OPENSSL "Use OpenSSL code. Experimental" ON)
|
option(CMAKE_USE_OPENSSL "Use OpenSSL code. Experimental" ON)
|
||||||
mark_as_advanced(CMAKE_USE_OPENSSL)
|
mark_as_advanced(CMAKE_USE_OPENSSL)
|
||||||
if(CMAKE_USE_OPENSSL)
|
if(CMAKE_USE_OPENSSL)
|
||||||
if(WIN32)
|
|
||||||
find_package(OpenSSL)
|
set(USE_SSLEAY OFF)
|
||||||
if(OPENSSL_FOUND)
|
set(USE_OPENSSL OFF)
|
||||||
set(USE_SSLEAY TRUE)
|
set(HAVE_LIBCRYPTO OFF)
|
||||||
set(USE_OPENSSL TRUE)
|
set(HAVE_LIBSSL OFF)
|
||||||
list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES} )
|
|
||||||
else()
|
find_package(OpenSSL)
|
||||||
set(CMAKE_USE_OPENSSL FALSE)
|
if(OPENSSL_FOUND)
|
||||||
message(STATUS "OpenSSL NOT Found, disabling CMAKE_USE_OPENSSL")
|
list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES})
|
||||||
endif()
|
list(APPEND CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
|
||||||
else(WIN32)
|
set(USE_SSLEAY ON)
|
||||||
check_library_exists_concat("crypto" CRYPTO_lock HAVE_LIBCRYPTO)
|
set(USE_OPENSSL ON)
|
||||||
check_library_exists_concat("ssl" SSL_connect HAVE_LIBSSL)
|
set(HAVE_LIBCRYPTO ON)
|
||||||
endif(WIN32)
|
set(HAVE_LIBSSL ON)
|
||||||
|
endif(OPENSSL_FOUND)
|
||||||
endif(CMAKE_USE_OPENSSL)
|
endif(CMAKE_USE_OPENSSL)
|
||||||
|
|
||||||
# If we have features.h, then do the _BSD_SOURCE magic
|
# If we have features.h, then do the _BSD_SOURCE magic
|
||||||
@@ -334,14 +320,17 @@ 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)
|
||||||
check_include_file_concat("openssl/crypto.h" HAVE_OPENSSL_CRYPTO_H)
|
if(CMAKE_USE_OPENSSL AND OPENSSL_FOUND)
|
||||||
check_include_file_concat("openssl/engine.h" HAVE_OPENSSL_ENGINE_H)
|
check_include_file_concat("openssl/crypto.h" HAVE_OPENSSL_CRYPTO_H)
|
||||||
check_include_file_concat("openssl/err.h" HAVE_OPENSSL_ERR_H)
|
check_include_file_concat("openssl/engine.h" HAVE_OPENSSL_ENGINE_H)
|
||||||
check_include_file_concat("openssl/pem.h" HAVE_OPENSSL_PEM_H)
|
check_include_file_concat("openssl/err.h" HAVE_OPENSSL_ERR_H)
|
||||||
check_include_file_concat("openssl/pkcs12.h" HAVE_OPENSSL_PKCS12_H)
|
check_include_file_concat("openssl/pem.h" HAVE_OPENSSL_PEM_H)
|
||||||
check_include_file_concat("openssl/rsa.h" HAVE_OPENSSL_RSA_H)
|
check_include_file_concat("openssl/pkcs12.h" HAVE_OPENSSL_PKCS12_H)
|
||||||
check_include_file_concat("openssl/ssl.h" HAVE_OPENSSL_SSL_H)
|
check_include_file_concat("openssl/rsa.h" HAVE_OPENSSL_RSA_H)
|
||||||
check_include_file_concat("openssl/x509.h" HAVE_OPENSSL_X509_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)
|
||||||
@@ -377,10 +366,6 @@ 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(CMAKE_USE_OPENSSL)
|
|
||||||
check_include_file_concat("openssl/rand.h" HAVE_OPENSSL_RAND_H)
|
|
||||||
endif(CMAKE_USE_OPENSSL)
|
|
||||||
|
|
||||||
if(NOT HAVE_LDAP_H)
|
if(NOT HAVE_LDAP_H)
|
||||||
message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON")
|
message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON")
|
||||||
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
|
||||||
@@ -816,9 +801,6 @@ endif(MSVC)
|
|||||||
function(SETUP_CURL_DEPENDENCIES TARGET_NAME)
|
function(SETUP_CURL_DEPENDENCIES TARGET_NAME)
|
||||||
if(CURL_ZLIB AND ZLIB_FOUND)
|
if(CURL_ZLIB AND ZLIB_FOUND)
|
||||||
include_directories(${ZLIB_INCLUDE_DIR})
|
include_directories(${ZLIB_INCLUDE_DIR})
|
||||||
endif()
|
|
||||||
if(CURL_ZLIB AND ZLIB_FOUND)
|
|
||||||
target_link_libraries(${TARGET_NAME} ${ZLIB_LIBRARIES})
|
|
||||||
#ADD_DEFINITIONS( -DHAVE_ZLIB_H -DHAVE_ZLIB -DHAVE_LIBZ )
|
#ADD_DEFINITIONS( -DHAVE_ZLIB_H -DHAVE_ZLIB -DHAVE_LIBZ )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -826,9 +808,10 @@ function(SETUP_CURL_DEPENDENCIES TARGET_NAME)
|
|||||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||||
endif()
|
endif()
|
||||||
if(CMAKE_USE_OPENSSL AND CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
|
if(CMAKE_USE_OPENSSL AND CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
|
||||||
target_link_libraries(${TARGET_NAME} ${OPENSSL_LIBRARIES})
|
|
||||||
#ADD_DEFINITIONS( -DUSE_SSLEAY )
|
#ADD_DEFINITIONS( -DUSE_SSLEAY )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME} ${CURL_LIBS})
|
||||||
endfunction()
|
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).
|
||||||
@@ -869,3 +852,13 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/curl"
|
|||||||
DESTINATION include
|
DESTINATION include
|
||||||
FILES_MATCHING PATTERN "*.h"
|
FILES_MATCHING PATTERN "*.h"
|
||||||
PATTERN "curlbuild.h" EXCLUDE)
|
PATTERN "curlbuild.h" EXCLUDE)
|
||||||
|
|
||||||
|
|
||||||
|
# Workaround for MSVS10 to avoid the Dialog Hell
|
||||||
|
# FIXME: This could be removed with future version of CMake.
|
||||||
|
if(MSVC_VERSION EQUAL 1600)
|
||||||
|
set(CURL_SLN_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/CURL.sln")
|
||||||
|
if(EXISTS "${CURL_SLN_FILENAME}")
|
||||||
|
file(APPEND "${CURL_SLN_FILENAME}" "\n# This should be regenerated!\n")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
2
COPYING
2
COPYING
@@ -1,6 +1,6 @@
|
|||||||
COPYRIGHT AND PERMISSION NOTICE
|
COPYRIGHT AND PERMISSION NOTICE
|
||||||
|
|
||||||
Copyright (c) 1996 - 2012, Daniel Stenberg, <daniel@haxx.se>.
|
Copyright (c) 1996 - 2013, Daniel Stenberg, <daniel@haxx.se>.
|
||||||
|
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
|
6
GIT-INFO
6
GIT-INFO
@@ -48,9 +48,9 @@ installed:
|
|||||||
o nroff + perl
|
o nroff + perl
|
||||||
|
|
||||||
If you don't have nroff and perl and you for some reason don't want to
|
If you don't have nroff and perl and you for some reason don't want to
|
||||||
install them, you can rename the source file src/hugehelp.c.cvs to
|
install them, you can rename the source file src/tool_hugehelp.c.cvs to
|
||||||
src/hugehelp.c and avoid having to generate this file. This will give you
|
src/tool_hugehelp.c and avoid having to generate this file. This will
|
||||||
a stubbed version of the file that doesn't contain actual content.
|
give you a stubbed version of the file that doesn't contain actual content.
|
||||||
|
|
||||||
MAC OS X
|
MAC OS X
|
||||||
|
|
||||||
|
@@ -10,6 +10,10 @@
|
|||||||
# 10.5 is the *ONLY* SDK that support PPC64 :( -- 10.6 do not have ppc64 support
|
# 10.5 is the *ONLY* SDK that support PPC64 :( -- 10.6 do not have ppc64 support
|
||||||
#If you need to have PPC64 support then change below to 1
|
#If you need to have PPC64 support then change below to 1
|
||||||
PPC64_NEEDED=0
|
PPC64_NEEDED=0
|
||||||
|
# Apple does not support building for PPC anymore in Xcode 4 and later.
|
||||||
|
# If you're using Xcode 3 or earlier and need PPC support, then change
|
||||||
|
# the setting below to 1
|
||||||
|
PPC_NEEDED=0
|
||||||
|
|
||||||
# For me the default is to develop for the platform I am on, and if you
|
# For me the default is to develop for the platform I am on, and if you
|
||||||
#desire compatibility with older versions then change USE_OLD to 1 :)
|
#desire compatibility with older versions then change USE_OLD to 1 :)
|
||||||
@@ -24,9 +28,16 @@ FRAMEWORK_VERSION=Versions/Release-$VERSION
|
|||||||
# and setup the right paths to this version, leaving the system version
|
# and setup the right paths to this version, leaving the system version
|
||||||
# "intact", so you can "fix" it later with the links to Versions/A/...
|
# "intact", so you can "fix" it later with the links to Versions/A/...
|
||||||
|
|
||||||
|
DEVELOPER_PATH=`xcode-select --print-path`
|
||||||
OLD_SDK=`ls /Developer/SDKs|head -1`
|
# Around Xcode 4.3, SDKs were moved from the Developer folder into the
|
||||||
NEW_SDK=`ls -r /Developer/SDKs|head -1`
|
# MacOSX.platform folder
|
||||||
|
if test -d "$DEVELOPER_PATH/Platforms/MacOSX.platform/Developer/SDKs"; then
|
||||||
|
SDK_PATH="$DEVELOPER_PATH/Platforms/MacOSX.platform/Developer/SDKs"
|
||||||
|
else
|
||||||
|
SDK_PATH="$DEVELOPER_PATH/SDKs";
|
||||||
|
fi
|
||||||
|
OLD_SDK=`ls $SDK_PATH|head -1`
|
||||||
|
NEW_SDK=`ls -r $SDK_PATH|head -1`
|
||||||
|
|
||||||
if test "0"$USE_OLD -gt 0
|
if test "0"$USE_OLD -gt 0
|
||||||
then
|
then
|
||||||
@@ -37,21 +48,24 @@ fi
|
|||||||
|
|
||||||
MACVER=`echo $SDK32|sed -e s/[a-zA-Z]//g -e s/.\$//`
|
MACVER=`echo $SDK32|sed -e s/[a-zA-Z]//g -e s/.\$//`
|
||||||
|
|
||||||
SDK32_DIR='/Developer/SDKs/'$SDK32
|
SDK32_DIR=$SDK_PATH/$SDK32
|
||||||
MINVER32='-mmacosx-version-min='$MACVER
|
MINVER32='-mmacosx-version-min='$MACVER
|
||||||
ARCHES32='-arch i386 -arch ppc'
|
if test $PPC_NEEDED -gt 0; then
|
||||||
|
ARCHES32='-arch i386 -arch ppc'
|
||||||
|
else
|
||||||
|
ARCHES32='-arch i386'
|
||||||
|
fi
|
||||||
|
|
||||||
if test $PPC64_NEEDED -gt 0
|
if test $PPC64_NEEDED -gt 0
|
||||||
then
|
then
|
||||||
SDK64=10.5
|
SDK64=10.5
|
||||||
ARCHES64='-arch x86_64 -arch ppc64'
|
ARCHES64='-arch x86_64 -arch ppc64'
|
||||||
SDK64=`ls /Developer/SDKs|grep 10.5|head -1`
|
SDK64=`ls $SDK_PATH|grep 10.5|head -1`
|
||||||
else
|
else
|
||||||
ARCHES64='-arch x86_64'
|
ARCHES64='-arch x86_64'
|
||||||
#We "know" that 10.4 and earlier do not support 64bit
|
#We "know" that 10.4 and earlier do not support 64bit
|
||||||
OLD_SDK64=`ls /Developer/SDKs|egrep -v "10.[0-4]"|head -1`
|
OLD_SDK64=`ls $SDK_PATH|egrep -v "10.[0-4]"|head -1`
|
||||||
NEW_SDK64=`ls -r /Developer/SDKs|egrep -v "10.[0-4]"|head -1`
|
NEW_SDK64=`ls -r $SDK_PATH|egrep -v "10.[0-4]"|head -1`
|
||||||
if test $USE_OLD -gt 0
|
if test $USE_OLD -gt 0
|
||||||
then
|
then
|
||||||
SDK64=$OLD_SDK64
|
SDK64=$OLD_SDK64
|
||||||
@@ -60,7 +74,7 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SDK64_DIR='/Developer/SDKs/'$SDK64
|
SDK64_DIR=$SDK_PATH/$SDK64
|
||||||
MACVER64=`echo $SDK64|sed -e s/[a-zA-Z]//g -e s/.\$//`
|
MACVER64=`echo $SDK64|sed -e s/[a-zA-Z]//g -e s/.\$//`
|
||||||
|
|
||||||
MINVER64='-mmacosx-version-min='$MACVER64
|
MINVER64='-mmacosx-version-min='$MACVER64
|
||||||
@@ -68,13 +82,13 @@ MINVER64='-mmacosx-version-min='$MACVER64
|
|||||||
if test ! -z $SDK32; then
|
if test ! -z $SDK32; then
|
||||||
echo "----Configuring libcurl for 32 bit universal framework..."
|
echo "----Configuring libcurl for 32 bit universal framework..."
|
||||||
make clean
|
make clean
|
||||||
./configure --disable-dependency-tracking --disable-static --with-gssapi \
|
./configure --disable-dependency-tracking --disable-static --with-gssapi --with-darwinssl \
|
||||||
CFLAGS="-Os -isysroot $SDK32_DIR $ARCHES32 $MINVER32" \
|
CFLAGS="-Os -isysroot $SDK32_DIR $ARCHES32" \
|
||||||
LDFLAGS="-Wl,-syslibroot,$SDK32_DIR $ARCHES32 $MINVER32 -Wl,-headerpad_max_install_names" \
|
LDFLAGS="-Wl,-syslibroot,$SDK32_DIR $ARCHES32 -Wl,-headerpad_max_install_names" \
|
||||||
CC=$CC
|
CC=$CC
|
||||||
|
|
||||||
echo "----Building 32 bit libcurl..."
|
echo "----Building 32 bit libcurl..."
|
||||||
make
|
make -j `sysctl -n hw.logicalcpu_max`
|
||||||
|
|
||||||
echo "----Creating 32 bit framework..."
|
echo "----Creating 32 bit framework..."
|
||||||
rm -r libcurl.framework
|
rm -r libcurl.framework
|
||||||
@@ -91,19 +105,19 @@ if test ! -z $SDK32; then
|
|||||||
cd Versions
|
cd Versions
|
||||||
ln -fs ${FRAMEWORK_VERSION} Current
|
ln -fs ${FRAMEWORK_VERSION} Current
|
||||||
|
|
||||||
echo TEsting for SDK64
|
echo Testing for SDK64
|
||||||
if test -d $SDK64_DIR; then
|
if test -d $SDK64_DIR; then
|
||||||
echo entering...
|
echo entering...
|
||||||
popd
|
popd
|
||||||
make clean
|
make clean
|
||||||
echo "----Configuring libcurl for 64 bit universal framework..."
|
echo "----Configuring libcurl for 64 bit universal framework..."
|
||||||
./configure --disable-dependency-tracking --disable-static --with-gssapi \
|
./configure --disable-dependency-tracking --disable-static --with-gssapi --with-darwinssl \
|
||||||
CFLAGS="-Os -isysroot $SDK64_DIR $ARCHES64 $MINVER64" \
|
CFLAGS="-Os -isysroot $SDK64_DIR $ARCHES64" \
|
||||||
LDFLAGS="-Wl,-syslibroot,$SDK64_DIR $ARCHES64 $MINVER64 -Wl,-headerpad_max_install_names" \
|
LDFLAGS="-Wl,-syslibroot,$SDK64_DIR $ARCHES64 -Wl,-headerpad_max_install_names" \
|
||||||
CC=$CC
|
CC=$CC
|
||||||
|
|
||||||
echo "----Building 64 bit libcurl..."
|
echo "----Building 64 bit libcurl..."
|
||||||
make
|
make -j `sysctl -n hw.logicalcpu_max`
|
||||||
|
|
||||||
echo "----Appending 64 bit framework to 32 bit framework..."
|
echo "----Appending 64 bit framework to 32 bit framework..."
|
||||||
cp lib/.libs/libcurl.dylib libcurl.framework/${FRAMEWORK_VERSION}/libcurl64
|
cp lib/.libs/libcurl.dylib libcurl.framework/${FRAMEWORK_VERSION}/libcurl64
|
||||||
|
129
Makefile.am
129
Makefile.am
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2013, 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
|
||||||
@@ -30,13 +30,38 @@ CMake/CurlTests.c CMake/FindOpenSSL.cmake CMake/FindZLIB.cmake \
|
|||||||
CMake/OtherTests.cmake CMake/Platforms/WindowsCache.cmake \
|
CMake/OtherTests.cmake CMake/Platforms/WindowsCache.cmake \
|
||||||
CMake/Utilities.cmake include/curl/curlbuild.h.cmake
|
CMake/Utilities.cmake include/curl/curlbuild.h.cmake
|
||||||
|
|
||||||
|
VC6LIBDSP = vs/vc6/lib/vc6libcurl.dsp
|
||||||
|
VC6LIBDSPHEAD = vs/t/lib/vc6_libcurl_dsp.head
|
||||||
|
VC6LIBDSPFOOT = vs/t/lib/vc6_libcurl_dsp.foot
|
||||||
|
|
||||||
|
VC8LIBPRJ = vs/vc8/lib/vc8libcurl.vcproj
|
||||||
|
VC8LIBPRJHEAD = vs/t/lib/vc8_libcurl_prj.head
|
||||||
|
VC8LIBPRJFOOT = vs/t/lib/vc8_libcurl_prj.foot
|
||||||
|
|
||||||
|
VC_DIST = \
|
||||||
|
vs/t/README \
|
||||||
|
$(VC6LIBDSP) $(VC6LIBDSPHEAD) $(VC6LIBDSPFOOT) \
|
||||||
|
$(VC8LIBPRJ) $(VC8LIBPRJHEAD) $(VC8LIBPRJFOOT) \
|
||||||
|
vs/vc6/vc6curl.dsw \
|
||||||
|
vs/vc6/lib/vc6libcurl.dsw \
|
||||||
|
vs/vc6/src/vc6curltool.dsw \
|
||||||
|
vs/vc6/src/vc6curltool.dsp
|
||||||
|
|
||||||
|
VC6LIBDSP_DEPS = $(VC6LIBDSPHEAD) $(VC6LIBDSPFOOT) \
|
||||||
|
Makefile.am lib/Makefile.inc
|
||||||
|
|
||||||
|
VC8LIBPRJ_DEPS = $(VC8LIBPRJHEAD) $(VC8LIBPRJFOOT) \
|
||||||
|
Makefile.am lib/Makefile.inc
|
||||||
|
|
||||||
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 \
|
||||||
|
winbuild/Makefile.msvc.names
|
||||||
|
|
||||||
EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
|
EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
|
||||||
curl-style.el sample.emacs RELEASE-NOTES buildconf \
|
RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework \
|
||||||
libcurl.pc.in vc6curl.dsw MacOSX-Framework Android.mk $(CMAKE_DIST) \
|
$(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) lib/libcurl.vers.in
|
||||||
Makefile.msvc.names $(WINBUILD_DIST) lib/libcurl.vers.in
|
|
||||||
|
CLEANFILES = $(VC6LIBDSP) $(VC8LIBPRJ)
|
||||||
|
|
||||||
bin_SCRIPTS = curl-config
|
bin_SCRIPTS = curl-config
|
||||||
|
|
||||||
@@ -46,6 +71,12 @@ 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
|
||||||
|
include lib/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
|
||||||
find $(distdir) -name "*.dist" -exec rm {} \;
|
find $(distdir) -name "*.dist" -exec rm {} \;
|
||||||
@@ -81,12 +112,15 @@ test-full:
|
|||||||
test-torture:
|
test-torture:
|
||||||
@(cd tests; $(MAKE) all torture-test)
|
@(cd tests; $(MAKE) all torture-test)
|
||||||
|
|
||||||
|
test-am:
|
||||||
|
@(cd tests; $(MAKE) all am-test)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
@(cd docs/examples; $(MAKE) check)
|
@(cd docs/examples; $(MAKE) check)
|
||||||
|
|
||||||
# This is a hook to have 'make clean' also clean up the dosc and the tests
|
# This is a hook to have 'make clean' also clean up the docs and the tests
|
||||||
# dir. The extra check for the Makefiles being present is necessary because
|
# dir. The extra check for the Makefiles being present is necessary because
|
||||||
# 'make distcheck' will make clean first in these directories _before_ it runs
|
# 'make distcheck' will make clean first in these directories _before_ it runs
|
||||||
# this hook.
|
# this hook.
|
||||||
@@ -163,3 +197,86 @@ ca-firefox: lib/firefox-db2pem.sh
|
|||||||
checksrc:
|
checksrc:
|
||||||
cd lib && $(MAKE) checksrc
|
cd lib && $(MAKE) checksrc
|
||||||
cd src && $(MAKE) checksrc
|
cd src && $(MAKE) checksrc
|
||||||
|
|
||||||
|
.PHONY: vc6-ide
|
||||||
|
|
||||||
|
vc6-ide:
|
||||||
|
$(MAKE) $(VC6LIBDSP)
|
||||||
|
|
||||||
|
$(VC6LIBDSP): $(VC6LIBDSP_DEPS)
|
||||||
|
@(echo "generating '$(VC6LIBDSP)'"; \
|
||||||
|
\
|
||||||
|
for dir in 'vs' 'vs/vc6' 'vs/vc6/lib'; do \
|
||||||
|
test -d "$$dir" || mkdir "$$dir" || exit 1; \
|
||||||
|
done; \
|
||||||
|
\
|
||||||
|
dir='..\..\..\lib\'; \
|
||||||
|
body='$(VC6LIBDSP)'.body; \
|
||||||
|
win32_srcs='$(WIN32SOURCES)'; \
|
||||||
|
win32_hdrs='$(WIN32HEADERS)'; \
|
||||||
|
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
||||||
|
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
||||||
|
\
|
||||||
|
echo "# Begin Group \"Source Files\"" > $$body; \
|
||||||
|
echo "" >> $$body; \
|
||||||
|
echo "# PROP Default_Filter \"\"" >> $$body; \
|
||||||
|
for file in $$sorted_srcs; do \
|
||||||
|
echo "# Begin Source File" >> $$body; \
|
||||||
|
echo "" >> $$body; \
|
||||||
|
echo "SOURCE="$$dir$$file >> $$body; \
|
||||||
|
echo "# End Source File" >> $$body; \
|
||||||
|
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); }' \
|
||||||
|
$(srcdir)/$(VC6LIBDSPHEAD) $$body $(srcdir)/$(VC6LIBDSPFOOT) \
|
||||||
|
> $(VC6LIBDSP) || { rm -f $$body; exit 1; }; \
|
||||||
|
\
|
||||||
|
rm -f $$body)
|
||||||
|
|
||||||
|
.PHONY: vc8-ide
|
||||||
|
|
||||||
|
vc8-ide:
|
||||||
|
$(MAKE) $(VC8LIBPRJ)
|
||||||
|
|
||||||
|
$(VC8LIBPRJ): $(VC8LIBPRJ_DEPS)
|
||||||
|
@(echo "generating '$(VC8LIBPRJ)'"; \
|
||||||
|
\
|
||||||
|
for dir in 'vs' 'vs/vc8' 'vs/vc8/lib'; do \
|
||||||
|
test -d "$$dir" || mkdir "$$dir" || exit 1; \
|
||||||
|
done; \
|
||||||
|
\
|
||||||
|
dir='..\..\..\lib\'; \
|
||||||
|
body='$(VC8LIBPRJ)'.body; \
|
||||||
|
win32_srcs='$(WIN32SOURCES)'; \
|
||||||
|
win32_hdrs='$(WIN32HEADERS)'; \
|
||||||
|
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
||||||
|
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
||||||
|
\
|
||||||
|
echo "%tab%%tab%<Filter Name=\"Source Files\">" > $$body; \
|
||||||
|
for file in $$sorted_srcs; do \
|
||||||
|
echo "%tab%%tab%%tab%<File RelativePath=\""$$dir$$file"\"></File>" >> $$body; \
|
||||||
|
done; \
|
||||||
|
echo "%tab%%tab%</Filter>" >> $$body; \
|
||||||
|
echo "%tab%%tab%<Filter Name=\"Header Files\">" >> $$body; \
|
||||||
|
for file in $$sorted_hdrs; do \
|
||||||
|
echo "%tab%%tab%%tab%<File RelativePath=\""$$dir$$file"\"></File>" >> $$body; \
|
||||||
|
done; \
|
||||||
|
echo "%tab%%tab%</Filter>" >> $$body; \
|
||||||
|
\
|
||||||
|
awk '{ gsub(/%tab%/, "\t"); printf("%s\r\n", $$0); }' \
|
||||||
|
$(srcdir)/$(VC8LIBPRJHEAD) $$body $(srcdir)/$(VC8LIBPRJFOOT) \
|
||||||
|
> $(VC8LIBPRJ) || { rm -f $$body; exit 1; }; \
|
||||||
|
\
|
||||||
|
rm -f $$body)
|
||||||
|
|
||||||
|
174
RELEASE-NOTES
174
RELEASE-NOTES
@@ -1,51 +1,88 @@
|
|||||||
Curl and libcurl 7.28.1
|
Curl and libcurl 7.30.0
|
||||||
|
|
||||||
Public curl releases: 130
|
Public curl releases: 132
|
||||||
Command line options: 152
|
Command line options: 152
|
||||||
curl_easy_setopt() options: 199
|
curl_easy_setopt() options: 199
|
||||||
Public functions in libcurl: 58
|
Public functions in libcurl: 58
|
||||||
Known libcurl bindings: 39
|
Known libcurl bindings: 42
|
||||||
Contributors: 979
|
Contributors: 1005
|
||||||
|
|
||||||
|
***
|
||||||
|
krb4 support is up for removal. If you care about it at all, speak up
|
||||||
|
on the curl-library list asap!
|
||||||
|
***
|
||||||
|
|
||||||
This release includes the following changes:
|
This release includes the following changes:
|
||||||
|
|
||||||
o metalink/md5: Use CommonCrypto on Apple operating systems
|
o imap: Changed response tag generation to be completely unique
|
||||||
o href_extractor: new example code extracting href elements
|
o imap: Added support for SASL-IR extension
|
||||||
o NSS can be used for metalink hashing [13]
|
o imap: Added support for the list command
|
||||||
|
o imap: Added support for the append command
|
||||||
|
o imap: Added custom request parsing
|
||||||
|
o imap: Added support to the fetch command for UID and SECTION properties
|
||||||
|
o imap: Added parsing and verification of the UIDVALIDITY mailbox attribute
|
||||||
|
o darwinssl: Make certificate errors less techy
|
||||||
|
o imap/pop3/smtp: Added support for the STARTTLS capability
|
||||||
|
o checksrc: ban use of sprintf, vsprintf, strcat, strncat and gets
|
||||||
|
o curl_global_init() now accepts the CURL_GLOBAL_ACK_EINTR flag [10]
|
||||||
|
o Added CURLMOPT_MAX_HOST_CONNECTIONS, CURLMOPT_MAX_TOTAL_CONNECTIONS for
|
||||||
|
new multi interface connection handling
|
||||||
|
o Added CURLMOPT_MAX_PIPELINE_LENGTH, CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE,
|
||||||
|
CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, CURLMOPT_PIPELINING_SITE_BL and
|
||||||
|
CURLMOPT_PIPELINING_SERVER_BL for new pipelining control [15]
|
||||||
|
|
||||||
This release includes the following bugfixes:
|
This release includes the following bugfixes:
|
||||||
|
|
||||||
o Fix broken libmetalink-aware OpenSSL build
|
o SECURITY ADVISORY: cookie tailmatching to avoid cross-domain leakage [25]
|
||||||
o gnutls: fix the error is fatal logic [1]
|
o darwinssl: Fix build under Leopard
|
||||||
o darwinssl: un-broke iOS build, fix error on server disconnect
|
o DONE: consider callback-aborted transfers premature [1]
|
||||||
o asyn-ares: restore functionality with c-ares < 1.6.1 [2]
|
o ntlm: Fixed memory leaks
|
||||||
o tlsauthtype: deal with the string case insensitively [3]
|
o smtp: Fixed an issue when processing EHLO failure responses
|
||||||
o Fixed MSVC libssh2 static build
|
o pop3: Fixed incorrect return value from pop3_endofresp()
|
||||||
o evhiperfifo: fix the pointer passed to WRITEDATA [6]
|
o pop3: Fixed SASL authentication capability detection
|
||||||
o BUGS: fix the bug tracker URL [4]
|
o pop3: Fixed blocking SSL connect when connecting via POP3S
|
||||||
o winbuild: Use machine type of development environment
|
o imap: Fixed memory leak when performing multiple selects
|
||||||
o FTP: prevent the multi interface from blocking [5]
|
o nss: fix misplaced code enabling non-blocking socket mode
|
||||||
o uniformly use AM_CPPFLAGS, avoid deprecated INCLUDES
|
o AddFormData: prevent only directories from being posted [2]
|
||||||
o httpcustomheader.c: free the headers after use
|
o darwinssl: fix infinite loop if server disconnected abruptly [3]
|
||||||
o fix >2000 bytes POST over NTLM-using proxy [7]
|
o metalink: fix improbable crash parsing metalink filename
|
||||||
o redirects to URLs with fragments [8]
|
o show proper host name on failed resolve
|
||||||
o don't send '#' fragments when using proxy [9]
|
o MacOSX-Framework: Make script work in Xcode 4.0 and later
|
||||||
o OpenSSL: show full issuer string [10]
|
o strlcat: remove function [4]
|
||||||
o fix HTTP auth regression [11]
|
o darwinssl: Fix send glitchiness with data > 32 or so KB [5]
|
||||||
o CURLOPT_SSL_VERIFYHOST: stop supporting the 1 value [12]
|
o polarssl: better 1.1.x and 1.2.x support
|
||||||
o ftp: EPSV-disable fix over SOCKS [14]
|
o various documentation improvements
|
||||||
o Digest: Add microseconds into nounce calculation [15]
|
o multi: NULL pointer reference when closing an unused multi handle [9]
|
||||||
o SCP/SFTP: improve error code used for send failures
|
o SOCKS: fix socks proxy when noproxy matched [7]
|
||||||
o SSL: Several SSL-backend related fixes
|
o install-sh: updated to support multiple source files as arguments [6]
|
||||||
o removed the notorious "additional stuff not fine" debug output
|
o PolarSSL: added human readable error strings
|
||||||
o OpenSSL: Disable SSL/TLS compression - avoid the "CRIME" attack
|
o resolver_error: remove wrong error message output
|
||||||
o FILE: Make upload-writes unbuffered
|
o docs: updates HTML index and general improvements
|
||||||
o custom memory callbacks failure with HTTP proxy (and more) [16]
|
o curlbuild.h.dist: enhance non-configure GCC ABI detection logic
|
||||||
o TFTP: handle resends
|
o sasl: Fixed null pointer reference when decoding empty digest challenge [8]
|
||||||
o autoconf: don't force-disable compiler debug option
|
o easy: do not ignore poll() failures other than EINTR
|
||||||
o winbuild: Fix PDB file output [17]
|
o darwinssl: disable ECC ciphers under Mountain Lion by default
|
||||||
o test2032: spurious failure caused by premature termination [18]
|
o CONNECT: count received headers [11]
|
||||||
o memory leak: CURLOPT_RESOLVE with multi interface [19]
|
o build: fixes for VMS
|
||||||
|
o CONNECT: clear 'rewindaftersend' on success [12]
|
||||||
|
o HTTP proxy: insert slash in URL if missing [13]
|
||||||
|
o hiperfifo: updated to use current libevent API [14]
|
||||||
|
o getinmemory.c: abort the transfer nicely if not enough memory
|
||||||
|
o improved win32 memorytracking
|
||||||
|
o corrected proxy header response headers count [16]
|
||||||
|
o FTP quote operations on re-used connection [17]
|
||||||
|
o tcpkeepalive on win32 [18]
|
||||||
|
o tcpkeepalive on Mac OS X [23]
|
||||||
|
o easy: acknowledge the CURLOPT_MAXCONNECTS option properly [19]
|
||||||
|
o easy interface: restore default MAXCONNECTS to 5
|
||||||
|
o win32: don't set SO_SNDBUF for windows vista or later versions [20]
|
||||||
|
o HTTP: made cookie sort function more deterministic
|
||||||
|
o winssl: Fixed memory leak if connection was not successful
|
||||||
|
o FTP: wait on both connections during active STOR state [21]
|
||||||
|
o connect: treat a failed local bind of an interface as a non-fatal error [22]
|
||||||
|
o darwinssl: disable insecure ciphers by default
|
||||||
|
o FTP: handle "rubbish" in front of directory name in 257 responses [24]
|
||||||
|
o mk-ca-bundle: Fixed lost OpenSSL output with "-t"
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
@@ -54,34 +91,43 @@ 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:
|
||||||
|
|
||||||
Guenter Knauf, Alessandro Ghedini, Nick Zitzmann, Michal Kowalczyk,
|
Kamil Dudka, Steve Holme, Nick Zitzmann, Patricia Muscalu, Dan Fandrich,
|
||||||
Jeff Connelly, Oscar Norlander, Guido Berhoerster, Marc Hoersken,
|
Gisle Vanem, Guenter Knauf, Yang Tse, Oliver Gondža, Aki Koskinen,
|
||||||
Dave Reisner, Jan Ehrhardt, John Suprock, Alessandro Ghedini,
|
Alexander Klauer, Kim Vandry, Willem Sparreboom, Jeremy Huddleston,
|
||||||
Lars Buitinck, Anton Malov, Sergei Nikulov, Patrick Monnerat,
|
Bruno de Carvalho, Rainer Jung, Jeremy Huddleston, Kim Vandry, Jiri Hruska,
|
||||||
Gabriel Sjoberg, Oscar Koeroo, Fabian Keil, Johnny Luong, Cristian Rodríguez,
|
Alexander Klauer, Saran Neti, Alessandro Ghedini, Linus Nielsen Feltzing,
|
||||||
Sebastian Rasmussen, Mark Snelling, Christian Vogt, Marcin Adamski,
|
Martin Jansen, John E. Malmberg, Tom Grace, Patrick Monnerat,
|
||||||
Ajit Dhumale, Alex Gruz
|
Zdenek Pavlas, Myk Taylor, Cédric Deltheil, Robert Wruck, Sam Deane,
|
||||||
|
Clemens Gruber, Marc Hoersken, Tomas Mlcoch, Fredrik Thulin, Steven Gu,
|
||||||
|
Andrew Kurushin, Christian Hägele, Daniel Theron, Bill Middlecamp,
|
||||||
|
Richard Michael, Yamada Yasuharu
|
||||||
|
|
||||||
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://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690551
|
[1] = http://curl.haxx.se/bug/view.cgi?id=1184
|
||||||
[2] = http://curl.haxx.se/bug/view.cgi?id=3577710
|
[2] = http://curl.haxx.se/mail/archive-2013-02/0040.html
|
||||||
[3] = http://curl.haxx.se/bug/view.cgi?id=3578418
|
[3] = http://curl.haxx.se/mail/lib-2013-03/0014.html
|
||||||
[4] = http://curl.haxx.se/bug/view.cgi?id=3582408
|
[4] = http://curl.haxx.se/bug/view.cgi?id=1192
|
||||||
[5] = http://curl.haxx.se/bug/view.cgi?id=3579064
|
[5] = http://curl.haxx.se/mail/lib-2013-02/0145.html
|
||||||
[6] = http://curl.haxx.se/bug/view.cgi?id=3582407
|
[6] = http://curl.haxx.se/bug/view.cgi?id=1195
|
||||||
[7] = http://curl.haxx.se/bug/view.cgi?id=3582321
|
[7] = http://curl.haxx.se/bug/view.cgi?id=1190
|
||||||
[8] = http://curl.haxx.se/bug/view.cgi?id=3581898
|
[8] = http://curl.haxx.se/bug/view.cgi?id=1193
|
||||||
[9] = http://curl.haxx.se/bug/view.cgi?id=3579813
|
[9] = http://curl.haxx.se/bug/view.cgi?id=1194
|
||||||
[10] = http://curl.haxx.se/bug/view.cgi?id=3579286
|
[10] = http://curl.haxx.se/bug/view.cgi?id=1168
|
||||||
[11] = http://curl.haxx.se/bug/view.cgi?id=3582718
|
[11] = http://curl.haxx.se/bug/view.cgi?id=1204
|
||||||
[12] = http://daniel.haxx.se/blog/2012/10/25/libcurl-claimed-to-be-dangerous/
|
[12] = https://groups.google.com/d/msg/msysgit/B31LNftR4BI/KhRTz0iuGmUJ
|
||||||
[13] = http://curl.haxx.se/bug/view.cgi?id=3578163
|
[13] = http://curl.haxx.se/bug/view.cgi?id=1206
|
||||||
[14] = http://curl.haxx.se/bug/view.cgi?id=3586338
|
[14] = http://curl.haxx.se/bug/view.cgi?id=1199
|
||||||
[15] = https://github.com/bagder/curl/pull/50
|
[15] = http://daniel.haxx.se/blog/2013/03/26/better-pipelining-in-libcurl-7-30-0/
|
||||||
[16] = http://curl.haxx.se/mail/lib-2012-11/0125.html
|
[16] = http://curl.haxx.se/bug/view.cgi?id=1204
|
||||||
[17] = http://curl.haxx.se/bug/view.cgi?id=3586741
|
[17] = http://curl.haxx.se/mail/lib-2013-03/0319.html
|
||||||
[18] = http://curl.haxx.se/mail/lib-2012-11/0095.html
|
[18] = http://curl.haxx.se/bug/view.cgi?id=1209
|
||||||
[19] = http://curl.haxx.se/bug/view.cgi?id=3575448
|
[19] = http://curl.haxx.se/bug/view.cgi?id=1212
|
||||||
|
[20] = http://curl.haxx.se/bug/view.cgi?id=1188
|
||||||
|
[21] = http://curl.haxx.se/bug/view.cgi?id=1183
|
||||||
|
[22] = http://curl.haxx.se/bug/view.cgi?id=1189
|
||||||
|
[23] = http://curl.haxx.se/bug/view.cgi?id=1214
|
||||||
|
[24] = http://curl.haxx.se/mail/lib-2013-04/0113.html
|
||||||
|
[25] = http://curl.haxx.se/docs/adv_20130412.html
|
||||||
|
12
TODO-RELEASE
12
TODO-RELEASE
@@ -1,14 +1,4 @@
|
|||||||
To be addressed in 7.29
|
To be addressed in ...
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
310 - a new authentication callback
|
|
||||||
|
|
||||||
312 - custom Content-Length appears in CONNECT, solve it by offering a
|
|
||||||
separate option to provide headers for the CONNECT request:
|
|
||||||
http://curl.haxx.se/mail/lib-2012-09/0059.html
|
|
||||||
|
|
||||||
317 - CURLINFO_SSL_TRUST to return SSL-specific data for a darwinssl build
|
|
||||||
|
|
||||||
322 - pipelining improvements
|
|
||||||
|
|
||||||
327 -
|
327 -
|
||||||
|
268
acinclude.m4
268
acinclude.m4
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2013, 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,7 +130,7 @@ int main (void)
|
|||||||
]])
|
]])
|
||||||
],[
|
],[
|
||||||
tst_lib_xnet_required="yes"
|
tst_lib_xnet_required="yes"
|
||||||
LIBS="$LIBS -lxnet"
|
LIBS="-lxnet $LIBS"
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT([$tst_lib_xnet_required])
|
AC_MSG_RESULT([$tst_lib_xnet_required])
|
||||||
])
|
])
|
||||||
@@ -150,6 +150,7 @@ AC_DEFUN([CURL_CHECK_AIX_ALL_SOURCE], [
|
|||||||
#endif])
|
#endif])
|
||||||
AC_BEFORE([$0], [AC_SYS_LARGEFILE])dnl
|
AC_BEFORE([$0], [AC_SYS_LARGEFILE])dnl
|
||||||
AC_BEFORE([$0], [CURL_CONFIGURE_REENTRANT])dnl
|
AC_BEFORE([$0], [CURL_CONFIGURE_REENTRANT])dnl
|
||||||
|
AC_BEFORE([$0], [CURL_CONFIGURE_PULL_SYS_POLL])dnl
|
||||||
AC_MSG_CHECKING([if OS is AIX (to define _ALL_SOURCE)])
|
AC_MSG_CHECKING([if OS is AIX (to define _ALL_SOURCE)])
|
||||||
AC_EGREP_CPP([yes_this_is_aix],[
|
AC_EGREP_CPP([yes_this_is_aix],[
|
||||||
#ifdef _AIX
|
#ifdef _AIX
|
||||||
@@ -1596,213 +1597,6 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
|
|||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_CHECK_FUNC_RECVFROM
|
|
||||||
dnl -------------------------------------------------
|
|
||||||
dnl Test if the socket recvfrom() function is available,
|
|
||||||
dnl and check its return type and the types of its
|
|
||||||
dnl arguments. If the function succeeds HAVE_RECVFROM
|
|
||||||
dnl will be defined, defining the types of the arguments
|
|
||||||
dnl in RECVFROM_TYPE_ARG1, RECVFROM_TYPE_ARG2, and so on
|
|
||||||
dnl to RECVFROM_TYPE_ARG6, defining also the type of the
|
|
||||||
dnl function return value in RECVFROM_TYPE_RETV.
|
|
||||||
dnl Notice that the types returned for pointer arguments
|
|
||||||
dnl will actually be the type pointed by the pointer.
|
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
|
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK])dnl
|
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK2])dnl
|
|
||||||
AC_CHECK_HEADERS(sys/types.h sys/socket.h)
|
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([for recvfrom])
|
|
||||||
AC_LINK_IFELSE([
|
|
||||||
AC_LANG_PROGRAM([[
|
|
||||||
#undef inline
|
|
||||||
#ifdef HAVE_WINDOWS_H
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
|
||||||
#include <winsock2.h>
|
|
||||||
#else
|
|
||||||
#ifdef HAVE_WINSOCK_H
|
|
||||||
#include <winsock.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
|
||||||
#include <sys/types.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
]],[[
|
|
||||||
recvfrom(0, 0, 0, 0, 0, 0);
|
|
||||||
]])
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
curl_cv_recvfrom="yes"
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
curl_cv_recvfrom="no"
|
|
||||||
])
|
|
||||||
#
|
|
||||||
if test "$curl_cv_recvfrom" = "yes"; then
|
|
||||||
AC_CACHE_CHECK([types of args and return type for recvfrom],
|
|
||||||
[curl_cv_func_recvfrom_args], [
|
|
||||||
curl_cv_func_recvfrom_args="unknown"
|
|
||||||
for recvfrom_retv in 'int' 'ssize_t'; do
|
|
||||||
for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
|
|
||||||
for recvfrom_arg2 in 'char *' 'void *'; do
|
|
||||||
for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
|
|
||||||
for recvfrom_arg4 in 'int' 'unsigned int'; do
|
|
||||||
for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
|
|
||||||
for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
|
|
||||||
if test "$curl_cv_func_recvfrom_args" = "unknown"; then
|
|
||||||
AC_COMPILE_IFELSE([
|
|
||||||
AC_LANG_PROGRAM([[
|
|
||||||
#undef inline
|
|
||||||
#ifdef HAVE_WINDOWS_H
|
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
|
||||||
#include <winsock2.h>
|
|
||||||
#else
|
|
||||||
#ifdef HAVE_WINSOCK_H
|
|
||||||
#include <winsock.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#define RECVFROMCALLCONV PASCAL
|
|
||||||
#else
|
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
|
||||||
#include <sys/types.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#endif
|
|
||||||
#define RECVFROMCALLCONV
|
|
||||||
#endif
|
|
||||||
extern $recvfrom_retv RECVFROMCALLCONV
|
|
||||||
recvfrom($recvfrom_arg1, $recvfrom_arg2,
|
|
||||||
$recvfrom_arg3, $recvfrom_arg4,
|
|
||||||
$recvfrom_arg5, $recvfrom_arg6);
|
|
||||||
]],[[
|
|
||||||
$recvfrom_arg1 s=0;
|
|
||||||
$recvfrom_arg2 buf=0;
|
|
||||||
$recvfrom_arg3 len=0;
|
|
||||||
$recvfrom_arg4 flags=0;
|
|
||||||
$recvfrom_arg5 addr=0;
|
|
||||||
$recvfrom_arg6 addrlen=0;
|
|
||||||
$recvfrom_retv res=0;
|
|
||||||
res = recvfrom(s, buf, len, flags, addr, addrlen);
|
|
||||||
]])
|
|
||||||
],[
|
|
||||||
curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
]) # AC-CACHE-CHECK
|
|
||||||
# Nearly last minute change for this release starts here
|
|
||||||
AC_DEFINE_UNQUOTED(HAVE_RECVFROM, 1,
|
|
||||||
[Define to 1 if you have the recvfrom function.])
|
|
||||||
ac_cv_func_recvfrom="yes"
|
|
||||||
# Nearly last minute change for this release ends here
|
|
||||||
if test "$curl_cv_func_recvfrom_args" = "unknown"; then
|
|
||||||
AC_MSG_WARN([Cannot find proper types to use for recvfrom args])
|
|
||||||
else
|
|
||||||
recvfrom_prev_IFS=$IFS; IFS=','
|
|
||||||
set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
|
|
||||||
IFS=$recvfrom_prev_IFS
|
|
||||||
shift
|
|
||||||
#
|
|
||||||
recvfrom_ptrt_arg2=$[2]
|
|
||||||
recvfrom_qual_ptrt_arg5=$[5]
|
|
||||||
recvfrom_ptrt_arg6=$[6]
|
|
||||||
#
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG1, $[1],
|
|
||||||
[Define to the type of arg 1 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG3, $[3],
|
|
||||||
[Define to the type of arg 3 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG4, $[4],
|
|
||||||
[Define to the type of arg 4 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_RETV, $[7],
|
|
||||||
[Define to the function return type for recvfrom.])
|
|
||||||
#
|
|
||||||
prev_sh_opts=$-
|
|
||||||
#
|
|
||||||
case $prev_sh_opts in
|
|
||||||
*f*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
set -f
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
#
|
|
||||||
case "$recvfrom_qual_ptrt_arg5" in
|
|
||||||
const*)
|
|
||||||
recvfrom_qual_arg5=const
|
|
||||||
recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
recvfrom_qual_arg5=
|
|
||||||
recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
#
|
|
||||||
recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
|
|
||||||
recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
|
|
||||||
recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
|
|
||||||
#
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG2, $recvfrom_type_arg2,
|
|
||||||
[Define to the type pointed by arg 2 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_QUAL_ARG5, $recvfrom_qual_arg5,
|
|
||||||
[Define to the type qualifier pointed by arg 5 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG5, $recvfrom_type_arg5,
|
|
||||||
[Define to the type pointed by arg 5 for recvfrom.])
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6, $recvfrom_type_arg6,
|
|
||||||
[Define to the type pointed by arg 6 for recvfrom.])
|
|
||||||
#
|
|
||||||
if test "$recvfrom_type_arg2" = "void"; then
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG2_IS_VOID, 1,
|
|
||||||
[Define to 1 if the type pointed by arg 2 for recvfrom is void.])
|
|
||||||
fi
|
|
||||||
if test "$recvfrom_type_arg5" = "void"; then
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG5_IS_VOID, 1,
|
|
||||||
[Define to 1 if the type pointed by arg 5 for recvfrom is void.])
|
|
||||||
fi
|
|
||||||
if test "$recvfrom_type_arg6" = "void"; then
|
|
||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6_IS_VOID, 1,
|
|
||||||
[Define to 1 if the type pointed by arg 6 for recvfrom is void.])
|
|
||||||
fi
|
|
||||||
#
|
|
||||||
case $prev_sh_opts in
|
|
||||||
*f*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
set +f
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
#
|
|
||||||
AC_DEFINE_UNQUOTED(HAVE_RECVFROM, 1,
|
|
||||||
[Define to 1 if you have the recvfrom function.])
|
|
||||||
ac_cv_func_recvfrom="yes"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
AC_MSG_WARN([Unable to link function recvfrom])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_CHECK_MSG_NOSIGNAL
|
dnl CURL_CHECK_MSG_NOSIGNAL
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Check for MSG_NOSIGNAL
|
dnl Check for MSG_NOSIGNAL
|
||||||
@@ -2153,7 +1947,6 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
|
|||||||
else
|
else
|
||||||
LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
|
LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
|
||||||
fi
|
fi
|
||||||
CURL_LIBS="$CURL_LIBS $curl_cv_gclk_LIBS"
|
|
||||||
AC_MSG_RESULT([$curl_cv_gclk_LIBS])
|
AC_MSG_RESULT([$curl_cv_gclk_LIBS])
|
||||||
ac_cv_func_clock_gettime="yes"
|
ac_cv_func_clock_gettime="yes"
|
||||||
;;
|
;;
|
||||||
@@ -2310,6 +2103,8 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
|
|||||||
AC_REQUIRE([CURL_INCLUDES_SYS_SOCKET])dnl
|
AC_REQUIRE([CURL_INCLUDES_SYS_SOCKET])dnl
|
||||||
AC_REQUIRE([CURL_PREPROCESS_CALLCONV])dnl
|
AC_REQUIRE([CURL_PREPROCESS_CALLCONV])dnl
|
||||||
#
|
#
|
||||||
|
AC_BEFORE([$0], [CURL_CONFIGURE_PULL_SYS_POLL])dnl
|
||||||
|
#
|
||||||
AC_MSG_CHECKING([for curl_socklen_t data type])
|
AC_MSG_CHECKING([for curl_socklen_t data type])
|
||||||
curl_typeof_curl_socklen_t="unknown"
|
curl_typeof_curl_socklen_t="unknown"
|
||||||
for arg1 in int SOCKET; do
|
for arg1 in int SOCKET; do
|
||||||
@@ -2418,6 +2213,45 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl CURL_CONFIGURE_PULL_SYS_POLL
|
||||||
|
dnl -------------------------------------------------
|
||||||
|
dnl Find out if system header file sys/poll.h must be included by the
|
||||||
|
dnl external interface, making appropriate definitions for template file
|
||||||
|
dnl include/curl/curlbuild.h.in to properly configure and use the library.
|
||||||
|
dnl
|
||||||
|
dnl The need for the sys/poll.h inclusion arises mainly to properly
|
||||||
|
dnl interface AIX systems which define macros 'events' and 'revents'.
|
||||||
|
|
||||||
|
AC_DEFUN([CURL_CONFIGURE_PULL_SYS_POLL], [
|
||||||
|
AC_REQUIRE([CURL_INCLUDES_POLL])dnl
|
||||||
|
#
|
||||||
|
tst_poll_events_macro_defined="unknown"
|
||||||
|
#
|
||||||
|
AC_COMPILE_IFELSE([
|
||||||
|
AC_LANG_PROGRAM([[
|
||||||
|
$curl_includes_poll
|
||||||
|
]],[[
|
||||||
|
#if defined(events) || defined(revents)
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
|
force compilation error
|
||||||
|
#endif
|
||||||
|
]])
|
||||||
|
],[
|
||||||
|
tst_poll_events_macro_defined="yes"
|
||||||
|
],[
|
||||||
|
tst_poll_events_macro_defined="no"
|
||||||
|
])
|
||||||
|
#
|
||||||
|
if test "$tst_poll_events_macro_defined" = "yes"; then
|
||||||
|
if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
|
||||||
|
CURL_DEFINE_UNQUOTED([CURL_PULL_SYS_POLL_H])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_CHECK_FUNC_SELECT
|
dnl CURL_CHECK_FUNC_SELECT
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Test if the socket select() function is available,
|
dnl Test if the socket select() function is available,
|
||||||
@@ -3215,8 +3049,8 @@ AC_DEFUN([CURL_EXPORT_PCDIR], [
|
|||||||
|
|
||||||
dnl CURL_CHECK_PKGCONFIG ($module, [$pcdir])
|
dnl CURL_CHECK_PKGCONFIG ($module, [$pcdir])
|
||||||
dnl ------------------------
|
dnl ------------------------
|
||||||
dnl search for the pkg-config tool (if not cross-compiling). Set the PKGCONFIG
|
dnl search for the pkg-config tool. Set the PKGCONFIG variable to hold the
|
||||||
dnl variable to hold the path to it, or 'no' if not found/present.
|
dnl path to it, or 'no' if not found/present.
|
||||||
dnl
|
dnl
|
||||||
dnl If pkg-config is present, check that it has info about the $module or
|
dnl If pkg-config is present, check that it has info about the $module or
|
||||||
dnl return "no" anyway!
|
dnl return "no" anyway!
|
||||||
@@ -3228,15 +3062,7 @@ AC_DEFUN([CURL_CHECK_PKGCONFIG], [
|
|||||||
|
|
||||||
PKGCONFIG="no"
|
PKGCONFIG="no"
|
||||||
|
|
||||||
if test x$cross_compiling = xyes; then
|
AC_PATH_TOOL( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
|
||||||
dnl see if there's a pkg-specific for this host setup
|
|
||||||
AC_PATH_PROG( PKGCONFIG, ${host}-pkg-config, no,
|
|
||||||
$PATH:/usr/bin:/usr/local/bin)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$PKGCONFIG = xno; then
|
|
||||||
AC_PATH_PROG( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$PKGCONFIG != xno; then
|
if test x$PKGCONFIG != xno; then
|
||||||
AC_MSG_CHECKING([for $1 options with pkg-config])
|
AC_MSG_CHECKING([for $1 options with pkg-config])
|
||||||
|
@@ -12,9 +12,9 @@ ECHO ERROR: This file shall only be used with a curl git tree checkout.
|
|||||||
goto end_all
|
goto end_all
|
||||||
:start_doing
|
:start_doing
|
||||||
|
|
||||||
REM create hugehelp.c
|
REM create tool_hugehelp.c
|
||||||
if not exist src\hugehelp.c.cvs goto end_hugehelp_c
|
if not exist src\tool_hugehelp.c.cvs goto end_hugehelp_c
|
||||||
copy /Y src\hugehelp.c.cvs src\hugehelp.c
|
copy /Y src\tool_hugehelp.c.cvs src\tool_hugehelp.c
|
||||||
:end_hugehelp_c
|
:end_hugehelp_c
|
||||||
|
|
||||||
REM create Makefile
|
REM create Makefile
|
||||||
|
467
configure.ac
467
configure.ac
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2013, 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
|
||||||
@@ -27,15 +27,16 @@ dnl We don't know the version number "statically" so we use a dash here
|
|||||||
AC_INIT([curl], [-], [a suitable curl mailing list: http://curl.haxx.se/mail/])
|
AC_INIT([curl], [-], [a suitable curl mailing list: http://curl.haxx.se/mail/])
|
||||||
|
|
||||||
XC_OVR_ZZ50
|
XC_OVR_ZZ50
|
||||||
|
XC_OVR_ZZ60
|
||||||
CURL_OVERRIDE_AUTOCONF
|
CURL_OVERRIDE_AUTOCONF
|
||||||
|
|
||||||
dnl configure script copyright
|
dnl configure script copyright
|
||||||
AC_COPYRIGHT([Copyright (c) 1998 - 2012 Daniel Stenberg, <daniel@haxx.se>
|
AC_COPYRIGHT([Copyright (c) 1998 - 2013 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])
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR([lib/urldata.h])
|
AC_CONFIG_SRCDIR([lib/urldata.h])
|
||||||
AM_CONFIG_HEADER(lib/curl_config.h include/curl/curlbuild.h)
|
AC_CONFIG_HEADERS(lib/curl_config.h include/curl/curlbuild.h)
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
@@ -47,7 +48,7 @@ CURL_CHECK_OPTION_CURLDEBUG
|
|||||||
CURL_CHECK_OPTION_SYMBOL_HIDING
|
CURL_CHECK_OPTION_SYMBOL_HIDING
|
||||||
CURL_CHECK_OPTION_ARES
|
CURL_CHECK_OPTION_ARES
|
||||||
|
|
||||||
CURL_CHECK_PATH_SEPARATOR_REQUIRED
|
XC_CHECK_PATH_SEPARATOR
|
||||||
|
|
||||||
#
|
#
|
||||||
# save the configure arguments
|
# save the configure arguments
|
||||||
@@ -124,6 +125,7 @@ fi
|
|||||||
|
|
||||||
dnl figure out the libcurl version
|
dnl figure out the libcurl version
|
||||||
CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
|
CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
|
||||||
|
XC_CHECK_PROG_CC
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
AC_MSG_CHECKING([curl version])
|
AC_MSG_CHECKING([curl version])
|
||||||
AC_MSG_RESULT($CURLVERSION)
|
AC_MSG_RESULT($CURLVERSION)
|
||||||
@@ -145,7 +147,7 @@ AC_SUBST(PKGADD_VENDOR)
|
|||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl initialize all the info variables
|
dnl initialize all the info variables
|
||||||
curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl} )"
|
curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )"
|
||||||
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_krb4_msg="no (--with-krb4*)"
|
curl_krb4_msg="no (--with-krb4*)"
|
||||||
@@ -168,9 +170,10 @@ curl_verbose_msg="enabled (--disable-verbose)"
|
|||||||
init_ssl_msg=${curl_ssl_msg}
|
init_ssl_msg=${curl_ssl_msg}
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Save anything in $LIBS for later
|
dnl Save some initial values the user might have provided
|
||||||
dnl
|
dnl
|
||||||
ALL_LIBS=$LIBS
|
INITIAL_LDFLAGS=$LDFLAGS
|
||||||
|
INITIAL_LIBS=$LIBS
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Detect the canonical host and target build environment
|
dnl Detect the canonical host and target build environment
|
||||||
@@ -181,7 +184,6 @@ dnl Get system canonical name
|
|||||||
AC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS])
|
AC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS])
|
||||||
|
|
||||||
dnl Checks for programs.
|
dnl Checks for programs.
|
||||||
CURL_CHECK_PROG_CC
|
|
||||||
|
|
||||||
dnl Our curl_off_t internal and external configure settings
|
dnl Our curl_off_t internal and external configure settings
|
||||||
CURL_CONFIGURE_CURL_OFF_T
|
CURL_CONFIGURE_CURL_OFF_T
|
||||||
@@ -196,74 +198,50 @@ CURL_CONFIGURE_REENTRANT
|
|||||||
dnl check for how to do large files
|
dnl check for how to do large files
|
||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
|
|
||||||
dnl support building of Windows DLLs
|
XC_LIBTOOL
|
||||||
AC_LIBTOOL_WIN32_DLL
|
|
||||||
|
|
||||||
dnl force libtool to build static libraries with PIC on AMD64-Linux & FreeBSD
|
#
|
||||||
AC_MSG_CHECKING([if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)])
|
# Automake conditionals based on libtool related checks
|
||||||
case $host in
|
#
|
||||||
x86_64*linux*|amd64*freebsd*|ia64*freebsd*)
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
with_pic=yes
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([if compiler is icc (to build with PIC)])
|
AM_CONDITIONAL([CURL_LT_SHLIB_USE_VERSION_INFO],
|
||||||
case $CC in
|
[test "x$xc_lt_shlib_use_version_info" = 'xyes'])
|
||||||
icc | */icc)
|
AM_CONDITIONAL([CURL_LT_SHLIB_USE_NO_UNDEFINED],
|
||||||
AC_MSG_RESULT([yes])
|
[test "x$xc_lt_shlib_use_no_undefined" = 'xyes'])
|
||||||
with_pic=yes
|
AM_CONDITIONAL([CURL_LT_SHLIB_USE_MIMPURE_TEXT],
|
||||||
;;
|
[test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'])
|
||||||
*)
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
dnl libtool setup
|
#
|
||||||
AC_PROG_LIBTOOL
|
# Due to libtool and automake machinery limitations of not allowing
|
||||||
|
# specifying separate CPPFLAGS or CFLAGS when compiling objects for
|
||||||
|
# inclusion of these in shared or static libraries, we are forced to
|
||||||
|
# build using separate configure runs for shared and static libraries
|
||||||
|
# on systems where different CPPFLAGS or CFLAGS are mandatory in order
|
||||||
|
# to compile objects for each kind of library. Notice that relying on
|
||||||
|
# the '-DPIC' CFLAG that libtool provides is not valid given that the
|
||||||
|
# user might for example choose to build static libraries with PIC.
|
||||||
|
#
|
||||||
|
|
||||||
AC_MSG_CHECKING([if we need -mimpure-text])
|
#
|
||||||
mimpure=no
|
# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
|
||||||
case $host in
|
# targeting a static library and not building its shared counterpart.
|
||||||
*-*-solaris2*)
|
#
|
||||||
if test "$GCC" = "yes"; then
|
|
||||||
mimpure="yes"
|
AM_CONDITIONAL([USE_CPPFLAG_CURL_STATICLIB],
|
||||||
fi
|
[test "x$xc_lt_build_static_only" = 'xyes'])
|
||||||
;;
|
|
||||||
*)
|
#
|
||||||
;;
|
# Make staticlib CPPFLAG variable and its definition visible in output
|
||||||
esac
|
# files unconditionally, providing an empty definition unless strictly
|
||||||
AC_MSG_RESULT($mimpure)
|
# targeting a static library and not building its shared counterpart.
|
||||||
AM_CONDITIONAL(MIMPURE, test x$mimpure = xyes)
|
#
|
||||||
|
|
||||||
|
CPPFLAG_CURL_STATICLIB=
|
||||||
|
if test "x$xc_lt_build_static_only" = 'xyes'; then
|
||||||
|
CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
|
||||||
|
fi
|
||||||
|
AC_SUBST([CPPFLAG_CURL_STATICLIB])
|
||||||
|
|
||||||
AC_MSG_CHECKING([if we need BUILDING_LIBCURL])
|
|
||||||
use_cppflag_building_libcurl="no"
|
|
||||||
use_cppflag_curl_staticlib="no"
|
|
||||||
CPPFLAG_CURL_STATICLIB=""
|
|
||||||
case $host in
|
|
||||||
*-*-mingw*)
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
use_cppflag_building_libcurl="yes"
|
|
||||||
AC_MSG_CHECKING([if we need CURL_STATICLIB])
|
|
||||||
if test "X$enable_shared" = "Xno"
|
|
||||||
then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
use_cppflag_curl_staticlib="yes"
|
|
||||||
CPPFLAG_CURL_STATICLIB="-DCURL_STATICLIB"
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
AM_CONDITIONAL(USE_CPPFLAG_BUILDING_LIBCURL, test x$use_cppflag_building_libcurl = xyes)
|
|
||||||
AM_CONDITIONAL(USE_CPPFLAG_CURL_STATICLIB, test x$use_cppflag_curl_staticlib = xyes)
|
|
||||||
AC_SUBST(CPPFLAG_CURL_STATICLIB)
|
|
||||||
|
|
||||||
# Determine whether all dependent libraries must be specified when linking
|
# Determine whether all dependent libraries must be specified when linking
|
||||||
if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
|
if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
|
||||||
@@ -273,10 +251,7 @@ else
|
|||||||
REQUIRE_LIB_DEPS=yes
|
REQUIRE_LIB_DEPS=yes
|
||||||
fi
|
fi
|
||||||
AC_SUBST(REQUIRE_LIB_DEPS)
|
AC_SUBST(REQUIRE_LIB_DEPS)
|
||||||
|
AM_CONDITIONAL(USE_EXPLICIT_LIB_DEPS, test x$REQUIRE_LIB_DEPS = xyes)
|
||||||
dnl The install stuff has already been taken care of by the automake stuff
|
|
||||||
dnl AC_PROG_INSTALL
|
|
||||||
AC_PROG_MAKE_SET
|
|
||||||
|
|
||||||
dnl check if there's a way to force code inline
|
dnl check if there's a way to force code inline
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
@@ -305,11 +280,9 @@ fi
|
|||||||
|
|
||||||
CURL_CHECK_COMPILER_HALT_ON_ERROR
|
CURL_CHECK_COMPILER_HALT_ON_ERROR
|
||||||
CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE
|
CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE
|
||||||
|
CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH
|
||||||
CURL_CHECK_COMPILER_SYMBOL_HIDING
|
CURL_CHECK_COMPILER_SYMBOL_HIDING
|
||||||
|
|
||||||
CURL_CHECK_NO_UNDEFINED
|
|
||||||
AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes)
|
|
||||||
|
|
||||||
CURL_CHECK_CURLDEBUG
|
CURL_CHECK_CURLDEBUG
|
||||||
AM_CONDITIONAL(CURLDEBUG, test x$want_curldebug = xyes)
|
AM_CONDITIONAL(CURLDEBUG, test x$want_curldebug = xyes)
|
||||||
|
|
||||||
@@ -681,6 +654,20 @@ dnl **********************************************************************
|
|||||||
dnl Checks for libraries.
|
dnl Checks for libraries.
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether to use libgcc])
|
||||||
|
AC_ARG_ENABLE(libgcc,
|
||||||
|
AC_HELP_STRING([--enable-libgcc],[use libgcc when linking]),
|
||||||
|
[ case "$enableval" in
|
||||||
|
yes)
|
||||||
|
LIBS="-lgcc $LIBS"
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
;;
|
||||||
|
*) AC_MSG_RESULT(no)
|
||||||
|
;;
|
||||||
|
esac ],
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
)
|
||||||
|
|
||||||
CURL_CHECK_LIB_XNET
|
CURL_CHECK_LIB_XNET
|
||||||
|
|
||||||
dnl gethostbyname without lib or in the nsl lib?
|
dnl gethostbyname without lib or in the nsl lib?
|
||||||
@@ -689,7 +676,7 @@ AC_CHECK_FUNC(gethostbyname,
|
|||||||
],
|
],
|
||||||
[ AC_CHECK_LIB(nsl, gethostbyname,
|
[ AC_CHECK_LIB(nsl, gethostbyname,
|
||||||
[HAVE_GETHOSTBYNAME="1"
|
[HAVE_GETHOSTBYNAME="1"
|
||||||
LIBS="$LIBS -lnsl"
|
LIBS="-lnsl $LIBS"
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
@@ -698,7 +685,7 @@ then
|
|||||||
dnl gethostbyname in the socket lib?
|
dnl gethostbyname in the socket lib?
|
||||||
AC_CHECK_LIB(socket, gethostbyname,
|
AC_CHECK_LIB(socket, gethostbyname,
|
||||||
[HAVE_GETHOSTBYNAME="1"
|
[HAVE_GETHOSTBYNAME="1"
|
||||||
LIBS="$LIBS -lsocket"
|
LIBS="-lsocket $LIBS"
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -709,7 +696,7 @@ then
|
|||||||
[HAVE_GETHOSTBYNAME="1"
|
[HAVE_GETHOSTBYNAME="1"
|
||||||
CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
|
CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
|
||||||
LDFLAGS="-L/dev/env/WATT_ROOT/lib"
|
LDFLAGS="-L/dev/env/WATT_ROOT/lib"
|
||||||
LIBS="$LIBS -lwatt"
|
LIBS="-lwatt $LIBS"
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -828,7 +815,7 @@ then
|
|||||||
dnl gethostbyname in the network lib - for Haiku OS
|
dnl gethostbyname in the network lib - for Haiku OS
|
||||||
AC_CHECK_LIB(network, gethostbyname,
|
AC_CHECK_LIB(network, gethostbyname,
|
||||||
[HAVE_GETHOSTBYNAME="1"
|
[HAVE_GETHOSTBYNAME="1"
|
||||||
LIBS="$LIBS -lnetwork"
|
LIBS="-lnetwork $LIBS"
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -837,7 +824,7 @@ then
|
|||||||
dnl gethostbyname in the net lib - for BeOS
|
dnl gethostbyname in the net lib - for BeOS
|
||||||
AC_CHECK_LIB(net, gethostbyname,
|
AC_CHECK_LIB(net, gethostbyname,
|
||||||
[HAVE_GETHOSTBYNAME="1"
|
[HAVE_GETHOSTBYNAME="1"
|
||||||
LIBS="$LIBS -lnet"
|
LIBS="-lnet $LIBS"
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -869,25 +856,108 @@ CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC
|
|||||||
|
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
dnl The preceding library checks are all potentially useful for test
|
dnl The preceding library checks are all potentially useful for test
|
||||||
dnl servers (for providing networking support). Save the list of required
|
dnl servers and libtest cases which require networking and clock_gettime
|
||||||
dnl libraries at this point for use while linking those test servers.
|
dnl support. Save the list of required libraries at this point for use
|
||||||
|
dnl while linking those test servers and programs.
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
TEST_SERVER_LIBS=$LIBS
|
CURL_NETWORK_AND_TIME_LIBS=$LIBS
|
||||||
|
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
AC_MSG_CHECKING([whether to use libgcc])
|
dnl Check for the presence of ZLIB libraries and headers
|
||||||
AC_ARG_ENABLE(libgcc,
|
dnl **********************************************************************
|
||||||
AC_HELP_STRING([--enable-libgcc],[use libgcc when linking]),
|
|
||||||
[ case "$enableval" in
|
dnl Check for & handle argument to --with-zlib.
|
||||||
yes)
|
|
||||||
ALL_LIBS="$ALL_LIBS -lgcc"
|
clean_CPPFLAGS=$CPPFLAGS
|
||||||
AC_MSG_RESULT(yes)
|
clean_LDFLAGS=$LDFLAGS
|
||||||
;;
|
clean_LIBS=$LIBS
|
||||||
*) AC_MSG_RESULT(no)
|
ZLIB_LIBS=""
|
||||||
;;
|
AC_ARG_WITH(zlib,
|
||||||
esac ],
|
AC_HELP_STRING([--with-zlib=PATH],[search for zlib in PATH])
|
||||||
AC_MSG_RESULT(no)
|
AC_HELP_STRING([--without-zlib],[disable use of zlib]),
|
||||||
)
|
[OPT_ZLIB="$withval"])
|
||||||
|
|
||||||
|
if test "$OPT_ZLIB" = "no" ; then
|
||||||
|
AC_MSG_WARN([zlib disabled])
|
||||||
|
else
|
||||||
|
if test "$OPT_ZLIB" = "yes" ; then
|
||||||
|
OPT_ZLIB=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$OPT_ZLIB" ; then
|
||||||
|
dnl check for the lib first without setting any new path, since many
|
||||||
|
dnl people have it in the default path
|
||||||
|
|
||||||
|
AC_CHECK_LIB(z, inflateEnd,
|
||||||
|
dnl libz found, set the variable
|
||||||
|
[HAVE_LIBZ="1"
|
||||||
|
LIBS="-lz $LIBS"],
|
||||||
|
dnl if no lib found, try /usr/local
|
||||||
|
[OPT_ZLIB="/usr/local"])
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl Add a nonempty path to the compiler flags
|
||||||
|
if test -n "$OPT_ZLIB"; then
|
||||||
|
CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
|
||||||
|
LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CHECK_HEADER(zlib.h,
|
||||||
|
[
|
||||||
|
dnl zlib.h was found
|
||||||
|
HAVE_ZLIB_H="1"
|
||||||
|
dnl if the lib wasn't found already, try again with the new paths
|
||||||
|
if test "$HAVE_LIBZ" != "1"; then
|
||||||
|
AC_CHECK_LIB(z, gzread,
|
||||||
|
[
|
||||||
|
dnl the lib was found!
|
||||||
|
HAVE_LIBZ="1"
|
||||||
|
LIBS="-lz $LIBS"
|
||||||
|
],
|
||||||
|
[ CPPFLAGS=$clean_CPPFLAGS
|
||||||
|
LDFLAGS=$clean_LDFLAGS])
|
||||||
|
fi
|
||||||
|
],
|
||||||
|
[
|
||||||
|
dnl zlib.h was not found, restore the flags
|
||||||
|
CPPFLAGS=$clean_CPPFLAGS
|
||||||
|
LDFLAGS=$clean_LDFLAGS]
|
||||||
|
)
|
||||||
|
|
||||||
|
if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
|
||||||
|
then
|
||||||
|
AC_MSG_WARN([configure found only the libz lib, not the header file!])
|
||||||
|
HAVE_LIBZ=""
|
||||||
|
CPPFLAGS=$clean_CPPFLAGS
|
||||||
|
LDFLAGS=$clean_LDFLAGS
|
||||||
|
LIBS=$clean_LIBS
|
||||||
|
elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
|
||||||
|
then
|
||||||
|
AC_MSG_WARN([configure found only the libz header file, not the lib!])
|
||||||
|
CPPFLAGS=$clean_CPPFLAGS
|
||||||
|
LDFLAGS=$clean_LDFLAGS
|
||||||
|
LIBS=$clean_LIBS
|
||||||
|
elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
|
||||||
|
then
|
||||||
|
dnl both header and lib were found!
|
||||||
|
AC_SUBST(HAVE_LIBZ)
|
||||||
|
AC_DEFINE(HAVE_ZLIB_H, 1, [if you have the zlib.h header file])
|
||||||
|
AC_DEFINE(HAVE_LIBZ, 1, [if zlib is available])
|
||||||
|
|
||||||
|
ZLIB_LIBS="-lz"
|
||||||
|
LIBS="-lz $clean_LIBS"
|
||||||
|
|
||||||
|
dnl replace 'HAVE_LIBZ' in the automake makefile.ams
|
||||||
|
AMFIXLIB="1"
|
||||||
|
AC_MSG_NOTICE([found both libz and libz.h header])
|
||||||
|
curl_zlib_msg="enabled"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl set variable for use in automakefile(s)
|
||||||
|
AM_CONDITIONAL(HAVE_LIBZ, test x"$AMFIXLIB" = x1)
|
||||||
|
AC_SUBST(ZLIB_LIBS)
|
||||||
|
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
dnl Check for LDAP
|
dnl Check for LDAP
|
||||||
@@ -1313,29 +1383,29 @@ if test x"$want_gss" = xyes; then
|
|||||||
if test -n "$gnu_gss"; then
|
if test -n "$gnu_gss"; then
|
||||||
curl_gss_msg="enabled (GNU GSS)"
|
curl_gss_msg="enabled (GNU GSS)"
|
||||||
LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
|
LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
|
||||||
LIBS="$LIBS -lgss"
|
LIBS="-lgss $LIBS"
|
||||||
elif test -z "$GSSAPI_LIB_DIR"; then
|
elif test -z "$GSSAPI_LIB_DIR"; then
|
||||||
case $host in
|
case $host in
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
LIBS="$LIBS -lgssapi_krb5 -lresolv"
|
LIBS="-lgssapi_krb5 -lresolv $LIBS"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
|
if 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="$LIBS $gss_libs"
|
LIBS="$gss_libs $LIBS"
|
||||||
elif test "$GSSAPI_ROOT" != "yes"; then
|
elif test "$GSSAPI_ROOT" != "yes"; then
|
||||||
LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
|
LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
|
||||||
LIBS="$LIBS -lgssapi"
|
LIBS="-lgssapi $LIBS"
|
||||||
else
|
else
|
||||||
LIBS="$LIBS -lgssapi"
|
LIBS="-lgssapi $LIBS"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
|
LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
|
||||||
LIBS="$LIBS -lgssapi"
|
LIBS="-lgssapi $LIBS"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
CPPFLAGS="$save_CPPFLAGS"
|
CPPFLAGS="$save_CPPFLAGS"
|
||||||
@@ -1482,7 +1552,7 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
|
|||||||
dnl the argument to --with-ssl we don't know what
|
dnl the argument to --with-ssl we don't know what
|
||||||
dnl additional libs may be necessary. Hope that we
|
dnl additional libs may be necessary. Hope that we
|
||||||
dnl don't need any.
|
dnl don't need any.
|
||||||
LIBS="$LIBS $SSL_LIBS"
|
LIBS="$SSL_LIBS $LIBS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -1534,7 +1604,7 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
|
|||||||
dnl we didn't find the SSL lib, try the RSAglue/rsaref stuff
|
dnl we didn't find the SSL lib, try the RSAglue/rsaref stuff
|
||||||
AC_MSG_CHECKING(for ssl with RSAglue/rsaref libs in use);
|
AC_MSG_CHECKING(for ssl with RSAglue/rsaref libs in use);
|
||||||
OLIBS=$LIBS
|
OLIBS=$LIBS
|
||||||
LIBS="$LIBS -lRSAglue -lrsaref"
|
LIBS="-lRSAglue -lrsaref $LIBS"
|
||||||
AC_CHECK_LIB(ssl, SSL_connect)
|
AC_CHECK_LIB(ssl, SSL_connect)
|
||||||
if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
|
if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
|
||||||
dnl still no SSL_connect
|
dnl still no SSL_connect
|
||||||
@@ -1649,92 +1719,6 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl **********************************************************************
|
|
||||||
dnl Check for the presence of ZLIB libraries and headers
|
|
||||||
dnl **********************************************************************
|
|
||||||
|
|
||||||
dnl Check for & handle argument to --with-zlib.
|
|
||||||
|
|
||||||
_cppflags=$CPPFLAGS
|
|
||||||
_ldflags=$LDFLAGS
|
|
||||||
AC_ARG_WITH(zlib,
|
|
||||||
AC_HELP_STRING([--with-zlib=PATH],[search for zlib in PATH])
|
|
||||||
AC_HELP_STRING([--without-zlib],[disable use of zlib]),
|
|
||||||
[OPT_ZLIB="$withval"])
|
|
||||||
|
|
||||||
if test "$OPT_ZLIB" = "no" ; then
|
|
||||||
AC_MSG_WARN([zlib disabled])
|
|
||||||
else
|
|
||||||
if test "$OPT_ZLIB" = "yes" ; then
|
|
||||||
OPT_ZLIB=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -z "$OPT_ZLIB" ; then
|
|
||||||
dnl check for the lib first without setting any new path, since many
|
|
||||||
dnl people have it in the default path
|
|
||||||
|
|
||||||
AC_CHECK_LIB(z, inflateEnd,
|
|
||||||
dnl libz found, set the variable
|
|
||||||
[HAVE_LIBZ="1"],
|
|
||||||
dnl if no lib found, try /usr/local
|
|
||||||
[OPT_ZLIB="/usr/local"])
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Add a nonempty path to the compiler flags
|
|
||||||
if test -n "$OPT_ZLIB"; then
|
|
||||||
CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
|
|
||||||
LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_CHECK_HEADER(zlib.h,
|
|
||||||
[
|
|
||||||
dnl zlib.h was found
|
|
||||||
HAVE_ZLIB_H="1"
|
|
||||||
dnl if the lib wasn't found already, try again with the new paths
|
|
||||||
if test "$HAVE_LIBZ" != "1"; then
|
|
||||||
AC_CHECK_LIB(z, gzread,
|
|
||||||
[
|
|
||||||
dnl the lib was found!
|
|
||||||
HAVE_LIBZ="1"
|
|
||||||
],
|
|
||||||
[ CPPFLAGS=$_cppflags
|
|
||||||
LDFLAGS=$_ldflags])
|
|
||||||
fi
|
|
||||||
],
|
|
||||||
[
|
|
||||||
dnl zlib.h was not found, restore the flags
|
|
||||||
CPPFLAGS=$_cppflags
|
|
||||||
LDFLAGS=$_ldflags]
|
|
||||||
)
|
|
||||||
|
|
||||||
if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
|
|
||||||
then
|
|
||||||
AC_MSG_WARN([configure found only the libz lib, not the header file!])
|
|
||||||
HAVE_LIBZ=""
|
|
||||||
elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
|
|
||||||
then
|
|
||||||
AC_MSG_WARN([configure found only the libz header file, not the lib!])
|
|
||||||
elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
|
|
||||||
then
|
|
||||||
dnl both header and lib were found!
|
|
||||||
AC_SUBST(HAVE_LIBZ)
|
|
||||||
AC_DEFINE(HAVE_ZLIB_H, 1, [if you have the zlib.h header file])
|
|
||||||
AC_DEFINE(HAVE_LIBZ, 1, [if zlib is available])
|
|
||||||
|
|
||||||
CURL_LIBS="$CURL_LIBS -lz"
|
|
||||||
LIBS="$LIBS -lz"
|
|
||||||
|
|
||||||
dnl replace 'HAVE_LIBZ' in the automake makefile.ams
|
|
||||||
AMFIXLIB="1"
|
|
||||||
AC_MSG_NOTICE([found both libz and libz.h header])
|
|
||||||
curl_zlib_msg="enabled"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl set variable for use in automakefile(s)
|
|
||||||
AM_CONDITIONAL(HAVE_LIBZ, test x"$AMFIXLIB" = x1)
|
|
||||||
|
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
dnl Check for the random seed preferences
|
dnl Check for the random seed preferences
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
@@ -1799,6 +1783,11 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
if test X"$OPT_GNUTLS" != Xno; then
|
if test X"$OPT_GNUTLS" != Xno; then
|
||||||
|
|
||||||
addld=""
|
addld=""
|
||||||
|
addlib=""
|
||||||
|
gtlslib=""
|
||||||
|
version=""
|
||||||
|
addcflags=""
|
||||||
|
|
||||||
if test "x$OPT_GNUTLS" = "xyes"; then
|
if test "x$OPT_GNUTLS" = "xyes"; then
|
||||||
dnl this is with no partiular path given
|
dnl this is with no partiular path given
|
||||||
CURL_CHECK_PKGCONFIG(gnutls)
|
CURL_CHECK_PKGCONFIG(gnutls)
|
||||||
@@ -1849,9 +1838,9 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
|
|
||||||
CLEANLIBS="$LIBS"
|
CLEANLIBS="$LIBS"
|
||||||
CLEANCPPFLAGS="$CPPFLAGS"
|
CLEANCPPFLAGS="$CPPFLAGS"
|
||||||
CLEADLDFLAGS="$LDFLAGS"
|
CLEANLDFLAGS="$LDFLAGS"
|
||||||
|
|
||||||
LIBS="$LIBS $addlib"
|
LIBS="$addlib $LIBS"
|
||||||
LDFLAGS="$LDFLAGS $addld"
|
LDFLAGS="$LDFLAGS $addld"
|
||||||
if test "$addcflags" != "-I/usr/include"; then
|
if test "$addcflags" != "-I/usr/include"; then
|
||||||
CPPFLAGS="$CPPFLAGS $addcflags"
|
CPPFLAGS="$CPPFLAGS $addcflags"
|
||||||
@@ -1916,9 +1905,9 @@ if test "$GNUTLS_ENABLED" = "1"; then
|
|||||||
if test "$USE_GNUTLS_NETTLE" = "1"; then
|
if test "$USE_GNUTLS_NETTLE" = "1"; then
|
||||||
AC_DEFINE(USE_GNUTLS_NETTLE, 1, [if GnuTLS uses nettle as crypto backend])
|
AC_DEFINE(USE_GNUTLS_NETTLE, 1, [if GnuTLS uses nettle as crypto backend])
|
||||||
AC_SUBST(USE_GNUTLS_NETTLE, [1])
|
AC_SUBST(USE_GNUTLS_NETTLE, [1])
|
||||||
LIBS="$LIBS -lnettle"
|
LIBS="-lnettle $LIBS"
|
||||||
else
|
else
|
||||||
LIBS="$LIBS -lgcrypt"
|
LIBS="-lgcrypt $LIBS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -1969,6 +1958,11 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
addld=""
|
||||||
|
addlib=""
|
||||||
|
addcflags=""
|
||||||
|
polarssllib=""
|
||||||
|
|
||||||
if test "x$USE_POLARSSL" != "xyes"; then
|
if test "x$USE_POLARSSL" != "xyes"; then
|
||||||
dnl add the path and test again
|
dnl add the path and test again
|
||||||
addld=-L$OPT_POLARSSL/lib$libsuff
|
addld=-L$OPT_POLARSSL/lib$libsuff
|
||||||
@@ -1997,8 +1991,7 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
if test "x$USE_POLARSSL" = "xyes"; then
|
if test "x$USE_POLARSSL" = "xyes"; then
|
||||||
AC_MSG_NOTICE([detected PolarSSL])
|
AC_MSG_NOTICE([detected PolarSSL])
|
||||||
|
|
||||||
CURL_LIBS="$CURL_LIBS -lpolarssl"
|
LIBS="-lpolarssl $LIBS"
|
||||||
LIBS="$LIBS -lpolarssl"
|
|
||||||
|
|
||||||
if test -n "$polarssllib"; then
|
if test -n "$polarssllib"; then
|
||||||
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
|
||||||
@@ -2053,6 +2046,11 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
addld=""
|
||||||
|
addlib=""
|
||||||
|
addcflags=""
|
||||||
|
cyassllib=""
|
||||||
|
|
||||||
if test "x$USE_CYASSL" != "xyes"; then
|
if test "x$USE_CYASSL" != "xyes"; then
|
||||||
dnl add the path and test again
|
dnl add the path and test again
|
||||||
addld=-L$OPT_CYASSL/lib$libsuff
|
addld=-L$OPT_CYASSL/lib$libsuff
|
||||||
@@ -2081,8 +2079,7 @@ 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])
|
||||||
|
|
||||||
CURL_LIBS="$CURL_LIBS -lcyassl -lm"
|
LIBS="-lcyassl -lm $LIBS"
|
||||||
LIBS="$LIBS -lcyassl -lm"
|
|
||||||
|
|
||||||
if test -n "$cyassllib"; then
|
if test -n "$cyassllib"; then
|
||||||
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
|
||||||
@@ -2117,6 +2114,13 @@ AC_HELP_STRING([--without-nss], [disable NSS detection]),
|
|||||||
if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
||||||
|
|
||||||
if test X"$OPT_NSS" != Xno; then
|
if test X"$OPT_NSS" != Xno; then
|
||||||
|
|
||||||
|
addld=""
|
||||||
|
addlib=""
|
||||||
|
addcflags=""
|
||||||
|
nssprefix=""
|
||||||
|
version=""
|
||||||
|
|
||||||
if test "x$OPT_NSS" = "xyes"; then
|
if test "x$OPT_NSS" = "xyes"; then
|
||||||
|
|
||||||
CURL_CHECK_PKGCONFIG(nss)
|
CURL_CHECK_PKGCONFIG(nss)
|
||||||
@@ -2154,7 +2158,7 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
|
|||||||
CLEANLIBS="$LIBS"
|
CLEANLIBS="$LIBS"
|
||||||
CLEANCPPFLAGS="$CPPFLAGS"
|
CLEANCPPFLAGS="$CPPFLAGS"
|
||||||
|
|
||||||
LIBS="$LIBS $addlib"
|
LIBS="$addlib $LIBS"
|
||||||
if test "$addcflags" != "-I/usr/include"; then
|
if test "$addcflags" != "-I/usr/include"; then
|
||||||
CPPFLAGS="$CPPFLAGS $addcflags"
|
CPPFLAGS="$CPPFLAGS $addcflags"
|
||||||
fi
|
fi
|
||||||
@@ -2258,7 +2262,7 @@ fi
|
|||||||
|
|
||||||
if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
|
if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
|
||||||
AC_MSG_WARN([SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more.])
|
AC_MSG_WARN([SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more.])
|
||||||
AC_MSG_WARN([Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls or --with-winssl to address this.])
|
AC_MSG_WARN([Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this.])
|
||||||
else
|
else
|
||||||
# SSL is enabled, genericly
|
# SSL is enabled, genericly
|
||||||
AC_SUBST(SSL_ENABLED)
|
AC_SUBST(SSL_ENABLED)
|
||||||
@@ -2284,11 +2288,12 @@ AC_HELP_STRING([--without-libmetalink], [disable libmetalink detection]),
|
|||||||
|
|
||||||
if test X"$OPT_LIBMETALINK" != Xno; then
|
if test X"$OPT_LIBMETALINK" != Xno; then
|
||||||
|
|
||||||
addlib=""
|
|
||||||
addld=""
|
addld=""
|
||||||
|
addlib=""
|
||||||
addcflags=""
|
addcflags=""
|
||||||
version=""
|
version=""
|
||||||
libmetalinklib=""
|
libmetalinklib=""
|
||||||
|
|
||||||
PKGTEST="no"
|
PKGTEST="no"
|
||||||
if test "x$OPT_LIBMETALINK" = "xyes"; then
|
if test "x$OPT_LIBMETALINK" = "xyes"; then
|
||||||
dnl this is with no partiular path given
|
dnl this is with no partiular path given
|
||||||
@@ -2348,10 +2353,10 @@ if test X"$OPT_LIBMETALINK" != Xno; then
|
|||||||
AC_DEFINE(USE_METALINK, 1, [Define to enable metalink support])
|
AC_DEFINE(USE_METALINK, 1, [Define to enable metalink support])
|
||||||
LIBMETALINK_LIBS=$addlib
|
LIBMETALINK_LIBS=$addlib
|
||||||
LIBMETALINK_LDFLAGS=$addld
|
LIBMETALINK_LDFLAGS=$addld
|
||||||
LIBMETALINK_CFLAGS=$addcflags
|
LIBMETALINK_CPPFLAGS=$addcflags
|
||||||
AC_SUBST([LIBMETALINK_LIBS])
|
AC_SUBST([LIBMETALINK_LIBS])
|
||||||
AC_SUBST([LIBMETALINK_LDFLAGS])
|
AC_SUBST([LIBMETALINK_LDFLAGS])
|
||||||
AC_SUBST([LIBMETALINK_CFLAGS])
|
AC_SUBST([LIBMETALINK_CPPFLAGS])
|
||||||
curl_mtlnk_msg="enabled"
|
curl_mtlnk_msg="enabled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -2408,7 +2413,7 @@ if test X"$OPT_LIBSSH2" != Xno; then
|
|||||||
|
|
||||||
LDFLAGS="$LDFLAGS $LD_SSH2"
|
LDFLAGS="$LDFLAGS $LD_SSH2"
|
||||||
CPPFLAGS="$CPPFLAGS $CPP_SSH2"
|
CPPFLAGS="$CPPFLAGS $CPP_SSH2"
|
||||||
LIBS="$LIBS $LIB_SSH2"
|
LIBS="$LIB_SSH2 $LIBS"
|
||||||
|
|
||||||
AC_CHECK_LIB(ssh2, libssh2_channel_open_ex)
|
AC_CHECK_LIB(ssh2, libssh2_channel_open_ex)
|
||||||
|
|
||||||
@@ -2504,7 +2509,7 @@ if test X"$OPT_LIBRTMP" != Xno; then
|
|||||||
|
|
||||||
LDFLAGS="$LDFLAGS $LD_RTMP"
|
LDFLAGS="$LDFLAGS $LD_RTMP"
|
||||||
CPPFLAGS="$CPPFLAGS $CPP_RTMP"
|
CPPFLAGS="$CPPFLAGS $CPP_RTMP"
|
||||||
LIBS="$LIBS $LIB_RTMP"
|
LIBS="$LIB_RTMP $LIBS"
|
||||||
|
|
||||||
AC_CHECK_LIB(rtmp, RTMP_Init,
|
AC_CHECK_LIB(rtmp, RTMP_Init,
|
||||||
[
|
[
|
||||||
@@ -2577,8 +2582,10 @@ AC_MSG_RESULT(no)
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_SUBST(VERSIONED_FLAVOUR, ["$versioned_symbols_flavour"])
|
AC_SUBST([CURL_LT_SHLIB_VERSIONED_FLAVOUR],
|
||||||
AM_CONDITIONAL(VERSIONED_SYMBOLS, test "x$versioned_symbols" = "xyes")
|
["$versioned_symbols_flavour"])
|
||||||
|
AM_CONDITIONAL([CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS],
|
||||||
|
[test "x$versioned_symbols" = 'xyes'])
|
||||||
|
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl check winidn option before other IDN libraries
|
dnl check winidn option before other IDN libraries
|
||||||
@@ -2948,6 +2955,8 @@ AC_CHECK_TYPE([bool],[
|
|||||||
|
|
||||||
CURL_CONFIGURE_CURL_SOCKLEN_T
|
CURL_CONFIGURE_CURL_SOCKLEN_T
|
||||||
|
|
||||||
|
CURL_CONFIGURE_PULL_SYS_POLL
|
||||||
|
|
||||||
TYPE_IN_ADDR_T
|
TYPE_IN_ADDR_T
|
||||||
|
|
||||||
TYPE_SOCKADDR_STORAGE
|
TYPE_SOCKADDR_STORAGE
|
||||||
@@ -2959,7 +2968,6 @@ AC_TYPE_SIGNAL
|
|||||||
CURL_CHECK_FUNC_SELECT
|
CURL_CHECK_FUNC_SELECT
|
||||||
|
|
||||||
CURL_CHECK_FUNC_RECV
|
CURL_CHECK_FUNC_RECV
|
||||||
CURL_CHECK_FUNC_RECVFROM
|
|
||||||
CURL_CHECK_FUNC_SEND
|
CURL_CHECK_FUNC_SEND
|
||||||
CURL_CHECK_MSG_NOSIGNAL
|
CURL_CHECK_MSG_NOSIGNAL
|
||||||
|
|
||||||
@@ -3001,12 +3009,10 @@ CURL_CHECK_FUNC_SIGSETJMP
|
|||||||
CURL_CHECK_FUNC_SOCKET
|
CURL_CHECK_FUNC_SOCKET
|
||||||
CURL_CHECK_FUNC_SOCKETPAIR
|
CURL_CHECK_FUNC_SOCKETPAIR
|
||||||
CURL_CHECK_FUNC_STRCASECMP
|
CURL_CHECK_FUNC_STRCASECMP
|
||||||
CURL_CHECK_FUNC_STRCASESTR
|
|
||||||
CURL_CHECK_FUNC_STRCMPI
|
CURL_CHECK_FUNC_STRCMPI
|
||||||
CURL_CHECK_FUNC_STRDUP
|
CURL_CHECK_FUNC_STRDUP
|
||||||
CURL_CHECK_FUNC_STRERROR_R
|
CURL_CHECK_FUNC_STRERROR_R
|
||||||
CURL_CHECK_FUNC_STRICMP
|
CURL_CHECK_FUNC_STRICMP
|
||||||
CURL_CHECK_FUNC_STRLCAT
|
|
||||||
CURL_CHECK_FUNC_STRNCASECMP
|
CURL_CHECK_FUNC_STRNCASECMP
|
||||||
CURL_CHECK_FUNC_STRNCMPI
|
CURL_CHECK_FUNC_STRNCMPI
|
||||||
CURL_CHECK_FUNC_STRNICMP
|
CURL_CHECK_FUNC_STRNICMP
|
||||||
@@ -3310,33 +3316,21 @@ AC_HELP_STRING([--disable-soname-bump],[Disable enforced SONAME bump]),
|
|||||||
)
|
)
|
||||||
AM_CONDITIONAL(SONAME_BUMP, test x$soname_bump = xyes)
|
AM_CONDITIONAL(SONAME_BUMP, test x$soname_bump = xyes)
|
||||||
|
|
||||||
|
|
||||||
dnl ************************************************************
|
|
||||||
if test ! -z "$winsock_LIB"; then
|
|
||||||
|
|
||||||
dnl If ws2_32 is wanted, make sure it is the _last_ lib in LIBS (makes
|
|
||||||
dnl things work when built with c-ares). But we can't just move it last
|
|
||||||
dnl since then other stuff (SSL) won't build. So we simply append it to the
|
|
||||||
dnl end.
|
|
||||||
|
|
||||||
LIBS="$LIBS $winsock_LIB"
|
|
||||||
TEST_SERVER_LIBS="$TEST_SERVER_LIBS $winsock_LIB"
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl All the library dependencies put into $LIB apply to libcurl only.
|
dnl All the library dependencies put into $LIB apply to libcurl only.
|
||||||
dnl Those in $CURL_LIBS apply to the curl command-line client only.
|
|
||||||
dnl Those in $TEST_SERVER_LIBS apply to test servers only.
|
|
||||||
dnl Those in $ALL_LIBS apply to all targets, including test targets.
|
|
||||||
dnl
|
dnl
|
||||||
LIBCURL_LIBS=$LIBS
|
LIBCURL_LIBS=$LIBS
|
||||||
|
|
||||||
AC_SUBST(LIBCURL_LIBS)
|
AC_SUBST(LIBCURL_LIBS)
|
||||||
AC_SUBST(CURL_LIBS)
|
|
||||||
AC_SUBST(TEST_SERVER_LIBS)
|
|
||||||
AC_SUBST(CURL_NETWORK_LIBS)
|
AC_SUBST(CURL_NETWORK_LIBS)
|
||||||
LIBS=$ALL_LIBS dnl LIBS is a magic variable that's used for every link
|
AC_SUBST(CURL_NETWORK_AND_TIME_LIBS)
|
||||||
|
|
||||||
|
dnl BLANK_AT_MAKETIME may be used in our Makefile.am files to blank
|
||||||
|
dnl LIBS variable used in generated makefile at makefile processing
|
||||||
|
dnl time. Doing this functionally prevents LIBS from being used for
|
||||||
|
dnl all link targets in given makefile.
|
||||||
|
BLANK_AT_MAKETIME=
|
||||||
|
AC_SUBST(BLANK_AT_MAKETIME)
|
||||||
|
|
||||||
AM_CONDITIONAL(CROSSCOMPILING, test x$cross_compiling = xyes)
|
AM_CONDITIONAL(CROSSCOMPILING, test x$cross_compiling = xyes)
|
||||||
|
|
||||||
@@ -3469,14 +3463,15 @@ squeeze DEFS
|
|||||||
squeeze LDFLAGS
|
squeeze LDFLAGS
|
||||||
squeeze LIBS
|
squeeze LIBS
|
||||||
|
|
||||||
squeeze CURL_LIBS
|
|
||||||
squeeze LIBCURL_LIBS
|
squeeze LIBCURL_LIBS
|
||||||
squeeze TEST_SERVER_LIBS
|
|
||||||
squeeze CURL_NETWORK_LIBS
|
squeeze CURL_NETWORK_LIBS
|
||||||
|
squeeze CURL_NETWORK_AND_TIME_LIBS
|
||||||
|
|
||||||
squeeze SUPPORT_FEATURES
|
squeeze SUPPORT_FEATURES
|
||||||
squeeze SUPPORT_PROTOCOLS
|
squeeze SUPPORT_PROTOCOLS
|
||||||
|
|
||||||
|
XC_CHECK_BUILD_FLAGS
|
||||||
|
|
||||||
if test "x$want_curldebug_assumed" = "xyes" &&
|
if test "x$want_curldebug_assumed" = "xyes" &&
|
||||||
test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
|
test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
|
||||||
ac_configure_args="$ac_configure_args --enable-curldebug"
|
ac_configure_args="$ac_configure_args --enable-curldebug"
|
||||||
@@ -3492,6 +3487,8 @@ AC_CONFIG_FILES([Makefile \
|
|||||||
lib/Makefile \
|
lib/Makefile \
|
||||||
lib/libcurl.vers \
|
lib/libcurl.vers \
|
||||||
tests/Makefile \
|
tests/Makefile \
|
||||||
|
tests/certs/Makefile \
|
||||||
|
tests/certs/scripts/Makefile \
|
||||||
tests/data/Makefile \
|
tests/data/Makefile \
|
||||||
tests/server/Makefile \
|
tests/server/Makefile \
|
||||||
tests/libtest/Makefile \
|
tests/libtest/Makefile \
|
||||||
|
@@ -71,62 +71,62 @@ while test $# -gt 0; do
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
--ca)
|
--ca)
|
||||||
echo "@CURL_CA_BUNDLE@"
|
echo "@CURL_CA_BUNDLE@"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--cc)
|
--cc)
|
||||||
echo "@CC@"
|
echo "@CC@"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--prefix)
|
--prefix)
|
||||||
echo "$prefix"
|
echo "$prefix"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--feature|--features)
|
--feature|--features)
|
||||||
for feature in @SUPPORT_FEATURES@ ""; do
|
for feature in @SUPPORT_FEATURES@ ""; do
|
||||||
test -n "$feature" && echo "$feature"
|
test -n "$feature" && echo "$feature"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--protocols)
|
--protocols)
|
||||||
for protocol in @SUPPORT_PROTOCOLS@; do
|
for protocol in @SUPPORT_PROTOCOLS@; do
|
||||||
echo "$protocol"
|
echo "$protocol"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--version)
|
--version)
|
||||||
echo libcurl @CURLVERSION@
|
echo libcurl @CURLVERSION@
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--checkfor)
|
--checkfor)
|
||||||
checkfor=$2
|
checkfor=$2
|
||||||
cmajor=`echo $checkfor | cut -d. -f1`
|
cmajor=`echo $checkfor | cut -d. -f1`
|
||||||
cminor=`echo $checkfor | cut -d. -f2`
|
cminor=`echo $checkfor | cut -d. -f2`
|
||||||
# when extracting the patch part we strip off everything after a
|
# when extracting the patch part we strip off everything after a
|
||||||
# dash as that's used for things like version 1.2.3-CVS
|
# dash as that's used for things like version 1.2.3-CVS
|
||||||
cpatch=`echo $checkfor | cut -d. -f3 | cut -d- -f1`
|
cpatch=`echo $checkfor | cut -d. -f3 | cut -d- -f1`
|
||||||
checknum=`echo "$cmajor*256*256 + $cminor*256 + ${cpatch:-0}" | bc`
|
checknum=`echo "$cmajor*256*256 + $cminor*256 + ${cpatch:-0}" | bc`
|
||||||
numuppercase=`echo @VERSIONNUM@ | tr 'a-f' 'A-F'`
|
numuppercase=`echo @VERSIONNUM@ | tr 'a-f' 'A-F'`
|
||||||
nownum=`echo "obase=10; ibase=16; $numuppercase" | bc`
|
nownum=`echo "obase=10; ibase=16; $numuppercase" | bc`
|
||||||
|
|
||||||
if test "$nownum" -ge "$checknum"; then
|
if test "$nownum" -ge "$checknum"; then
|
||||||
# silent success
|
# silent success
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "requested version $checkfor is newer than existing @CURLVERSION@"
|
echo "requested version $checkfor is newer than existing @CURLVERSION@"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--vernum)
|
--vernum)
|
||||||
echo @VERSIONNUM@
|
echo @VERSIONNUM@
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--help)
|
--help)
|
||||||
usage 0
|
usage 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--cflags)
|
--cflags)
|
||||||
if test "X$cppflag_curl_staticlib" = "X-DCURL_STATICLIB"; then
|
if test "X$cppflag_curl_staticlib" = "X-DCURL_STATICLIB"; then
|
||||||
@@ -134,38 +134,38 @@ while test $# -gt 0; do
|
|||||||
else
|
else
|
||||||
CPPFLAG_CURL_STATICLIB=""
|
CPPFLAG_CURL_STATICLIB=""
|
||||||
fi
|
fi
|
||||||
if test "X@includedir@" = "X/usr/include"; then
|
if test "X@includedir@" = "X/usr/include"; then
|
||||||
echo "$CPPFLAG_CURL_STATICLIB"
|
echo "$CPPFLAG_CURL_STATICLIB"
|
||||||
else
|
else
|
||||||
echo "${CPPFLAG_CURL_STATICLIB}-I@includedir@"
|
echo "${CPPFLAG_CURL_STATICLIB}-I@includedir@"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--libs)
|
--libs)
|
||||||
if test "X@libdir@" != "X/usr/lib" -a "X@libdir@" != "X/usr/lib64"; then
|
if test "X@libdir@" != "X/usr/lib" -a "X@libdir@" != "X/usr/lib64"; then
|
||||||
CURLLIBDIR="-L@libdir@ "
|
CURLLIBDIR="-L@libdir@ "
|
||||||
else
|
else
|
||||||
CURLLIBDIR=""
|
CURLLIBDIR=""
|
||||||
fi
|
fi
|
||||||
if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then
|
if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then
|
||||||
echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@ @LIBS@
|
echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@
|
||||||
else
|
else
|
||||||
echo ${CURLLIBDIR}-lcurl @LIBS@
|
echo ${CURLLIBDIR}-lcurl
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--static-libs)
|
--static-libs)
|
||||||
echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@ @LIBS@
|
echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--configure)
|
--configure)
|
||||||
echo @CONFIGURE_OPTIONS@
|
echo @CONFIGURE_OPTIONS@
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "unknown option: $1"
|
echo "unknown option: $1"
|
||||||
usage 1
|
usage 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
@@ -1,50 +0,0 @@
|
|||||||
;;;; Emacs Lisp help for writing curl code. ;;;;
|
|
||||||
|
|
||||||
;;; The curl hacker's C conventions.
|
|
||||||
;;; See the sample.emacs file on how this file can be made to take
|
|
||||||
;;; effect automatically when editing curl source files.
|
|
||||||
|
|
||||||
(defconst curl-c-style
|
|
||||||
'((c-basic-offset . 2)
|
|
||||||
(c-comment-only-line-offset . 0)
|
|
||||||
(c-hanging-braces-alist . ((substatement-open before after)))
|
|
||||||
(c-offsets-alist . ((topmost-intro . 0)
|
|
||||||
(topmost-intro-cont . 0)
|
|
||||||
(substatement . +)
|
|
||||||
(substatement-open . 0)
|
|
||||||
(statement-case-intro . +)
|
|
||||||
(statement-case-open . 0)
|
|
||||||
(case-label . 0)
|
|
||||||
))
|
|
||||||
)
|
|
||||||
"Curl C Programming Style")
|
|
||||||
|
|
||||||
(defun curl-code-cleanup ()
|
|
||||||
"no docs"
|
|
||||||
(interactive)
|
|
||||||
(untabify (point-min) (point-max))
|
|
||||||
(delete-trailing-whitespace)
|
|
||||||
)
|
|
||||||
|
|
||||||
;; Customizations for all of c-mode, c++-mode, and objc-mode
|
|
||||||
(defun curl-c-mode-common-hook ()
|
|
||||||
"Curl C mode hook"
|
|
||||||
;; add curl style and set it for the current buffer
|
|
||||||
(c-add-style "curl" curl-c-style t)
|
|
||||||
(setq tab-width 8
|
|
||||||
indent-tabs-mode nil ; Use spaces. Not tabs.
|
|
||||||
comment-column 40
|
|
||||||
c-font-lock-extra-types (append '("bool" "CURL" "CURLcode" "ssize_t" "size_t" "curl_socklen_t" "fd_set" "time_t" "curl_off_t" "curl_socket_t" "in_addr_t" "CURLSHcode" "CURLMcode" "Curl_addrinfo"))
|
|
||||||
)
|
|
||||||
;; keybindings for C, C++, and Objective-C. We can put these in
|
|
||||||
;; c-mode-base-map because of inheritance ...
|
|
||||||
(define-key c-mode-base-map "\M-q" 'c-fill-paragraph)
|
|
||||||
(define-key c-mode-base-map "\M-m" 'curl-code-cleanup)
|
|
||||||
(setq c-recognize-knr-p nil)
|
|
||||||
;;; (add-hook 'write-file-hooks 'delete-trailing-whitespace t)
|
|
||||||
(setq show-trailing-whitespace t)
|
|
||||||
)
|
|
||||||
|
|
||||||
;; Set this is in your .emacs if you want to use the c-mode-hook as
|
|
||||||
;; defined here right out of the box.
|
|
||||||
; (add-hook 'c-mode-common-hook 'curl-c-mode-common-hook)
|
|
@@ -6,14 +6,14 @@
|
|||||||
|
|
||||||
libcurl bindings
|
libcurl bindings
|
||||||
|
|
||||||
Creative people have written bindings or interfaces for various environments
|
Creative people have written bindings or interfaces for various environments
|
||||||
and programming languages. Using one of these allows you to take advantage of
|
and programming languages. Using one of these allows you to take advantage of
|
||||||
curl powers from within your favourite language or system.
|
curl powers from within your favourite language or system.
|
||||||
|
|
||||||
This is a list of all known interfaces as of this writing.
|
This is a list of all known interfaces as of this writing.
|
||||||
|
|
||||||
The bindings listed below are not part of the curl/libcurl distribution
|
The bindings listed below are not part of the curl/libcurl distribution
|
||||||
archives, but must be downloaded and installed separately.
|
archives, but must be downloaded and installed separately.
|
||||||
|
|
||||||
Ada95
|
Ada95
|
||||||
|
|
||||||
@@ -41,7 +41,10 @@ Ch
|
|||||||
|
|
||||||
Cocoa
|
Cocoa
|
||||||
|
|
||||||
Written by Dan Wood
|
BBHTTP: written by Bruno de Carvalho
|
||||||
|
https://github.com/brunodecarvalho/BBHTTP
|
||||||
|
|
||||||
|
curlhandle: Written by Dan Wood
|
||||||
http://curlhandle.sourceforge.net/
|
http://curlhandle.sourceforge.net/
|
||||||
|
|
||||||
D
|
D
|
||||||
@@ -55,6 +58,7 @@ Dylan
|
|||||||
http://dylanlibs.sourceforge.net/
|
http://dylanlibs.sourceforge.net/
|
||||||
|
|
||||||
Eiffel
|
Eiffel
|
||||||
|
|
||||||
Written by Eiffel Software
|
Written by Eiffel Software
|
||||||
http://curl.haxx.se/libcurl/eiffel/
|
http://curl.haxx.se/libcurl/eiffel/
|
||||||
|
|
||||||
@@ -81,6 +85,11 @@ glib/GTK+
|
|||||||
Written by Richard Atterer
|
Written by Richard Atterer
|
||||||
http://atterer.net/glibcurl/
|
http://atterer.net/glibcurl/
|
||||||
|
|
||||||
|
Guile:
|
||||||
|
|
||||||
|
Written by Michael L. Gran
|
||||||
|
http://www.lonelycactus.com/guile-curl.html
|
||||||
|
|
||||||
Haskell
|
Haskell
|
||||||
|
|
||||||
Written by Galois, Inc
|
Written by Galois, Inc
|
||||||
@@ -91,6 +100,11 @@ Java
|
|||||||
Maintained by [blank]
|
Maintained by [blank]
|
||||||
http://curl.haxx.se/libcurl/java/
|
http://curl.haxx.se/libcurl/java/
|
||||||
|
|
||||||
|
Julia
|
||||||
|
|
||||||
|
Written by Paul Howe
|
||||||
|
https://github.com/forio/Curl.jl
|
||||||
|
|
||||||
Lisp
|
Lisp
|
||||||
|
|
||||||
Written by Liam Healy
|
Written by Liam Healy
|
||||||
|
@@ -20,7 +20,7 @@ BUGS
|
|||||||
1.1 There are still bugs
|
1.1 There are still bugs
|
||||||
|
|
||||||
Curl and libcurl have grown substantially since the beginning. At the time
|
Curl and libcurl have grown substantially since the beginning. At the time
|
||||||
of writing (September 2011), there are about 66000 lines of source code, and
|
of writing (January 2013), there are about 83,000 lines of source code, and
|
||||||
by the time you read this it has probably grown even more.
|
by the time you read this it has probably grown even more.
|
||||||
|
|
||||||
Of course there are lots of bugs left. And lots of misfeatures.
|
Of course there are lots of bugs left. And lots of misfeatures.
|
||||||
@@ -35,7 +35,7 @@ BUGS
|
|||||||
have a go at a solution. You can optionally also post your bug/problem at
|
have a go at a solution. You can optionally also post your bug/problem at
|
||||||
curl's bug tracking system over at
|
curl's bug tracking system over at
|
||||||
|
|
||||||
http://sourceforge.net/tracker/?group_id=976&atid=100976
|
https://sourceforge.net/p/curl/bugs/
|
||||||
|
|
||||||
Please read the rest of this document below first before doing that! Also,
|
Please read the rest of this document below first before doing that! Also,
|
||||||
you need to login to your sourceforge account before being able to submit a
|
you need to login to your sourceforge account before being able to submit a
|
||||||
|
@@ -212,7 +212,7 @@
|
|||||||
commit.
|
commit.
|
||||||
|
|
||||||
Now send those patches off to the curl-library list. You can of course opt to
|
Now send those patches off to the curl-library list. You can of course opt to
|
||||||
do that with the 'get send-email' command.
|
do that with the 'git send-email' command.
|
||||||
|
|
||||||
3.3 How To Make a Patch without git
|
3.3 How To Make a Patch without git
|
||||||
|
|
||||||
|
103
docs/FAQ
103
docs/FAQ
@@ -52,6 +52,7 @@ FAQ
|
|||||||
3.19 How do I get HTTP from a host using a specific IP address?
|
3.19 How do I get HTTP from a host using a specific IP address?
|
||||||
3.20 How to SFTP from my user's home directory?
|
3.20 How to SFTP from my user's home directory?
|
||||||
3.21 Protocol xxx not supported or disabled in libcurl
|
3.21 Protocol xxx not supported or disabled in libcurl
|
||||||
|
3.22 curl -X gives me HTTP problems
|
||||||
|
|
||||||
4. Running Problems
|
4. Running Problems
|
||||||
4.1 Problems connecting to SSL servers.
|
4.1 Problems connecting to SSL servers.
|
||||||
@@ -97,6 +98,7 @@ FAQ
|
|||||||
5.14 Using C++ non-static functions for callbacks?
|
5.14 Using C++ non-static functions for callbacks?
|
||||||
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?
|
||||||
|
|
||||||
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?
|
||||||
@@ -243,10 +245,10 @@ FAQ
|
|||||||
supervised in any way by the project.
|
supervised in 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 and sourceforge.net hosts project services we take advantage from,
|
lists etc, sourceforge.net hosts project services we take advantage from,
|
||||||
like the bug tracker. Also again, some companies have sponsored certain
|
like the bug tracker and github hosts the primary git repository. Also
|
||||||
parts of the development in the past and I hope some will continue to do so
|
again, some companies have sponsored certain parts of the development in the
|
||||||
in the future.
|
past and I hope some will continue to do so in the future.
|
||||||
|
|
||||||
If you want to support our project, consider a donation or a banner-program
|
If you want to support our project, consider a donation or a banner-program
|
||||||
or even better: by helping us coding, documenting, testing etc.
|
or even better: by helping us coding, documenting, testing etc.
|
||||||
@@ -307,17 +309,16 @@ FAQ
|
|||||||
never use it.
|
never use it.
|
||||||
|
|
||||||
In May 2012 Daniel did a counting game and came up with a number that may
|
In May 2012 Daniel did a counting game and came up with a number that may
|
||||||
be completely wrong or somewhat accurate. 300 million!
|
be completely wrong or somewhat accurate. Over 500 million!
|
||||||
|
|
||||||
See http://daniel.haxx.se/blog/2012/05/16/300m-users/
|
See http://daniel.haxx.se/blog/2012/05/16/300m-users/
|
||||||
|
|
||||||
1.11 Why don't you update ca-bundle.crt
|
1.11 Why don't you update ca-bundle.crt
|
||||||
|
|
||||||
The ca-bundle.crt file that used to be bundled with curl was very outdated
|
The ca cert bundle that used to shipped with curl was very outdated and must
|
||||||
(it being last modified year 2000 should tell) and must be replaced with a
|
be replaced with an up-to-date version by anyone who wants to verify
|
||||||
much more modern and up-to-date version by anyone who wants to verify peers
|
peers. It is no longer provided by curl. The last curl release ever that
|
||||||
anyway. It is no longer provided, the last curl release that shipped it was
|
shipped a ca cert bundle was curl 7.18.0.
|
||||||
curl 7.18.0.
|
|
||||||
|
|
||||||
In the cURL project we've decided not to attempt to keep this file updated
|
In the cURL project we've decided not to attempt to keep this file updated
|
||||||
(or even present anymore) since deciding what to add to a ca cert bundle is
|
(or even present anymore) since deciding what to add to a ca cert bundle is
|
||||||
@@ -417,19 +418,24 @@ FAQ
|
|||||||
|
|
||||||
2.2 Does curl work/build with other SSL libraries?
|
2.2 Does curl work/build with other SSL libraries?
|
||||||
|
|
||||||
Curl has been written to use OpenSSL, GnuTLS, yassl, NSS, PolarSSL, axTLS or
|
Curl has been written to use a generic SSL function layer internally, and
|
||||||
qssl, although there should not be many problems using a different
|
that SSL functionality can then be provided by one out of many different SSL
|
||||||
library. If anyone does "port" curl to use a different SSL library, we are
|
backends.
|
||||||
of course very interested in getting the patch!
|
|
||||||
|
curl can be built to use one of the following SSL alternatives: OpenSSL,
|
||||||
|
GnuTLS, yassl, NSS, PolarSSL, axTLS, Secure Transport (native iOS/OS X),
|
||||||
|
schannel (native Windows) or qssl (native IBM i). They all have their pros
|
||||||
|
and cons, and we try to maintain a comparison of them here:
|
||||||
|
http://curl.haxx.se/docs/ssl-compared.html
|
||||||
|
|
||||||
2.3 Where can I find a copy of LIBEAY32.DLL?
|
2.3 Where can I find a copy of LIBEAY32.DLL?
|
||||||
|
|
||||||
That is an OpenSSL binary built for Windows.
|
That is an OpenSSL binary built for Windows.
|
||||||
|
|
||||||
Curl uses OpenSSL to do the SSL stuff. The LIBEAY32.DLL is what curl needs
|
Curl can be built with OpenSSL to do the SSL stuff. The LIBEAY32.DLL is then
|
||||||
on a windows machine to do https://. Check out the curl web site to find
|
what curl needs on a windows machine to do https:// etc. Check out the curl
|
||||||
accurate and up-to-date pointers to recent OpenSSL DLLs and other binary
|
web site to find accurate and up-to-date pointers to recent OpenSSL DLLs and
|
||||||
packages.
|
other binary packages.
|
||||||
|
|
||||||
2.4 Does curl support SOCKS (RFC 1928) ?
|
2.4 Does curl support SOCKS (RFC 1928) ?
|
||||||
|
|
||||||
@@ -465,9 +471,9 @@ FAQ
|
|||||||
3.3 Why doesn't my posting using -F work?
|
3.3 Why doesn't my posting using -F work?
|
||||||
|
|
||||||
You can't simply use -F or -d at your choice. The web server that will
|
You can't simply use -F or -d at your choice. The web server that will
|
||||||
receive your post assumes one of the formats. If the form you're trying to
|
receive your post expects one of the formats. If the form you're trying to
|
||||||
"fake" sets the type to 'multipart/form-data', then and only then you must
|
submit uses the type 'multipart/form-data', then and only then you must use
|
||||||
use the -F type. In all the most common cases, you should use -d which then
|
the -F type. In all the most common cases, you should use -d which then
|
||||||
causes a posting with the type 'application/x-www-form-urlencoded'.
|
causes a posting with the type 'application/x-www-form-urlencoded'.
|
||||||
|
|
||||||
This is described in some detail in the MANUAL and TheArtOfHttpScripting
|
This is described in some detail in the MANUAL and TheArtOfHttpScripting
|
||||||
@@ -481,9 +487,10 @@ FAQ
|
|||||||
You can tell curl to perform optional commands both before and/or after a
|
You can tell curl to perform optional commands both before and/or after a
|
||||||
file transfer. Study the -Q/--quote option.
|
file transfer. Study the -Q/--quote option.
|
||||||
|
|
||||||
Since curl is used for file transfers, you don't use curl to just perform
|
Since curl is used for file transfers, you don't normally use curl to
|
||||||
FTP commands without transferring anything. Therefore you must always specify
|
perform FTP commands without transferring anything. Therefore you must
|
||||||
a URL to transfer to/from even when doing custom FTP commands.
|
always specify a URL to transfer to/from even when doing custom FTP
|
||||||
|
commands, or use -I which implies the "no body" option sent to libcurl.
|
||||||
|
|
||||||
3.5 How can I disable the Accept: */* header?
|
3.5 How can I disable the Accept: */* header?
|
||||||
|
|
||||||
@@ -494,9 +501,9 @@ FAQ
|
|||||||
3.6 Does curl support ASP, XML, XHTML or HTML version Y?
|
3.6 Does curl support ASP, XML, XHTML or HTML version Y?
|
||||||
|
|
||||||
To curl, all contents are alike. It doesn't matter how the page was
|
To curl, all contents are alike. It doesn't matter how the page was
|
||||||
generated. It may be ASP, PHP, Perl, shell-script, SSI or plain
|
generated. It may be ASP, PHP, Perl, shell-script, SSI or plain HTML
|
||||||
HTML-files. There's no difference to curl and it doesn't even know what kind
|
files. There's no difference to curl and it doesn't even know what kind of
|
||||||
of language that generated the page.
|
language that generated the page.
|
||||||
|
|
||||||
See also item 3.14 regarding javascript.
|
See also item 3.14 regarding javascript.
|
||||||
|
|
||||||
@@ -730,6 +737,33 @@ FAQ
|
|||||||
part as in "htpt://example.com" or as in the less evident case if you prefix
|
part as in "htpt://example.com" or as in the less evident case if you prefix
|
||||||
the protocol part with a space as in " http://example.com/".
|
the protocol part with a space as in " http://example.com/".
|
||||||
|
|
||||||
|
3.22 curl -X gives me HTTP problems
|
||||||
|
|
||||||
|
In normal circumstances, -X should hardly ever be used.
|
||||||
|
|
||||||
|
By default you use curl without explicitly saying which request method to
|
||||||
|
use when the URL identifies a HTTP transfer. If you just pass in a URL like
|
||||||
|
"curl http://example.com" it will use GET. If you use -d or -F curl will use
|
||||||
|
POST, -I will cause a HEAD and -T will make it a PUT.
|
||||||
|
|
||||||
|
If for whatever reason you're not happy with these default choices that curl
|
||||||
|
does for you, you can override those request methods by specifying -X
|
||||||
|
[WHATEVER]. This way you can for example send a DELETE by doing "curl -X
|
||||||
|
DELETE [URL]".
|
||||||
|
|
||||||
|
It is thus pointless to do "curl -XGET [URL]" as GET would be used
|
||||||
|
anyway. In the same vein it is pointless to do "curl -X POST -d data
|
||||||
|
[URL]"... But you can make a fun and somewhat rare request that sends a
|
||||||
|
request-body in a GET request with something like "curl -X GET -d data
|
||||||
|
[URL]"
|
||||||
|
|
||||||
|
Note that -X doesn't change curl's behavior. It only modifies the actual
|
||||||
|
string sent in the request.
|
||||||
|
|
||||||
|
Accordingly, by using -XPOST on a command line that for example would follow
|
||||||
|
a 303 redirect, you will effectively prevent curl from behaving
|
||||||
|
correctly. Be aware.
|
||||||
|
|
||||||
|
|
||||||
4. Running Problems
|
4. Running Problems
|
||||||
|
|
||||||
@@ -878,8 +912,8 @@ FAQ
|
|||||||
|
|
||||||
4.9 Curl can't authenticate to the server that requires NTLM?
|
4.9 Curl can't authenticate to the server that requires NTLM?
|
||||||
|
|
||||||
NTLM support requires OpenSSL, GnuTLS, NSS or Microsoft Windows libraries at
|
NTLM support requires OpenSSL, GnuTLS, NSS, Secure Transport, or Microsoft
|
||||||
build-time to provide this functionality.
|
Windows libraries at build-time to provide this functionality.
|
||||||
|
|
||||||
NTLM is a Microsoft proprietary protocol. Proprietary formats are evil. You
|
NTLM is a Microsoft proprietary protocol. Proprietary formats are evil. You
|
||||||
should not use such ones.
|
should not use such ones.
|
||||||
@@ -1252,7 +1286,7 @@ FAQ
|
|||||||
|
|
||||||
If you're using the multi interface, you can also stop a transfer by
|
If you're using the multi interface, you can also stop a transfer by
|
||||||
removing the particular easy handle from the multi stack at any moment you
|
removing the particular easy handle from the multi stack at any moment you
|
||||||
think the transfer is done.
|
think the transfer is done or when you wish to abort the transfer.
|
||||||
|
|
||||||
5.14 Using C++ non-static functions for callbacks?
|
5.14 Using C++ non-static functions for callbacks?
|
||||||
|
|
||||||
@@ -1310,6 +1344,15 @@ FAQ
|
|||||||
use that to figure out exactly when the right condition is met when the
|
use that to figure out exactly when the right condition is met when the
|
||||||
transfer should get stopped.
|
transfer should get stopped.
|
||||||
|
|
||||||
|
5.17 Can I write a server with libcurl?
|
||||||
|
|
||||||
|
No. libcurl offers no functions or building blocks to build any kind of
|
||||||
|
internet protocol server. libcurl is only a client-side library. For server
|
||||||
|
libraries, you need to continue your search elsewhere but there exist many
|
||||||
|
good open source ones out there for most protocols you could possibly want a
|
||||||
|
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!
|
||||||
|
|
||||||
|
|
||||||
6. License Issues
|
6. License Issues
|
||||||
|
|
||||||
|
@@ -13,27 +13,29 @@ curl tool
|
|||||||
- multiple file upload on a single command line
|
- multiple file upload on a single command line
|
||||||
- custom maximum transfer rate
|
- custom maximum transfer rate
|
||||||
- redirectable stderr
|
- redirectable stderr
|
||||||
|
- metalink support (*13)
|
||||||
|
|
||||||
libcurl supports
|
libcurl
|
||||||
- full URL syntax with no length limit
|
- full URL syntax with no length limit
|
||||||
- custom maximum download time
|
- custom maximum download time
|
||||||
- custom least download speed acceptable
|
- custom least download speed acceptable
|
||||||
- custom output result after completion
|
- custom output result after completion
|
||||||
- guesses protocol from host name unless specified
|
- guesses protocol from host name unless specified
|
||||||
- uses .netrc
|
- uses .netrc
|
||||||
- progress bar/time specs while downloading
|
- progress bar with time statistics while downloading
|
||||||
- "standard" proxy environment variables support
|
- "standard" proxy environment variables support
|
||||||
- compiles on win32 (reported builds on 40+ operating systems)
|
- compiles on win32 (reported builds on 40+ operating systems)
|
||||||
- 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
|
- socks5 support
|
||||||
- supports user name + 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)
|
||||||
- supports large files (>2GB and >4GB) both upload/download
|
- support for large files (>2GB and >4GB) during upload and download
|
||||||
- replaceable memory functions (malloc, free, realloc, etc)
|
- replaceable memory functions (malloc, free, realloc, etc)
|
||||||
- asynchronous name resolving (*6)
|
- asynchronous name resolving (*6)
|
||||||
- both a push and a pull style interface
|
- both a push and a pull style interface
|
||||||
|
- international domain names (*11)
|
||||||
|
|
||||||
HTTP
|
HTTP
|
||||||
- HTTP/1.1 compliant (optionally uses 1.0)
|
- HTTP/1.1 compliant (optionally uses 1.0)
|
||||||
@@ -43,7 +45,7 @@ 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), GSS-Negotiate/Negotiate (*3) and
|
||||||
SPNEGO (*4) to server and proxy
|
SPNEGO (*4) to server and proxy
|
||||||
- resume (both GET and PUT)
|
- resume (both GET and PUT)
|
||||||
- follow redirects
|
- follow redirects
|
||||||
@@ -60,7 +62,8 @@ HTTP
|
|||||||
- via http-proxy
|
- via http-proxy
|
||||||
- retrieve file modification date
|
- retrieve file modification date
|
||||||
- Content-Encoding support for deflate and gzip
|
- Content-Encoding support for deflate and gzip
|
||||||
- "Transfer-Encoding: chunked" support for "uploads"
|
- "Transfer-Encoding: chunked" support in uploads
|
||||||
|
- data compression (*12)
|
||||||
|
|
||||||
HTTPS (*1)
|
HTTPS (*1)
|
||||||
- (all the HTTP features)
|
- (all the HTTP features)
|
||||||
@@ -68,12 +71,13 @@ HTTPS (*1)
|
|||||||
- verify server certificate
|
- verify server certificate
|
||||||
- via http-proxy
|
- via http-proxy
|
||||||
- select desired encryption
|
- select desired encryption
|
||||||
- force usage of a specific SSL version (SSLv2(*7), SSLv3 or TLSv1)
|
- force usage of a specific SSL version (SSLv2 (*7), SSLv3 (*10) or TLSv1)
|
||||||
|
|
||||||
FTP
|
FTP
|
||||||
- download
|
- download
|
||||||
- authentication
|
- authentication
|
||||||
- kerberos4 (*5), kerberos5 (*3)
|
- kerberos4 (*5)
|
||||||
|
- 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
|
||||||
@@ -93,7 +97,7 @@ FTP
|
|||||||
|
|
||||||
FTPS (*1)
|
FTPS (*1)
|
||||||
- implicit ftps:// support that use SSL on both connections
|
- implicit ftps:// support that use SSL on both connections
|
||||||
- explicit "AUTH TSL" and "AUTH SSL" usage to "upgrade" plain ftp://
|
- explicit "AUTH TLS" and "AUTH SSL" usage to "upgrade" plain ftp://
|
||||||
connection to use SSL for both or one of the connections
|
connection to use SSL for both or one of the connections
|
||||||
|
|
||||||
SCP (*8)
|
SCP (*8)
|
||||||
@@ -104,7 +108,8 @@ SFTP (*8)
|
|||||||
- with custom commands sent before/after the transfer
|
- with custom commands sent before/after the transfer
|
||||||
|
|
||||||
TFTP
|
TFTP
|
||||||
- download / upload
|
- download
|
||||||
|
- upload
|
||||||
|
|
||||||
TELNET
|
TELNET
|
||||||
- connection negotiation
|
- connection negotiation
|
||||||
@@ -119,18 +124,73 @@ DICT
|
|||||||
|
|
||||||
FILE
|
FILE
|
||||||
- URL support
|
- URL support
|
||||||
- "uploads"
|
- upload
|
||||||
- resume
|
- resume
|
||||||
|
|
||||||
|
SMTP
|
||||||
|
- authentication: Plain, Login, CRAM-MD5, Digest-MD5 and NTLM (*9)
|
||||||
|
- send e-mails
|
||||||
|
- mail from support
|
||||||
|
- mail size support
|
||||||
|
- mail auth support for trusted server-to-server relaying
|
||||||
|
- multiple recipients
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
|
SMTPS (*1)
|
||||||
|
- implicit smtps:// support
|
||||||
|
- explicit "STARTTLS" usage to "upgrade" plain smtp:// connections to use SSL
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
|
POP3
|
||||||
|
- authentication: Clear Text, APOP and SASL
|
||||||
|
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5 and
|
||||||
|
NTLM (*9)
|
||||||
|
- list e-mails
|
||||||
|
- retrieve e-mails
|
||||||
|
- enhanced command support for: CAPA, DELE, TOP, STAT, UIDL and NOOP via
|
||||||
|
custom requests
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
|
POP3S (*1)
|
||||||
|
- implicit pop3s:// support
|
||||||
|
- explicit "STLS" usage to "upgrade" plain pop3:// connections to use SSL
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
|
IMAP
|
||||||
|
- authentication: Clear Text and SASL
|
||||||
|
- SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5 and
|
||||||
|
NTLM (*9)
|
||||||
|
- list the folders of a mailbox
|
||||||
|
- select a mailbox with support for verifing the UIDVALIDITY
|
||||||
|
- fetch e-mails with support for specifing the UID and SECTION
|
||||||
|
- upload e-mails via the append command
|
||||||
|
- enhanced command support for: EXAMINE, CREATE, DELETE, RENAME, STATUS,
|
||||||
|
STORE, COPY and UID via custom requests
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
|
IMAPS (*1)
|
||||||
|
- implicit imaps:// support
|
||||||
|
- explicit "STARTTLS" usage to "upgrade" plain imap:// connections to use SSL
|
||||||
|
- via http-proxy
|
||||||
|
|
||||||
FOOTNOTES
|
FOOTNOTES
|
||||||
=========
|
=========
|
||||||
|
|
||||||
*1 = requires OpenSSL, GnuTLS, NSS, yassl, axTLS, PolarSSL or schannel
|
*1 = requires OpenSSL, GnuTLS, NSS, yassl, axTLS, PolarSSL, schannel (native
|
||||||
|
Windows), Secure Transport (native iOS/OS X) or qssl (native IBM i)
|
||||||
*2 = requires OpenLDAP
|
*2 = requires OpenLDAP
|
||||||
*3 = requires a GSSAPI-compliant library, such as Heimdal or similar.
|
*3 = requires a GSSAPI-compliant library, such as Heimdal or similar
|
||||||
*4 = requires FBopenssl
|
*4 = requires FBopenssl
|
||||||
*5 = requires a krb4 library, such as the MIT one or similar.
|
*5 = requires a krb4 library, such as the MIT one or similar
|
||||||
*6 = requires c-ares
|
*6 = requires c-ares
|
||||||
*7 = requires OpenSSL or NSS, as GnuTLS only supports SSLv3 and TLSv1
|
*7 = requires OpenSSL, NSS, qssl, schannel or Secure Transport; GnuTLS, for
|
||||||
|
example, only supports SSLv3 and TLSv1
|
||||||
*8 = requires libssh2
|
*8 = requires libssh2
|
||||||
*9 = requires OpenSSL, GnuTLS, NSS or yassl
|
*9 = requires OpenSSL, GnuTLS, NSS, yassl, Secure Transport or SSPI (native
|
||||||
|
Windows)
|
||||||
|
*10 = requires any of the SSL libraries in (*1) above other than axTLS, which
|
||||||
|
does not support SSLv3
|
||||||
|
*11 = requires libidn or Windows
|
||||||
|
*12 = requires libz
|
||||||
|
*13 = requires libmetalink, and either an Apple or Microsoft operating
|
||||||
|
system, or OpenSSL, or GnuTLS, or NSS
|
||||||
|
72
docs/INSTALL
72
docs/INSTALL
@@ -135,21 +135,18 @@ UNIX
|
|||||||
default. But if you want to alter it, you can select how to deal with
|
default. But if you want to alter it, you can select how to deal with
|
||||||
each individual library.
|
each individual library.
|
||||||
|
|
||||||
To build with GnuTLS support instead of OpenSSL for SSL/TLS, note that
|
To build with GnuTLS for SSL/TLS, use both --without-ssl and
|
||||||
you need to use both --without-ssl and --with-gnutls.
|
--with-gnutls.
|
||||||
|
|
||||||
To build with yassl support instead of OpenSSL or GnuTLS, you must build
|
To build with Cyassl for SSL/TLS, use both --without-ssl and
|
||||||
yassl with its OpenSSL emulation enabled and point to that directory root
|
--with-cyassl.
|
||||||
with configure --with-ssl.
|
|
||||||
|
|
||||||
To build with NSS support instead of OpenSSL for SSL/TLS, note that
|
To build with NSS for SSL/TLS, use both --without-ssl and --with-nss.
|
||||||
you need to use both --without-ssl and --with-nss.
|
|
||||||
|
|
||||||
To build with PolarSSL support instead of OpenSSL for SSL/TLS, note that
|
To build with PolarSSL for SSL/TLS, use both --without-ssl and
|
||||||
you need to use both --without-ssl and --with-polarssl.
|
--with-polarssl.
|
||||||
|
|
||||||
To build with axTLS support instead of OpenSSL for TLS, note that you
|
To build with axTLS for SSL/TLS, use both --without-ssl and --with-axtls.
|
||||||
need to use both --without-ssl and --with-axtls.
|
|
||||||
|
|
||||||
To get GSSAPI support, build with --with-gssapi and have the MIT or
|
To get GSSAPI support, build with --with-gssapi and have the MIT or
|
||||||
Heimdal Kerberos 5 packages installed.
|
Heimdal Kerberos 5 packages installed.
|
||||||
@@ -224,8 +221,8 @@ Win32
|
|||||||
environment variables, for example:
|
environment variables, for example:
|
||||||
|
|
||||||
set ZLIB_PATH=c:\zlib-1.2.7
|
set ZLIB_PATH=c:\zlib-1.2.7
|
||||||
set OPENSSL_PATH=c:\openssl-0.9.8x
|
set OPENSSL_PATH=c:\openssl-0.9.8y
|
||||||
set LIBSSH2_PATH=c:\libssh2-1.4.2
|
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
|
||||||
version 0.17 - previous versions will NOT work with 7.17.0 and later!
|
version 0.17 - previous versions will NOT work with 7.17.0 and later!
|
||||||
@@ -340,7 +337,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.8x
|
set OPENSSL_PATH=c:\openssl-0.9.8y
|
||||||
|
|
||||||
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
|
||||||
@@ -362,7 +359,7 @@ Win32
|
|||||||
source distribution archive to allow proper building of the two included
|
source distribution archive to allow proper building of the two included
|
||||||
projects, the libcurl library and the curl tool.
|
projects, the libcurl library and the curl tool.
|
||||||
|
|
||||||
1) Open the vc6curl.dsw workspace with MSVC6's IDE.
|
1) Open the vs/vc6/vc6curl.dsw workspace with MSVC6's IDE.
|
||||||
2) Select 'Build' from top menu.
|
2) Select 'Build' from top menu.
|
||||||
3) Select 'Batch Build' from dropdown menu.
|
3) Select 'Batch Build' from dropdown menu.
|
||||||
4) Make sure that the eight project configurations are 'checked'.
|
4) Make sure that the eight project configurations are 'checked'.
|
||||||
@@ -370,12 +367,12 @@ Win32
|
|||||||
6) Once the eight project configurations are built you are done.
|
6) Once the eight project configurations are built you are done.
|
||||||
|
|
||||||
Dynamic and static libcurl libraries are built in debug and release flavours,
|
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,
|
and can be located each one in its own subdirectory, dll-debug, dll-release,
|
||||||
LIB-Debug and LIB-Release, all of them below the 'lib' subdirectory.
|
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
|
In the same way four curl executables are created, each using its respective
|
||||||
library. The resulting curl executables are located in its own subdirectory,
|
library. The resulting curl executables are located in its own subdirectory,
|
||||||
DLL-Debug, DLL-Release, LIB-Debug and LIB-Release, below the 'src' subdir.
|
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.
|
These reference VC++ 6.0 configurations are generated using the dynamic CRT.
|
||||||
|
|
||||||
@@ -467,7 +464,7 @@ Win32
|
|||||||
possibilities:
|
possibilities:
|
||||||
|
|
||||||
- Modify lib/config-win32.h
|
- Modify lib/config-win32.h
|
||||||
- Modify lib/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
|
- Add defines to Project/Settings/C/C++/General/Preprocessor Definitions
|
||||||
in the vc6libcurl.dsw/vc6libcurl.dsp Visual C++ 6 IDE project.
|
in the vc6libcurl.dsw/vc6libcurl.dsp Visual C++ 6 IDE project.
|
||||||
@@ -509,6 +506,38 @@ Win32
|
|||||||
dynamic import symbols.
|
dynamic import symbols.
|
||||||
|
|
||||||
|
|
||||||
|
Apple iOS and Mac OS X
|
||||||
|
======================
|
||||||
|
On recent Apple operating systems, curl can be built to use Apple's
|
||||||
|
SSL/TLS implementation, Secure Transport, instead of OpenSSL. To build with
|
||||||
|
Secure Transport for SSL/TLS, use the configure option --with-darwinssl. (It
|
||||||
|
is not necessary to use the option --without-ssl.) This feature requires iOS
|
||||||
|
5.0 or later, or OS X 10.5 ("Leopard") or later.
|
||||||
|
|
||||||
|
When Secure Transport is in use, the curl options --cacert and --capath and
|
||||||
|
their libcurl equivalents, will be ignored, because Secure Transport uses
|
||||||
|
the certificates stored in the Keychain to evaluate whether or not to trust
|
||||||
|
the server. This, of course, includes the root certificates that ship with
|
||||||
|
the OS. The --cert and --engine options, and their libcurl equivalents, are
|
||||||
|
currently unimplemented in curl with Secure Transport.
|
||||||
|
|
||||||
|
For OS X users: In OS X 10.8 ("Mountain Lion"), Apple made a major
|
||||||
|
overhaul to the Secure Transport API that, among other things, added
|
||||||
|
support for the newer TLS 1.1 and 1.2 protocols. To get curl to support
|
||||||
|
TLS 1.1 and 1.2, you must build curl on Mountain Lion or later, or by
|
||||||
|
using the equivalent SDK. If you set the MACOSX_DEPLOYMENT_TARGET
|
||||||
|
environmental variable to an earlier version of OS X prior to building curl,
|
||||||
|
then curl will use the new Secure Transport API on Mountain Lion and later,
|
||||||
|
and fall back on the older API when the same curl binary is executed on
|
||||||
|
older cats. For example, running these commands in curl's directory in the
|
||||||
|
shell will build the code such that it will run on cats as old as OS X 10.6
|
||||||
|
("Snow Leopard") (using bash):
|
||||||
|
|
||||||
|
export MACOSX_DEPLOYMENT_TARGET="10.6"
|
||||||
|
./configure --with-darwinssl
|
||||||
|
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.
|
||||||
@@ -847,7 +876,7 @@ VxWorks
|
|||||||
Android
|
Android
|
||||||
=======
|
=======
|
||||||
Method using the static makefile:
|
Method using the static makefile:
|
||||||
- see the build notes in the 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
|
||||||
@@ -1018,7 +1047,7 @@ PORTS
|
|||||||
- AVR32 Linux
|
- AVR32 Linux
|
||||||
- ARM Android 1.5, 2.1
|
- ARM Android 1.5, 2.1
|
||||||
- ARM INTEGRITY
|
- ARM INTEGRITY
|
||||||
- ARM iPhone OS
|
- ARM iOS
|
||||||
- Cell Linux
|
- Cell Linux
|
||||||
- Cell Cell OS
|
- Cell Cell OS
|
||||||
- HP-PA HP-UX 9.X 10.X 11.X
|
- HP-PA HP-UX 9.X 10.X 11.X
|
||||||
@@ -1056,6 +1085,7 @@ PORTS
|
|||||||
- i386 HURD
|
- i386 HURD
|
||||||
- i386 Haiku OS
|
- i386 Haiku OS
|
||||||
- i386 Linux 1.3, 2.0, 2.2, 2.3, 2.4, 2.6
|
- i386 Linux 1.3, 2.0, 2.2, 2.3, 2.4, 2.6
|
||||||
|
- i386 Mac OS X
|
||||||
- i386 MINIX 3.1
|
- i386 MINIX 3.1
|
||||||
- i386 NetBSD
|
- i386 NetBSD
|
||||||
- i386 Novell NetWare
|
- i386 Novell NetWare
|
||||||
|
@@ -24,7 +24,7 @@ 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/hugehelp.c which creates the --manual output
|
- 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)
|
||||||
|
@@ -42,20 +42,17 @@ Portability
|
|||||||
cyassl 2.0.0
|
cyassl 2.0.0
|
||||||
openldap 2.0
|
openldap 2.0
|
||||||
MIT krb5 lib 1.2.4
|
MIT krb5 lib 1.2.4
|
||||||
qsossl V5R2M0
|
qsossl V5R3M0
|
||||||
NSS 3.12.x
|
NSS 3.12.x
|
||||||
axTLS 1.2.7
|
axTLS 1.2.7
|
||||||
Heimdal ?
|
Heimdal ?
|
||||||
|
|
||||||
* = only partly functional, but that's due to bugs in the third party lib, not
|
|
||||||
because of libcurl code
|
|
||||||
|
|
||||||
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
|
||||||
curl running fine on:
|
curl running fine on:
|
||||||
|
|
||||||
Windows 98
|
Windows 98
|
||||||
AS/400 V5R2M0
|
AS/400 V5R3M0
|
||||||
Symbian 9.1
|
Symbian 9.1
|
||||||
Windows CE ?
|
Windows CE ?
|
||||||
TPF ?
|
TPF ?
|
||||||
@@ -413,10 +410,10 @@ Client
|
|||||||
|
|
||||||
main() resides in src/main.c together with most of the client code.
|
main() resides in src/main.c together with most of the client code.
|
||||||
|
|
||||||
src/hugehelp.c is automatically generated by the mkhelp.pl perl script to
|
src/tool_hugehelp.c is automatically generated by the mkhelp.pl perl script
|
||||||
display the complete "manual" and the src/urlglob.c file holds the functions
|
to display the complete "manual" and the src/urlglob.c file holds the
|
||||||
used for the URL-"globbing" support. Globbing in the sense that the {} and []
|
functions used for the URL-"globbing" support. Globbing in the sense that
|
||||||
expansion stuff is there.
|
the {} and [] expansion stuff is there.
|
||||||
|
|
||||||
The client mostly messes around to setup its 'config' struct properly, then
|
The client mostly messes around to setup its 'config' struct properly, then
|
||||||
it calls the curl_easy_*() functions of the library and when it gets back
|
it calls the curl_easy_*() functions of the library and when it gets back
|
||||||
|
@@ -1,6 +1,12 @@
|
|||||||
Peer SSL Certificate Verification
|
Peer SSL Certificate Verification
|
||||||
=================================
|
=================================
|
||||||
|
|
||||||
|
(NOTE: If libcurl was built with Schannel or Secure Transport support, 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.)
|
||||||
|
|
||||||
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.
|
||||||
@@ -93,24 +99,40 @@ server.
|
|||||||
Peer SSL Certificate Verification with NSS
|
Peer SSL Certificate Verification with NSS
|
||||||
==========================================
|
==========================================
|
||||||
|
|
||||||
If libcurl is build with NSS support then depending on the OS distribution it
|
If libcurl was built with NSS support, then depending on the OS distribution,
|
||||||
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 CA
|
||||||
cert db. RedHat ships with an additional module libnsspem.so which enables NSS
|
cert db. RedHat ships with an additional module, libnsspem.so, which enables
|
||||||
to read the OpenSSL PEM CA bundle. With OpenSuSE this lib is missing, and NSS
|
NSS to read the OpenSSL PEM CA bundle. This library is missing in OpenSuSE, and
|
||||||
can only work with its own internal formats. Also NSS got a new database
|
without it, NSS can only work with its own internal formats. NSS also has a new
|
||||||
format:
|
database format: https://wiki.mozilla.org/NSS_Shared_DB
|
||||||
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 will check for the NSS version it runs,
|
||||||
and add automatically the 'sql:' prefix to the certdb directory (either the
|
and automatically add the 'sql:' prefix to the certdb directory (either the
|
||||||
hardcoded default /etc/pki/nssdb or the directory configured with SSL_DIR
|
hardcoded default /etc/pki/nssdb or the directory configured with SSL_DIR
|
||||||
environment variable) if a version 3.12.0 or later is detected.
|
environment variable) if version 3.12.0 or later is detected. To check which
|
||||||
To check which certdb format your distribution provides examine the default
|
ertdb format your distribution provides, examine the default
|
||||||
certdb location /etc/pki/nssdb; the new certdb format can be identified by
|
certdb location: /etc/pki/nssdb; the new certdb format can be identified by
|
||||||
the filenames cert9.db, key4.db, pkcs11.txt; filenames of older versions are
|
the filenames cert9.db, key4.db, pkcs11.txt; filenames of older versions are
|
||||||
cert8.db, key3.db, modsec.db.
|
cert8.db, key3.db, modsec.db.
|
||||||
Usually these cert databases are empty; but NSS also has built-in CAs which are
|
|
||||||
provided through a shared library libnssckbi.so; if you want to use these
|
Usually these cert databases are empty, but NSS also has built-in CAs which are
|
||||||
built-in CAs then create a symlink to libnssckbi.so in /etc/pki/nssdb:
|
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
|
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 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
|
||||||
|
use the certificates that are built into the OS. These are the same
|
||||||
|
certificates that appear in the Internet Options control panel (under Windows)
|
||||||
|
or Keychain Access application (under OS X). Any custom security rules for
|
||||||
|
certificates will be honored.
|
||||||
|
|
||||||
|
Schannel will run CRL checks on certificates unless peer verification is
|
||||||
|
disabled. Secure Transport on iOS will run OCSP checks on certificates unless
|
||||||
|
peer verification is disabled. Secure Transport on OS X will run either OCSP
|
||||||
|
or CRL checks on certificates if those features are enabled, and this behavior
|
||||||
|
can be adjusted in the preferences of Keychain Access.
|
||||||
|
26
docs/THANKS
26
docs/THANKS
@@ -12,6 +12,7 @@ Adam Piggott
|
|||||||
Adam Tkac
|
Adam Tkac
|
||||||
Adrian Schuur
|
Adrian Schuur
|
||||||
Adriano Meirelles
|
Adriano Meirelles
|
||||||
|
Ajit Dhumale
|
||||||
Akos Pasztory
|
Akos Pasztory
|
||||||
Alan Pinstein
|
Alan Pinstein
|
||||||
Albert Chin
|
Albert Chin
|
||||||
@@ -24,6 +25,7 @@ Alessandro Ghedini
|
|||||||
Alessandro Vesely
|
Alessandro Vesely
|
||||||
Alex Bligh
|
Alex Bligh
|
||||||
Alex Fishman
|
Alex Fishman
|
||||||
|
Alex Gruz
|
||||||
Alex Neblett
|
Alex Neblett
|
||||||
Alex Suykov
|
Alex Suykov
|
||||||
Alex Vinnik
|
Alex Vinnik
|
||||||
@@ -75,6 +77,7 @@ Anthony G. Basile
|
|||||||
Antoine Calando
|
Antoine Calando
|
||||||
Anton Bychkov
|
Anton Bychkov
|
||||||
Anton Kalmykov
|
Anton Kalmykov
|
||||||
|
Anton Malov
|
||||||
Anton Yabchinskiy
|
Anton Yabchinskiy
|
||||||
Arkadiusz Miskiewicz
|
Arkadiusz Miskiewicz
|
||||||
Armel Asselin
|
Armel Asselin
|
||||||
@@ -86,6 +89,7 @@ Ates Goral
|
|||||||
Augustus Saunders
|
Augustus Saunders
|
||||||
Avery Fay
|
Avery Fay
|
||||||
Axel Tillequin
|
Axel Tillequin
|
||||||
|
Balaji Parasuram
|
||||||
Balint Szilakszi
|
Balint Szilakszi
|
||||||
Bart Whiteley
|
Bart Whiteley
|
||||||
Bas Mevissen
|
Bas Mevissen
|
||||||
@@ -108,6 +112,7 @@ Bjorn Augustsson
|
|||||||
Bjorn Reese
|
Bjorn Reese
|
||||||
Björn Stenberg
|
Björn Stenberg
|
||||||
Blaise Potard
|
Blaise Potard
|
||||||
|
Bob Relyea
|
||||||
Bob Richmond
|
Bob Richmond
|
||||||
Bob Schader
|
Bob Schader
|
||||||
Bogdan Nicula
|
Bogdan Nicula
|
||||||
@@ -125,6 +130,7 @@ Brian R Duffy
|
|||||||
Brian Ulm
|
Brian Ulm
|
||||||
Brock Noland
|
Brock Noland
|
||||||
Bruce Mitchener
|
Bruce Mitchener
|
||||||
|
Bruno de Carvalho
|
||||||
Bryan Henderson
|
Bryan Henderson
|
||||||
Bryan Kemp
|
Bryan Kemp
|
||||||
Cameron Kaiser
|
Cameron Kaiser
|
||||||
@@ -175,6 +181,7 @@ Craig Davison
|
|||||||
Craig Markwardt
|
Craig Markwardt
|
||||||
Cris Bailiff
|
Cris Bailiff
|
||||||
Cristian Rodriguez
|
Cristian Rodriguez
|
||||||
|
Cristian Rodríguez
|
||||||
Curt Bogmine
|
Curt Bogmine
|
||||||
Cyrill Osterwalder
|
Cyrill Osterwalder
|
||||||
Dag Ekengren
|
Dag Ekengren
|
||||||
@@ -267,6 +274,7 @@ Eduard Bloch
|
|||||||
Edward Sheldrake
|
Edward Sheldrake
|
||||||
Eelco Dolstra
|
Eelco Dolstra
|
||||||
Eetu Ojanen
|
Eetu Ojanen
|
||||||
|
Eldar Zaitov
|
||||||
Ellis Pritchard
|
Ellis Pritchard
|
||||||
Emanuele Bovisio
|
Emanuele Bovisio
|
||||||
Emil Romanus
|
Emil Romanus
|
||||||
@@ -310,6 +318,7 @@ Fred New
|
|||||||
Fred Noz
|
Fred Noz
|
||||||
Frederic Lepied
|
Frederic Lepied
|
||||||
Gabriel Kuri
|
Gabriel Kuri
|
||||||
|
Gabriel Sjoberg
|
||||||
Garrett Holmstrom
|
Garrett Holmstrom
|
||||||
Gary Maxwell
|
Gary Maxwell
|
||||||
Gautam Kachroo
|
Gautam Kachroo
|
||||||
@@ -344,6 +353,7 @@ Greg Zavertnik
|
|||||||
Grigory Entin
|
Grigory Entin
|
||||||
Guenole Bescon
|
Guenole Bescon
|
||||||
Guenter Knauf
|
Guenter Knauf
|
||||||
|
Guido Berhoerster
|
||||||
Guillaume Arluison
|
Guillaume Arluison
|
||||||
Gustaf Hui
|
Gustaf Hui
|
||||||
Gwenole Beauchesne
|
Gwenole Beauchesne
|
||||||
@@ -420,6 +430,7 @@ Jean-Francois Bertrand
|
|||||||
Jean-Louis Lemaire
|
Jean-Louis Lemaire
|
||||||
Jean-Marc Ranger
|
Jean-Marc Ranger
|
||||||
Jean-Philippe Barrette-LaPierre
|
Jean-Philippe Barrette-LaPierre
|
||||||
|
Jeff Connelly
|
||||||
Jeff Johnson
|
Jeff Johnson
|
||||||
Jeff Lawson
|
Jeff Lawson
|
||||||
Jeff Phillips
|
Jeff Phillips
|
||||||
@@ -438,6 +449,8 @@ Jim Drash
|
|||||||
Jim Freeman
|
Jim Freeman
|
||||||
Jim Hollinger
|
Jim Hollinger
|
||||||
Jim Meyering
|
Jim Meyering
|
||||||
|
Jiri Jaburek
|
||||||
|
Jiri Hruska
|
||||||
Jocelyn Jaubert
|
Jocelyn Jaubert
|
||||||
Joe Halpin
|
Joe Halpin
|
||||||
Joe Malicki
|
Joe Malicki
|
||||||
@@ -460,6 +473,7 @@ John Lightsey
|
|||||||
John Marino
|
John Marino
|
||||||
John McGowan
|
John McGowan
|
||||||
John P. McCaskey
|
John P. McCaskey
|
||||||
|
John Suprock
|
||||||
John Wilkinson
|
John Wilkinson
|
||||||
John-Mark Bell
|
John-Mark Bell
|
||||||
Johnny Luong
|
Johnny Luong
|
||||||
@@ -494,6 +508,7 @@ Jurij Smakov
|
|||||||
Justin Fletcher
|
Justin Fletcher
|
||||||
Jörg Mueller-Tolk
|
Jörg Mueller-Tolk
|
||||||
Jörn Hartroth
|
Jörn Hartroth
|
||||||
|
Kai Engert
|
||||||
Kai Sommerfeld
|
Kai Sommerfeld
|
||||||
Kai-Uwe Rommel
|
Kai-Uwe Rommel
|
||||||
Kalle Vahlman
|
Kalle Vahlman
|
||||||
@@ -532,6 +547,7 @@ Kyle Sallee
|
|||||||
Lachlan O'Dea
|
Lachlan O'Dea
|
||||||
Larry Campbell
|
Larry Campbell
|
||||||
Larry Fahnoe
|
Larry Fahnoe
|
||||||
|
Lars Buitinck
|
||||||
Lars Gustafsson
|
Lars Gustafsson
|
||||||
Lars J. Aas
|
Lars J. Aas
|
||||||
Lars Nilsson
|
Lars Nilsson
|
||||||
@@ -550,6 +566,7 @@ Ling Thio
|
|||||||
Linus Nielsen Feltzing
|
Linus Nielsen Feltzing
|
||||||
Lisa Xu
|
Lisa Xu
|
||||||
Liza Alenchery
|
Liza Alenchery
|
||||||
|
Lluís Batlle i Rossell
|
||||||
Loic Dachary
|
Loic Dachary
|
||||||
Loren Kirkby
|
Loren Kirkby
|
||||||
Luca Altea
|
Luca Altea
|
||||||
@@ -586,6 +603,7 @@ Mark Incley
|
|||||||
Mark Karpeles
|
Mark Karpeles
|
||||||
Mark Lentczner
|
Mark Lentczner
|
||||||
Mark Salisbury
|
Mark Salisbury
|
||||||
|
Mark Snelling
|
||||||
Mark Tully
|
Mark Tully
|
||||||
Markus Duft
|
Markus Duft
|
||||||
Markus Koetter
|
Markus Koetter
|
||||||
@@ -606,6 +624,7 @@ Massimo Callegari
|
|||||||
Mateusz Loskot
|
Mateusz Loskot
|
||||||
Mathias Axelsson
|
Mathias Axelsson
|
||||||
Mats Lidell
|
Mats Lidell
|
||||||
|
Matt Arsenault
|
||||||
Matt Kraai
|
Matt Kraai
|
||||||
Matt Veenstra
|
Matt Veenstra
|
||||||
Matt Witherspoon
|
Matt Witherspoon
|
||||||
@@ -639,6 +658,7 @@ Michael Stillwell
|
|||||||
Michael Wallner
|
Michael Wallner
|
||||||
Michal Bonino
|
Michal Bonino
|
||||||
Michal Gorny
|
Michal Gorny
|
||||||
|
Michal Kowalczyk
|
||||||
Michal Marek
|
Michal Marek
|
||||||
Michele Bini
|
Michele Bini
|
||||||
Mihai Ionescu
|
Mihai Ionescu
|
||||||
@@ -692,6 +712,8 @@ Olaf Stüben
|
|||||||
Olivier Berger
|
Olivier Berger
|
||||||
Oren Tirosh
|
Oren Tirosh
|
||||||
Ori Avtalion
|
Ori Avtalion
|
||||||
|
Oscar Koeroo
|
||||||
|
Oscar Norlander
|
||||||
P R Schaffner
|
P R Schaffner
|
||||||
Paolo Piacentini
|
Paolo Piacentini
|
||||||
Pascal Terjan
|
Pascal Terjan
|
||||||
@@ -840,6 +862,7 @@ Scott Barrett
|
|||||||
Scott Cantor
|
Scott Cantor
|
||||||
Scott Davis
|
Scott Davis
|
||||||
Scott McCreary
|
Scott McCreary
|
||||||
|
Sebastian Rasmussen
|
||||||
Sebastien Willemijns
|
Sebastien Willemijns
|
||||||
Senthil Raja Velu
|
Senthil Raja Velu
|
||||||
Sergei Nikulov
|
Sergei Nikulov
|
||||||
@@ -862,6 +885,7 @@ Spacen Jasset
|
|||||||
Spiridonoff A.V
|
Spiridonoff A.V
|
||||||
Stadler Stephan
|
Stadler Stephan
|
||||||
Stan van de Burgt
|
Stan van de Burgt
|
||||||
|
Stanislav Ivochkin
|
||||||
Stefan Esser
|
Stefan Esser
|
||||||
Stefan Krause
|
Stefan Krause
|
||||||
Stefan Teleman
|
Stefan Teleman
|
||||||
@@ -944,6 +968,7 @@ Troels Walsted Hansen
|
|||||||
Troy Engel
|
Troy Engel
|
||||||
Tupone Alfredo
|
Tupone Alfredo
|
||||||
Ulf Härnhammar
|
Ulf Härnhammar
|
||||||
|
Ulrich Doehner
|
||||||
Ulrich Zadow
|
Ulrich Zadow
|
||||||
Venkat Akella
|
Venkat Akella
|
||||||
Victor Snezhko
|
Victor Snezhko
|
||||||
@@ -977,6 +1002,7 @@ Yarram Sunil
|
|||||||
Yehoshua Hershberg
|
Yehoshua Hershberg
|
||||||
Yukihiro Kawada
|
Yukihiro Kawada
|
||||||
Yuriy Sosov
|
Yuriy Sosov
|
||||||
|
Yves Arrouye
|
||||||
Yves Lejeune
|
Yves Lejeune
|
||||||
Zmey Petroff
|
Zmey Petroff
|
||||||
Zvi Har'El
|
Zvi Har'El
|
||||||
|
369
docs/TODO
369
docs/TODO
@@ -21,8 +21,7 @@
|
|||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
2.1 More non-blocking
|
2.1 More non-blocking
|
||||||
2.2 Remove easy interface internally
|
2.2 Fix HTTP Pipelining for PUT
|
||||||
2.4 Fix HTTP Pipelining for PUT
|
|
||||||
|
|
||||||
3. Documentation
|
3. Documentation
|
||||||
3.1 More and better
|
3.1 More and better
|
||||||
@@ -46,78 +45,80 @@
|
|||||||
6.3 feature negotiation debug data
|
6.3 feature negotiation debug data
|
||||||
6.4 send data in chunks
|
6.4 send data in chunks
|
||||||
|
|
||||||
7. SSL
|
7. SMTP
|
||||||
7.1 Disable specific versions
|
7.1 Specify the preferred authentication mechanism
|
||||||
7.2 Provide mutex locking API
|
7.2 Initial response
|
||||||
7.3 Evaluate SSL patches
|
7.3 Pipelining
|
||||||
7.4 Cache OpenSSL contexts
|
7.4 Graceful base64 decoding failure
|
||||||
7.5 Export session ids
|
|
||||||
7.6 Provide callback for cert verification
|
|
||||||
7.7 Support other SSL libraries
|
|
||||||
7.9 improve configure --with-ssl
|
|
||||||
7.10 Support DANE
|
|
||||||
|
|
||||||
8. GnuTLS
|
8. POP3
|
||||||
8.1 SSL engine stuff
|
8.1 auth= in URLs
|
||||||
8.3 check connection
|
8.2 Initial response
|
||||||
|
8.3 Graceful base64 decoding failure
|
||||||
|
|
||||||
9. SMTP
|
9. IMAP
|
||||||
9.1 Specify the preferred authentication mechanism
|
9.1 auth= in URLs
|
||||||
9.2 Initial response
|
9.2 Graceful base64 decoding failure
|
||||||
9.3 Pipelining
|
|
||||||
|
|
||||||
10. POP3
|
10. LDAP
|
||||||
10.1 auth= in URLs
|
10.1 SASL based authentication mechanisms
|
||||||
|
|
||||||
11. IMAP
|
11. New protocols
|
||||||
11.1 SASL based authentication mechanisms
|
11.1 RSYNC
|
||||||
|
|
||||||
12. LDAP
|
12. SSL
|
||||||
12.1 SASL based authentication mechanisms
|
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. Other protocols
|
13. GnuTLS
|
||||||
|
13.1 SSL engine stuff
|
||||||
|
13.2 check connection
|
||||||
|
|
||||||
14. New protocols
|
14. SASL
|
||||||
14.1 RSYNC
|
14.1 Other authentication mechanisms
|
||||||
|
|
||||||
15. SASL
|
15. Client
|
||||||
15.1 Other authentication mechanisms
|
15.1 sync
|
||||||
|
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. Client
|
16. Build
|
||||||
16.1 sync
|
16.1 roffit
|
||||||
16.2 glob posts
|
|
||||||
16.3 prevent file overwriting
|
|
||||||
16.4 simultaneous parallel transfers
|
|
||||||
16.5 provide formpost headers
|
|
||||||
16.6 url-specific options
|
|
||||||
16.7 warning when setting an option
|
|
||||||
16.8 IPv6 addresses with globbing
|
|
||||||
|
|
||||||
17. Build
|
17. Test suite
|
||||||
17.1 roffit
|
17.1 SSL tunnel
|
||||||
|
17.2 nicer lacking perl message
|
||||||
|
17.3 more protocols supported
|
||||||
|
17.4 more platforms supported
|
||||||
|
|
||||||
18. Test suite
|
18. Next SONAME bump
|
||||||
18.1 SSL tunnel
|
18.1 http-style HEAD output for ftp
|
||||||
18.2 nicer lacking perl message
|
18.2 combine error codes
|
||||||
18.3 more protocols supported
|
18.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
||||||
18.4 more platforms supported
|
|
||||||
|
|
||||||
19. Next SONAME bump
|
19. Next major release
|
||||||
19.1 http-style HEAD output for ftp
|
19.1 cleanup return codes
|
||||||
19.2 combine error codes
|
19.2 remove obsolete defines
|
||||||
19.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
19.3 size_t
|
||||||
|
19.4 remove several functions
|
||||||
20. Next major release
|
19.5 remove CURLOPT_FAILONERROR
|
||||||
20.1 cleanup return codes
|
19.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
||||||
20.2 remove obsolete defines
|
19.7 remove progress meter from libcurl
|
||||||
20.3 size_t
|
19.8 remove 'curl_httppost' from public
|
||||||
20.4 remove several functions
|
19.9 have form functions use CURL handle argument
|
||||||
20.5 remove CURLOPT_FAILONERROR
|
19.10 Add CURLOPT_MAIL_CLIENT option
|
||||||
20.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
|
||||||
20.7 remove progress meter from libcurl
|
|
||||||
20.8 remove 'curl_httppost' from public
|
|
||||||
20.9 have form functions use CURL handle argument
|
|
||||||
20.10 Add CURLOPT_MAIL_CLIENT option
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
@@ -177,7 +178,6 @@
|
|||||||
|
|
||||||
http://tools.ietf.org/html/rfc6555
|
http://tools.ietf.org/html/rfc6555
|
||||||
|
|
||||||
|
|
||||||
2. libcurl - multi interface
|
2. libcurl - multi interface
|
||||||
|
|
||||||
2.1 More non-blocking
|
2.1 More non-blocking
|
||||||
@@ -194,16 +194,7 @@
|
|||||||
- The "DONE" operation (post transfer protocol-specific actions) for the
|
- The "DONE" operation (post transfer protocol-specific actions) for the
|
||||||
protocols SFTP, SMTP, FTP. Fixing Curl_done() for this is a worthy task.
|
protocols SFTP, SMTP, FTP. Fixing Curl_done() for this is a worthy task.
|
||||||
|
|
||||||
2.2 Remove easy interface internally
|
2.2 Fix HTTP Pipelining for PUT
|
||||||
|
|
||||||
Make curl_easy_perform() a wrapper-function that simply creates a multi
|
|
||||||
handle, adds the easy handle to it, runs curl_multi_perform() until the
|
|
||||||
transfer is done, then detach the easy handle, destroy the multi handle and
|
|
||||||
return the easy handle's return code. This will thus make everything
|
|
||||||
internally use and assume the multi interface. The select()-loop should use
|
|
||||||
curl_multi_socket().
|
|
||||||
|
|
||||||
2.4 Fix HTTP Pipelining for PUT
|
|
||||||
|
|
||||||
HTTP Pipelining can be a way to greatly enhance performance for multiple
|
HTTP Pipelining can be a way to greatly enhance performance for multiple
|
||||||
serial requests and currently libcurl only supports that for HEAD and GET
|
serial requests and currently libcurl only supports that for HEAD and GET
|
||||||
@@ -278,7 +269,6 @@
|
|||||||
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.
|
||||||
|
|
||||||
|
|
||||||
6. TELNET
|
6. TELNET
|
||||||
|
|
||||||
6.1 ditch stdin
|
6.1 ditch stdin
|
||||||
@@ -303,25 +293,103 @@ to provide the data to send.
|
|||||||
use, but inefficient for any other. Sent data should be sent in larger
|
use, but inefficient for any other. Sent data should be sent in larger
|
||||||
chunks.
|
chunks.
|
||||||
|
|
||||||
7. SSL
|
7. SMTP
|
||||||
|
|
||||||
7.1 Disable specific versions
|
7.1 Specify the preferred authentication mechanism
|
||||||
|
|
||||||
|
Add the ability to specify the preferred authentication mechanism or a list
|
||||||
|
of mechanisms that should be used. Not only that, but the order that is
|
||||||
|
returned by the server during the EHLO response should be honored by curl.
|
||||||
|
|
||||||
|
7.2 Initial response
|
||||||
|
|
||||||
|
Add the ability for the user to specify whether the initial response is
|
||||||
|
included in the AUTH command. Some email servers, such as Microsoft
|
||||||
|
Exchange, can work with either whilst others need to have the initial
|
||||||
|
response sent separately:
|
||||||
|
|
||||||
|
http://curl.haxx.se/mail/lib-2012-03/0114.html
|
||||||
|
|
||||||
|
7.3 Pipelining
|
||||||
|
|
||||||
|
Add support for pipelining emails.
|
||||||
|
|
||||||
|
7.4 Graceful base64 decoding failure
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
8. POP3
|
||||||
|
|
||||||
|
8.1 auth= in URLs
|
||||||
|
|
||||||
|
Being able to specify the preferred authentication mechanism in the URL as
|
||||||
|
per RFC2384.
|
||||||
|
|
||||||
|
8.2 Initial response
|
||||||
|
|
||||||
|
Add the ability for the user to specify whether the initial response is
|
||||||
|
included in the AUTH command as per RFC5034.
|
||||||
|
|
||||||
|
8.3 Graceful base64 decoding failure
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
9. IMAP
|
||||||
|
|
||||||
|
9.1 auth= in URLs
|
||||||
|
|
||||||
|
Being able to specify the preferred authentication mechanism in the URL as
|
||||||
|
per RFC5092.
|
||||||
|
|
||||||
|
9.2 Graceful base64 decoding failure
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
10. LDAP
|
||||||
|
|
||||||
|
10.1 SASL based authentication mechanisms
|
||||||
|
|
||||||
|
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
|
||||||
|
using the simple authentication mechanism (as clear text). However, it should
|
||||||
|
be possible to use ldap_bind_s() instead specifing the security context
|
||||||
|
information ourselves.
|
||||||
|
|
||||||
|
11. New protocols
|
||||||
|
|
||||||
|
11.1 RSYNC
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
12. SSL
|
||||||
|
|
||||||
|
12.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
|
||||||
|
|
||||||
7.2 Provide mutex locking API
|
12.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.
|
||||||
|
|
||||||
7.3 Evaluate SSL patches
|
12.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
|
||||||
|
|
||||||
7.4 Cache OpenSSL contexts
|
12.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
|
||||||
@@ -331,7 +399,7 @@ to provide the data to send.
|
|||||||
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.
|
||||||
|
|
||||||
7.5 Export session ids
|
12.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
|
||||||
@@ -339,105 +407,48 @@ 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".
|
||||||
|
|
||||||
7.6 Provide callback for cert verification
|
12.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!
|
||||||
|
|
||||||
7.7 Support other SSL libraries
|
12.7 Support other SSL libraries
|
||||||
|
|
||||||
Make curl's SSL layer capable of using other free SSL libraries. Such as
|
Make curl's SSL layer capable of using other free SSL libraries. Such as
|
||||||
MatrixSSL (http://www.matrixssl.org/).
|
MatrixSSL (http://www.matrixssl.org/).
|
||||||
|
|
||||||
7.9 improve configure --with-ssl
|
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...
|
||||||
|
|
||||||
7.10 Support DANE
|
12.9 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.
|
||||||
http://www.rfc-editor.org/rfc/rfc6698.txt
|
http://www.rfc-editor.org/rfc/rfc6698.txt
|
||||||
|
|
||||||
|
13. GnuTLS
|
||||||
|
|
||||||
8. GnuTLS
|
13.1 SSL engine stuff
|
||||||
|
|
||||||
8.1 SSL engine stuff
|
|
||||||
|
|
||||||
Is this even possible?
|
Is this even possible?
|
||||||
|
|
||||||
8.3 check connection
|
13.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
|
||||||
|
|
||||||
9. SMTP
|
14.1 Other authentication mechanisms
|
||||||
|
|
||||||
9.1 Specify the preferred authentication mechanism
|
Add support for GSSAPI to SMTP, POP3 and IMAP.
|
||||||
|
|
||||||
Add the ability to specify the preferred authentication mechanism or a list
|
15. Client
|
||||||
of mechanisms that should be used. Not only that, but the order that is
|
|
||||||
returned by the server during the EHLO response should be honored by curl.
|
|
||||||
|
|
||||||
9.2 Initial response
|
15.1 sync
|
||||||
|
|
||||||
Add the ability for the user to specify whether the initial response is
|
|
||||||
included in the AUTH command. Some email servers, such as Microsoft
|
|
||||||
Exchange, can work with either whilst others need to have the initial
|
|
||||||
response sent separately:
|
|
||||||
|
|
||||||
http://curl.haxx.se/mail/lib-2012-03/0114.html
|
|
||||||
|
|
||||||
9.3 Pipelining
|
|
||||||
|
|
||||||
Add support for pipelining emails.
|
|
||||||
|
|
||||||
10. POP3
|
|
||||||
|
|
||||||
10.1 auth= in URLs
|
|
||||||
|
|
||||||
Being able to specify the preferred authentication mechanism in the URL as
|
|
||||||
per RFC2384.
|
|
||||||
|
|
||||||
11. IMAP
|
|
||||||
|
|
||||||
11.1 SASL based authentication mechanisms
|
|
||||||
|
|
||||||
Curl currently sends usernames and passwords as clear text whilst SASL based
|
|
||||||
authentication mechanisms can be more secure. As such, support should be
|
|
||||||
added to support these authentication mechanisms.
|
|
||||||
|
|
||||||
12. LDAP
|
|
||||||
|
|
||||||
12.1 SASL based authentication mechansims
|
|
||||||
|
|
||||||
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
|
|
||||||
using the simple authentication mechanism (as clear text). However, it should
|
|
||||||
be possible to use ldap_bind_s() instead specifing the security context
|
|
||||||
information ourselves.
|
|
||||||
|
|
||||||
13. Other protocols
|
|
||||||
|
|
||||||
14. New protocols
|
|
||||||
|
|
||||||
14.1 RSYNC
|
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
15. SASL
|
|
||||||
|
|
||||||
15.1 Other authentication mechanisms
|
|
||||||
|
|
||||||
Add support for gssapi to SMTP and POP3.
|
|
||||||
|
|
||||||
16. Client
|
|
||||||
|
|
||||||
16.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"
|
||||||
@@ -446,12 +457,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.
|
||||||
|
|
||||||
16.2 glob posts
|
15.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.
|
||||||
|
|
||||||
16.3 prevent file overwriting
|
15.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
|
||||||
@@ -459,14 +470,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.
|
||||||
|
|
||||||
16.4 simultaneous parallel transfers
|
15.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
|
||||||
|
|
||||||
16.5 provide formpost headers
|
15.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
|
||||||
@@ -480,7 +491,7 @@ 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...)
|
||||||
|
|
||||||
16.6 url-specific options
|
15.6 url-specific options
|
||||||
|
|
||||||
Provide a way to make options bound to a specific URL among several on the
|
Provide a way to make options bound to a specific URL among several on the
|
||||||
command line. Possibly by letting ':' separate options between URLs,
|
command line. Possibly by letting ':' separate options between URLs,
|
||||||
@@ -494,57 +505,57 @@ to provide the data to send.
|
|||||||
|
|
||||||
The example would do a POST-GET-POST combination on a single command line.
|
The example would do a POST-GET-POST combination on a single command line.
|
||||||
|
|
||||||
16.7 warning when setting an option
|
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.
|
||||||
|
|
||||||
16.8 IPv6 addresses with globbing
|
15.8 IPv6 addresses with globbing
|
||||||
|
|
||||||
Currently the command line client needs to get url globbing disabled (with
|
Currently the command line client needs to get url globbing disabled (with
|
||||||
-g) for it to support IPv6 numerical addresses. This is a rather silly flaw
|
-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
|
that should be corrected. It probably involves a smarter detection of the
|
||||||
'[' and ']' letters.
|
'[' and ']' letters.
|
||||||
|
|
||||||
17. Build
|
16. Build
|
||||||
|
|
||||||
17.1 roffit
|
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/hugehelp.c
|
instead of (g)nroff when building src/tool_hugehelp.c
|
||||||
|
|
||||||
18. Test suite
|
17. Test suite
|
||||||
|
|
||||||
18.1 SSL tunnel
|
17.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
|
||||||
|
|
||||||
18.2 nicer lacking perl message
|
17.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.
|
||||||
|
|
||||||
18.3 more protocols supported
|
17.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).
|
||||||
|
|
||||||
18.4 more platforms supported
|
17.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.
|
||||||
|
|
||||||
19. Next SONAME bump
|
18. Next SONAME bump
|
||||||
|
|
||||||
19.1 http-style HEAD output for ftp
|
18.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
|
||||||
|
|
||||||
19.2 combine error codes
|
18.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
|
||||||
@@ -569,29 +580,29 @@ to provide the data to send.
|
|||||||
|
|
||||||
CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
|
CURLE_TFTP_PERM => CURLE_REMOTE_ACCESS_DENIED
|
||||||
|
|
||||||
19.3 extend CURLOPT_SOCKOPTFUNCTION prototype
|
18.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.
|
||||||
|
|
||||||
20. Next major release
|
10. Next major release
|
||||||
|
|
||||||
20.1 cleanup return codes
|
19.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.
|
||||||
|
|
||||||
20.2 remove obsolete defines
|
19.2 remove obsolete defines
|
||||||
|
|
||||||
remove obsolete defines from curl/curl.h
|
remove obsolete defines from curl/curl.h
|
||||||
|
|
||||||
20.3 size_t
|
19.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
|
||||||
|
|
||||||
20.4 remove several functions
|
19.4 remove several functions
|
||||||
|
|
||||||
remove the following functions from the public API:
|
remove the following functions from the public API:
|
||||||
|
|
||||||
@@ -612,18 +623,18 @@ to provide the data to send.
|
|||||||
|
|
||||||
curl_multi_socket_all
|
curl_multi_socket_all
|
||||||
|
|
||||||
20.5 remove CURLOPT_FAILONERROR
|
19.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.
|
||||||
|
|
||||||
20.6 remove CURLOPT_DNS_USE_GLOBAL_CACHE
|
19.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".
|
||||||
|
|
||||||
20.7 remove progress meter from libcurl
|
19.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
|
||||||
@@ -633,7 +644,7 @@ 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.
|
||||||
|
|
||||||
20.8 remove 'curl_httppost' from public
|
19.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
|
||||||
@@ -642,7 +653,7 @@ to provide the data to send.
|
|||||||
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 maintining a solid API and ABI.
|
||||||
|
|
||||||
20.9 have form functions use CURL handle argument
|
19.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
|
||||||
@@ -650,7 +661,7 @@ 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.
|
||||||
|
|
||||||
20.10 Add CURLOPT_MAIL_CLIENT option
|
19.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
|
||||||
|
40
docs/curl.1
40
docs/curl.1
@@ -423,11 +423,8 @@ The windows version of curl will automatically look for a CA certs file named
|
|||||||
\'curl-ca-bundle.crt\', either in the same directory as curl.exe, or in the
|
\'curl-ca-bundle.crt\', either in the same directory as curl.exe, or in the
|
||||||
Current Working Directory, or in any folder along your PATH.
|
Current Working Directory, or in any folder along your PATH.
|
||||||
|
|
||||||
If curl is built against the NSS SSL library then this option tells
|
If curl is built against the NSS SSL library, the NSS PEM PKCS#11 module
|
||||||
curl the nickname of the CA certificate to use within the NSS database
|
(libnsspem.so) needs to be available for this option to work properly.
|
||||||
defined by the environment variable SSL_DIR (or by default /etc/pki/nssdb).
|
|
||||||
If the NSS PEM PKCS#11 module (libnsspem.so) is available then PEM files
|
|
||||||
may be loaded.
|
|
||||||
|
|
||||||
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 "--capath <CA certificate directory>"
|
.IP "--capath <CA certificate directory>"
|
||||||
@@ -484,6 +481,17 @@ filename=, like this:
|
|||||||
|
|
||||||
\fBcurl\fP -F "file=@localfile;filename=nameinpost" url.com
|
\fBcurl\fP -F "file=@localfile;filename=nameinpost" url.com
|
||||||
|
|
||||||
|
If filename/path contains ',' or ';', it must be quoted by double-quotes like:
|
||||||
|
|
||||||
|
\fBcurl\fP -F "file=@\\"localfile\\";filename=\\"nameinpost\\"" url.com
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
\fBcurl\fP -F 'file=@"localfile";filename="nameinpost"' url.com
|
||||||
|
|
||||||
|
Note that if a filename/path is quoted by double-quotes, any double-quote
|
||||||
|
or backslash within the filename must be escaped by backslash.
|
||||||
|
|
||||||
See further examples and details in the MANUAL.
|
See further examples and details in the MANUAL.
|
||||||
|
|
||||||
This option can be used multiple times.
|
This option can be used multiple times.
|
||||||
@@ -1524,6 +1532,13 @@ same info.
|
|||||||
The numerical code that was found in the last response (from a proxy) to a
|
The numerical code that was found in the last response (from a proxy) to a
|
||||||
curl CONNECT request. (Added in 7.12.4)
|
curl CONNECT request. (Added in 7.12.4)
|
||||||
.TP
|
.TP
|
||||||
|
.B local_ip
|
||||||
|
The IP address of the local end of the most recently done connection - can be
|
||||||
|
either IPv4 or IPv6 (Added in 7.29.0)
|
||||||
|
.TP
|
||||||
|
.B local_port
|
||||||
|
The local port number of the most recently done connection (Added in 7.29.0)
|
||||||
|
.TP
|
||||||
.B num_connects
|
.B num_connects
|
||||||
Number of new connects made in the recent transfer. (Added in 7.12.3)
|
Number of new connects made in the recent transfer. (Added in 7.12.3)
|
||||||
.TP
|
.TP
|
||||||
@@ -1534,6 +1549,13 @@ Number of redirects that were followed in the request. (Added in 7.12.3)
|
|||||||
When an HTTP request was made without -L to follow redirects, this variable
|
When an HTTP request was made without -L to follow redirects, this variable
|
||||||
will show the actual URL a redirect \fIwould\fP take you to. (Added in 7.18.2)
|
will show the actual URL a redirect \fIwould\fP take you to. (Added in 7.18.2)
|
||||||
.TP
|
.TP
|
||||||
|
.B remote_ip
|
||||||
|
The remote IP address of the most recently done connection - can be either
|
||||||
|
IPv4 or IPv6 (Added in 7.29.0)
|
||||||
|
.TP
|
||||||
|
.B remote_port
|
||||||
|
The remote port number of the most recently done connection (Added in 7.29.0)
|
||||||
|
.TP
|
||||||
.B size_download
|
.B size_download
|
||||||
The total amount of bytes that were downloaded.
|
The total amount of bytes that were downloaded.
|
||||||
.TP
|
.TP
|
||||||
@@ -1631,6 +1653,14 @@ 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
|
||||||
more.
|
more.
|
||||||
|
|
||||||
|
Normally you don't need this option. All sorts of GET, HEAD, POST and PUT
|
||||||
|
requests are rather invoked by using dedicated command line options.
|
||||||
|
|
||||||
|
This option only changes the actual word used in the HTTP request, it does not
|
||||||
|
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
|
||||||
|
option.
|
||||||
|
|
||||||
(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.
|
||||||
|
@@ -31,23 +31,31 @@ EXTRA_DIST = README Makefile.example Makefile.inc Makefile.m32 \
|
|||||||
# might possibly already be installed in the system.
|
# might possibly already be installed in the system.
|
||||||
#
|
#
|
||||||
# $(top_builddir)/include/curl for generated curlbuild.h included from curl.h
|
# $(top_builddir)/include/curl for generated curlbuild.h included from curl.h
|
||||||
# $(top_builddir)/include for generated curlbuild.h included from lib/setup.h
|
# $(top_builddir)/include for generated curlbuild.h inc. from lib/curl_setup.h
|
||||||
# $(top_srcdir)/include is for libcurl's external include files
|
# $(top_srcdir)/include is for libcurl's external include files
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(top_builddir)/include/curl \
|
AM_CPPFLAGS = -I$(top_builddir)/include/curl \
|
||||||
-I$(top_builddir)/include \
|
-I$(top_builddir)/include \
|
||||||
-I$(top_srcdir)/include \
|
-I$(top_srcdir)/include
|
||||||
-DCURL_NO_OLDIES
|
|
||||||
|
|
||||||
LIBDIR = $(top_builddir)/lib
|
LIBDIR = $(top_builddir)/lib
|
||||||
|
|
||||||
# Mostly for Windows build targets, when using static libcurl
|
# Avoid libcurl obsolete stuff
|
||||||
|
AM_CPPFLAGS += -DCURL_NO_OLDIES
|
||||||
|
|
||||||
if USE_CPPFLAG_CURL_STATICLIB
|
if USE_CPPFLAG_CURL_STATICLIB
|
||||||
AM_CPPFLAGS += -DCURL_STATICLIB
|
AM_CPPFLAGS += -DCURL_STATICLIB
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Prevent LIBS from being used for all link targets
|
||||||
|
LIBS = $(BLANK_AT_MAKETIME)
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
if USE_EXPLICIT_LIB_DEPS
|
||||||
|
LDADD = $(LIBDIR)/libcurl.la @LIBCURL_LIBS@
|
||||||
|
else
|
||||||
LDADD = $(LIBDIR)/libcurl.la
|
LDADD = $(LIBDIR)/libcurl.la
|
||||||
|
endif
|
||||||
|
|
||||||
# Makefile.inc provides the check_PROGRAMS and COMPLICATED_EXAMPLES defines
|
# Makefile.inc provides the check_PROGRAMS and COMPLICATED_EXAMPLES defines
|
||||||
include Makefile.inc
|
include Makefile.inc
|
||||||
|
@@ -9,7 +9,8 @@ check_PROGRAMS = 10-at-a-time anyauthput cookie_interface debug fileupload \
|
|||||||
|
|
||||||
# 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.cc 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
|
smooth-gtk-thread.c version-check.pl href_extractor.c asiohiper.cpp \
|
||||||
|
multi-uv.c
|
||||||
|
@@ -38,11 +38,11 @@ ZLIB_PATH = ../../../zlib-1.2.7
|
|||||||
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.8x
|
OPENSSL_PATH = ../../../openssl-0.9.8y
|
||||||
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
|
||||||
LIBSSH2_PATH = ../../../libssh2-1.4.2
|
LIBSSH2_PATH = ../../../libssh2-1.4.3
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your librtmp package.
|
# Edit the path below to point to the base of your librtmp package.
|
||||||
ifndef LIBRTMP_PATH
|
ifndef LIBRTMP_PATH
|
||||||
|
@@ -19,12 +19,12 @@ 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.8x
|
OPENSSL_PATH = ../../../openssl-0.9.8y
|
||||||
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
|
||||||
LIBSSH2_PATH = ../../../libssh2-1.4.2
|
LIBSSH2_PATH = ../../../libssh2-1.4.3
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Edit the path below to point to the base of your axTLS package.
|
# Edit the path below to point to the base of your axTLS package.
|
||||||
|
@@ -61,6 +61,7 @@ multi-debugcallback.c - a multi-interface app using the debug callback
|
|||||||
multi-double.c - a multi-interface app doing two simultaneous transfers
|
multi-double.c - a multi-interface app doing two simultaneous transfers
|
||||||
multi-post.c - a multi-interface app doing a multipart formpost
|
multi-post.c - a multi-interface app doing a multipart formpost
|
||||||
multi-single.c - a multi-interface app getting a single file
|
multi-single.c - a multi-interface app getting a single file
|
||||||
|
multi-uv.c - a multi-interface app using libuv
|
||||||
multithread.c - an example using multi-treading transferring multiple files
|
multithread.c - an example using multi-treading transferring multiple files
|
||||||
opensslthreadlock.c - show how to do locking when using OpenSSL multi-threaded
|
opensslthreadlock.c - show how to do locking when using OpenSSL multi-threaded
|
||||||
persistant.c - request two URLs with a persistent connection
|
persistant.c - request two URLs with a persistent connection
|
||||||
|
@@ -27,7 +27,9 @@
|
|||||||
# ifdef __VMS
|
# ifdef __VMS
|
||||||
typedef int intptr_t;
|
typedef int intptr_t;
|
||||||
# endif
|
# endif
|
||||||
# include <stdint.h>
|
# if !defined(_AIX) && !defined(__sgi) && !defined(__osf__)
|
||||||
|
# include <stdint.h>
|
||||||
|
# endif
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -51,6 +53,12 @@
|
|||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_AIX) || defined(__sgi) || defined(__osf__)
|
||||||
|
#ifndef intptr_t
|
||||||
|
#define intptr_t long
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This example shows a HTTP PUT operation with authentiction using "any"
|
* This example shows a HTTP PUT operation with authentiction using "any"
|
||||||
* type. It PUTs a file given as a command line argument to the URL also given
|
* type. It PUTs a file given as a command line argument to the URL also given
|
||||||
|
454
docs/examples/asiohiper.cpp
Normal file
454
docs/examples/asiohiper.cpp
Normal file
@@ -0,0 +1,454 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 2012, 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.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* file: asiohiper.cpp
|
||||||
|
* Example program to demonstrate the use of multi socket interface
|
||||||
|
* with boost::asio
|
||||||
|
*
|
||||||
|
* This program is in c++ and uses boost::asio instead of libevent/libev.
|
||||||
|
* Requires boost::asio, boost::bind and boost::system
|
||||||
|
*
|
||||||
|
* This is an adaptation of libcurl's "hiperfifo.c" and "evhiperfifo.c"
|
||||||
|
* sample programs. This example implements a subset of the functionality from
|
||||||
|
* hiperfifo.c, for full functionality refer hiperfifo.c or evhiperfifo.c
|
||||||
|
*
|
||||||
|
* Written by Lijo Antony based on hiperfifo.c by Jeff Pohlmeyer
|
||||||
|
*
|
||||||
|
* When running, the program creates an easy handle for a URL and
|
||||||
|
* uses the curl_multi API to fetch it.
|
||||||
|
*
|
||||||
|
* Note:
|
||||||
|
* For the sake of simplicity, URL is hard coded to "www.google.com"
|
||||||
|
*
|
||||||
|
* This is purely a demo app, all retrieved data is simply discarded by the write
|
||||||
|
* callback.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
|
#include <boost/asio.hpp>
|
||||||
|
#include <boost/bind.hpp>
|
||||||
|
|
||||||
|
#define MSG_OUT stdout /* Send info to stdout, change to stderr if you want */
|
||||||
|
|
||||||
|
/* boost::asio related objects
|
||||||
|
* using global variables for simplicity
|
||||||
|
*/
|
||||||
|
boost::asio::io_service io_service;
|
||||||
|
boost::asio::deadline_timer timer(io_service);
|
||||||
|
std::map<curl_socket_t, boost::asio::ip::tcp::socket *> socket_map;
|
||||||
|
|
||||||
|
/* Global information, common to all connections */
|
||||||
|
typedef struct _GlobalInfo
|
||||||
|
{
|
||||||
|
CURLM *multi;
|
||||||
|
int still_running;
|
||||||
|
} GlobalInfo;
|
||||||
|
|
||||||
|
/* Information associated with a specific easy handle */
|
||||||
|
typedef struct _ConnInfo
|
||||||
|
{
|
||||||
|
CURL *easy;
|
||||||
|
char *url;
|
||||||
|
GlobalInfo *global;
|
||||||
|
char error[CURL_ERROR_SIZE];
|
||||||
|
} ConnInfo;
|
||||||
|
|
||||||
|
static void timer_cb(const boost::system::error_code & error, GlobalInfo *g);
|
||||||
|
|
||||||
|
/* Update the event timer after curl_multi library calls */
|
||||||
|
static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nmulti_timer_cb: timeout_ms %ld", timeout_ms);
|
||||||
|
|
||||||
|
/* cancel running timer */
|
||||||
|
timer.cancel();
|
||||||
|
|
||||||
|
if ( timeout_ms > 0 )
|
||||||
|
{
|
||||||
|
/* update timer */
|
||||||
|
timer.expires_from_now(boost::posix_time::millisec(timeout_ms));
|
||||||
|
timer.async_wait(boost::bind(&timer_cb, _1, g));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* call timeout function immediately */
|
||||||
|
boost::system::error_code error; /*success*/
|
||||||
|
timer_cb(error, g);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Die if we get a bad CURLMcode somewhere */
|
||||||
|
static void mcode_or_die(const char *where, CURLMcode code)
|
||||||
|
{
|
||||||
|
if ( CURLM_OK != code )
|
||||||
|
{
|
||||||
|
const char *s;
|
||||||
|
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_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);
|
||||||
|
/* ignore this error */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
fprintf(MSG_OUT, "\nERROR: %s returns %s", where, s);
|
||||||
|
exit(code);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Check for completed transfers, and remove their easy handles */
|
||||||
|
static void check_multi_info(GlobalInfo *g)
|
||||||
|
{
|
||||||
|
char *eff_url;
|
||||||
|
CURLMsg *msg;
|
||||||
|
int msgs_left;
|
||||||
|
ConnInfo *conn;
|
||||||
|
CURL *easy;
|
||||||
|
CURLcode res;
|
||||||
|
|
||||||
|
fprintf(MSG_OUT, "\nREMAINING: %d", g->still_running);
|
||||||
|
|
||||||
|
while ((msg = curl_multi_info_read(g->multi, &msgs_left)))
|
||||||
|
{
|
||||||
|
if (msg->msg == CURLMSG_DONE)
|
||||||
|
{
|
||||||
|
easy = msg->easy_handle;
|
||||||
|
res = msg->data.result;
|
||||||
|
curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
|
||||||
|
curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url);
|
||||||
|
fprintf(MSG_OUT, "\nDONE: %s => (%d) %s", eff_url, res, conn->error);
|
||||||
|
curl_multi_remove_handle(g->multi, easy);
|
||||||
|
free(conn->url);
|
||||||
|
curl_easy_cleanup(easy);
|
||||||
|
free(conn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nevent_cb: action=%d", action);
|
||||||
|
|
||||||
|
CURLMcode rc;
|
||||||
|
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);
|
||||||
|
check_multi_info(g);
|
||||||
|
|
||||||
|
if ( g->still_running <= 0 )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nlast transfer done, kill timeout");
|
||||||
|
timer.cancel();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Called by asio when our timeout expires */
|
||||||
|
static void timer_cb(const boost::system::error_code & error, GlobalInfo *g)
|
||||||
|
{
|
||||||
|
if ( !error)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\ntimer_cb: ");
|
||||||
|
|
||||||
|
CURLMcode rc;
|
||||||
|
rc = curl_multi_socket_action(g->multi, CURL_SOCKET_TIMEOUT, 0, &g->still_running);
|
||||||
|
|
||||||
|
mcode_or_die("timer_cb: curl_multi_socket_action", rc);
|
||||||
|
check_multi_info(g);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Clean up any data */
|
||||||
|
static void remsock(int *f, GlobalInfo *g)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nremsock: ");
|
||||||
|
|
||||||
|
if ( f )
|
||||||
|
{
|
||||||
|
free(f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void setsock(int *fdp, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nsetsock: socket=%d, act=%d, fdp=%p", s, act, fdp);
|
||||||
|
|
||||||
|
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(s);
|
||||||
|
|
||||||
|
if ( it == socket_map.end() )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nsocket %d is a c-ares socket, ignoring", s);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
boost::asio::ip::tcp::socket * tcp_socket = it->second;
|
||||||
|
|
||||||
|
*fdp = act;
|
||||||
|
|
||||||
|
if ( act == CURL_POLL_IN )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nwatching for socket to become readable");
|
||||||
|
|
||||||
|
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
||||||
|
boost::bind(&event_cb, g,
|
||||||
|
tcp_socket,
|
||||||
|
act));
|
||||||
|
}
|
||||||
|
else if ( act == CURL_POLL_OUT )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nwatching for socket to become writable");
|
||||||
|
|
||||||
|
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
||||||
|
boost::bind(&event_cb, g,
|
||||||
|
tcp_socket,
|
||||||
|
act));
|
||||||
|
}
|
||||||
|
else if ( act == CURL_POLL_INOUT )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nwatching for socket to become readable & writable");
|
||||||
|
|
||||||
|
tcp_socket->async_read_some(boost::asio::null_buffers(),
|
||||||
|
boost::bind(&event_cb, g,
|
||||||
|
tcp_socket,
|
||||||
|
act));
|
||||||
|
|
||||||
|
tcp_socket->async_write_some(boost::asio::null_buffers(),
|
||||||
|
boost::bind(&event_cb, g,
|
||||||
|
tcp_socket,
|
||||||
|
act));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
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 */
|
||||||
|
|
||||||
|
setsock(fdp, s, easy, action, g);
|
||||||
|
curl_multi_assign(g->multi, s, fdp);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CURLMOPT_SOCKETFUNCTION */
|
||||||
|
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);
|
||||||
|
|
||||||
|
GlobalInfo *g = (GlobalInfo*) cbp;
|
||||||
|
int *actionp = (int*) sockp;
|
||||||
|
const char *whatstr[]={ "none", "IN", "OUT", "INOUT", "REMOVE"};
|
||||||
|
|
||||||
|
fprintf(MSG_OUT,
|
||||||
|
"\nsocket callback: s=%d e=%p what=%s ", s, e, whatstr[what]);
|
||||||
|
|
||||||
|
if ( what == CURL_POLL_REMOVE )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\n");
|
||||||
|
remsock(actionp, g);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ( !actionp )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nAdding data: %s", whatstr[what]);
|
||||||
|
addsock(s, e, what, g);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT,
|
||||||
|
"\nChanging action from %s to %s",
|
||||||
|
whatstr[*actionp], whatstr[what]);
|
||||||
|
setsock(actionp, s, e, what, g);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* CURLOPT_WRITEFUNCTION */
|
||||||
|
static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
|
||||||
|
{
|
||||||
|
|
||||||
|
size_t written = size * nmemb;
|
||||||
|
char* pBuffer = (char*)malloc(written + 1);
|
||||||
|
|
||||||
|
strncpy(pBuffer, (const char *)ptr, written);
|
||||||
|
pBuffer [written] = '\0';
|
||||||
|
|
||||||
|
fprintf(MSG_OUT, "%s", pBuffer);
|
||||||
|
|
||||||
|
free(pBuffer);
|
||||||
|
|
||||||
|
return written;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* CURLOPT_PROGRESSFUNCTION */
|
||||||
|
static int prog_cb (void *p, double dltotal, double dlnow, double ult,
|
||||||
|
double uln)
|
||||||
|
{
|
||||||
|
ConnInfo *conn = (ConnInfo *)p;
|
||||||
|
(void)ult;
|
||||||
|
(void)uln;
|
||||||
|
|
||||||
|
fprintf(MSG_OUT, "\nProgress: %s (%g/%g)", conn->url, dlnow, dltotal);
|
||||||
|
fprintf(MSG_OUT, "\nProgress: %s (%g)", conn->url, ult);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CURLOPT_OPENSOCKETFUNCTION */
|
||||||
|
static curl_socket_t opensocket(void *clientp,
|
||||||
|
curlsocktype purpose,
|
||||||
|
struct curl_sockaddr *address)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nopensocket :");
|
||||||
|
|
||||||
|
curl_socket_t sockfd = CURL_SOCKET_BAD;
|
||||||
|
|
||||||
|
/* restrict to ipv4 */
|
||||||
|
if (purpose == CURLSOCKTYPE_IPCXN && address->family == AF_INET)
|
||||||
|
{
|
||||||
|
/* create a tcp socket object */
|
||||||
|
boost::asio::ip::tcp::socket *tcp_socket = new boost::asio::ip::tcp::socket(io_service);
|
||||||
|
|
||||||
|
/* open it and get the native handle*/
|
||||||
|
boost::system::error_code ec;
|
||||||
|
tcp_socket->open(boost::asio::ip::tcp::v4(), ec);
|
||||||
|
|
||||||
|
if (ec)
|
||||||
|
{
|
||||||
|
//An error occurred
|
||||||
|
std::cout << std::endl << "Couldn't open socket [" << ec << "][" << ec.message() << "]";
|
||||||
|
fprintf(MSG_OUT, "\nERROR: Returning CURL_SOCKET_BAD to signal error");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sockfd = tcp_socket->native_handle();
|
||||||
|
fprintf(MSG_OUT, "\nOpened socket %d", sockfd);
|
||||||
|
|
||||||
|
/* save it for monitoring */
|
||||||
|
socket_map.insert(std::pair<curl_socket_t, boost::asio::ip::tcp::socket *>(sockfd, tcp_socket));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return sockfd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CURLOPT_CLOSESOCKETFUNCTION */
|
||||||
|
static int closesocket(void *clientp, curl_socket_t item)
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\nclosesocket : %d", item);
|
||||||
|
|
||||||
|
std::map<curl_socket_t, boost::asio::ip::tcp::socket *>::iterator it = socket_map.find(item);
|
||||||
|
|
||||||
|
if ( it != socket_map.end() )
|
||||||
|
{
|
||||||
|
delete it->second;
|
||||||
|
socket_map.erase(it);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Create a new easy handle, and add it to the global curl_multi */
|
||||||
|
static void new_conn(char *url, GlobalInfo *g )
|
||||||
|
{
|
||||||
|
ConnInfo *conn;
|
||||||
|
CURLMcode rc;
|
||||||
|
|
||||||
|
conn = (ConnInfo *)calloc(1, sizeof(ConnInfo));
|
||||||
|
memset(conn, 0, sizeof(ConnInfo));
|
||||||
|
conn->error[0]='\0';
|
||||||
|
|
||||||
|
conn->easy = curl_easy_init();
|
||||||
|
|
||||||
|
if ( !conn->easy )
|
||||||
|
{
|
||||||
|
fprintf(MSG_OUT, "\ncurl_easy_init() failed, exiting!");
|
||||||
|
exit(2);
|
||||||
|
}
|
||||||
|
conn->global = g;
|
||||||
|
conn->url = strdup(url);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, 1L);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_PROGRESSFUNCTION, prog_cb);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_PROGRESSDATA, conn);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_TIME, 3L);
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_LIMIT, 10L);
|
||||||
|
|
||||||
|
/* call this function to get a socket */
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_OPENSOCKETFUNCTION, opensocket);
|
||||||
|
|
||||||
|
/* call this function to close a socket */
|
||||||
|
curl_easy_setopt(conn->easy, CURLOPT_CLOSESOCKETFUNCTION, closesocket);
|
||||||
|
|
||||||
|
fprintf(MSG_OUT,
|
||||||
|
"\nAdding easy %p to multi %p (%s)", conn->easy, g->multi, url);
|
||||||
|
rc = curl_multi_add_handle(g->multi, conn->easy);
|
||||||
|
mcode_or_die("new_conn: curl_multi_add_handle", rc);
|
||||||
|
|
||||||
|
/* note that the add_handle() will set a time-out to trigger very soon so
|
||||||
|
that the necessary socket_action() call will be called by this app */
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
GlobalInfo g;
|
||||||
|
CURLMcode rc;
|
||||||
|
(void)argc;
|
||||||
|
(void)argv;
|
||||||
|
|
||||||
|
memset(&g, 0, sizeof(GlobalInfo));
|
||||||
|
g.multi = curl_multi_init();
|
||||||
|
|
||||||
|
curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
|
||||||
|
curl_multi_setopt(g.multi, CURLMOPT_SOCKETDATA, &g);
|
||||||
|
curl_multi_setopt(g.multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb);
|
||||||
|
curl_multi_setopt(g.multi, CURLMOPT_TIMERDATA, &g);
|
||||||
|
|
||||||
|
new_conn((char *)"www.google.com", &g); /* add a URL */
|
||||||
|
|
||||||
|
/* enter io_service run loop */
|
||||||
|
io_service.run();
|
||||||
|
|
||||||
|
curl_multi_cleanup(g.multi);
|
||||||
|
|
||||||
|
fprintf(MSG_OUT, "\ndone.\n");
|
||||||
|
return 0;
|
||||||
|
}
|
@@ -52,18 +52,24 @@ int main(void)
|
|||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
if(!res) {
|
if(!res) {
|
||||||
struct curl_certinfo *ci = NULL;
|
union {
|
||||||
|
struct curl_slist *to_info;
|
||||||
|
struct curl_certinfo *to_certinfo;
|
||||||
|
} ptr;
|
||||||
|
|
||||||
res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &ci);
|
ptr.to_info = NULL;
|
||||||
|
|
||||||
if(!res && ci) {
|
res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &ptr.to_info);
|
||||||
|
|
||||||
|
if(!res && ptr.to_info) {
|
||||||
int i;
|
int i;
|
||||||
printf("%d certs!\n", ci->num_of_certs);
|
|
||||||
|
|
||||||
for(i=0; i<ci->num_of_certs; i++) {
|
printf("%d certs!\n", ptr.to_certinfo->num_of_certs);
|
||||||
|
|
||||||
|
for(i = 0; i < ptr.to_certinfo->num_of_certs; i++) {
|
||||||
struct curl_slist *slist;
|
struct curl_slist *slist;
|
||||||
|
|
||||||
for(slist = ci->certinfo[i]; slist; slist = slist->next)
|
for(slist = ptr.to_certinfo->certinfo[i]; slist; slist = slist->next)
|
||||||
printf("%s\n", slist->data);
|
printf("%s\n", slist->data);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -71,7 +77,6 @@ int main(void)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -60,7 +60,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
CURL *curl_handle;
|
CURL *curl_handle;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
int prtsep = 0, prttime = 0;
|
int prtall = 0, prtsep = 0, prttime = 0;
|
||||||
const char *url = URL_1M;
|
const char *url = URL_1M;
|
||||||
char *appname = argv[0];
|
char *appname = argv[0];
|
||||||
|
|
||||||
@@ -77,6 +77,8 @@ int main(int argc, char *argv[])
|
|||||||
fprintf(stderr, "\r%s %s - %s\n",
|
fprintf(stderr, "\r%s %s - %s\n",
|
||||||
appname, CHKSPEED_VERSION, curl_version());
|
appname, CHKSPEED_VERSION, curl_version());
|
||||||
exit(1);
|
exit(1);
|
||||||
|
} else if (strncasecmp(*argv, "-A", 2) == 0) {
|
||||||
|
prtall = 1;
|
||||||
} else if (strncasecmp(*argv, "-X", 2) == 0) {
|
} else if (strncasecmp(*argv, "-X", 2) == 0) {
|
||||||
prtsep = 1;
|
prtsep = 1;
|
||||||
} else if (strncasecmp(*argv, "-T", 2) == 0) {
|
} else if (strncasecmp(*argv, "-T", 2) == 0) {
|
||||||
@@ -161,6 +163,18 @@ int main(int argc, char *argv[])
|
|||||||
if((CURLE_OK == res) && (val>0))
|
if((CURLE_OK == res) && (val>0))
|
||||||
printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024);
|
printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024);
|
||||||
|
|
||||||
|
if (prtall) {
|
||||||
|
/* check for name resolution time */
|
||||||
|
res = curl_easy_getinfo(curl_handle, CURLINFO_NAMELOOKUP_TIME, &val);
|
||||||
|
if((CURLE_OK == res) && (val>0))
|
||||||
|
printf("Name lookup time: %0.3f sec.\n", val);
|
||||||
|
|
||||||
|
/* check for connect time */
|
||||||
|
res = curl_easy_getinfo(curl_handle, CURLINFO_CONNECT_TIME, &val);
|
||||||
|
if((CURLE_OK == res) && (val>0))
|
||||||
|
printf("Connect time: %0.3f sec.\n", val);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "Error while fetching '%s' : %s\n",
|
fprintf(stderr, "Error while fetching '%s' : %s\n",
|
||||||
url, curl_easy_strerror(res));
|
url, curl_easy_strerror(res));
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -89,7 +89,7 @@ main(void)
|
|||||||
#endif
|
#endif
|
||||||
/* Netscape format cookie */
|
/* Netscape format cookie */
|
||||||
snprintf(nline, sizeof(nline), "%s\t%s\t%s\t%s\t%lu\t%s\t%s",
|
snprintf(nline, sizeof(nline), "%s\t%s\t%s\t%s\t%lu\t%s\t%s",
|
||||||
".google.com", "TRUE", "/", "FALSE", time(NULL) + 31337, "PREF", "hello google, i like you very much!");
|
".google.com", "TRUE", "/", "FALSE", (unsigned long)time(NULL) + 31337UL, "PREF", "hello google, i like you very much!");
|
||||||
res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline);
|
res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline);
|
||||||
if (res != CURLE_OK) {
|
if (res != CURLE_OK) {
|
||||||
fprintf(stderr, "Curl curl_easy_setopt failed: %s\n", curl_easy_strerror(res));
|
fprintf(stderr, "Curl curl_easy_setopt failed: %s\n", curl_easy_strerror(res));
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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,6 +130,9 @@ int main(void)
|
|||||||
/* the DEBUGFUNCTION has no effect until we enable VERBOSE */
|
/* the DEBUGFUNCTION has no effect until we enable VERBOSE */
|
||||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
|
/* example.com is redirected, so we tell libcurl to follow redirection */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
|
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
/* Check for errors */
|
/* Check for errors */
|
||||||
|
@@ -47,6 +47,10 @@
|
|||||||
#define IPADDR "127.0.0.1"
|
#define IPADDR "127.0.0.1"
|
||||||
#define PORTNUM 80
|
#define PORTNUM 80
|
||||||
|
|
||||||
|
#ifndef INADDR_NONE
|
||||||
|
#define INADDR_NONE 0xffffffff
|
||||||
|
#endif
|
||||||
|
|
||||||
static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream)
|
static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream)
|
||||||
{
|
{
|
||||||
int written = fwrite(ptr, size, nmemb, (FILE *)stream);
|
int written = fwrite(ptr, size, nmemb, (FILE *)stream);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -43,8 +43,8 @@ int main(void)
|
|||||||
char ftpurl[] = "ftp://ftp.example.com/gnu/binutils/binutils-2.19.1.tar.bz2";
|
char ftpurl[] = "ftp://ftp.example.com/gnu/binutils/binutils-2.19.1.tar.bz2";
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
const time_t filetime;
|
long filetime = -1;
|
||||||
const double filesize;
|
double filesize = 0.0;
|
||||||
const char *filename = strrchr(ftpurl, '/') + 1;
|
const char *filename = strrchr(ftpurl, '/') + 1;
|
||||||
|
|
||||||
curl_global_init(CURL_GLOBAL_DEFAULT);
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
@@ -67,10 +67,12 @@ int main(void)
|
|||||||
if(CURLE_OK == res) {
|
if(CURLE_OK == res) {
|
||||||
/* http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */
|
/* http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */
|
||||||
res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
|
res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
|
||||||
if((CURLE_OK == res) && filetime)
|
if((CURLE_OK == res) && (filetime >= 0)) {
|
||||||
printf("filetime %s: %s", filename, ctime(&filetime));
|
time_t file_time = (time_t)filetime;
|
||||||
|
printf("filetime %s: %s", filename, ctime(&file_time));
|
||||||
|
}
|
||||||
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &filesize);
|
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &filesize);
|
||||||
if((CURLE_OK == res) && (filesize>0))
|
if((CURLE_OK == res) && (filesize>0.0))
|
||||||
printf("filesize %s: %0.0f bytes\n", filename, filesize);
|
printf("filesize %s: %0.0f bytes\n", filename, filesize);
|
||||||
} else {
|
} else {
|
||||||
/* we failed */
|
/* we failed */
|
||||||
|
@@ -42,10 +42,10 @@ WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp)
|
|||||||
struct MemoryStruct *mem = (struct MemoryStruct *)userp;
|
struct MemoryStruct *mem = (struct MemoryStruct *)userp;
|
||||||
|
|
||||||
mem->memory = realloc(mem->memory, mem->size + realsize + 1);
|
mem->memory = realloc(mem->memory, mem->size + realsize + 1);
|
||||||
if (mem->memory == NULL) {
|
if(mem->memory == NULL) {
|
||||||
/* out of memory! */
|
/* out of memory! */
|
||||||
printf("not enough memory (realloc returned NULL)\n");
|
printf("not enough memory (realloc returned NULL)\n");
|
||||||
exit(EXIT_FAILURE);
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&(mem->memory[mem->size]), contents, realsize);
|
memcpy(&(mem->memory[mem->size]), contents, realsize);
|
||||||
@@ -59,6 +59,7 @@ WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp)
|
|||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
CURL *curl_handle;
|
CURL *curl_handle;
|
||||||
|
CURLcode res;
|
||||||
|
|
||||||
struct MemoryStruct chunk;
|
struct MemoryStruct chunk;
|
||||||
|
|
||||||
@@ -84,24 +85,31 @@ int main(void)
|
|||||||
curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
|
curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
|
||||||
|
|
||||||
/* get it! */
|
/* get it! */
|
||||||
curl_easy_perform(curl_handle);
|
res = curl_easy_perform(curl_handle);
|
||||||
|
|
||||||
|
/* check for errors */
|
||||||
|
if(res != CURLE_OK) {
|
||||||
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
|
curl_easy_strerror(res));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/*
|
||||||
|
* Now, our chunk.memory points to a memory block that is chunk.size
|
||||||
|
* bytes big and contains the remote file.
|
||||||
|
*
|
||||||
|
* Do something nice with it!
|
||||||
|
*
|
||||||
|
* You should be aware of the fact that at this point we might have an
|
||||||
|
* allocated data block, and nothing has yet deallocated that data. So when
|
||||||
|
* you're done with it, you should free() it as a nice application.
|
||||||
|
*/
|
||||||
|
|
||||||
|
printf("%lu bytes retrieved\n", (long)chunk.size);
|
||||||
|
}
|
||||||
|
|
||||||
/* cleanup curl stuff */
|
/* cleanup curl stuff */
|
||||||
curl_easy_cleanup(curl_handle);
|
curl_easy_cleanup(curl_handle);
|
||||||
|
|
||||||
/*
|
|
||||||
* Now, our chunk.memory points to a memory block that is chunk.size
|
|
||||||
* bytes big and contains the remote file.
|
|
||||||
*
|
|
||||||
* Do something nice with it!
|
|
||||||
*
|
|
||||||
* You should be aware of the fact that at this point we might have an
|
|
||||||
* allocated data block, and nothing has yet deallocated that data. So when
|
|
||||||
* you're done with it, you should free() it as a nice application.
|
|
||||||
*/
|
|
||||||
|
|
||||||
printf("%lu bytes retrieved\n", (long)chunk.size);
|
|
||||||
|
|
||||||
if(chunk.memory)
|
if(chunk.memory)
|
||||||
free(chunk.memory);
|
free(chunk.memory);
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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,7 +24,7 @@
|
|||||||
|
|
||||||
Written by Jeff Pohlmeyer
|
Written by Jeff Pohlmeyer
|
||||||
|
|
||||||
Requires libevent and a (POSIX?) system that has mkfifo().
|
Requires libevent version 2 and a (POSIX?) system that has mkfifo().
|
||||||
|
|
||||||
This is an adaptation of libcurl's "hipev.c" and libevent's "event-test.c"
|
This is an adaptation of libcurl's "hipev.c" and libevent's "event-test.c"
|
||||||
sample programs.
|
sample programs.
|
||||||
@@ -61,7 +61,7 @@ callback.
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include <event.h>
|
#include <event2/event.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -71,9 +71,11 @@ callback.
|
|||||||
|
|
||||||
|
|
||||||
/* Global information, common to all connections */
|
/* Global information, common to all connections */
|
||||||
typedef struct _GlobalInfo {
|
typedef struct _GlobalInfo
|
||||||
struct event fifo_event;
|
{
|
||||||
struct event timer_event;
|
struct event_base *evbase;
|
||||||
|
struct event *fifo_event;
|
||||||
|
struct event *timer_event;
|
||||||
CURLM *multi;
|
CURLM *multi;
|
||||||
int still_running;
|
int still_running;
|
||||||
FILE* input;
|
FILE* input;
|
||||||
@@ -81,7 +83,8 @@ typedef struct _GlobalInfo {
|
|||||||
|
|
||||||
|
|
||||||
/* Information associated with a specific easy handle */
|
/* Information associated with a specific easy handle */
|
||||||
typedef struct _ConnInfo {
|
typedef struct _ConnInfo
|
||||||
|
{
|
||||||
CURL *easy;
|
CURL *easy;
|
||||||
char *url;
|
char *url;
|
||||||
GlobalInfo *global;
|
GlobalInfo *global;
|
||||||
@@ -90,12 +93,13 @@ typedef struct _ConnInfo {
|
|||||||
|
|
||||||
|
|
||||||
/* Information associated with a specific socket */
|
/* Information associated with a specific socket */
|
||||||
typedef struct _SockInfo {
|
typedef struct _SockInfo
|
||||||
|
{
|
||||||
curl_socket_t sockfd;
|
curl_socket_t sockfd;
|
||||||
CURL *easy;
|
CURL *easy;
|
||||||
int action;
|
int action;
|
||||||
long timeout;
|
long timeout;
|
||||||
struct event ev;
|
struct event *ev;
|
||||||
int evset;
|
int evset;
|
||||||
GlobalInfo *global;
|
GlobalInfo *global;
|
||||||
} SockInfo;
|
} SockInfo;
|
||||||
@@ -111,7 +115,7 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
|
|||||||
timeout.tv_sec = timeout_ms/1000;
|
timeout.tv_sec = timeout_ms/1000;
|
||||||
timeout.tv_usec = (timeout_ms%1000)*1000;
|
timeout.tv_usec = (timeout_ms%1000)*1000;
|
||||||
fprintf(MSG_OUT, "multi_timer_cb: Setting timeout to %ld ms\n", timeout_ms);
|
fprintf(MSG_OUT, "multi_timer_cb: Setting timeout to %ld ms\n", timeout_ms);
|
||||||
evtimer_add(&g->timer_event, &timeout);
|
evtimer_add(g->timer_event, &timeout);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -186,8 +190,8 @@ static void event_cb(int fd, short kind, void *userp)
|
|||||||
check_multi_info(g);
|
check_multi_info(g);
|
||||||
if ( g->still_running <= 0 ) {
|
if ( g->still_running <= 0 ) {
|
||||||
fprintf(MSG_OUT, "last transfer done, kill timeout\n");
|
fprintf(MSG_OUT, "last transfer done, kill timeout\n");
|
||||||
if (evtimer_pending(&g->timer_event, NULL)) {
|
if (evtimer_pending(g->timer_event, NULL)) {
|
||||||
evtimer_del(&g->timer_event);
|
evtimer_del(g->timer_event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -215,7 +219,7 @@ static void remsock(SockInfo *f)
|
|||||||
{
|
{
|
||||||
if (f) {
|
if (f) {
|
||||||
if (f->evset)
|
if (f->evset)
|
||||||
event_del(&f->ev);
|
event_free(f->ev);
|
||||||
free(f);
|
free(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -232,16 +236,17 @@ static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
|
|||||||
f->action = act;
|
f->action = act;
|
||||||
f->easy = e;
|
f->easy = e;
|
||||||
if (f->evset)
|
if (f->evset)
|
||||||
event_del(&f->ev);
|
event_free(f->ev);
|
||||||
event_set(&f->ev, f->sockfd, kind, event_cb, g);
|
f->ev = event_new(g->evbase, f->sockfd, kind, event_cb, g);
|
||||||
f->evset=1;
|
f->evset = 1;
|
||||||
event_add(&f->ev, NULL);
|
event_add(f->ev, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Initialize a new SockInfo structure */
|
/* Initialize a new SockInfo structure */
|
||||||
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)
|
||||||
|
{
|
||||||
SockInfo *fdp = calloc(sizeof(SockInfo), 1);
|
SockInfo *fdp = calloc(sizeof(SockInfo), 1);
|
||||||
|
|
||||||
fdp->global = g;
|
fdp->global = g;
|
||||||
@@ -359,10 +364,10 @@ static void fifo_cb(int fd, short event, void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Create a named pipe and tell libevent to monitor it */
|
/* Create a named pipe and tell libevent to monitor it */
|
||||||
|
static const char *fifo = "hiper.fifo";
|
||||||
static int init_fifo (GlobalInfo *g)
|
static int init_fifo (GlobalInfo *g)
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
static const char *fifo = "hiper.fifo";
|
|
||||||
curl_socket_t sockfd;
|
curl_socket_t sockfd;
|
||||||
|
|
||||||
fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo);
|
fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo);
|
||||||
@@ -386,11 +391,18 @@ static int init_fifo (GlobalInfo *g)
|
|||||||
g->input = fdopen(sockfd, "r");
|
g->input = fdopen(sockfd, "r");
|
||||||
|
|
||||||
fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo);
|
fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo);
|
||||||
event_set(&g->fifo_event, sockfd, EV_READ | EV_PERSIST, fifo_cb, g);
|
g->fifo_event = event_new(g->evbase, sockfd, EV_READ|EV_PERSIST, fifo_cb, g);
|
||||||
event_add(&g->fifo_event, NULL);
|
event_add(g->fifo_event, NULL);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void clean_fifo(GlobalInfo *g)
|
||||||
|
{
|
||||||
|
event_free(g->fifo_event);
|
||||||
|
fclose(g->input);
|
||||||
|
unlink(fifo);
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
GlobalInfo g;
|
GlobalInfo g;
|
||||||
@@ -398,10 +410,10 @@ int main(int argc, char **argv)
|
|||||||
(void)argv;
|
(void)argv;
|
||||||
|
|
||||||
memset(&g, 0, sizeof(GlobalInfo));
|
memset(&g, 0, sizeof(GlobalInfo));
|
||||||
event_init();
|
g.evbase = event_base_new();
|
||||||
init_fifo(&g);
|
init_fifo(&g);
|
||||||
g.multi = curl_multi_init();
|
g.multi = curl_multi_init();
|
||||||
evtimer_set(&g.timer_event, timer_cb, &g);
|
g.timer_event = evtimer_new(g.evbase, timer_cb, &g);
|
||||||
|
|
||||||
/* setup the generic multi interface options we want */
|
/* setup the generic multi interface options we want */
|
||||||
curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
|
curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
|
||||||
@@ -412,7 +424,13 @@ int main(int argc, char **argv)
|
|||||||
/* we don't call any curl_multi_socket*() function yet as we have no handles
|
/* we don't call any curl_multi_socket*() function yet as we have no handles
|
||||||
added! */
|
added! */
|
||||||
|
|
||||||
event_dispatch();
|
event_base_dispatch(g.evbase);
|
||||||
|
|
||||||
|
/* this, of course, won't get called since only way to stop this program is
|
||||||
|
via ctrl-C, but it is here to show how cleanup /would/ be done. */
|
||||||
|
clean_fifo(&g);
|
||||||
|
event_free(g.timer_event);
|
||||||
|
event_base_free(g.evbase);
|
||||||
curl_multi_cleanup(g.multi);
|
curl_multi_cleanup(g.multi);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
//
|
//
|
||||||
// GNU C++ compile command line suggestion (edit paths accordingly):
|
// GNU C++ compile command line suggestion (edit paths accordingly):
|
||||||
//
|
//
|
||||||
// g++ -Wall -I/opt/curl/include -I/opt/libxml/include/libxml2 htmltitle.cc \
|
// g++ -Wall -I/opt/curl/include -I/opt/libxml/include/libxml2 htmltitle.cpp \
|
||||||
// -o htmltitle -L/opt/curl/lib -L/opt/libxml/lib -lcurl -lxml2
|
// -o htmltitle -L/opt/curl/lib -L/opt/libxml/lib -lcurl -lxml2
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
@@ -41,6 +41,8 @@ int main(void)
|
|||||||
|
|
||||||
int still_running; /* keep number of running handles */
|
int still_running; /* keep number of running handles */
|
||||||
|
|
||||||
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
|
||||||
http_handle = curl_easy_init();
|
http_handle = curl_easy_init();
|
||||||
|
|
||||||
/* set the options (I left out a few, you'll get the point anyway) */
|
/* set the options (I left out a few, you'll get the point anyway) */
|
||||||
@@ -108,9 +110,13 @@ int main(void)
|
|||||||
}
|
}
|
||||||
} while(still_running);
|
} while(still_running);
|
||||||
|
|
||||||
curl_multi_cleanup(multi_handle);
|
curl_multi_remove_handle(multi_handle, http_handle);
|
||||||
|
|
||||||
curl_easy_cleanup(http_handle);
|
curl_easy_cleanup(http_handle);
|
||||||
|
|
||||||
|
curl_multi_cleanup(multi_handle);
|
||||||
|
|
||||||
|
curl_global_cleanup();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
212
docs/examples/multi-uv.c
Normal file
212
docs/examples/multi-uv.c
Normal file
@@ -0,0 +1,212 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
/* Example application code using the multi socket interface to download
|
||||||
|
multiple files at once, but instead of using curl_multi_perform and
|
||||||
|
curl_multi_wait, which uses select(), we use libuv.
|
||||||
|
It supports epoll, kqueue, etc. on unixes and fast IO completion ports on
|
||||||
|
Windows, which means, it should be very fast on all platforms..
|
||||||
|
|
||||||
|
Written by Clemens Gruber, based on an outdated example from uvbook and
|
||||||
|
some tests from libuv.
|
||||||
|
|
||||||
|
Requires libuv and (of course) libcurl.
|
||||||
|
|
||||||
|
See http://nikhilm.github.com/uvbook/ for more information on libuv.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <uv.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
uv_loop_t *loop;
|
||||||
|
CURLM *curl_handle;
|
||||||
|
uv_timer_t timeout;
|
||||||
|
|
||||||
|
typedef struct curl_context_s {
|
||||||
|
uv_poll_t poll_handle;
|
||||||
|
curl_socket_t sockfd;
|
||||||
|
} curl_context_t;
|
||||||
|
|
||||||
|
curl_context_t* create_curl_context(curl_socket_t sockfd)
|
||||||
|
{
|
||||||
|
curl_context_t *context;
|
||||||
|
|
||||||
|
context = (curl_context_t *) malloc(sizeof *context);
|
||||||
|
|
||||||
|
context->sockfd = sockfd;
|
||||||
|
|
||||||
|
uv_poll_init_socket(loop, &context->poll_handle, sockfd);
|
||||||
|
context->poll_handle.data = context;
|
||||||
|
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
|
||||||
|
void curl_close_cb(uv_handle_t *handle)
|
||||||
|
{
|
||||||
|
curl_context_t* context = (curl_context_t*) handle->data;
|
||||||
|
free(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
void destroy_curl_context(curl_context_t *context)
|
||||||
|
{
|
||||||
|
uv_close((uv_handle_t*) &context->poll_handle, curl_close_cb);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void add_download(const char *url, int num)
|
||||||
|
{
|
||||||
|
char filename[50];
|
||||||
|
FILE *file;
|
||||||
|
CURL *handle;
|
||||||
|
|
||||||
|
sprintf(filename, "%d.download", num);
|
||||||
|
|
||||||
|
file = fopen(filename, "w");
|
||||||
|
if (file == NULL) {
|
||||||
|
fprintf(stderr, "Error opening %s\n", filename);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
handle = curl_easy_init();
|
||||||
|
curl_easy_setopt(handle, CURLOPT_WRITEDATA, file);
|
||||||
|
curl_easy_setopt(handle, CURLOPT_URL, url);
|
||||||
|
curl_multi_add_handle(curl_handle, handle);
|
||||||
|
fprintf(stderr, "Added download %s -> %s\n", url, filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
void curl_perform(uv_poll_t *req, int status, int events)
|
||||||
|
{
|
||||||
|
int running_handles;
|
||||||
|
int flags = 0;
|
||||||
|
curl_context_t *context;
|
||||||
|
char *done_url;
|
||||||
|
CURLMsg *message;
|
||||||
|
int pending;
|
||||||
|
|
||||||
|
uv_timer_stop(&timeout);
|
||||||
|
|
||||||
|
if (events & UV_READABLE)
|
||||||
|
flags |= CURL_CSELECT_IN;
|
||||||
|
if (events & UV_WRITABLE)
|
||||||
|
flags |= CURL_CSELECT_OUT;
|
||||||
|
|
||||||
|
context = (curl_context_t*)req;
|
||||||
|
|
||||||
|
curl_multi_socket_action(curl_handle, context->sockfd, flags,
|
||||||
|
&running_handles);
|
||||||
|
|
||||||
|
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);
|
||||||
|
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)
|
||||||
|
{
|
||||||
|
int running_handles;
|
||||||
|
curl_multi_socket_action(curl_handle, CURL_SOCKET_TIMEOUT, 0,
|
||||||
|
&running_handles);
|
||||||
|
}
|
||||||
|
|
||||||
|
void start_timeout(CURLM *multi, long timeout_ms, void *userp)
|
||||||
|
{
|
||||||
|
if (timeout_ms <= 0)
|
||||||
|
timeout_ms = 1; /* 0 means directly call socket_action, but we'll do it in
|
||||||
|
a bit */
|
||||||
|
uv_timer_start(&timeout, on_timeout, timeout_ms, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
int handle_socket(CURL *easy, curl_socket_t s, int action, void *userp,
|
||||||
|
void *socketp)
|
||||||
|
{
|
||||||
|
curl_context_t *curl_context;
|
||||||
|
if (action == CURL_POLL_IN || action == CURL_POLL_OUT) {
|
||||||
|
if (socketp) {
|
||||||
|
curl_context = (curl_context_t*) socketp;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
curl_context = create_curl_context(s);
|
||||||
|
}
|
||||||
|
curl_multi_assign(curl_handle, s, (void *) curl_context);
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (action) {
|
||||||
|
case CURL_POLL_IN:
|
||||||
|
uv_poll_start(&curl_context->poll_handle, UV_READABLE, curl_perform);
|
||||||
|
break;
|
||||||
|
case CURL_POLL_OUT:
|
||||||
|
uv_poll_start(&curl_context->poll_handle, UV_WRITABLE, curl_perform);
|
||||||
|
break;
|
||||||
|
case CURL_POLL_REMOVE:
|
||||||
|
if (socketp) {
|
||||||
|
uv_poll_stop(&((curl_context_t*)socketp)->poll_handle);
|
||||||
|
destroy_curl_context((curl_context_t*) socketp);
|
||||||
|
curl_multi_assign(curl_handle, s, NULL);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
loop = uv_default_loop();
|
||||||
|
|
||||||
|
if (argc <= 1)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if (curl_global_init(CURL_GLOBAL_ALL)) {
|
||||||
|
fprintf(stderr, "Could not init cURL\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
uv_timer_init(loop, &timeout);
|
||||||
|
|
||||||
|
curl_handle = curl_multi_init();
|
||||||
|
curl_multi_setopt(curl_handle, CURLMOPT_SOCKETFUNCTION, handle_socket);
|
||||||
|
curl_multi_setopt(curl_handle, CURLMOPT_TIMERFUNCTION, start_timeout);
|
||||||
|
|
||||||
|
while (argc-- > 1) {
|
||||||
|
add_download(argv[argc], argc);
|
||||||
|
}
|
||||||
|
|
||||||
|
uv_run(loop, UV_RUN_DEFAULT);
|
||||||
|
curl_multi_cleanup(curl_handle);
|
||||||
|
return 0;
|
||||||
|
}
|
@@ -58,7 +58,7 @@ int main(void)
|
|||||||
struct WriteThis pooh;
|
struct WriteThis pooh;
|
||||||
|
|
||||||
pooh.readptr = data;
|
pooh.readptr = data;
|
||||||
pooh.sizeleft = strlen(data);
|
pooh.sizeleft = (long)strlen(data);
|
||||||
|
|
||||||
/* In windows, this will init the winsock stuff */
|
/* In windows, this will init the winsock stuff */
|
||||||
res = curl_global_init(CURL_GLOBAL_DEFAULT);
|
res = curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
|
@@ -59,7 +59,7 @@ static int progress(void *p,
|
|||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res=0;
|
CURLcode res = CURLE_OK;
|
||||||
struct myprogress prog;
|
struct myprogress prog;
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
@@ -74,7 +74,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
|
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
|
||||||
if(res)
|
if(res != CURLE_OK)
|
||||||
fprintf(stderr, "%s\n", curl_easy_strerror(res));
|
fprintf(stderr, "%s\n", curl_easy_strerror(res));
|
||||||
|
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
|
@@ -178,7 +178,7 @@ int main(int argc, char * const argv[])
|
|||||||
#endif
|
#endif
|
||||||
const char *range = "0.000-";
|
const char *range = "0.000-";
|
||||||
int rc = EXIT_SUCCESS;
|
int rc = EXIT_SUCCESS;
|
||||||
char *basename = NULL;
|
char *base_name = NULL;
|
||||||
|
|
||||||
printf("\nRTSP request %s\n", VERSION_STR);
|
printf("\nRTSP request %s\n", VERSION_STR);
|
||||||
printf(" Project web site: http://code.google.com/p/rtsprequest/\n");
|
printf(" Project web site: http://code.google.com/p/rtsprequest/\n");
|
||||||
@@ -186,20 +186,20 @@ int main(int argc, char * const argv[])
|
|||||||
|
|
||||||
/* check command line */
|
/* check command line */
|
||||||
if ((argc != 2) && (argc != 3)) {
|
if ((argc != 2) && (argc != 3)) {
|
||||||
basename = strrchr(argv[0], '/');
|
base_name = strrchr(argv[0], '/');
|
||||||
if (basename == NULL) {
|
if (base_name == NULL) {
|
||||||
basename = strrchr(argv[0], '\\');
|
base_name = strrchr(argv[0], '\\');
|
||||||
}
|
}
|
||||||
if (basename == NULL) {
|
if (base_name == NULL) {
|
||||||
basename = argv[0];
|
base_name = argv[0];
|
||||||
} else {
|
} else {
|
||||||
basename++;
|
base_name++;
|
||||||
}
|
}
|
||||||
printf("Usage: %s url [transport]\n", basename);
|
printf("Usage: %s url [transport]\n", base_name);
|
||||||
printf(" url of video server\n");
|
printf(" url of video server\n");
|
||||||
printf(" transport (optional) specifier for media stream protocol\n");
|
printf(" transport (optional) specifier for media stream protocol\n");
|
||||||
printf(" default transport: %s\n", transport);
|
printf(" default transport: %s\n", transport);
|
||||||
printf("Example: %s rtsp://192.168.0.2/media/video1\n\n", basename);
|
printf("Example: %s rtsp://192.168.0.2/media/video1\n\n", base_name);
|
||||||
rc = EXIT_FAILURE;
|
rc = EXIT_FAILURE;
|
||||||
} else {
|
} else {
|
||||||
const char *url = argv[1];
|
const char *url = argv[1];
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -30,6 +30,8 @@ int main(void)
|
|||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
|
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
|
||||||
|
/* example.com is redirected, so we tell libcurl to follow redirection */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
|
|
||||||
/* Perform the request, res will get the return code */
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
FILE *headerfile;
|
FILE *headerfile;
|
||||||
@@ -76,7 +77,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site");
|
curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site");
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, headerfile);
|
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, headerfile);
|
||||||
|
|
||||||
while(1) /* do some ugly short cut... */
|
for(i = 0; i < 1; i++) /* single-iteration loop, just to break out from */
|
||||||
{
|
{
|
||||||
if (pEngine) /* use crypto engine */
|
if (pEngine) /* use crypto engine */
|
||||||
{
|
{
|
||||||
@@ -125,7 +126,7 @@ int main(void)
|
|||||||
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
curl_easy_strerror(res));
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
break; /* we are done... */
|
/* we are done... */
|
||||||
}
|
}
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
@@ -162,7 +162,7 @@ method(s) available for your proxy authentication. (Added in 7.10.8)
|
|||||||
.IP CURLINFO_OS_ERRNO
|
.IP CURLINFO_OS_ERRNO
|
||||||
Pass a pointer to a long to receive the errno variable from a connect failure.
|
Pass a pointer to a long to receive the errno variable from a connect failure.
|
||||||
Note that the value is only set on failure, it is not reset upon a
|
Note that the value is only set on failure, it is not reset upon a
|
||||||
successfull operation. (Added in 7.12.2)
|
successful operation. (Added in 7.12.2)
|
||||||
.IP CURLINFO_NUM_CONNECTS
|
.IP CURLINFO_NUM_CONNECTS
|
||||||
Pass a pointer to a long to receive how many new connections libcurl had to
|
Pass a pointer to a long to receive how many new connections libcurl had to
|
||||||
create to achieve the previous transfer (only the successful connects are
|
create to achieve the previous transfer (only the successful connects are
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2013, 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
|
||||||
@@ -59,8 +59,13 @@ On success, returns \fBCURLE_OK\fP, stores the received data into
|
|||||||
|
|
||||||
On failure, returns the appropriate error code.
|
On failure, returns the appropriate error code.
|
||||||
|
|
||||||
If there is no data to read, the function returns \fBCURLE_AGAIN\fP. Use
|
If there is no data to read, the function returns \fBCURLE_AGAIN\fP. Use your
|
||||||
your operating system facilities to wait until the data is ready, and retry.
|
operating system facilities to wait until the data is ready, and retry.
|
||||||
|
|
||||||
|
Reading exactly 0 bytes would indicate a closed connection.
|
||||||
|
|
||||||
|
If there's no socket available to use from the previous transfer, this function
|
||||||
|
returns CURLE_UNSUPPORTED_PROTOCOL.
|
||||||
.SH EXAMPLE
|
.SH EXAMPLE
|
||||||
See \fBsendrecv.c\fP in \fBdocs/examples\fP directory for usage example.
|
See \fBsendrecv.c\fP in \fBdocs/examples\fP directory for usage example.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2013, 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
|
||||||
@@ -57,6 +57,9 @@ sent into \fB*n\fP. Note that this may very well be less than the amount you
|
|||||||
wanted to send.
|
wanted to send.
|
||||||
|
|
||||||
On failure, returns the appropriate error code.
|
On failure, returns the appropriate error code.
|
||||||
|
|
||||||
|
If there's no socket available to use from the previous transfer, this function
|
||||||
|
returns CURLE_UNSUPPORTED_PROTOCOL.
|
||||||
.SH EXAMPLE
|
.SH EXAMPLE
|
||||||
See \fBsendrecv.c\fP in \fBdocs/examples\fP directory for usage example.
|
See \fBsendrecv.c\fP in \fBdocs/examples\fP directory for usage example.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2013, 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
|
||||||
@@ -58,7 +58,8 @@ The \fIhandle\fP is the return code from a \fIcurl_easy_init(3)\fP or
|
|||||||
Set the parameter to 1 to get the library to display a lot of verbose
|
Set the parameter to 1 to get the library to display a lot of verbose
|
||||||
information about its operations. Very useful for libcurl and/or protocol
|
information about its operations. Very useful for libcurl and/or protocol
|
||||||
debugging and understanding. The verbose information will be sent to stderr,
|
debugging and understanding. The verbose information will be sent to stderr,
|
||||||
or the stream set with \fICURLOPT_STDERR\fP.
|
or the stream set with \fICURLOPT_STDERR\fP. The default value for this
|
||||||
|
parameter is 0.
|
||||||
|
|
||||||
You hardly ever want this set in production use, you will almost always want
|
You hardly ever want this set in production use, you will almost always want
|
||||||
this when you debug/report problems. Another neat option for debugging is the
|
this when you debug/report problems. Another neat option for debugging is the
|
||||||
@@ -66,11 +67,11 @@ this when you debug/report problems. Another neat option for debugging is the
|
|||||||
.IP CURLOPT_HEADER
|
.IP CURLOPT_HEADER
|
||||||
A parameter set to 1 tells the library to include the header in the body
|
A parameter set to 1 tells the library to include the header in the body
|
||||||
output. This is only relevant for protocols that actually have headers
|
output. This is only relevant for protocols that actually have headers
|
||||||
preceding the data (like HTTP).
|
preceding the data (like HTTP). The default value for this parameter is 0.
|
||||||
.IP CURLOPT_NOPROGRESS
|
.IP CURLOPT_NOPROGRESS
|
||||||
Pass a long. If set to 1, it tells the library to shut off the progress meter
|
Pass a long. If set to 1, it tells the library to shut off the progress meter
|
||||||
completely. It will also prevent the \fICURLOPT_PROGRESSFUNCTION\fP from
|
completely. It will also prevent the \fICURLOPT_PROGRESSFUNCTION\fP from
|
||||||
getting called.
|
getting called. The default value for this parameter is 1.
|
||||||
|
|
||||||
Future versions of libcurl are likely to not have any built-in progress meter
|
Future versions of libcurl are likely to not have any built-in progress meter
|
||||||
at all.
|
at all.
|
||||||
@@ -79,6 +80,7 @@ Pass a long. If it is 1, libcurl will not use any functions that
|
|||||||
install signal handlers or any functions that cause signals to be sent to the
|
install signal handlers or any functions that cause signals to be sent to the
|
||||||
process. This option is mainly here to allow multi-threaded unix applications
|
process. This option is mainly here to allow multi-threaded unix applications
|
||||||
to still set/use all timeout options etc, without risking getting signals.
|
to still set/use all timeout options etc, without risking getting signals.
|
||||||
|
The default value for this parameter is 0.
|
||||||
(Added in 7.10)
|
(Added in 7.10)
|
||||||
|
|
||||||
If this option is set and libcurl has been built with the standard name
|
If this option is set and libcurl has been built with the standard name
|
||||||
@@ -180,8 +182,9 @@ means 100K.
|
|||||||
.IP CURLOPT_WRITEDATA
|
.IP CURLOPT_WRITEDATA
|
||||||
Data pointer to pass to the file write function. If you use the
|
Data pointer to pass to the file write function. If you use the
|
||||||
\fICURLOPT_WRITEFUNCTION\fP option, this is the pointer you'll get as
|
\fICURLOPT_WRITEFUNCTION\fP option, this is the pointer you'll get as
|
||||||
input. If you don't use a callback, you must pass a 'FILE *' as libcurl will
|
input. If you don't use a callback, you must pass a 'FILE *' (cast
|
||||||
pass this to fwrite() when writing data.
|
to 'void *') as libcurl will pass this to fwrite() when writing data.
|
||||||
|
By default, the value of this parameter is unspecified.
|
||||||
|
|
||||||
The internal \fICURLOPT_WRITEFUNCTION\fP will write the data to the FILE *
|
The internal \fICURLOPT_WRITEFUNCTION\fP will write the data to the FILE *
|
||||||
given with this option, or to stdout if this option hasn't been set.
|
given with this option, or to stdout if this option hasn't been set.
|
||||||
@@ -226,7 +229,7 @@ userdata set with \fICURLOPT_READDATA\fP.
|
|||||||
Data pointer to pass to the file read function. If you use the
|
Data pointer to pass to the file read function. If you use the
|
||||||
\fICURLOPT_READFUNCTION\fP option, this is the pointer you'll get as input. If
|
\fICURLOPT_READFUNCTION\fP option, this is the pointer you'll get as input. If
|
||||||
you don't specify a read callback but instead rely on the default internal
|
you don't specify a read callback but instead rely on the default internal
|
||||||
read function, this data must be a valid readable FILE *.
|
read function, this data must be a valid readable FILE * (cast to 'void *').
|
||||||
|
|
||||||
If you're using libcurl as a win32 DLL, you MUST use a
|
If you're using libcurl as a win32 DLL, you MUST use a
|
||||||
\fICURLOPT_READFUNCTION\fP if you set this option.
|
\fICURLOPT_READFUNCTION\fP if you set this option.
|
||||||
@@ -240,13 +243,15 @@ gets called by libcurl when something special I/O-related needs to be done
|
|||||||
that the library can't do by itself. For now, rewinding the read data stream
|
that the library can't do by itself. For now, rewinding the read data stream
|
||||||
is the only action it can request. The rewinding of the read data stream may
|
is the only action it can request. The rewinding of the read data stream may
|
||||||
be necessary when doing a HTTP PUT or POST with a multi-pass authentication
|
be necessary when doing a HTTP PUT or POST with a multi-pass authentication
|
||||||
method. (Option added in 7.12.3).
|
method. By default, this parameter is set to NULL. (Option added in 7.12.3).
|
||||||
|
|
||||||
Use \fICURLOPT_SEEKFUNCTION\fP instead to provide seeking!
|
Use \fICURLOPT_SEEKFUNCTION\fP instead to provide seeking! If
|
||||||
|
\fICURLOPT_SEEKFUNCTION\fP is set, this parameter will be ignored when seeking.
|
||||||
.IP CURLOPT_IOCTLDATA
|
.IP CURLOPT_IOCTLDATA
|
||||||
Pass a pointer that will be untouched by libcurl and passed as the 3rd
|
Pass a pointer that will be untouched by libcurl and passed as the 3rd
|
||||||
argument in the ioctl callback set with \fICURLOPT_IOCTLFUNCTION\fP. (Option
|
argument in the ioctl callback set with \fICURLOPT_IOCTLFUNCTION\fP.
|
||||||
added in 7.12.3)
|
By default, the value of this parameter is unspecified. (Option added in
|
||||||
|
7.12.3)
|
||||||
.IP CURLOPT_SEEKFUNCTION
|
.IP CURLOPT_SEEKFUNCTION
|
||||||
Pass a pointer to a function that matches the following prototype: \fBint
|
Pass a pointer to a function that matches the following prototype: \fBint
|
||||||
function(void *instream, curl_off_t offset, int origin);\fP This function gets
|
function(void *instream, curl_off_t offset, int origin);\fP This function gets
|
||||||
@@ -262,6 +267,8 @@ success, 1 (CURL_SEEKFUNC_FAIL) to cause the upload operation to fail or 2
|
|||||||
free to work around the problem if possible. The latter can sometimes be done
|
free to work around the problem if possible. The latter can sometimes be done
|
||||||
by instead reading from the input or similar.
|
by instead reading from the input or similar.
|
||||||
|
|
||||||
|
By default, this parameter is unset.
|
||||||
|
|
||||||
If you forward the input arguments directly to "fseek" or "lseek", note that
|
If you forward the input arguments directly to "fseek" or "lseek", note that
|
||||||
the data type for \fIoffset\fP is not the same as defined for curl_off_t on
|
the data type for \fIoffset\fP is not the same as defined for curl_off_t on
|
||||||
many systems! (Option added in 7.18.0)
|
many systems! (Option added in 7.18.0)
|
||||||
@@ -271,7 +278,8 @@ Data pointer to pass to the file seek function. If you use the
|
|||||||
you don't specify a seek callback, NULL is passed. (Option added in 7.18.0)
|
you don't specify a seek callback, NULL is passed. (Option added in 7.18.0)
|
||||||
.IP CURLOPT_SOCKOPTFUNCTION
|
.IP CURLOPT_SOCKOPTFUNCTION
|
||||||
Pass a pointer to a function that matches the following prototype: \fBint
|
Pass a pointer to a function that matches the following prototype: \fBint
|
||||||
function(void *clientp, curl_socket_t curlfd, curlsocktype purpose);\fP. This
|
function(void *clientp, curl_socket_t curlfd, curlsocktype purpose);\fP. By
|
||||||
|
default, this parameter is unset. If set, this
|
||||||
function gets called by libcurl after the socket() call but before the
|
function gets called by libcurl after the socket() call but before the
|
||||||
connect() call. The callback's \fIpurpose\fP argument identifies the exact
|
connect() call. The callback's \fIpurpose\fP argument identifies the exact
|
||||||
purpose for this particular socket:
|
purpose for this particular socket:
|
||||||
@@ -293,6 +301,7 @@ in fact already connected and then libcurl will not attempt to connect it.
|
|||||||
.IP CURLOPT_SOCKOPTDATA
|
.IP CURLOPT_SOCKOPTDATA
|
||||||
Pass a pointer that will be untouched by libcurl and passed as the first
|
Pass a pointer that will be untouched by libcurl and passed as the first
|
||||||
argument in the sockopt callback set with \fICURLOPT_SOCKOPTFUNCTION\fP.
|
argument in the sockopt callback set with \fICURLOPT_SOCKOPTFUNCTION\fP.
|
||||||
|
The default value of this parameter is unspecified.
|
||||||
(Option added in 7.16.0)
|
(Option added in 7.16.0)
|
||||||
.IP CURLOPT_OPENSOCKETFUNCTION
|
.IP CURLOPT_OPENSOCKETFUNCTION
|
||||||
Pass a pointer to a function that matches the following prototype:
|
Pass a pointer to a function that matches the following prototype:
|
||||||
@@ -317,6 +326,7 @@ blacklisting. The default behavior is:
|
|||||||
.IP CURLOPT_OPENSOCKETDATA
|
.IP CURLOPT_OPENSOCKETDATA
|
||||||
Pass a pointer that will be untouched by libcurl and passed as the first
|
Pass a pointer that will be untouched by libcurl and passed as the first
|
||||||
argument in the opensocket callback set with \fICURLOPT_OPENSOCKETFUNCTION\fP.
|
argument in the opensocket callback set with \fICURLOPT_OPENSOCKETFUNCTION\fP.
|
||||||
|
The default value of this parameter is unspecified.
|
||||||
(Option added in 7.17.1.)
|
(Option added in 7.17.1.)
|
||||||
.IP CURLOPT_CLOSESOCKETFUNCTION
|
.IP CURLOPT_CLOSESOCKETFUNCTION
|
||||||
Pass a pointer to a function that matches the following prototype: \fBint
|
Pass a pointer to a function that matches the following prototype: \fBint
|
||||||
@@ -328,7 +338,9 @@ success and 1 if there was an error. (Option added in 7.21.7)
|
|||||||
.IP CURLOPT_CLOSESOCKETDATA
|
.IP CURLOPT_CLOSESOCKETDATA
|
||||||
Pass a pointer that will be untouched by libcurl and passed as the first
|
Pass a pointer that will be untouched by libcurl and passed as the first
|
||||||
argument in the closesocket callback set with
|
argument in the closesocket callback set with
|
||||||
\fICURLOPT_CLOSESOCKETFUNCTION\fP. (Option added in 7.21.7)
|
\fICURLOPT_CLOSESOCKETFUNCTION\fP.
|
||||||
|
The default value of this parameter is unspecified.
|
||||||
|
(Option added in 7.21.7)
|
||||||
.IP CURLOPT_PROGRESSFUNCTION
|
.IP CURLOPT_PROGRESSFUNCTION
|
||||||
Pass a pointer to a function that matches the following prototype: \fBint
|
Pass a pointer to a function that matches the following prototype: \fBint
|
||||||
function(void *clientp, double dltotal, double dlnow, double ultotal, double
|
function(void *clientp, double dltotal, double dlnow, double ultotal, double
|
||||||
@@ -349,6 +361,7 @@ get called.
|
|||||||
.IP CURLOPT_PROGRESSDATA
|
.IP CURLOPT_PROGRESSDATA
|
||||||
Pass a pointer that will be untouched by libcurl and passed as the first
|
Pass a pointer that will be untouched by libcurl and passed as the first
|
||||||
argument in the progress callback set with \fICURLOPT_PROGRESSFUNCTION\fP.
|
argument in the progress callback set with \fICURLOPT_PROGRESSFUNCTION\fP.
|
||||||
|
The default value of this parameter is unspecified.
|
||||||
.IP CURLOPT_HEADERFUNCTION
|
.IP CURLOPT_HEADERFUNCTION
|
||||||
Pass a pointer to a function that matches the following prototype:
|
Pass a pointer to a function that matches the following prototype:
|
||||||
\fBsize_t function( void *ptr, size_t size, size_t nmemb, void
|
\fBsize_t function( void *ptr, size_t size, size_t nmemb, void
|
||||||
@@ -714,12 +727,39 @@ the HELO / EHLO command to the mail server at example.com.
|
|||||||
|
|
||||||
.B POP3
|
.B POP3
|
||||||
|
|
||||||
The path part of a POP3 request specifies the mailbox (message) to retrieve.
|
The path part of a POP3 request specifies the message ID to retrieve. If the
|
||||||
If the mailbox is not specified then a list of waiting messages is returned
|
ID is not specified then a list of waiting messages is returned instead.
|
||||||
instead.
|
|
||||||
|
|
||||||
pop3://user:password@mail.example.com - This lists the available messages
|
pop3://user:password@mail.example.com - This lists the available messages for
|
||||||
pop3://user:password@mail.example.com/1 - This retrieves the first message
|
the user
|
||||||
|
|
||||||
|
pop3://user:password@mail.example.com/1 - This retrieves the first message for
|
||||||
|
the user
|
||||||
|
|
||||||
|
.B IMAP
|
||||||
|
|
||||||
|
The path part of an IMAP request not only specifies the mailbox to list (Added
|
||||||
|
in 7.30.0) or select, but can also be used to check the UIDVALIDITY of the
|
||||||
|
mailbox and to specify the UID and SECTION of the message to fetch (Added in
|
||||||
|
7.30.0).
|
||||||
|
|
||||||
|
imap://user:password@mail.example.com - Performs a top level folder list
|
||||||
|
|
||||||
|
imap://user:password@mail.example.com/INBOX - Performs a folder list on the
|
||||||
|
user's inbox
|
||||||
|
|
||||||
|
imap://user:password@mail.example.com/INBOX/;UID=1 - Selects the user's inbox
|
||||||
|
and fetches message 1
|
||||||
|
|
||||||
|
imap://user:password@mail.example.com/INBOX;UIDVALIDITY=50/;UID=2 - Selects
|
||||||
|
the user's inbox, checks the UIDVALIDITY of the mailbox is 50 and fetches
|
||||||
|
message 2 if it is
|
||||||
|
|
||||||
|
imap://user:password@mail.example.com/INBOX/;UID=3/;SECTION=TEXT - Selects the
|
||||||
|
user's inbox and fetches message 3 with only the text portion of the message
|
||||||
|
|
||||||
|
For more information about the individual components of an IMAP URL please
|
||||||
|
see RFC5092.
|
||||||
|
|
||||||
.B SCP
|
.B SCP
|
||||||
|
|
||||||
@@ -1445,7 +1485,7 @@ to GET. Usable if a POST, HEAD, PUT, or a custom request has been used
|
|||||||
previously using the same curl handle.
|
previously using the same curl handle.
|
||||||
|
|
||||||
When setting \fICURLOPT_HTTPGET\fP to 1, it will automatically set
|
When setting \fICURLOPT_HTTPGET\fP to 1, it will automatically set
|
||||||
\fICURLOPT_NOBODY\fP to 0 (since 7.14.1).
|
\fICURLOPT_NOBODY\fP to 0 and \fICURLOPT_UPLOAD\fP to 0.
|
||||||
.IP CURLOPT_HTTP_VERSION
|
.IP CURLOPT_HTTP_VERSION
|
||||||
Pass a long, set to one of the values described below. They force libcurl to
|
Pass a long, set to one of the values described below. They force libcurl to
|
||||||
use the specific HTTP versions. This is not sensible to do unless you have a
|
use the specific HTTP versions. This is not sensible to do unless you have a
|
||||||
@@ -1468,8 +1508,8 @@ connection. (added in 7.14.1)
|
|||||||
.IP CURLOPT_HTTP_CONTENT_DECODING
|
.IP CURLOPT_HTTP_CONTENT_DECODING
|
||||||
Pass a long to tell libcurl how to act on content decoding. If set to zero,
|
Pass a long to tell libcurl how to act on content decoding. If set to zero,
|
||||||
content decoding will be disabled. If set to 1 it is enabled. Libcurl has no
|
content decoding will be disabled. If set to 1 it is enabled. Libcurl has no
|
||||||
default content decoding but requires you to use \fICURLOPT_ENCODING\fP for
|
default content decoding but requires you to use \fICURLOPT_ACCEPT_ENCODING\fP
|
||||||
that. (added in 7.16.2)
|
for that. (added in 7.16.2)
|
||||||
.IP CURLOPT_HTTP_TRANSFER_DECODING
|
.IP CURLOPT_HTTP_TRANSFER_DECODING
|
||||||
Pass a long to tell libcurl how to act on transfer decoding. If set to zero,
|
Pass a long to tell libcurl how to act on transfer decoding. If set to zero,
|
||||||
transfer decoding will be disabled, if set to 1 it is enabled
|
transfer decoding will be disabled, if set to 1 it is enabled
|
||||||
@@ -2093,11 +2133,12 @@ Resolve to IPv6 addresses.
|
|||||||
.IP CURLOPT_CONNECT_ONLY
|
.IP CURLOPT_CONNECT_ONLY
|
||||||
Pass a long. If the parameter equals 1, it tells the library to perform all
|
Pass a long. If the parameter equals 1, it tells the library to perform all
|
||||||
the required proxy authentication and connection setup, but no data transfer.
|
the required proxy authentication and connection setup, but no data transfer.
|
||||||
This option is useful only on HTTP URLs.
|
This option is implemented for HTTP, SMTP and POP3.
|
||||||
|
|
||||||
This option is useful with the \fICURLINFO_LASTSOCKET\fP option to
|
The option can be used to simply test a connection to a server, but is more
|
||||||
\fIcurl_easy_getinfo(3)\fP. The library can set up the connection and then the
|
useful when used with the \fICURLINFO_LASTSOCKET\fP option to
|
||||||
application can obtain the most recently used socket for special data
|
\fIcurl_easy_getinfo(3)\fP as the library can set up the connection and then
|
||||||
|
the application can obtain the most recently used socket for special data
|
||||||
transfers. (Added in 7.15.2)
|
transfers. (Added in 7.15.2)
|
||||||
.IP CURLOPT_USE_SSL
|
.IP CURLOPT_USE_SSL
|
||||||
Pass a long using one of the values from below, to make libcurl use your
|
Pass a long using one of the values from below, to make libcurl use your
|
||||||
@@ -2259,8 +2300,8 @@ even indicate an accessible file.
|
|||||||
This option is by default set to the system path where libcurl's cacert bundle
|
This option is by default set to the system path where libcurl's cacert bundle
|
||||||
is assumed to be stored, as established at build time.
|
is assumed to be stored, as established at build time.
|
||||||
|
|
||||||
When built against NSS, this is the directory that the NSS certificate
|
If curl is built against the NSS SSL library, the NSS PEM PKCS#11 module
|
||||||
database resides in.
|
(libnsspem.so) needs to be available for this option to work properly.
|
||||||
.IP CURLOPT_ISSUERCERT
|
.IP CURLOPT_ISSUERCERT
|
||||||
Pass a char * to a zero terminated string naming a file holding a CA
|
Pass a char * to a zero terminated string naming a file holding a CA
|
||||||
certificate in PEM format. If the option is set, an additional check against
|
certificate in PEM format. If the option is set, an additional check against
|
||||||
|
@@ -56,7 +56,8 @@ details of how to use this function.
|
|||||||
.SH FLAGS
|
.SH FLAGS
|
||||||
.TP 5
|
.TP 5
|
||||||
.B CURL_GLOBAL_ALL
|
.B CURL_GLOBAL_ALL
|
||||||
Initialize everything possible. This sets all known bits.
|
Initialize everything possible. This sets all known bits except
|
||||||
|
\fBCURL_GLOBAL_ACK_EINTR\fP.
|
||||||
.TP
|
.TP
|
||||||
.B CURL_GLOBAL_SSL
|
.B CURL_GLOBAL_SSL
|
||||||
Initialize SSL
|
Initialize SSL
|
||||||
@@ -70,6 +71,10 @@ Initialise nothing extra. This sets no bit.
|
|||||||
.B CURL_GLOBAL_DEFAULT
|
.B CURL_GLOBAL_DEFAULT
|
||||||
A sensible default. It will init both SSL and Win32. Right now, this equals
|
A sensible default. It will init both SSL and Win32. Right now, this equals
|
||||||
the functionality of the \fBCURL_GLOBAL_ALL\fP mask.
|
the functionality of the \fBCURL_GLOBAL_ALL\fP mask.
|
||||||
|
.TP
|
||||||
|
.B CURL_GLOBAL_ACK_EINTR
|
||||||
|
When this flag is set, curl will acknowledge EINTR condition when connecting
|
||||||
|
or when waiting for data. Otherwise, curl waits until full timeout elapses.
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
If this function returns non-zero, something went wrong and you cannot use the
|
If this function returns non-zero, something went wrong and you cannot use the
|
||||||
other curl functions.
|
other curl functions.
|
||||||
|
@@ -52,7 +52,7 @@ To replace strdup()
|
|||||||
.IP "void *calloc_callback(size_t nmemb, size_t size);"
|
.IP "void *calloc_callback(size_t nmemb, size_t size);"
|
||||||
To replace calloc()
|
To replace calloc()
|
||||||
.SH "CAUTION"
|
.SH "CAUTION"
|
||||||
Manipulating these gives considerable powers to the application to severly
|
Manipulating these gives considerable powers to the application to severely
|
||||||
screw things up for libcurl. Take care!
|
screw things up for libcurl. Take care!
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.BR curl_global_init "(3), "
|
.BR curl_global_init "(3), "
|
||||||
|
@@ -41,6 +41,7 @@ handle is no longer connected to the multi handle
|
|||||||
3 - \fIcurl_multi_cleanup(3)\fP should be called when all easy handles are
|
3 - \fIcurl_multi_cleanup(3)\fP should be called when all easy handles are
|
||||||
removed
|
removed
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
CURLMcode type, general libcurl multi interface error code.
|
CURLMcode type, general libcurl multi interface error code. On success,
|
||||||
|
CURLM_OK is returned.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.BR curl_multi_init "(3)," curl_easy_cleanup "(3)," curl_easy_init "(3)"
|
.BR curl_multi_init "(3)," curl_easy_cleanup "(3)," curl_easy_init "(3)"
|
||||||
|
@@ -49,7 +49,7 @@ argument with \fICURLMOPT_SOCKETDATA\fP. See \fIcurl_multi_socket(3)\fP for
|
|||||||
more callback details.
|
more callback details.
|
||||||
.IP CURLMOPT_SOCKETDATA
|
.IP CURLMOPT_SOCKETDATA
|
||||||
Pass a pointer to whatever you want passed to the \fBcurl_socket_callback\fP's
|
Pass a pointer to whatever you want passed to the \fBcurl_socket_callback\fP's
|
||||||
forth argument, the userp pointer. This is not used by libcurl but only
|
fourth argument, the userp pointer. This is not used by libcurl but only
|
||||||
passed-thru as-is. Set the callback pointer with
|
passed-thru as-is. Set the callback pointer with
|
||||||
\fICURLMOPT_SOCKETFUNCTION\fP.
|
\fICURLMOPT_SOCKETFUNCTION\fP.
|
||||||
.IP CURLMOPT_PIPELINING
|
.IP CURLMOPT_PIPELINING
|
||||||
@@ -61,14 +61,17 @@ on the same connection rather than being executed in parallel. (Added in
|
|||||||
7.16.0)
|
7.16.0)
|
||||||
.IP CURLMOPT_TIMERFUNCTION
|
.IP CURLMOPT_TIMERFUNCTION
|
||||||
Pass a pointer to a function matching the \fBcurl_multi_timer_callback\fP
|
Pass a pointer to a function matching the \fBcurl_multi_timer_callback\fP
|
||||||
prototype. This function will then be called when the timeout value
|
prototype: int curl_multi_timer_callback(CURLM *multi /* multi handle */,
|
||||||
|
long timeout_ms /* timeout in milliseconds */, void *userp /* TIMERDATA */).
|
||||||
|
This function will then be called when the timeout value
|
||||||
changes. The timeout value is at what latest time the application should call
|
changes. The timeout value is at what latest time the application should call
|
||||||
one of the \&"performing" functions of the multi interface
|
one of the \&"performing" functions of the multi interface
|
||||||
(\fIcurl_multi_socket_action(3)\fP and \fIcurl_multi_perform(3)\fP) - to allow
|
(\fIcurl_multi_socket_action(3)\fP and \fIcurl_multi_perform(3)\fP) - to allow
|
||||||
libcurl to keep timeouts and retries etc to work. A timeout value of -1 means
|
libcurl to keep timeouts and retries etc to work. A timeout value of -1 means
|
||||||
that there is no timeout at all, and 0 means that the timeout is already
|
that there is no timeout at all, and 0 means that the timeout is already
|
||||||
reached. Libcurl attempts to limit calling this only when the fixed future
|
reached. Libcurl attempts to limit calling this only when the fixed future
|
||||||
timeout time actually changes. See also \fICURLMOPT_TIMERDATA\fP. This
|
timeout time actually changes. See also \fICURLMOPT_TIMERDATA\fP. The callback
|
||||||
|
should return 0 on success, and -1 on error. This
|
||||||
callback can be used instead of, or in addition to,
|
callback can be used instead of, or in addition to,
|
||||||
\fIcurl_multi_timeout(3)\fP. (Added in 7.16.0)
|
\fIcurl_multi_timeout(3)\fP. (Added in 7.16.0)
|
||||||
.IP CURLMOPT_TIMERDATA
|
.IP CURLMOPT_TIMERDATA
|
||||||
@@ -92,6 +95,112 @@ This option is for the multi handle's use only, when using the easy interface
|
|||||||
you should instead use the \fICURLOPT_MAXCONNECTS\fP option.
|
you should instead use the \fICURLOPT_MAXCONNECTS\fP option.
|
||||||
|
|
||||||
(Added in 7.16.3)
|
(Added in 7.16.3)
|
||||||
|
.IP CURLMOPT_MAX_HOST_CONNECTIONS
|
||||||
|
Pass a long. The set number will be used as the maximum amount of
|
||||||
|
simultaneously open connections to a single host. For each new session to
|
||||||
|
a host, libcurl will open a new connection up to the limit set by
|
||||||
|
CURLMOPT_MAX_HOST_CONNECTIONS. When the limit is reached, the sessions will
|
||||||
|
be pending until there are available connections. If CURLMOPT_PIPELINING is
|
||||||
|
1, libcurl will try to pipeline if the host is capable of it.
|
||||||
|
|
||||||
|
The default value is 0, which means that there is no limit.
|
||||||
|
However, for backwards compatibility, setting it to 0 when CURLMOPT_PIPELINING
|
||||||
|
is 1 will not be treated as unlimited. Instead it will open only 1 connection
|
||||||
|
and try to pipeline on it.
|
||||||
|
|
||||||
|
(Added in 7.30.0)
|
||||||
|
.IP CURLMOPT_MAX_PIPELINE_LENGTH
|
||||||
|
Pass a long. The set number will be used as the maximum amount of requests
|
||||||
|
in a pipelined connection. When this limit is reached, libcurl will use another
|
||||||
|
connection to the same host (see CURLMOPT_MAX_HOST_CONNECTIONS), or queue the
|
||||||
|
requests until one of the pipelines to the host is ready to accept a request.
|
||||||
|
Thus, the total number of requests in-flight is CURLMOPT_MAX_HOST_CONNECTIONS *
|
||||||
|
CURLMOPT_MAX_PIPELINE_LENGTH.
|
||||||
|
The default value is 5.
|
||||||
|
|
||||||
|
(Added in 7.30.0)
|
||||||
|
.IP CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE
|
||||||
|
Pass a long. If a pipelined connection is currently processing a request
|
||||||
|
with a Content-Length larger than CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE, that
|
||||||
|
connection will not be considered for additional requests, even if it is
|
||||||
|
shorter than CURLMOPT_MAX_PIPELINE_LENGTH.
|
||||||
|
The default value is 0, which means that the penalization is inactive.
|
||||||
|
|
||||||
|
(Added in 7.30.0)
|
||||||
|
.IP CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE
|
||||||
|
Pass a long. If a pipelined connection is currently processing a
|
||||||
|
chunked (Transfer-encoding: chunked) request with a current chunk length
|
||||||
|
larger than CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, that connection will not be
|
||||||
|
considered for additional requests, even if it is shorter than
|
||||||
|
CURLMOPT_MAX_PIPELINE_LENGTH.
|
||||||
|
The default value is 0, which means that the penalization is inactive.
|
||||||
|
|
||||||
|
(Added in 7.30.0)
|
||||||
|
.IP CURLMOPT_PIPELINING_SITE_BL
|
||||||
|
Pass an array of char *, ending with NULL. This is a list of sites that are
|
||||||
|
blacklisted from pipelining, i.e sites that are known to not support HTTP
|
||||||
|
pipelining. The array is copied by libcurl.
|
||||||
|
|
||||||
|
The default value is NULL, which means that there is no blacklist.
|
||||||
|
|
||||||
|
Pass a NULL pointer to clear the blacklist.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.nf
|
||||||
|
site_blacklist[] =
|
||||||
|
{
|
||||||
|
"www.haxx.se",
|
||||||
|
"www.example.com:1234",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
curl_multi_setopt(m, CURLMOPT_PIPELINE_SITE_BL, site_blacklist);
|
||||||
|
.fi
|
||||||
|
|
||||||
|
(Added in 7.30.0)
|
||||||
|
.IP CURLMOPT_PIPELINING_SERVER_BL
|
||||||
|
Pass an array of char *, ending with NULL. This is a list of server types
|
||||||
|
prefixes (in the Server: HTTP header) that are blacklisted from pipelining,
|
||||||
|
i.e server types that are known to not support HTTP pipelining. The array is
|
||||||
|
copied by libcurl.
|
||||||
|
|
||||||
|
Note that the comparison matches if the Server: header begins with the string
|
||||||
|
in the blacklist, i.e "Server: Ninja 1.2.3" and "Server: Ninja 1.4.0" can
|
||||||
|
both be blacklisted by having "Ninja" in the backlist.
|
||||||
|
|
||||||
|
The default value is NULL, which means that there is no blacklist.
|
||||||
|
|
||||||
|
Pass a NULL pointer to clear the blacklist.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.nf
|
||||||
|
server_blacklist[] =
|
||||||
|
{
|
||||||
|
"Microsoft-IIS/6.0",
|
||||||
|
"nginx/0.8.54",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
curl_multi_setopt(m, CURLMOPT_PIPELINE_SERVER_BL, server_blacklist);
|
||||||
|
.fi
|
||||||
|
|
||||||
|
(Added in 7.30.0)
|
||||||
|
.IP CURLMOPT_MAX_TOTAL_CONNECTIONS
|
||||||
|
Pass a long. The set number will be used as the maximum amount of
|
||||||
|
simultaneously open connections in total. For each new session, libcurl
|
||||||
|
will open a new connection up to the limit set by
|
||||||
|
CURLMOPT_MAX_TOTAL_CONNECTIONS. When the limit is reached, the sessions will
|
||||||
|
be pending until there are available connections. If CURLMOPT_PIPELINING is
|
||||||
|
1, libcurl will try to pipeline if the host is capable of it.
|
||||||
|
|
||||||
|
The default value is 0, which means that there is no limit.
|
||||||
|
However, for backwards compatibility, setting it to 0 when CURLMOPT_PIPELINING
|
||||||
|
is 1 will not be treated as unlimited. Instead it will open only 1 connection
|
||||||
|
and try to pipeline on it.
|
||||||
|
|
||||||
|
(Added in 7.30.0)
|
||||||
.SH RETURNS
|
.SH RETURNS
|
||||||
The standard CURLMcode for multi interface error codes. Note that it returns a
|
The standard CURLMcode for multi interface error codes. Note that it returns a
|
||||||
CURLM_UNKNOWN_OPTION if you try setting an option that this version of libcurl
|
CURLM_UNKNOWN_OPTION if you try setting an option that this version of libcurl
|
||||||
|
@@ -38,7 +38,9 @@ can be passed as an events bitmask \fBev_bitmask\fP by first setting
|
|||||||
\fBev_bitmask\fP to 0, and then adding using bitwise OR (|) any combination of
|
\fBev_bitmask\fP to 0, and then adding using bitwise OR (|) any combination of
|
||||||
events to be chosen from CURL_CSELECT_IN, CURL_CSELECT_OUT or
|
events to be chosen from CURL_CSELECT_IN, CURL_CSELECT_OUT or
|
||||||
CURL_CSELECT_ERR. When the events on a socket are unknown, pass 0 instead, and
|
CURL_CSELECT_ERR. When the events on a socket are unknown, pass 0 instead, and
|
||||||
libcurl will test the descriptor internally.
|
libcurl will test the descriptor internally. It is also permissible to pass
|
||||||
|
CURL_SOCKET_TIMEOUT to the \fBsockfd\fP parameter in order to initiate the
|
||||||
|
whole process or when a timeout occurs.
|
||||||
|
|
||||||
At return, the integer \fBrunning_handles\fP points to will contain the number
|
At return, the integer \fBrunning_handles\fP points to will contain the number
|
||||||
of running easy handles within the multi handle. When this number reaches
|
of running easy handles within the multi handle. When this number reaches
|
||||||
@@ -71,7 +73,10 @@ The socket \fBcallback\fP function uses a prototype like this
|
|||||||
curl_socket_t s, /* socket */
|
curl_socket_t s, /* socket */
|
||||||
int action, /* see values below */
|
int action, /* see values below */
|
||||||
void *userp, /* private callback pointer */
|
void *userp, /* private callback pointer */
|
||||||
void *socketp); /* private socket pointer */
|
void *socketp); /* private socket pointer,
|
||||||
|
\fBNULL\fI if not
|
||||||
|
previously assigned with
|
||||||
|
\fIcurl_multi_assign(3)\fP */
|
||||||
|
|
||||||
.fi
|
.fi
|
||||||
The callback MUST return 0.
|
The callback MUST return 0.
|
||||||
@@ -132,15 +137,15 @@ timeout value to use when waiting for socket activities.
|
|||||||
them for activity. This can be done through your application code, or by way
|
them for activity. This can be done through your application code, or by way
|
||||||
of an external library such as libevent or glib.
|
of an external library such as libevent or glib.
|
||||||
|
|
||||||
6. Call curl_multi_socket_action(...CURL_SOCKET_TIMEOUT...) to kickstart
|
6. Call curl_multi_socket_action(..., CURL_SOCKET_TIMEOUT, 0, ...)
|
||||||
everything. To get one or more callbacks called.
|
to kickstart everything. To get one or more callbacks called.
|
||||||
|
|
||||||
7. Wait for activity on any of libcurl's sockets, use the timeout value your
|
7. Wait for activity on any of libcurl's sockets, use the timeout value your
|
||||||
callback has been told
|
callback has been told.
|
||||||
|
|
||||||
8, When activity is detected, call curl_multi_socket_action() for the
|
8, When activity is detected, call curl_multi_socket_action() for the
|
||||||
socket(s) that got action. If no activity is detected and the timeout expires,
|
socket(s) that got action. If no activity is detected and the timeout expires,
|
||||||
call \fIcurl_multi_socket_action(3)\fP with \fICURL_SOCKET_TIMEOUT\fP
|
call \fIcurl_multi_socket_action(3)\fP with \fICURL_SOCKET_TIMEOUT\fP.
|
||||||
.SH AVAILABILITY
|
.SH AVAILABILITY
|
||||||
This function was added in libcurl 7.15.4, and is deemed stable since 7.16.0.
|
This function was added in libcurl 7.15.4, and is deemed stable since 7.16.0.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
|
@@ -42,7 +42,7 @@ of milliseconds at this very moment. If 0, it means you should proceed
|
|||||||
immediately without waiting for anything. If it returns -1, there's no timeout
|
immediately without waiting for anything. If it returns -1, there's no timeout
|
||||||
at all set.
|
at all set.
|
||||||
|
|
||||||
An application that uses the multi_socket API SHOULD not use this function, but
|
An application that uses the multi_socket API SHOULD NOT use this function, but
|
||||||
SHOULD instead use \fIcurl_multi_setopt(3)\fP and its
|
SHOULD instead use \fIcurl_multi_setopt(3)\fP and its
|
||||||
\fPCURLMOPT_TIMERFUNCTION\fP option for proper and desired behavior.
|
\fPCURLMOPT_TIMERFUNCTION\fP option for proper and desired behavior.
|
||||||
|
|
||||||
|
@@ -31,6 +31,7 @@ curl_version - returns the libcurl version string
|
|||||||
Returns a human readable string with the version number of libcurl and some of
|
Returns a human readable string with the version number of libcurl and some of
|
||||||
its important components (like OpenSSL version).
|
its important components (like OpenSSL version).
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
A pointer to a zero terminated string.
|
A pointer to a zero terminated string. The string resides in a statically
|
||||||
|
allocated buffer and must not be freed by the caller.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.BR curl_version_info "(3)"
|
.BR curl_version_info "(3)"
|
||||||
|
@@ -21,40 +21,49 @@
|
|||||||
<H2>Library Functions (A-Z)</H2>
|
<H2>Library Functions (A-Z)</H2>
|
||||||
<a href="curl_easy_cleanup.html">curl_easy_cleanup</A>
|
<a href="curl_easy_cleanup.html">curl_easy_cleanup</A>
|
||||||
<br><a href="curl_easy_duphandle.html">curl_easy_duphandle</A>
|
<br><a href="curl_easy_duphandle.html">curl_easy_duphandle</A>
|
||||||
|
<br><a href="curl_easy_escape.html">curl_easy_escape</A>
|
||||||
<br><a href="curl_easy_getinfo.html">curl_easy_getinfo</A>
|
<br><a href="curl_easy_getinfo.html">curl_easy_getinfo</A>
|
||||||
<br><a href="curl_easy_init.html">curl_easy_init</A>
|
<br><a href="curl_easy_init.html">curl_easy_init</A>
|
||||||
|
<br><a href="curl_easy_pause.html">curl_easy_pause</A>
|
||||||
<br><a href="curl_easy_perform.html">curl_easy_perform</A>
|
<br><a href="curl_easy_perform.html">curl_easy_perform</A>
|
||||||
<br><a href="curl_easy_recv.html">curl_easy_recv</A>
|
<br><a href="curl_easy_recv.html">curl_easy_recv</A>
|
||||||
<br><a href="curl_easy_reset.html">curl_easy_reset</A>
|
<br><a href="curl_easy_reset.html">curl_easy_reset</A>
|
||||||
<br><a href="curl_easy_send.html">curl_easy_send</A>
|
<br><a href="curl_easy_send.html">curl_easy_send</A>
|
||||||
<br><a href="curl_easy_setopt.html">curl_easy_setopt</A>
|
<br><a href="curl_easy_setopt.html">curl_easy_setopt</A>
|
||||||
<br><a href="curl_easy_strerror.html">curl_easy_strerror</A>
|
<br><a href="curl_easy_strerror.html">curl_easy_strerror</A>
|
||||||
<br><a href="curl_escape.html">curl_escape</A>
|
<br><a href="curl_easy_unescape.html">curl_easy_unescape</A>
|
||||||
|
<br><a href="curl_escape.html">curl_escape</A> (deprecated)
|
||||||
<br><a href="curl_formadd.html">curl_formadd</A>
|
<br><a href="curl_formadd.html">curl_formadd</A>
|
||||||
<br><a href="curl_formfree.html">curl_formfree</A>
|
<br><a href="curl_formfree.html">curl_formfree</A>
|
||||||
|
<br><a href="curl_formget.html">curl_formget</A>
|
||||||
<br><a href="curl_free.html">curl_free</A>
|
<br><a href="curl_free.html">curl_free</A>
|
||||||
<br><a href="curl_getdate.html">curl_getdate</A>
|
<br><a href="curl_getdate.html">curl_getdate</A>
|
||||||
<br><a href="curl_getenv.html">curl_getenv</A>
|
<br><a href="curl_getenv.html">curl_getenv</A> (deprecated)
|
||||||
<br><a href="curl_global_cleanup.html">curl_global_cleanup</A>
|
<br><a href="curl_global_cleanup.html">curl_global_cleanup</A>
|
||||||
<br><a href="curl_global_init.html">curl_global_init</A>
|
<br><a href="curl_global_init.html">curl_global_init</A>
|
||||||
<br><a href="curl_global_init_mem.html">curl_global_init_mem</A>
|
<br><a href="curl_global_init_mem.html">curl_global_init_mem</A>
|
||||||
<br><a href="curl_mprintf.html">curl_mprintf</A>
|
<br><a href="curl_mprintf.html">curl_mprintf</A> (deprecated)
|
||||||
<br><a href="curl_multi_add_handle.html">curl_multi_add_handle</a>
|
<br><a href="curl_multi_add_handle.html">curl_multi_add_handle</a>
|
||||||
|
<br><a href="curl_multi_assign.html">curl_multi_assign</a>
|
||||||
<br><a href="curl_multi_cleanup.html">curl_multi_cleanup</a>
|
<br><a href="curl_multi_cleanup.html">curl_multi_cleanup</a>
|
||||||
<br><a href="curl_multi_fdset.html">curl_multi_fdset</a>
|
<br><a href="curl_multi_fdset.html">curl_multi_fdset</a>
|
||||||
<br><a href="curl_multi_info_read.html">curl_multi_info_read</a>
|
<br><a href="curl_multi_info_read.html">curl_multi_info_read</a>
|
||||||
<br><a href="curl_multi_init.html">curl_multi_init</a>
|
<br><a href="curl_multi_init.html">curl_multi_init</a>
|
||||||
<br><a href="curl_multi_perform.html">curl_multi_perform</a>
|
<br><a href="curl_multi_perform.html">curl_multi_perform</a>
|
||||||
<br><a href="curl_multi_remove_handle.html">curl_multi_remove_handle</a>
|
<br><a href="curl_multi_remove_handle.html">curl_multi_remove_handle</a>
|
||||||
<br><a href="curl_multi_strerror.html">curl_multi_strerror.html</a>
|
<br><a href="curl_multi_setopt.html">curl_multi_setopt</a>
|
||||||
|
<br><a href="curl_multi_socket.html">curl_multi_socket</a> (deprecated)
|
||||||
|
<br><a href="curl_multi_socket_action.html">curl_multi_socket_action</a>
|
||||||
|
<br><a href="curl_multi_strerror.html">curl_multi_strerror</a>
|
||||||
|
<br><a href="curl_multi_timeout.html">curl_multi_timeout</a> (deprecated)
|
||||||
<br><a href="curl_share_cleanup.html">curl_share_cleanup</A>
|
<br><a href="curl_share_cleanup.html">curl_share_cleanup</A>
|
||||||
<br><a href="curl_share_init.html">curl_share_init</A>
|
<br><a href="curl_share_init.html">curl_share_init</A>
|
||||||
<br><a href="curl_share_setopt.html">curl_share_setopt</A>
|
<br><a href="curl_share_setopt.html">curl_share_setopt</A>
|
||||||
<br><a href="curl_share_strerror.html">curl_share_strerror.html</a>
|
<br><a href="curl_share_strerror.html">curl_share_strerror</a>
|
||||||
<br><a href="curl_slist_append.html">curl_slist_append</A>
|
<br><a href="curl_slist_append.html">curl_slist_append</A>
|
||||||
<br><a href="curl_slist_free_all.html">curl_slist_free_all</A>
|
<br><a href="curl_slist_free_all.html">curl_slist_free_all</A>
|
||||||
<br><a href="curl_strequal.html">curl_strequal and curl_strnequal</A>
|
<br><a href="curl_strequal.html">curl_strequal and curl_strnequal</A>
|
||||||
<br><a href="curl_unescape.html">curl_unescape</A>
|
<br><a href="curl_unescape.html">curl_unescape</A> (deprecated)
|
||||||
<br><a href="curl_version.html">curl_version</A>
|
<br><a href="curl_version.html">curl_version</A>
|
||||||
<br><a href="curl_version_info.html">curl_version_info</A>
|
<br><a href="curl_version_info.html">curl_version_info</A>
|
||||||
|
|
||||||
|
@@ -240,6 +240,9 @@ Mismatch of RTSP Session Identifiers.
|
|||||||
Unable to parse FTP file list (during FTP wildcard downloading).
|
Unable to parse FTP file list (during FTP wildcard downloading).
|
||||||
.IP "CURLE_CHUNK_FAILED (88)"
|
.IP "CURLE_CHUNK_FAILED (88)"
|
||||||
Chunk callback reported error.
|
Chunk callback reported error.
|
||||||
|
.IP "CURLE_NO_CONNECTION_AVAILABLE (89)"
|
||||||
|
(For internal use only, will never be returned by libcurl) No connection
|
||||||
|
available, the session will be queued. (added in 7.30.0)
|
||||||
.IP "CURLE_OBSOLETE*"
|
.IP "CURLE_OBSOLETE*"
|
||||||
These error codes will never be returned. They were used in an old libcurl
|
These error codes will never be returned. They were used in an old libcurl
|
||||||
version and are currently unused.
|
version and are currently unused.
|
||||||
|
@@ -289,6 +289,10 @@ axTLS
|
|||||||
|
|
||||||
Required actions unknown.
|
Required actions unknown.
|
||||||
|
|
||||||
|
Secure Transport
|
||||||
|
|
||||||
|
The engine is fully thread-safe, and no additional steps are required.
|
||||||
|
|
||||||
When using multiple threads you should set the CURLOPT_NOSIGNAL option to 1
|
When using multiple threads you should set the CURLOPT_NOSIGNAL option to 1
|
||||||
for all handles. Everything will or might work fine except that timeouts are
|
for all handles. Everything will or might work fine except that timeouts are
|
||||||
not honored during the DNS lookup - which you can work around by building
|
not honored during the DNS lookup - which you can work around by building
|
||||||
|
@@ -85,6 +85,7 @@ CURLE_LDAP_SEARCH_FAILED 7.1
|
|||||||
CURLE_LIBRARY_NOT_FOUND 7.1 7.17.0
|
CURLE_LIBRARY_NOT_FOUND 7.1 7.17.0
|
||||||
CURLE_LOGIN_DENIED 7.13.1
|
CURLE_LOGIN_DENIED 7.13.1
|
||||||
CURLE_MALFORMAT_USER 7.1 7.17.0
|
CURLE_MALFORMAT_USER 7.1 7.17.0
|
||||||
|
CURLE_NO_CONNECTION_AVAILABLE 7.30.0
|
||||||
CURLE_NOT_BUILT_IN 7.21.5
|
CURLE_NOT_BUILT_IN 7.21.5
|
||||||
CURLE_OK 7.1
|
CURLE_OK 7.1
|
||||||
CURLE_OPERATION_TIMEDOUT 7.10.2
|
CURLE_OPERATION_TIMEDOUT 7.10.2
|
||||||
@@ -267,8 +268,15 @@ CURLKHTYPE_DSS 7.19.6
|
|||||||
CURLKHTYPE_RSA 7.19.6
|
CURLKHTYPE_RSA 7.19.6
|
||||||
CURLKHTYPE_RSA1 7.19.6
|
CURLKHTYPE_RSA1 7.19.6
|
||||||
CURLKHTYPE_UNKNOWN 7.19.6
|
CURLKHTYPE_UNKNOWN 7.19.6
|
||||||
|
CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE 7.30.0
|
||||||
|
CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE 7.30.0
|
||||||
|
CURLMOPT_MAX_HOST_CONNECTIONS 7.30.0
|
||||||
|
CURLMOPT_MAX_PIPELINE_LENGTH 7.30.0
|
||||||
|
CURLMOPT_MAX_TOTAL_CONNECTIONS 7.30.0
|
||||||
CURLMOPT_MAXCONNECTS 7.16.3
|
CURLMOPT_MAXCONNECTS 7.16.3
|
||||||
CURLMOPT_PIPELINING 7.16.0
|
CURLMOPT_PIPELINING 7.16.0
|
||||||
|
CURLMOPT_PIPELINING_SERVER_BL 7.30.0
|
||||||
|
CURLMOPT_PIPELINING_SITE_BL 7.30.0
|
||||||
CURLMOPT_SOCKETDATA 7.15.4
|
CURLMOPT_SOCKETDATA 7.15.4
|
||||||
CURLMOPT_SOCKETFUNCTION 7.15.4
|
CURLMOPT_SOCKETFUNCTION 7.15.4
|
||||||
CURLMOPT_TIMERDATA 7.16.0
|
CURLMOPT_TIMERDATA 7.16.0
|
||||||
@@ -614,6 +622,7 @@ CURL_GLOBAL_DEFAULT 7.8
|
|||||||
CURL_GLOBAL_NOTHING 7.8
|
CURL_GLOBAL_NOTHING 7.8
|
||||||
CURL_GLOBAL_SSL 7.8
|
CURL_GLOBAL_SSL 7.8
|
||||||
CURL_GLOBAL_WIN32 7.8.1
|
CURL_GLOBAL_WIN32 7.8.1
|
||||||
|
CURL_GLOBAL_ACK_EINTR 7.30.0
|
||||||
CURL_HTTP_VERSION_1_0 7.9.1
|
CURL_HTTP_VERSION_1_0 7.9.1
|
||||||
CURL_HTTP_VERSION_1_1 7.9.1
|
CURL_HTTP_VERSION_1_1 7.9.1
|
||||||
CURL_HTTP_VERSION_NONE 7.9.1
|
CURL_HTTP_VERSION_NONE 7.9.1
|
||||||
|
@@ -1,51 +1,70 @@
|
|||||||
.Dd April 27, 2012
|
.\" **************************************************************************
|
||||||
.Dt MK-CA-BUNDLE 1
|
.\" * _ _ ____ _
|
||||||
.Os
|
.\" * Project ___| | | | _ \| |
|
||||||
.Sh NAME
|
.\" * / __| | | | |_) | |
|
||||||
.Nm mk-ca-bundle
|
.\" * | (__| |_| | _ <| |___
|
||||||
.Nd create a new ca-bundle.crt from mozilla's certdata.txt
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.Sh SYNOPSIS
|
.\" *
|
||||||
.Nm
|
.\" * Copyright (C) 2008 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.Op Fl bilnqtuv
|
.\" *
|
||||||
.Or outputfile
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.Sh DESCRIPTION
|
.\" * you should have received as part of this distribution. The terms
|
||||||
The
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
.Nm
|
.\" *
|
||||||
tool downloads the certdata.txt file from Mozilla's source tree, then
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
parses certdata.txt and extracts CA Root Certificates into PEM format.
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
These are then processed with the OpenSSL commandline tool to produce the
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
final ca-bundle.crt file.
|
.\" *
|
||||||
.Sh OPTIONS
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
The following options are supported by
|
.\" * KIND, either express or implied.
|
||||||
.Nm :
|
.\" *
|
||||||
.Bl -tag -width _h
|
.\" **************************************************************************
|
||||||
.It Fl b
|
.\"
|
||||||
backup an existing version of ca-bundle.crt
|
.TH mk-ca-bundle 1 "5 Jan 2013" "version 1.17" "mk-ca-bundle manual"
|
||||||
.It Fl i
|
.SH NAME
|
||||||
|
mk-ca-bundle \- convert mozilla's certdata.txt to PEM format
|
||||||
|
.SH SYNOPSIS
|
||||||
|
mk-ca-bundle [bilnqtuv]
|
||||||
|
.I [outputfile]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
The mk-ca-bundle tool downloads the certdata.txt file from Mozilla's source
|
||||||
|
tree over HTTP, then parses certdata.txt and extracts CA Root Certificates
|
||||||
|
into PEM format. These are then processed with the OpenSSL commandline tool
|
||||||
|
to produce the final ca-bundle file.
|
||||||
|
|
||||||
|
The default \fIoutputfile\fP name is \fBca-bundle.crt\fP. By setting it to '-'
|
||||||
|
(a single dash) you will get the output sent to STDOUT instead of a file.
|
||||||
|
|
||||||
|
The PEM format this scripts uses for output makes the result readily available
|
||||||
|
for use by just about all OpenSSL or GnuTLS powered applications, such as
|
||||||
|
curl, wget and more.
|
||||||
|
.SH OPTIONS
|
||||||
|
The following options are supported:
|
||||||
|
.IP -b
|
||||||
|
backup an existing version of \fIoutputfilename\fP
|
||||||
|
.IP -f
|
||||||
|
force rebuild even if certdata.txt is current (Added in version 1.17)
|
||||||
|
.IP -i
|
||||||
print version info about used modules
|
print version info about used modules
|
||||||
.It Fl l
|
.IP -l
|
||||||
print license info about certdata.txt
|
print license info about certdata.txt
|
||||||
.It Fl n
|
.IP -n
|
||||||
no download of certdata.txt (to use existing)
|
no download of certdata.txt (to use existing)
|
||||||
.It Fl q
|
.IP -q
|
||||||
be really quiet (no progress output at all)
|
be really quiet (no progress output at all)
|
||||||
.It Fl t
|
.IP -t
|
||||||
include plain text listing of certificates
|
include plain text listing of certificates
|
||||||
.It Fl u
|
.IP -u
|
||||||
unlink (remove) certdata.txt after processing
|
unlink (remove) certdata.txt after processing
|
||||||
.It Fl v
|
.IP -v
|
||||||
be verbose and print out processed CAs
|
be verbose and print out processed CAs
|
||||||
.El
|
.SH EXIT STATUS
|
||||||
.Sh EXIT STATUS
|
Returns 0 on success. Returns 1 if it fails to download data.
|
||||||
.Ex -std
|
.SH SEE ALSO
|
||||||
.Sh SEE ALSO
|
.BR curl (1)
|
||||||
.Xr curl 1
|
.SH HISTORY
|
||||||
.Sh HISTORY
|
\fBmk-ca-bundle\fP is a command line tool that is shipped as part of every
|
||||||
.Nm
|
curl and libcurl release (see http://curl.haxx.se/). It was originally based
|
||||||
was based on the parse-certs script written by
|
on the parse-certs script written by Roland Krikava and was later much
|
||||||
.An Roland Krikava
|
improved by Guenter Knauf. This manual page was written by Jan Schaumann
|
||||||
and hacked by
|
\&<jschauma@netmeister.org>.
|
||||||
.An Guenter Knauf .
|
|
||||||
This manual page was written by
|
|
||||||
.An Jan Schaumann
|
|
||||||
.Aq jschauma@netmeister.org .
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -93,29 +93,21 @@ extern "C" {
|
|||||||
typedef void CURL;
|
typedef void CURL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Decorate exportable functions for Win32 and Symbian OS DLL linking.
|
* libcurl external API function linkage decorations.
|
||||||
* This avoids using a .def file for building libcurl.dll.
|
|
||||||
*/
|
*/
|
||||||
#if (defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__)) && \
|
|
||||||
!defined(CURL_STATICLIB)
|
|
||||||
#if defined(BUILDING_LIBCURL)
|
|
||||||
#define CURL_EXTERN __declspec(dllexport)
|
|
||||||
#else
|
|
||||||
#define CURL_EXTERN __declspec(dllimport)
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
|
|
||||||
#ifdef CURL_HIDDEN_SYMBOLS
|
#ifdef CURL_STATICLIB
|
||||||
/*
|
# define CURL_EXTERN
|
||||||
* This definition is used to make external definitions visible in the
|
#elif defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__)
|
||||||
* shared library when symbols are hidden by default. It makes no
|
# if defined(BUILDING_LIBCURL)
|
||||||
* difference when compiling applications whether this is set or not,
|
# define CURL_EXTERN __declspec(dllexport)
|
||||||
* only when compiling the library.
|
# else
|
||||||
*/
|
# define CURL_EXTERN __declspec(dllimport)
|
||||||
#define CURL_EXTERN CURL_EXTERN_SYMBOL
|
# endif
|
||||||
|
#elif defined(BUILDING_LIBCURL) && defined(CURL_HIDDEN_SYMBOLS)
|
||||||
|
# define CURL_EXTERN CURL_EXTERN_SYMBOL
|
||||||
#else
|
#else
|
||||||
#define CURL_EXTERN
|
# define CURL_EXTERN
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef curl_socket_typedef
|
#ifndef curl_socket_typedef
|
||||||
@@ -515,6 +507,8 @@ typedef enum {
|
|||||||
CURLE_RTSP_SESSION_ERROR, /* 86 - mismatch of RTSP Session Ids */
|
CURLE_RTSP_SESSION_ERROR, /* 86 - mismatch of RTSP Session Ids */
|
||||||
CURLE_FTP_BAD_FILE_LIST, /* 87 - unable to parse FTP file list */
|
CURLE_FTP_BAD_FILE_LIST, /* 87 - unable to parse FTP file list */
|
||||||
CURLE_CHUNK_FAILED, /* 88 - chunk callback reported error */
|
CURLE_CHUNK_FAILED, /* 88 - chunk callback reported error */
|
||||||
|
CURLE_NO_CONNECTION_AVAILABLE, /* 89 - No connection available, the
|
||||||
|
session will be queued */
|
||||||
CURL_LAST /* never use! */
|
CURL_LAST /* never use! */
|
||||||
} CURLcode;
|
} CURLcode;
|
||||||
|
|
||||||
@@ -2023,6 +2017,7 @@ typedef enum {
|
|||||||
#define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32)
|
#define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32)
|
||||||
#define CURL_GLOBAL_NOTHING 0
|
#define CURL_GLOBAL_NOTHING 0
|
||||||
#define CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL
|
#define CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL
|
||||||
|
#define CURL_GLOBAL_ACK_EINTR (1<<2)
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -527,7 +527,8 @@
|
|||||||
/* ===================================== */
|
/* ===================================== */
|
||||||
|
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
# if defined(__i386__) || defined(__ppc__)
|
# if defined(__ILP32__) || \
|
||||||
|
defined(__i386__) || defined(__ppc__) || defined(__arm__)
|
||||||
# define CURL_SIZEOF_LONG 4
|
# define CURL_SIZEOF_LONG 4
|
||||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||||
@@ -536,7 +537,8 @@
|
|||||||
# define CURL_SIZEOF_CURL_OFF_T 8
|
# define CURL_SIZEOF_CURL_OFF_T 8
|
||||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||||
# elif defined(__x86_64__) || defined(__ppc64__)
|
# elif defined(__LP64__) || \
|
||||||
|
defined(__x86_64__) || defined(__ppc64__)
|
||||||
# define CURL_SIZEOF_LONG 8
|
# define CURL_SIZEOF_LONG 8
|
||||||
# define CURL_TYPEOF_CURL_OFF_T long
|
# define CURL_TYPEOF_CURL_OFF_T long
|
||||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -151,6 +151,13 @@
|
|||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Configure process defines this to 1 when it finds out that system */
|
||||||
|
/* header file sys/poll.h must be included by the external interface. */
|
||||||
|
#undef CURL_PULL_SYS_POLL_H
|
||||||
|
#ifdef CURL_PULL_SYS_POLL_H
|
||||||
|
# include <sys/poll.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The size of `long', as computed by sizeof. */
|
/* The size of `long', as computed by sizeof. */
|
||||||
#undef CURL_SIZEOF_LONG
|
#undef CURL_SIZEOF_LONG
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2012, 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
|
||||||
@@ -190,7 +190,7 @@ typedef char
|
|||||||
* CURL_ISOCPP and CURL_OFF_T_C definitions are done here in order to allow
|
* CURL_ISOCPP and CURL_OFF_T_C definitions are done here in order to allow
|
||||||
* these to be visible and exported by the external libcurl interface API,
|
* these to be visible and exported by the external libcurl interface API,
|
||||||
* while also making them visible to the library internals, simply including
|
* while also making them visible to the library internals, simply including
|
||||||
* setup.h, without actually needing to include curl.h internally.
|
* curl_setup.h, without actually needing to include curl.h internally.
|
||||||
* If some day this section would grow big enough, all this should be moved
|
* If some day this section would grow big enough, all this should be moved
|
||||||
* to its own header file.
|
* to its own header file.
|
||||||
*/
|
*/
|
||||||
@@ -248,6 +248,7 @@ typedef char
|
|||||||
#undef CURL_PULL_WS2TCPIP_H
|
#undef CURL_PULL_WS2TCPIP_H
|
||||||
#undef CURL_PULL_SYS_TYPES_H
|
#undef CURL_PULL_SYS_TYPES_H
|
||||||
#undef CURL_PULL_SYS_SOCKET_H
|
#undef CURL_PULL_SYS_SOCKET_H
|
||||||
|
#undef CURL_PULL_SYS_POLL_H
|
||||||
#undef CURL_PULL_STDINT_H
|
#undef CURL_PULL_STDINT_H
|
||||||
#undef CURL_PULL_INTTYPES_H
|
#undef CURL_PULL_INTTYPES_H
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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,17 +26,17 @@
|
|||||||
a script at release-time. This was made its own header file in 7.11.2 */
|
a script at release-time. This was made its own header file in 7.11.2 */
|
||||||
|
|
||||||
/* This is the global package copyright */
|
/* This is the global package copyright */
|
||||||
#define LIBCURL_COPYRIGHT "1996 - 2012 Daniel Stenberg, <daniel@haxx.se>."
|
#define LIBCURL_COPYRIGHT "1996 - 2013 Daniel Stenberg, <daniel@haxx.se>."
|
||||||
|
|
||||||
/* This is the version number of the libcurl package from which this header
|
/* This is the version number of the libcurl package from which this header
|
||||||
file origins: */
|
file origins: */
|
||||||
#define LIBCURL_VERSION "7.28.1-DEV"
|
#define LIBCURL_VERSION "7.30.0-DEV"
|
||||||
|
|
||||||
/* The numeric version number is also available "in parts" by using these
|
/* The numeric version number is also available "in parts" by using these
|
||||||
defines: */
|
defines: */
|
||||||
#define LIBCURL_VERSION_MAJOR 7
|
#define LIBCURL_VERSION_MAJOR 7
|
||||||
#define LIBCURL_VERSION_MINOR 28
|
#define LIBCURL_VERSION_MINOR 30
|
||||||
#define LIBCURL_VERSION_PATCH 1
|
#define LIBCURL_VERSION_PATCH 0
|
||||||
|
|
||||||
/* This is the numeric version of the libcurl version number, meant for easier
|
/* This is the numeric version of the libcurl version number, meant for easier
|
||||||
parsing and comparions by programs. The LIBCURL_VERSION_NUM define will
|
parsing and comparions by programs. The LIBCURL_VERSION_NUM define will
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
and it is always a greater number in a more recent release. It makes
|
and it is always a greater number in a more recent release. It makes
|
||||||
comparisons with greater than and less than work.
|
comparisons with greater than and less than work.
|
||||||
*/
|
*/
|
||||||
#define LIBCURL_VERSION_NUM 0x071c01
|
#define LIBCURL_VERSION_NUM 0x071e00
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the date and time when the full source package was created. The
|
* This is the date and time when the full source package was created. The
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -58,7 +58,7 @@ CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);
|
|||||||
# define printf curl_mprintf
|
# define printf curl_mprintf
|
||||||
# define fprintf curl_mfprintf
|
# define fprintf curl_mfprintf
|
||||||
#ifdef CURLDEBUG
|
#ifdef CURLDEBUG
|
||||||
/* When built with CURLDEBUG we define away the sprintf() functions since we
|
/* When built with CURLDEBUG we define away the sprintf functions since we
|
||||||
don't want internal code to be using them */
|
don't want internal code to be using them */
|
||||||
# define sprintf sprintf_was_used
|
# define sprintf sprintf_was_used
|
||||||
# define vsprintf vsprintf_was_used
|
# define vsprintf vsprintf_was_used
|
||||||
|
@@ -338,6 +338,31 @@ typedef enum {
|
|||||||
/* maximum number of entries in the connection cache */
|
/* maximum number of entries in the connection cache */
|
||||||
CINIT(MAXCONNECTS, LONG, 6),
|
CINIT(MAXCONNECTS, LONG, 6),
|
||||||
|
|
||||||
|
/* maximum number of (pipelining) connections to one host */
|
||||||
|
CINIT(MAX_HOST_CONNECTIONS, LONG, 7),
|
||||||
|
|
||||||
|
/* maximum number of requests in a pipeline */
|
||||||
|
CINIT(MAX_PIPELINE_LENGTH, LONG, 8),
|
||||||
|
|
||||||
|
/* a connection with a content-length longer than this
|
||||||
|
will not be considered for pipelining */
|
||||||
|
CINIT(CONTENT_LENGTH_PENALTY_SIZE, OFF_T, 9),
|
||||||
|
|
||||||
|
/* a connection with a chunk length longer than this
|
||||||
|
will not be considered for pipelining */
|
||||||
|
CINIT(CHUNK_LENGTH_PENALTY_SIZE, OFF_T, 10),
|
||||||
|
|
||||||
|
/* a list of site names(+port) that are blacklisted from
|
||||||
|
pipelining */
|
||||||
|
CINIT(PIPELINING_SITE_BL, OBJECTPOINT, 11),
|
||||||
|
|
||||||
|
/* a list of server types that are blacklisted from
|
||||||
|
pipelining */
|
||||||
|
CINIT(PIPELINING_SERVER_BL, OBJECTPOINT, 12),
|
||||||
|
|
||||||
|
/* maximum number of open connections in total */
|
||||||
|
CINIT(MAX_TOTAL_CONNECTIONS, LONG, 13),
|
||||||
|
|
||||||
CURLMOPT_LASTENTRY /* the last unused */
|
CURLMOPT_LASTENTRY /* the last unused */
|
||||||
} CURLMoption;
|
} CURLMoption;
|
||||||
|
|
||||||
|
675
install-sh
675
install-sh
@@ -1,250 +1,527 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
|
||||||
# install - install a program, script, or datafile
|
# install - install a program, script, or datafile
|
||||||
# This comes from X11R5 (mit/util/scripts/install.sh).
|
|
||||||
|
scriptversion=2011-01-19.21; # UTC
|
||||||
|
|
||||||
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||||
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||||
|
# following copyright and license.
|
||||||
#
|
#
|
||||||
# Copyright 1991 by the Massachusetts Institute of Technology
|
# Copyright (C) 1994 X Consortium
|
||||||
#
|
#
|
||||||
# Permission to use, copy, modify, distribute, and sell this software and its
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
# documentation for any purpose is hereby granted without fee, provided that
|
# of this software and associated documentation files (the "Software"), to
|
||||||
# the above copyright notice appear in all copies and that both that
|
# deal in the Software without restriction, including without limitation the
|
||||||
# copyright notice and this permission notice appear in supporting
|
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||||
# documentation, and that the name of M.I.T. not be used in advertising or
|
# sell copies of the Software, and to permit persons to whom the Software is
|
||||||
# publicity pertaining to distribution of the software without specific,
|
# furnished to do so, subject to the following conditions:
|
||||||
# written prior permission. M.I.T. makes no representations about the
|
#
|
||||||
# suitability of this software for any purpose. It is provided "as is"
|
# The above copyright notice and this permission notice shall be included in
|
||||||
# without express or implied warranty.
|
# all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||||
|
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
#
|
||||||
|
# Except as contained in this notice, the name of the X Consortium shall not
|
||||||
|
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||||
|
# ings in this Software without prior written authorization from the X Consor-
|
||||||
|
# tium.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# FSF changes to this file are in the public domain.
|
||||||
#
|
#
|
||||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||||
# `make' implicit rules from creating a file called install from it
|
# `make' implicit rules from creating a file called install from it
|
||||||
# when there is no Makefile.
|
# when there is no Makefile.
|
||||||
#
|
#
|
||||||
# This script is compatible with the BSD install script, but was written
|
# This script is compatible with the BSD install script, but was written
|
||||||
# from scratch. It can only install one file at a time, a restriction
|
# from scratch.
|
||||||
# shared with many OS's install programs.
|
|
||||||
|
|
||||||
|
nl='
|
||||||
|
'
|
||||||
|
IFS=" "" $nl"
|
||||||
|
|
||||||
# set DOITPROG to echo to test this script
|
# set DOITPROG to echo to test this script
|
||||||
|
|
||||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||||
doit="${DOITPROG-}"
|
doit=${DOITPROG-}
|
||||||
|
if test -z "$doit"; then
|
||||||
|
doit_exec=exec
|
||||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
|
||||||
|
|
||||||
mvprog="${MVPROG-mv}"
|
|
||||||
cpprog="${CPPROG-cp}"
|
|
||||||
chmodprog="${CHMODPROG-chmod}"
|
|
||||||
chownprog="${CHOWNPROG-chown}"
|
|
||||||
chgrpprog="${CHGRPPROG-chgrp}"
|
|
||||||
stripprog="${STRIPPROG-strip}"
|
|
||||||
rmprog="${RMPROG-rm}"
|
|
||||||
mkdirprog="${MKDIRPROG-mkdir}"
|
|
||||||
|
|
||||||
transformbasename=""
|
|
||||||
transform_arg=""
|
|
||||||
instcmd="$mvprog"
|
|
||||||
chmodcmd="$chmodprog 0755"
|
|
||||||
chowncmd=""
|
|
||||||
chgrpcmd=""
|
|
||||||
stripcmd=""
|
|
||||||
rmcmd="$rmprog -f"
|
|
||||||
mvcmd="$mvprog"
|
|
||||||
src=""
|
|
||||||
dst=""
|
|
||||||
dir_arg=""
|
|
||||||
|
|
||||||
while [ x"$1" != x ]; do
|
|
||||||
case $1 in
|
|
||||||
-c) instcmd="$cpprog"
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-d) dir_arg=true
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-m) chmodcmd="$chmodprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-o) chowncmd="$chownprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-g) chgrpcmd="$chgrpprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-s) stripcmd="$stripprog"
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
*) if [ x"$src" = x ]
|
|
||||||
then
|
|
||||||
src=$1
|
|
||||||
else
|
|
||||||
# this colon is to work around a 386BSD /bin/sh bug
|
|
||||||
:
|
|
||||||
dst=$1
|
|
||||||
fi
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ x"$src" = x ]
|
|
||||||
then
|
|
||||||
echo "install: no input file specified"
|
|
||||||
exit 1
|
|
||||||
else
|
else
|
||||||
true
|
doit_exec=$doit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ x"$dir_arg" != x ]; then
|
# Put in absolute file names if you don't have them in your path;
|
||||||
dst=$src
|
# or use environment vars.
|
||||||
src=""
|
|
||||||
|
|
||||||
if [ -d $dst ]; then
|
chgrpprog=${CHGRPPROG-chgrp}
|
||||||
instcmd=:
|
chmodprog=${CHMODPROG-chmod}
|
||||||
else
|
chownprog=${CHOWNPROG-chown}
|
||||||
instcmd=mkdir
|
cmpprog=${CMPPROG-cmp}
|
||||||
fi
|
cpprog=${CPPROG-cp}
|
||||||
else
|
mkdirprog=${MKDIRPROG-mkdir}
|
||||||
|
mvprog=${MVPROG-mv}
|
||||||
|
rmprog=${RMPROG-rm}
|
||||||
|
stripprog=${STRIPPROG-strip}
|
||||||
|
|
||||||
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
posix_glob='?'
|
||||||
# might cause directories to be created, which would be especially bad
|
initialize_posix_glob='
|
||||||
# if $src (and thus $dsttmp) contains '*'.
|
test "$posix_glob" != "?" || {
|
||||||
|
if (set -f) 2>/dev/null; then
|
||||||
if [ -f $src -o -d $src ]
|
posix_glob=
|
||||||
then
|
else
|
||||||
true
|
posix_glob=:
|
||||||
else
|
fi
|
||||||
echo "install: $src does not exist"
|
}
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dst" = x ]
|
|
||||||
then
|
|
||||||
echo "install: no destination specified"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If destination is a directory, append the input filename; if your system
|
|
||||||
# does not like double slashes in filenames, you may need to add some logic
|
|
||||||
|
|
||||||
if [ -d $dst ]
|
|
||||||
then
|
|
||||||
dst="$dst"/`basename $src`
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
## this sed command emulates the dirname command
|
|
||||||
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
|
||||||
|
|
||||||
# Make sure that the destination directory exists.
|
|
||||||
# this part is taken from Noah Friedman's mkinstalldirs script
|
|
||||||
|
|
||||||
# Skip lots of stat calls in the usual case.
|
|
||||||
if [ ! -d "$dstdir" ]; then
|
|
||||||
defaultIFS='
|
|
||||||
'
|
'
|
||||||
IFS="${IFS-${defaultIFS}}"
|
|
||||||
|
|
||||||
oIFS="${IFS}"
|
posix_mkdir=
|
||||||
# Some sh's can't handle IFS=/ for some reason.
|
|
||||||
IFS='%'
|
|
||||||
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
|
|
||||||
IFS="${oIFS}"
|
|
||||||
|
|
||||||
pathcomp=''
|
# Desired mode of installed file.
|
||||||
|
mode=0755
|
||||||
|
|
||||||
while [ $# -ne 0 ] ; do
|
chgrpcmd=
|
||||||
pathcomp="${pathcomp}${1}"
|
chmodcmd=$chmodprog
|
||||||
shift
|
chowncmd=
|
||||||
|
mvcmd=$mvprog
|
||||||
|
rmcmd="$rmprog -f"
|
||||||
|
stripcmd=
|
||||||
|
|
||||||
if [ ! -d "${pathcomp}" ] ;
|
src=
|
||||||
then
|
dst=
|
||||||
$mkdirprog "${pathcomp}"
|
dir_arg=
|
||||||
else
|
dst_arg=
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
pathcomp="${pathcomp}/"
|
copy_on_change=false
|
||||||
|
no_target_directory=
|
||||||
|
|
||||||
|
usage="\
|
||||||
|
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||||
|
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||||
|
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||||
|
or: $0 [OPTION]... -d DIRECTORIES...
|
||||||
|
|
||||||
|
In the 1st form, copy SRCFILE to DSTFILE.
|
||||||
|
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||||
|
In the 4th, create DIRECTORIES.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--help display this help and exit.
|
||||||
|
--version display version info and exit.
|
||||||
|
|
||||||
|
-c (ignored)
|
||||||
|
-C install only if different (preserve the last data modification time)
|
||||||
|
-d create directories instead of installing files.
|
||||||
|
-g GROUP $chgrpprog installed files to GROUP.
|
||||||
|
-m MODE $chmodprog installed files to MODE.
|
||||||
|
-o USER $chownprog installed files to USER.
|
||||||
|
-s $stripprog installed files.
|
||||||
|
-t DIRECTORY install into DIRECTORY.
|
||||||
|
-T report an error if DSTFILE is a directory.
|
||||||
|
|
||||||
|
Environment variables override the default commands:
|
||||||
|
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
|
||||||
|
RMPROG STRIPPROG
|
||||||
|
"
|
||||||
|
|
||||||
|
while test $# -ne 0; do
|
||||||
|
case $1 in
|
||||||
|
-c) ;;
|
||||||
|
|
||||||
|
-C) copy_on_change=true;;
|
||||||
|
|
||||||
|
-d) dir_arg=true;;
|
||||||
|
|
||||||
|
-g) chgrpcmd="$chgrpprog $2"
|
||||||
|
shift;;
|
||||||
|
|
||||||
|
--help) echo "$usage"; exit $?;;
|
||||||
|
|
||||||
|
-m) mode=$2
|
||||||
|
case $mode in
|
||||||
|
*' '* | *' '* | *'
|
||||||
|
'* | *'*'* | *'?'* | *'['*)
|
||||||
|
echo "$0: invalid mode: $mode" >&2
|
||||||
|
exit 1;;
|
||||||
|
esac
|
||||||
|
shift;;
|
||||||
|
|
||||||
|
-o) chowncmd="$chownprog $2"
|
||||||
|
shift;;
|
||||||
|
|
||||||
|
-s) stripcmd=$stripprog;;
|
||||||
|
|
||||||
|
-t) dst_arg=$2
|
||||||
|
# Protect names problematic for `test' and other utilities.
|
||||||
|
case $dst_arg in
|
||||||
|
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||||
|
esac
|
||||||
|
shift;;
|
||||||
|
|
||||||
|
-T) no_target_directory=true;;
|
||||||
|
|
||||||
|
--version) echo "$0 $scriptversion"; exit $?;;
|
||||||
|
|
||||||
|
--) shift
|
||||||
|
break;;
|
||||||
|
|
||||||
|
-*) echo "$0: invalid option: $1" >&2
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
*) break;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
|
||||||
|
# When -d is used, all remaining arguments are directories to create.
|
||||||
|
# When -t is used, the destination is already specified.
|
||||||
|
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$dst_arg"; then
|
||||||
|
# $@ is not empty: it contains at least $arg.
|
||||||
|
set fnord "$@" "$dst_arg"
|
||||||
|
shift # fnord
|
||||||
|
fi
|
||||||
|
shift # arg
|
||||||
|
dst_arg=$arg
|
||||||
|
# Protect names problematic for `test' and other utilities.
|
||||||
|
case $dst_arg in
|
||||||
|
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ x"$dir_arg" != x ]
|
if test $# -eq 0; then
|
||||||
then
|
if test -z "$dir_arg"; then
|
||||||
$doit $instcmd $dst &&
|
echo "$0: no input file specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# It's OK to call `install-sh -d' without argument.
|
||||||
|
# This can happen when creating conditional directories.
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
if test -z "$dir_arg"; then
|
||||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
do_exit='(exit $ret); exit $ret'
|
||||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
trap "ret=129; $do_exit" 1
|
||||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
trap "ret=130; $do_exit" 2
|
||||||
else
|
trap "ret=141; $do_exit" 13
|
||||||
|
trap "ret=143; $do_exit" 15
|
||||||
|
|
||||||
# If we're going to rename the final executable, determine the name now.
|
# Set umask so as not to create temps with too-generous modes.
|
||||||
|
# However, 'strip' requires both read and write access to temps.
|
||||||
|
case $mode in
|
||||||
|
# Optimize common cases.
|
||||||
|
*644) cp_umask=133;;
|
||||||
|
*755) cp_umask=22;;
|
||||||
|
|
||||||
if [ x"$transformarg" = x ]
|
*[0-7])
|
||||||
then
|
if test -z "$stripcmd"; then
|
||||||
dstfile=`basename $dst`
|
u_plus_rw=
|
||||||
|
else
|
||||||
|
u_plus_rw='% 200'
|
||||||
|
fi
|
||||||
|
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
|
||||||
|
*)
|
||||||
|
if test -z "$stripcmd"; then
|
||||||
|
u_plus_rw=
|
||||||
|
else
|
||||||
|
u_plus_rw=,u+rw
|
||||||
|
fi
|
||||||
|
cp_umask=$mode$u_plus_rw;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
for src
|
||||||
|
do
|
||||||
|
# Protect names problematic for `test' and other utilities.
|
||||||
|
case $src in
|
||||||
|
-* | [=\(\)!]) src=./$src;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
dst=$src
|
||||||
|
dstdir=$dst
|
||||||
|
test -d "$dstdir"
|
||||||
|
dstdir_status=$?
|
||||||
|
else
|
||||||
|
|
||||||
|
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||||
|
# might cause directories to be created, which would be especially bad
|
||||||
|
# if $src (and thus $dsttmp) contains '*'.
|
||||||
|
if test ! -f "$src" && test ! -d "$src"; then
|
||||||
|
echo "$0: $src does not exist." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$dst_arg"; then
|
||||||
|
echo "$0: no destination specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
dst=$dst_arg
|
||||||
|
|
||||||
|
# If destination is a directory, append the input filename; won't work
|
||||||
|
# if double slashes aren't ignored.
|
||||||
|
if test -d "$dst"; then
|
||||||
|
if test -n "$no_target_directory"; then
|
||||||
|
echo "$0: $dst_arg: Is a directory" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
dstdir=$dst
|
||||||
|
dst=$dstdir/`basename "$src"`
|
||||||
|
dstdir_status=0
|
||||||
|
else
|
||||||
|
# Prefer dirname, but fall back on a substitute if dirname fails.
|
||||||
|
dstdir=`
|
||||||
|
(dirname "$dst") 2>/dev/null ||
|
||||||
|
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
||||||
|
X"$dst" : 'X\(//\)[^/]' \| \
|
||||||
|
X"$dst" : 'X\(//\)$' \| \
|
||||||
|
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
|
||||||
|
echo X"$dst" |
|
||||||
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
/^X\(\/\/\)[^/].*/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
/^X\(\/\/\)$/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
/^X\(\/\).*/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
s/.*/./; q'
|
||||||
|
`
|
||||||
|
|
||||||
|
test -d "$dstdir"
|
||||||
|
dstdir_status=$?
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
obsolete_mkdir_used=false
|
||||||
|
|
||||||
|
if test $dstdir_status != 0; then
|
||||||
|
case $posix_mkdir in
|
||||||
|
'')
|
||||||
|
# Create intermediate dirs using mode 755 as modified by the umask.
|
||||||
|
# This is like FreeBSD 'install' as of 1997-10-28.
|
||||||
|
umask=`umask`
|
||||||
|
case $stripcmd.$umask in
|
||||||
|
# Optimize common cases.
|
||||||
|
*[2367][2367]) mkdir_umask=$umask;;
|
||||||
|
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
|
||||||
|
|
||||||
|
*[0-7])
|
||||||
|
mkdir_umask=`expr $umask + 22 \
|
||||||
|
- $umask % 100 % 40 + $umask % 20 \
|
||||||
|
- $umask % 10 % 4 + $umask % 2
|
||||||
|
`;;
|
||||||
|
*) mkdir_umask=$umask,go-w;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# With -d, create the new directory with the user-specified mode.
|
||||||
|
# Otherwise, rely on $mkdir_umask.
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
mkdir_mode=-m$mode
|
||||||
else
|
else
|
||||||
dstfile=`basename $dst $transformbasename |
|
mkdir_mode=
|
||||||
sed $transformarg`$transformbasename
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# don't allow the sed command to completely eliminate the filename
|
posix_mkdir=false
|
||||||
|
case $umask in
|
||||||
|
*[123567][0-7][0-7])
|
||||||
|
# POSIX mkdir -p sets u+wx bits regardless of umask, which
|
||||||
|
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
|
||||||
|
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
|
||||||
|
|
||||||
if [ x"$dstfile" = x ]
|
if (umask $mkdir_umask &&
|
||||||
then
|
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
|
||||||
dstfile=`basename $dst`
|
then
|
||||||
|
if test -z "$dir_arg" || {
|
||||||
|
# Check for POSIX incompatibilities with -m.
|
||||||
|
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
||||||
|
# other-writeable bit of parent directory when it shouldn't.
|
||||||
|
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
||||||
|
ls_ld_tmpdir=`ls -ld "$tmpdir"`
|
||||||
|
case $ls_ld_tmpdir in
|
||||||
|
d????-?r-*) different_mode=700;;
|
||||||
|
d????-?--*) different_mode=755;;
|
||||||
|
*) false;;
|
||||||
|
esac &&
|
||||||
|
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
|
||||||
|
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
|
||||||
|
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
then posix_mkdir=:
|
||||||
|
fi
|
||||||
|
rmdir "$tmpdir/d" "$tmpdir"
|
||||||
|
else
|
||||||
|
# Remove any dirs left behind by ancient mkdir implementations.
|
||||||
|
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
|
||||||
|
fi
|
||||||
|
trap '' 0;;
|
||||||
|
esac;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if
|
||||||
|
$posix_mkdir && (
|
||||||
|
umask $mkdir_umask &&
|
||||||
|
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
|
||||||
|
)
|
||||||
|
then :
|
||||||
|
else
|
||||||
|
|
||||||
|
# The umask is ridiculous, or mkdir does not conform to POSIX,
|
||||||
|
# or it failed possibly due to a race condition. Create the
|
||||||
|
# directory the slow way, step by step, checking for races as we go.
|
||||||
|
|
||||||
|
case $dstdir in
|
||||||
|
/*) prefix='/';;
|
||||||
|
[-=\(\)!]*) prefix='./';;
|
||||||
|
*) prefix='';;
|
||||||
|
esac
|
||||||
|
|
||||||
|
eval "$initialize_posix_glob"
|
||||||
|
|
||||||
|
oIFS=$IFS
|
||||||
|
IFS=/
|
||||||
|
$posix_glob set -f
|
||||||
|
set fnord $dstdir
|
||||||
|
shift
|
||||||
|
$posix_glob set +f
|
||||||
|
IFS=$oIFS
|
||||||
|
|
||||||
|
prefixes=
|
||||||
|
|
||||||
|
for d
|
||||||
|
do
|
||||||
|
test X"$d" = X && continue
|
||||||
|
|
||||||
|
prefix=$prefix$d
|
||||||
|
if test -d "$prefix"; then
|
||||||
|
prefixes=
|
||||||
else
|
else
|
||||||
true
|
if $posix_mkdir; then
|
||||||
|
(umask=$mkdir_umask &&
|
||||||
|
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
|
||||||
|
# Don't fail if two instances are running concurrently.
|
||||||
|
test -d "$prefix" || exit 1
|
||||||
|
else
|
||||||
|
case $prefix in
|
||||||
|
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
|
||||||
|
*) qprefix=$prefix;;
|
||||||
|
esac
|
||||||
|
prefixes="$prefixes '$qprefix'"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
prefix=$prefix/
|
||||||
|
done
|
||||||
|
|
||||||
# Make a temp file name in the proper directory.
|
if test -n "$prefixes"; then
|
||||||
|
# Don't fail if two instances are running concurrently.
|
||||||
|
(umask $mkdir_umask &&
|
||||||
|
eval "\$doit_exec \$mkdirprog $prefixes") ||
|
||||||
|
test -d "$dstdir" || exit 1
|
||||||
|
obsolete_mkdir_used=true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
dsttmp=$dstdir/#inst.$$#
|
if test -n "$dir_arg"; then
|
||||||
|
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
|
||||||
|
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
|
||||||
|
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
|
||||||
|
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
|
||||||
|
else
|
||||||
|
|
||||||
# Move or copy the file name to the temp name
|
# Make a couple of temp file names in the proper directory.
|
||||||
|
dsttmp=$dstdir/_inst.$$_
|
||||||
|
rmtmp=$dstdir/_rm.$$_
|
||||||
|
|
||||||
$doit $instcmd $src $dsttmp &&
|
# Trap to clean up those temp files at exit.
|
||||||
|
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||||
|
|
||||||
trap "rm -f ${dsttmp}" 0 &&
|
# Copy the file name to the temp name.
|
||||||
|
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
|
||||||
|
|
||||||
# and set any options; do chmod last to preserve setuid bits
|
# and set any options; do chmod last to preserve setuid bits.
|
||||||
|
#
|
||||||
|
# If any of these fail, we abort the whole thing. If we want to
|
||||||
|
# ignore errors from any of these, just make sure not to ignore
|
||||||
|
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||||
|
#
|
||||||
|
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
|
||||||
|
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
|
||||||
|
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
|
||||||
|
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
|
||||||
|
|
||||||
# If any of these fail, we abort the whole thing. If we want to
|
# If -C, don't bother to copy if it wouldn't change the file.
|
||||||
# ignore errors from any of these, just make sure not to ignore
|
if $copy_on_change &&
|
||||||
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
|
||||||
|
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
|
||||||
|
|
||||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
eval "$initialize_posix_glob" &&
|
||||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
$posix_glob set -f &&
|
||||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
set X $old && old=:$2:$4:$5:$6 &&
|
||||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
set X $new && new=:$2:$4:$5:$6 &&
|
||||||
|
$posix_glob set +f &&
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
test "$old" = "$new" &&
|
||||||
|
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
rm -f "$dsttmp"
|
||||||
|
else
|
||||||
|
# Rename the file to the real destination.
|
||||||
|
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
|
||||||
|
|
||||||
$doit $rmcmd -f $dstdir/$dstfile &&
|
# The rename failed, perhaps because mv can't rename something else
|
||||||
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
# to itself, or perhaps because mv is so ancient that it does not
|
||||||
|
# support -f.
|
||||||
|
{
|
||||||
|
# Now remove or move aside any old file at destination location.
|
||||||
|
# We try this two ways since rm can't unlink itself on some
|
||||||
|
# systems and the destination file might be busy for other
|
||||||
|
# reasons. In this case, the final cleanup might fail but the new
|
||||||
|
# file should still install successfully.
|
||||||
|
{
|
||||||
|
test ! -f "$dst" ||
|
||||||
|
$doit $rmcmd -f "$dst" 2>/dev/null ||
|
||||||
|
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
|
||||||
|
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
|
||||||
|
} ||
|
||||||
|
{ echo "$0: cannot unlink or rename $dst" >&2
|
||||||
|
(exit 1); exit 1
|
||||||
|
}
|
||||||
|
} &&
|
||||||
|
|
||||||
fi &&
|
# Now rename the file to the real destination.
|
||||||
|
$doit $mvcmd "$dsttmp" "$dst"
|
||||||
|
}
|
||||||
|
fi || exit 1
|
||||||
|
|
||||||
|
trap '' 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
exit 0
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-time-zone: "UTC"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
|
# End:
|
||||||
|
2
lib/.gitignore
vendored
2
lib/.gitignore
vendored
@@ -7,8 +7,6 @@ TAGS
|
|||||||
Makefile.vc8.dist
|
Makefile.vc8.dist
|
||||||
Makefile.vc9.dist
|
Makefile.vc9.dist
|
||||||
libcurl.plist.dist
|
libcurl.plist.dist
|
||||||
libcurl.vcproj
|
|
||||||
vc6libcurl.dsp
|
|
||||||
Makefile.vc10.dist
|
Makefile.vc10.dist
|
||||||
libcurl.vers
|
libcurl.vers
|
||||||
*.a
|
*.a
|
||||||
|
@@ -89,7 +89,7 @@ ZLIB_ROOT = ..$(DS)..$(DS)zlib-1.2.7
|
|||||||
!ifdef %libssh2_root
|
!ifdef %libssh2_root
|
||||||
LIBSSH2_ROOT = $(%libssh2_root)
|
LIBSSH2_ROOT = $(%libssh2_root)
|
||||||
!else
|
!else
|
||||||
LIBSSH2_ROOT = ..$(DS)..$(DS)libssh2-1.4.2
|
LIBSSH2_ROOT = ..$(DS)..$(DS)libssh2-1.4.3
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!ifdef %librtmp_root
|
!ifdef %librtmp_root
|
||||||
@@ -101,7 +101,7 @@ LIBRTMP_ROOT = ..$(DS)..$(DS)rtmpdump-2.3
|
|||||||
!ifdef %openssl_root
|
!ifdef %openssl_root
|
||||||
OPENSSL_ROOT = $(%openssl_root)
|
OPENSSL_ROOT = $(%openssl_root)
|
||||||
!else
|
!else
|
||||||
OPENSSL_ROOT = ..$(DS)..$(DS)openssl-0.9.8x
|
OPENSSL_ROOT = ..$(DS)..$(DS)openssl-0.9.8y
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!ifdef %ares_root
|
!ifdef %ares_root
|
||||||
|
151
lib/Makefile.am
151
lib/Makefile.am
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1998 - 2013, 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
|
||||||
@@ -21,45 +21,42 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
AUTOMAKE_OPTIONS = foreign nostdinc
|
AUTOMAKE_OPTIONS = foreign nostdinc
|
||||||
|
|
||||||
DSP = vc6libcurl.dsp
|
|
||||||
VCPROJ = libcurl.vcproj
|
|
||||||
|
|
||||||
DOCS = README.encoding README.memoryleak README.ares README.curlx \
|
DOCS = README.encoding README.memoryleak README.ares README.curlx \
|
||||||
README.hostip README.multi_socket README.httpauth README.pipelining \
|
README.hostip README.multi_socket README.httpauth README.pipelining \
|
||||||
README.curl_off_t README.pingpong
|
README.curl_off_t README.pingpong
|
||||||
|
|
||||||
CMAKE_DIST = CMakeLists.txt curl_config.h.cmake
|
CMAKE_DIST = CMakeLists.txt curl_config.h.cmake
|
||||||
|
|
||||||
EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 $(DSP) \
|
EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 config-win32.h \
|
||||||
vc6libcurl.dsw config-win32.h config-win32ce.h config-riscos.h \
|
config-win32ce.h config-riscos.h config-mac.h curl_config.h.in \
|
||||||
config-mac.h curl_config.h.in makefile.dj config-dos.h libcurl.plist \
|
makefile.dj config-dos.h libcurl.plist libcurl.rc config-amigaos.h \
|
||||||
libcurl.rc config-amigaos.h makefile.amiga \
|
makefile.amiga Makefile.netware nwlib.c nwos.c config-win32ce.h \
|
||||||
Makefile.netware nwlib.c nwos.c msvcproj.head msvcproj.foot \
|
config-os400.h setup-os400.h config-symbian.h Makefile.Watcom \
|
||||||
config-win32ce.h config-os400.h setup-os400.h config-symbian.h \
|
config-tpf.h $(DOCS) mk-ca-bundle.pl mk-ca-bundle.vbs $(CMAKE_DIST) \
|
||||||
Makefile.Watcom config-tpf.h $(DOCS) $(VCPROJ) mk-ca-bundle.pl \
|
firefox-db2pem.sh config-vxworks.h Makefile.vxworks checksrc.pl \
|
||||||
mk-ca-bundle.vbs firefox-db2pem.sh $(CMAKE_DIST) config-vxworks.h \
|
objnames-test08.sh objnames-test10.sh objnames.inc
|
||||||
Makefile.vxworks config-vms.h checksrc.pl
|
|
||||||
|
|
||||||
CLEANFILES = $(DSP) $(VCPROJ)
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = libcurl.la
|
lib_LTLIBRARIES = libcurl.la
|
||||||
LIBCURL_LIBS = @LIBCURL_LIBS@
|
|
||||||
|
if BUILD_UNITTESTS
|
||||||
|
noinst_LTLIBRARIES = libcurlu.la
|
||||||
|
else
|
||||||
|
noinst_LTLIBRARIES =
|
||||||
|
endif
|
||||||
|
|
||||||
# This might hold -Werror
|
# This might hold -Werror
|
||||||
CFLAGS += @CURL_CFLAG_EXTRAS@
|
CFLAGS += @CURL_CFLAG_EXTRAS@
|
||||||
|
|
||||||
CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@
|
|
||||||
|
|
||||||
# Specify our include paths here, and do it relative to $(top_srcdir) and
|
# Specify our include paths here, and do it relative to $(top_srcdir) and
|
||||||
# $(top_builddir), to ensure that these paths which belong to the library
|
# $(top_builddir), to ensure that these paths which belong to the library
|
||||||
# being currently built and tested are searched before the library which
|
# being currently built and tested are searched before the library which
|
||||||
# might possibly already be installed in the system.
|
# might possibly already be installed in the system.
|
||||||
#
|
#
|
||||||
# $(top_builddir)/include/curl for generated curlbuild.h included from curl.h
|
# $(top_builddir)/include/curl for generated curlbuild.h included from curl.h
|
||||||
# $(top_builddir)/include for generated curlbuild.h included from lib/setup.h
|
# $(top_builddir)/include for generated curlbuild.h inc. from lib/curl_setup.h
|
||||||
# $(top_srcdir)/include is for libcurl's external include files
|
# $(top_srcdir)/include is for libcurl's external include files
|
||||||
# $(top_builddir)/lib is for libcurl's generated lib/curl_config.h file
|
# $(top_builddir)/lib is for libcurl's generated lib/curl_config.h file
|
||||||
# $(top_srcdir)/lib is for libcurl's lib/setup.h and other "private" files
|
# $(top_srcdir)/lib for libcurl's lib/curl_setup.h and other "private" files
|
||||||
# $(top_builddir)/ares is for in-tree c-ares's generated ares_build.h file
|
# $(top_builddir)/ares is for in-tree c-ares's generated ares_build.h file
|
||||||
# $(top_srcdir)/ares is for in-tree c-ares's external include files
|
# $(top_srcdir)/ares is for in-tree c-ares's external include files
|
||||||
|
|
||||||
@@ -79,15 +76,8 @@ AM_CPPFLAGS = -I$(top_builddir)/include/curl \
|
|||||||
-I$(top_srcdir)/lib
|
-I$(top_srcdir)/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Mostly for Windows build targets, when building libcurl library
|
# Prevent LIBS from being used for all link targets
|
||||||
if USE_CPPFLAG_BUILDING_LIBCURL
|
LIBS = $(BLANK_AT_MAKETIME)
|
||||||
AM_CPPFLAGS += -DBUILDING_LIBCURL
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Mostly for Windows build targets, when building static libcurl
|
|
||||||
if USE_CPPFLAG_CURL_STATICLIB
|
|
||||||
AM_CPPFLAGS += -DCURL_STATICLIB
|
|
||||||
endif
|
|
||||||
|
|
||||||
if SONAME_BUMP
|
if SONAME_BUMP
|
||||||
#
|
#
|
||||||
@@ -117,40 +107,45 @@ endif
|
|||||||
#
|
#
|
||||||
# For the full guide on libcurl ABI rules, see docs/libcurl/ABI
|
# For the full guide on libcurl ABI rules, see docs/libcurl/ABI
|
||||||
|
|
||||||
if NO_UNDEFINED
|
AM_CPPFLAGS += -DBUILDING_LIBCURL
|
||||||
# The -no-undefined flag is crucial to build fine on some platforms
|
AM_LDFLAGS =
|
||||||
UNDEF = -no-undefined
|
AM_CFLAGS =
|
||||||
|
|
||||||
|
libcurl_la_CPPFLAGS_EXTRA =
|
||||||
|
libcurl_la_LDFLAGS_EXTRA =
|
||||||
|
libcurl_la_CFLAGS_EXTRA =
|
||||||
|
|
||||||
|
if CURL_LT_SHLIB_USE_VERSION_INFO
|
||||||
|
libcurl_la_LDFLAGS_EXTRA += $(VERSIONINFO)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if MIMPURE
|
if CURL_LT_SHLIB_USE_NO_UNDEFINED
|
||||||
# This is for gcc on Solaris (8+ ?) to avoid "relocations remain against
|
libcurl_la_LDFLAGS_EXTRA += -no-undefined
|
||||||
# allocatable but non-writable sections" problems.
|
|
||||||
MIMPURE = -mimpure-text
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if VERSIONED_SYMBOLS
|
if CURL_LT_SHLIB_USE_MIMPURE_TEXT
|
||||||
VERSIONED_SYMBOLS = -Wl,--version-script=libcurl.vers
|
libcurl_la_LDFLAGS_EXTRA += -mimpure-text
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libcurl_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(VERSIONED_SYMBOLS) $(LIBCURL_LIBS)
|
if CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS
|
||||||
|
libcurl_la_LDFLAGS_EXTRA += -Wl,--version-script=libcurl.vers
|
||||||
|
endif
|
||||||
|
|
||||||
|
if USE_CPPFLAG_CURL_STATICLIB
|
||||||
|
libcurl_la_CPPFLAGS_EXTRA += -DCURL_STATICLIB
|
||||||
|
endif
|
||||||
|
|
||||||
if DOING_CURL_SYMBOL_HIDING
|
if DOING_CURL_SYMBOL_HIDING
|
||||||
libcurl_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_HIDDEN_SYMBOLS
|
libcurl_la_CPPFLAGS_EXTRA += -DCURL_HIDDEN_SYMBOLS
|
||||||
libcurl_la_CFLAGS = $(AM_CFLAGS) $(CFLAG_CURL_SYMBOL_HIDING)
|
libcurl_la_CFLAGS_EXTRA += $(CFLAG_CURL_SYMBOL_HIDING)
|
||||||
else
|
|
||||||
libcurl_la_CPPFLAGS = $(AM_CPPFLAGS)
|
|
||||||
libcurl_la_CFLAGS = $(AM_CFLAGS)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# unit testing static library built only along with unit tests
|
libcurl_la_CPPFLAGS = $(AM_CPPFLAGS) $(libcurl_la_CPPFLAGS_EXTRA)
|
||||||
if BUILD_UNITTESTS
|
libcurl_la_LDFLAGS = $(AM_LDFLAGS) $(libcurl_la_LDFLAGS_EXTRA) $(LIBCURL_LIBS)
|
||||||
noinst_LTLIBRARIES = libcurlu.la
|
libcurl_la_CFLAGS = $(AM_CFLAGS) $(libcurl_la_CFLAGS_EXTRA)
|
||||||
else
|
|
||||||
noinst_LTLIBRARIES =
|
|
||||||
endif
|
|
||||||
|
|
||||||
libcurlu_la_CPPFLAGS = $(AM_CPPFLAGS) -DUNITTESTS
|
libcurlu_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_STATICLIB -DUNITTESTS
|
||||||
libcurlu_la_LDFLAGS = -static $(LIBCURL_LIBS)
|
libcurlu_la_LDFLAGS = $(AM_LDFLAGS) -static $(LIBCURL_LIBS)
|
||||||
libcurlu_la_CFLAGS = $(AM_CFLAGS)
|
libcurlu_la_CFLAGS = $(AM_CFLAGS)
|
||||||
|
|
||||||
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
||||||
@@ -159,58 +154,6 @@ include Makefile.inc
|
|||||||
libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS)
|
libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS)
|
||||||
libcurlu_la_SOURCES = $(CSOURCES) $(HHEADERS)
|
libcurlu_la_SOURCES = $(CSOURCES) $(HHEADERS)
|
||||||
|
|
||||||
WIN32SOURCES = $(CSOURCES)
|
|
||||||
WIN32HEADERS = $(HHEADERS) config-win32.h
|
|
||||||
|
|
||||||
DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
|
|
||||||
VCPROJOUT = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ)
|
|
||||||
|
|
||||||
$(DSP): msvcproj.head msvcproj.foot Makefile.am
|
|
||||||
echo "creating $(DSP)"
|
|
||||||
@(cp $(srcdir)/msvcproj.head $(DSP); \
|
|
||||||
echo "# Begin Group \"Source Files\"" $(DSPOUT); \
|
|
||||||
echo "" $(DSPOUT); \
|
|
||||||
echo "# PROP Default_Filter \"\"" $(DSPOUT); \
|
|
||||||
win32_srcs='$(WIN32SOURCES)'; \
|
|
||||||
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
|
||||||
for file in $$sorted_srcs; do \
|
|
||||||
echo "# Begin Source File" $(DSPOUT); \
|
|
||||||
echo "" $(DSPOUT); \
|
|
||||||
echo "SOURCE=.\\"$$file $(DSPOUT); \
|
|
||||||
echo "# End Source File" $(DSPOUT); \
|
|
||||||
done; \
|
|
||||||
echo "# End Group" $(DSPOUT); \
|
|
||||||
echo "# Begin Group \"Header Files\"" $(DSPOUT); \
|
|
||||||
echo "" $(DSPOUT); \
|
|
||||||
echo "# PROP Default_Filter \"\"" $(DSPOUT); \
|
|
||||||
win32_hdrs='$(WIN32HEADERS)'; \
|
|
||||||
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
|
||||||
for file in $$sorted_hdrs; do \
|
|
||||||
echo "# Begin Source File" $(DSPOUT); \
|
|
||||||
echo "" $(DSPOUT); \
|
|
||||||
echo "SOURCE=.\\"$$file $(DSPOUT); \
|
|
||||||
echo "# End Source File" $(DSPOUT); \
|
|
||||||
done; \
|
|
||||||
echo "# End Group" $(DSPOUT); \
|
|
||||||
cat $(srcdir)/msvcproj.foot $(DSPOUT) )
|
|
||||||
|
|
||||||
$(VCPROJ): vc8proj.head vc8proj.foot Makefile.am
|
|
||||||
echo "creating $(VCPROJ)"
|
|
||||||
@(cp $(srcdir)/vc8proj.head $(VCPROJ); \
|
|
||||||
win32_srcs='$(WIN32SOURCES)'; \
|
|
||||||
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
|
||||||
for file in $$sorted_srcs; do \
|
|
||||||
echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
|
|
||||||
done; \
|
|
||||||
echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT); \
|
|
||||||
win32_hdrs='$(WIN32HEADERS)'; \
|
|
||||||
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
|
||||||
for file in $$sorted_hdrs; do \
|
|
||||||
echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
|
|
||||||
done; \
|
|
||||||
cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )
|
|
||||||
|
|
||||||
|
|
||||||
checksrc:
|
checksrc:
|
||||||
@@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/lib $(CSOURCES) $(HHEADERS)
|
@@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/lib $(CSOURCES) $(HHEADERS)
|
||||||
|
|
||||||
|
@@ -27,7 +27,7 @@ ZLIB_PATH = ..\..\zlib-1.2.7
|
|||||||
|
|
||||||
# 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.8x
|
OPENSSL_PATH = ..\..\openssl-0.9.8y
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
# Set libcurl static lib, dll and import lib
|
# Set libcurl static lib, dll and import lib
|
||||||
|
@@ -20,11 +20,12 @@ CSOURCES = file.c timeval.c base64.c hostip.c progress.c formdata.c \
|
|||||||
qssl.c rawstr.c curl_addrinfo.c socks_gssapi.c socks_sspi.c \
|
qssl.c rawstr.c curl_addrinfo.c socks_gssapi.c socks_sspi.c \
|
||||||
curl_sspi.c slist.c nonblock.c curl_memrchr.c imap.c pop3.c smtp.c \
|
curl_sspi.c slist.c nonblock.c curl_memrchr.c imap.c pop3.c smtp.c \
|
||||||
pingpong.c rtsp.c curl_threads.c warnless.c hmac.c polarssl.c \
|
pingpong.c rtsp.c curl_threads.c warnless.c hmac.c polarssl.c \
|
||||||
curl_rtmp.c openldap.c curl_gethostname.c gopher.c axtls.c \
|
polarssl_threadlock.c curl_rtmp.c openldap.c curl_gethostname.c \
|
||||||
idn_win32.c http_negotiate_sspi.c cyassl.c http_proxy.c non-ascii.c \
|
gopher.c axtls.c idn_win32.c http_negotiate_sspi.c cyassl.c \
|
||||||
asyn-ares.c asyn-thread.c curl_gssapi.c curl_ntlm.c curl_ntlm_wb.c \
|
http_proxy.c non-ascii.c asyn-ares.c asyn-thread.c curl_gssapi.c \
|
||||||
curl_ntlm_core.c curl_ntlm_msgs.c curl_sasl.c curl_schannel.c \
|
curl_ntlm.c curl_ntlm_wb.c curl_ntlm_core.c curl_ntlm_msgs.c \
|
||||||
curl_multibyte.c curl_darwinssl.c hostcheck.c
|
curl_sasl.c curl_schannel.c curl_multibyte.c curl_darwinssl.c \
|
||||||
|
hostcheck.c bundles.c conncache.c pipeline.c
|
||||||
|
|
||||||
HHEADERS = arpa_telnet.h netrc.h file.h timeval.h qssl.h hostip.h \
|
HHEADERS = arpa_telnet.h netrc.h file.h timeval.h qssl.h hostip.h \
|
||||||
progress.h formdata.h cookie.h http.h sendf.h ftp.h url.h dict.h \
|
progress.h formdata.h cookie.h http.h sendf.h ftp.h url.h dict.h \
|
||||||
@@ -33,13 +34,14 @@ HHEADERS = arpa_telnet.h netrc.h file.h timeval.h qssl.h hostip.h \
|
|||||||
curl_fnmatch.h wildcard.h fileinfo.h ftplistparser.h strtok.h \
|
curl_fnmatch.h wildcard.h fileinfo.h ftplistparser.h strtok.h \
|
||||||
connect.h llist.h hash.h content_encoding.h share.h curl_md4.h \
|
connect.h llist.h hash.h content_encoding.h share.h curl_md4.h \
|
||||||
curl_md5.h http_digest.h http_negotiate.h inet_pton.h amigaos.h \
|
curl_md5.h http_digest.h http_negotiate.h inet_pton.h amigaos.h \
|
||||||
strtoofft.h strerror.h inet_ntop.h curlx.h curl_memory.h setup.h \
|
strtoofft.h strerror.h inet_ntop.h curlx.h curl_memory.h curl_setup.h \
|
||||||
transfer.h select.h easyif.h multiif.h parsedate.h sslgen.h gtls.h \
|
transfer.h select.h easyif.h multiif.h parsedate.h sslgen.h gtls.h \
|
||||||
tftp.h sockaddr.h splay.h strdup.h setup_once.h socks.h ssh.h nssg.h \
|
tftp.h sockaddr.h splay.h strdup.h socks.h ssh.h nssg.h curl_base64.h \
|
||||||
curl_base64.h rawstr.h curl_addrinfo.h curl_sspi.h slist.h nonblock.h \
|
rawstr.h curl_addrinfo.h curl_sspi.h slist.h nonblock.h \
|
||||||
curl_memrchr.h imap.h pop3.h smtp.h pingpong.h rtsp.h curl_threads.h \
|
curl_memrchr.h imap.h pop3.h smtp.h pingpong.h rtsp.h curl_threads.h \
|
||||||
warnless.h curl_hmac.h polarssl.h curl_rtmp.h curl_gethostname.h \
|
warnless.h curl_hmac.h polarssl.h polarssl_threadlock.h curl_rtmp.h \
|
||||||
gopher.h axtls.h cyassl.h http_proxy.h non-ascii.h asyn.h curl_ntlm.h \
|
curl_gethostname.h gopher.h axtls.h cyassl.h http_proxy.h non-ascii.h \
|
||||||
curl_gssapi.h curl_ntlm_wb.h curl_ntlm_core.h curl_ntlm_msgs.h \
|
asyn.h curl_ntlm.h curl_gssapi.h curl_ntlm_wb.h curl_ntlm_core.h \
|
||||||
curl_sasl.h curl_schannel.h curl_multibyte.h curl_darwinssl.h \
|
curl_ntlm_msgs.h curl_sasl.h curl_schannel.h curl_multibyte.h \
|
||||||
hostcheck.h
|
curl_darwinssl.h hostcheck.h bundles.h conncache.h curl_setup_once.h \
|
||||||
|
multihandle.h setup-vms.h pipeline.h
|
||||||
|
@@ -18,11 +18,11 @@ ZLIB_PATH = ../../zlib-1.2.7
|
|||||||
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.8x
|
OPENSSL_PATH = ../../openssl-0.9.8y
|
||||||
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
|
||||||
LIBSSH2_PATH = ../../libssh2-1.4.2
|
LIBSSH2_PATH = ../../libssh2-1.4.3
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your librtmp package.
|
# Edit the path below to point to the base of your librtmp package.
|
||||||
ifndef LIBRTMP_PATH
|
ifndef LIBRTMP_PATH
|
||||||
@@ -106,6 +106,9 @@ endif
|
|||||||
ifeq ($(findstring -ares,$(CFG)),-ares)
|
ifeq ($(findstring -ares,$(CFG)),-ares)
|
||||||
ARES = 1
|
ARES = 1
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(findstring -sync,$(CFG)),-sync)
|
||||||
|
SYNC = 1
|
||||||
|
endif
|
||||||
ifeq ($(findstring -rtmp,$(CFG)),-rtmp)
|
ifeq ($(findstring -rtmp,$(CFG)),-rtmp)
|
||||||
RTMP = 1
|
RTMP = 1
|
||||||
SSL = 1
|
SSL = 1
|
||||||
@@ -151,11 +154,15 @@ endif
|
|||||||
INCLUDES = -I. -I../include
|
INCLUDES = -I. -I../include
|
||||||
CFLAGS += -DBUILDING_LIBCURL
|
CFLAGS += -DBUILDING_LIBCURL
|
||||||
|
|
||||||
ifdef ARES
|
ifdef SYNC
|
||||||
INCLUDES += -I"$(LIBCARES_PATH)"
|
CFLAGS += -DUSE_SYNC_DNS
|
||||||
CFLAGS += -DUSE_ARES
|
else
|
||||||
DLL_LIBS += -L"$(LIBCARES_PATH)" -lcares
|
ifdef ARES
|
||||||
libcurl_dll_DEPENDENCIES = $(LIBCARES_PATH)/libcares.a
|
INCLUDES += -I"$(LIBCARES_PATH)"
|
||||||
|
CFLAGS += -DUSE_ARES -DCARES_STATICLIB
|
||||||
|
DLL_LIBS += -L"$(LIBCARES_PATH)" -lcares
|
||||||
|
libcurl_dll_DEPENDENCIES = $(LIBCARES_PATH)/libcares.a
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
ifdef RTMP
|
ifdef RTMP
|
||||||
INCLUDES += -I"$(LIBRTMP_PATH)"
|
INCLUDES += -I"$(LIBRTMP_PATH)"
|
||||||
|
@@ -19,12 +19,12 @@ 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.8x
|
OPENSSL_PATH = ../../openssl-0.9.8y
|
||||||
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
|
||||||
LIBSSH2_PATH = ../../libssh2-1.4.2
|
LIBSSH2_PATH = ../../libssh2-1.4.3
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Edit the path below to point to the base of your axTLS package.
|
# Edit the path below to point to the base of your axTLS package.
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1999 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 1999 - 2013, 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
|
||||||
@@ -62,14 +62,14 @@
|
|||||||
# Makefile.msvc.names provides libcurl file names
|
# Makefile.msvc.names provides libcurl file names
|
||||||
# ------------------------------------------------
|
# ------------------------------------------------
|
||||||
|
|
||||||
!INCLUDE ..\Makefile.msvc.names
|
!INCLUDE ..\winbuild\Makefile.msvc.names
|
||||||
|
|
||||||
!IFNDEF OPENSSL_PATH
|
!IFNDEF OPENSSL_PATH
|
||||||
OPENSSL_PATH = ../../openssl-0.9.8x
|
OPENSSL_PATH = ../../openssl-0.9.8y
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
!IFNDEF LIBSSH2_PATH
|
!IFNDEF LIBSSH2_PATH
|
||||||
LIBSSH2_PATH = ../../libssh2-1.4.2
|
LIBSSH2_PATH = ../../libssh2-1.4.3
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
!IFNDEF ZLIB_PATH
|
!IFNDEF ZLIB_PATH
|
||||||
@@ -494,9 +494,13 @@ clean:
|
|||||||
# A config was provided, so the library can be built.
|
# A config was provided, so the library can be built.
|
||||||
#
|
#
|
||||||
X_OBJS= \
|
X_OBJS= \
|
||||||
|
$(DIROBJ)\amigaos.obj \
|
||||||
$(DIROBJ)\asyn-ares.obj \
|
$(DIROBJ)\asyn-ares.obj \
|
||||||
$(DIROBJ)\asyn-thread.obj \
|
$(DIROBJ)\asyn-thread.obj \
|
||||||
|
$(DIROBJ)\axtls.obj \
|
||||||
$(DIROBJ)\base64.obj \
|
$(DIROBJ)\base64.obj \
|
||||||
|
$(DIROBJ)\bundles.obj \
|
||||||
|
$(DIROBJ)\conncache.obj \
|
||||||
$(DIROBJ)\connect.obj \
|
$(DIROBJ)\connect.obj \
|
||||||
$(DIROBJ)\content_encoding.obj \
|
$(DIROBJ)\content_encoding.obj \
|
||||||
$(DIROBJ)\cookie.obj \
|
$(DIROBJ)\cookie.obj \
|
||||||
@@ -504,6 +508,7 @@ X_OBJS= \
|
|||||||
$(DIROBJ)\curl_darwinssl.obj \
|
$(DIROBJ)\curl_darwinssl.obj \
|
||||||
$(DIROBJ)\curl_fnmatch.obj \
|
$(DIROBJ)\curl_fnmatch.obj \
|
||||||
$(DIROBJ)\curl_gethostname.obj \
|
$(DIROBJ)\curl_gethostname.obj \
|
||||||
|
$(DIROBJ)\curl_gssapi.obj \
|
||||||
$(DIROBJ)\curl_memrchr.obj \
|
$(DIROBJ)\curl_memrchr.obj \
|
||||||
$(DIROBJ)\curl_multibyte.obj \
|
$(DIROBJ)\curl_multibyte.obj \
|
||||||
$(DIROBJ)\curl_ntlm.obj \
|
$(DIROBJ)\curl_ntlm.obj \
|
||||||
@@ -516,6 +521,7 @@ X_OBJS= \
|
|||||||
$(DIROBJ)\curl_schannel.obj \
|
$(DIROBJ)\curl_schannel.obj \
|
||||||
$(DIROBJ)\curl_sspi.obj \
|
$(DIROBJ)\curl_sspi.obj \
|
||||||
$(DIROBJ)\curl_threads.obj \
|
$(DIROBJ)\curl_threads.obj \
|
||||||
|
$(DIROBJ)\cyassl.obj \
|
||||||
$(DIROBJ)\dict.obj \
|
$(DIROBJ)\dict.obj \
|
||||||
$(DIROBJ)\easy.obj \
|
$(DIROBJ)\easy.obj \
|
||||||
$(DIROBJ)\escape.obj \
|
$(DIROBJ)\escape.obj \
|
||||||
@@ -531,6 +537,7 @@ X_OBJS= \
|
|||||||
$(DIROBJ)\hash.obj \
|
$(DIROBJ)\hash.obj \
|
||||||
$(DIROBJ)\hmac.obj \
|
$(DIROBJ)\hmac.obj \
|
||||||
$(DIROBJ)\hostasyn.obj \
|
$(DIROBJ)\hostasyn.obj \
|
||||||
|
$(DIROBJ)\hostcheck.obj \
|
||||||
$(DIROBJ)\hostip.obj \
|
$(DIROBJ)\hostip.obj \
|
||||||
$(DIROBJ)\hostip4.obj \
|
$(DIROBJ)\hostip4.obj \
|
||||||
$(DIROBJ)\hostip6.obj \
|
$(DIROBJ)\hostip6.obj \
|
||||||
@@ -541,10 +548,13 @@ X_OBJS= \
|
|||||||
$(DIROBJ)\http_negotiate.obj \
|
$(DIROBJ)\http_negotiate.obj \
|
||||||
$(DIROBJ)\http_negotiate_sspi.obj \
|
$(DIROBJ)\http_negotiate_sspi.obj \
|
||||||
$(DIROBJ)\http_proxy.obj \
|
$(DIROBJ)\http_proxy.obj \
|
||||||
|
$(DIROBJ)\idn_win32.obj \
|
||||||
$(DIROBJ)\if2ip.obj \
|
$(DIROBJ)\if2ip.obj \
|
||||||
$(DIROBJ)\imap.obj \
|
$(DIROBJ)\imap.obj \
|
||||||
$(DIROBJ)\inet_ntop.obj \
|
$(DIROBJ)\inet_ntop.obj \
|
||||||
$(DIROBJ)\inet_pton.obj \
|
$(DIROBJ)\inet_pton.obj \
|
||||||
|
$(DIROBJ)\krb4.obj \
|
||||||
|
$(DIROBJ)\krb5.obj \
|
||||||
$(DIROBJ)\ldap.obj \
|
$(DIROBJ)\ldap.obj \
|
||||||
$(DIROBJ)\llist.obj \
|
$(DIROBJ)\llist.obj \
|
||||||
$(DIROBJ)\md4.obj \
|
$(DIROBJ)\md4.obj \
|
||||||
@@ -553,15 +563,21 @@ X_OBJS= \
|
|||||||
$(DIROBJ)\mprintf.obj \
|
$(DIROBJ)\mprintf.obj \
|
||||||
$(DIROBJ)\multi.obj \
|
$(DIROBJ)\multi.obj \
|
||||||
$(DIROBJ)\netrc.obj \
|
$(DIROBJ)\netrc.obj \
|
||||||
|
$(DIROBJ)\non-ascii.obj \
|
||||||
$(DIROBJ)\nonblock.obj \
|
$(DIROBJ)\nonblock.obj \
|
||||||
|
$(DIROBJ)\nss.obj \
|
||||||
$(DIROBJ)\openldap.obj \
|
$(DIROBJ)\openldap.obj \
|
||||||
$(DIROBJ)\parsedate.obj \
|
$(DIROBJ)\parsedate.obj \
|
||||||
$(DIROBJ)\pingpong.obj \
|
$(DIROBJ)\pingpong.obj \
|
||||||
|
$(DIROBJ)\pipeline.obj \
|
||||||
$(DIROBJ)\polarssl.obj \
|
$(DIROBJ)\polarssl.obj \
|
||||||
|
$(DIROBJ)\polarssl_threadlock.obj \
|
||||||
$(DIROBJ)\pop3.obj \
|
$(DIROBJ)\pop3.obj \
|
||||||
$(DIROBJ)\progress.obj \
|
$(DIROBJ)\progress.obj \
|
||||||
|
$(DIROBJ)\qssl.obj \
|
||||||
$(DIROBJ)\rawstr.obj \
|
$(DIROBJ)\rawstr.obj \
|
||||||
$(DIROBJ)\rtsp.obj \
|
$(DIROBJ)\rtsp.obj \
|
||||||
|
$(DIROBJ)\security.obj \
|
||||||
$(DIROBJ)\select.obj \
|
$(DIROBJ)\select.obj \
|
||||||
$(DIROBJ)\sendf.obj \
|
$(DIROBJ)\sendf.obj \
|
||||||
$(DIROBJ)\share.obj \
|
$(DIROBJ)\share.obj \
|
||||||
@@ -575,6 +591,7 @@ X_OBJS= \
|
|||||||
$(DIROBJ)\ssh.obj \
|
$(DIROBJ)\ssh.obj \
|
||||||
$(DIROBJ)\sslgen.obj \
|
$(DIROBJ)\sslgen.obj \
|
||||||
$(DIROBJ)\ssluse.obj \
|
$(DIROBJ)\ssluse.obj \
|
||||||
|
$(DIROBJ)\strdup.obj \
|
||||||
$(DIROBJ)\strequal.obj \
|
$(DIROBJ)\strequal.obj \
|
||||||
$(DIROBJ)\strerror.obj \
|
$(DIROBJ)\strerror.obj \
|
||||||
$(DIROBJ)\strtok.obj \
|
$(DIROBJ)\strtok.obj \
|
||||||
|
@@ -33,8 +33,8 @@ BUILD_TYPE := debug
|
|||||||
USER_CFLAGS:=
|
USER_CFLAGS:=
|
||||||
|
|
||||||
# directories where to seek for includes and libraries
|
# directories where to seek for includes and libraries
|
||||||
OPENSSL_INC := D:/libraries/openssl/openssl-0.9.8x-vxWorks6.3/include
|
OPENSSL_INC := D:/libraries/openssl/openssl-0.9.8y-vxWorks6.3/include
|
||||||
OPENSSL_LIB := D:/libraries/openssl/openssl-0.9.8x-vxWorks6.3
|
OPENSSL_LIB := D:/libraries/openssl/openssl-0.9.8y-vxWorks6.3
|
||||||
ZLIB_INC := D:/libraries/zlib/zlib-1.2.7-VxWorks6.3/zlib-1.2.7
|
ZLIB_INC := D:/libraries/zlib/zlib-1.2.7-VxWorks6.3/zlib-1.2.7
|
||||||
ZLIB_LIB := D:/libraries/zlib/zlib-1.2.7-VxWorks6.3/binaries/vxworks_3.1_gnu/Debug/lib
|
ZLIB_LIB := D:/libraries/zlib/zlib-1.2.7-VxWorks6.3/binaries/vxworks_3.1_gnu/Debug/lib
|
||||||
ARES_INC :=
|
ARES_INC :=
|
||||||
|
@@ -32,4 +32,4 @@
|
|||||||
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 curl_setup.h defines.
|
||||||
|
@@ -42,10 +42,3 @@ Details
|
|||||||
still resolve the second one properly to make sure that they actually _can_
|
still resolve the second one properly to make sure that they actually _can_
|
||||||
be considered for pipelining. Also, asking for explicit pipelining on handle
|
be considered for pipelining. Also, asking for explicit pipelining on handle
|
||||||
X may be tricky when handle X get a closed connection.
|
X may be tricky when handle X get a closed connection.
|
||||||
|
|
||||||
- We need options to control max pipeline length, and probably how to behave
|
|
||||||
if we reach that limit. As was discussed on the list, it can probably be
|
|
||||||
made very complicated, so perhaps we can think of a way to pass all
|
|
||||||
variables involved to a callback and let the application decide how to act
|
|
||||||
in specific situations. Either way, these fancy options are only interesting
|
|
||||||
to work on when everything is working and we have working apps to test with.
|
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "setup.h"
|
#include "curl_setup.h"
|
||||||
|
|
||||||
#if defined(__AMIGA__) && !defined(__ixemul__)
|
#if defined(__AMIGA__) && !defined(__ixemul__)
|
||||||
|
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "setup.h"
|
#include "curl_setup.h"
|
||||||
|
|
||||||
#if defined(__AMIGA__) && !defined(__ixemul__)
|
#if defined(__AMIGA__) && !defined(__ixemul__)
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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,14 +20,11 @@
|
|||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "setup.h"
|
#include "curl_setup.h"
|
||||||
|
|
||||||
#ifdef HAVE_LIMITS_H
|
#ifdef HAVE_LIMITS_H
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -37,9 +34,6 @@
|
|||||||
#ifdef HAVE_ARPA_INET_H
|
#ifdef HAVE_ARPA_INET_H
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_UNISTD_H
|
|
||||||
#include <unistd.h> /* for the close() proto */
|
|
||||||
#endif
|
|
||||||
#ifdef __VMS
|
#ifdef __VMS
|
||||||
#include <in.h>
|
#include <in.h>
|
||||||
#include <inet.h>
|
#include <inet.h>
|
||||||
@@ -213,12 +207,12 @@ static void destroy_async_data (struct Curl_async *async)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Curl_resolver_fdset() is called when someone from the outside world (using
|
* Curl_resolver_getsock() is called when someone from the outside world
|
||||||
* curl_multi_fdset()) wants to get our fd_set setup and we're talking with
|
* (using curl_multi_fdset()) wants to get our fd_set setup and we're talking
|
||||||
* ares. The caller must make sure that this function is only called when we
|
* with ares. The caller must make sure that this function is only called when
|
||||||
* have a working ares channel.
|
* we have a working ares channel.
|
||||||
*
|
*
|
||||||
* Returns: CURLE_OK always!
|
* Returns: sockets-in-use-bitmap
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int Curl_resolver_getsock(struct connectdata *conn,
|
int Curl_resolver_getsock(struct connectdata *conn,
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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,11 +20,8 @@
|
|||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "setup.h"
|
#include "curl_setup.h"
|
||||||
|
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -34,9 +31,6 @@
|
|||||||
#ifdef HAVE_ARPA_INET_H
|
#ifdef HAVE_ARPA_INET_H
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_UNISTD_H
|
|
||||||
#include <unistd.h> /* for the close() proto */
|
|
||||||
#endif
|
|
||||||
#ifdef __VMS
|
#ifdef __VMS
|
||||||
#include <in.h>
|
#include <in.h>
|
||||||
#include <inet.h>
|
#include <inet.h>
|
||||||
@@ -176,7 +170,7 @@ struct thread_sync_data {
|
|||||||
struct thread_data {
|
struct thread_data {
|
||||||
curl_thread_t thread_hnd;
|
curl_thread_t thread_hnd;
|
||||||
unsigned int poll_interval;
|
unsigned int poll_interval;
|
||||||
int interval_end;
|
long interval_end;
|
||||||
struct thread_sync_data tsd;
|
struct thread_sync_data tsd;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -393,61 +387,27 @@ static bool init_resolve_thread (struct connectdata *conn,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAVE_GETADDRINFO) && !defined(HAVE_GAI_STRERROR) && !defined(WIN32)
|
|
||||||
/* NetWare has getaddrinfo but lacks gai_strerror.
|
|
||||||
Windows has a gai_strerror but it is bad (not thread-safe) and the generic
|
|
||||||
socket error string function can be used for this pupose. */
|
|
||||||
static const char *gai_strerror(int ecode)
|
|
||||||
{
|
|
||||||
switch (ecode) {
|
|
||||||
case EAI_AGAIN:
|
|
||||||
return "The name could not be resolved at this time";
|
|
||||||
case EAI_BADFLAGS:
|
|
||||||
return "The flags parameter had an invalid value";
|
|
||||||
case EAI_FAIL:
|
|
||||||
return "A non-recoverable error occurred when attempting to "
|
|
||||||
"resolve the name";
|
|
||||||
case EAI_FAMILY:
|
|
||||||
return "The address family was not recognized";
|
|
||||||
case EAI_MEMORY:
|
|
||||||
return "Out of memory";
|
|
||||||
case EAI_NONAME:
|
|
||||||
return "The name does not resolve for the supplied parameters";
|
|
||||||
case EAI_SERVICE:
|
|
||||||
return "The service passed was not recognized for the "
|
|
||||||
"specified socket type"
|
|
||||||
case EAI_SOCKTYPE:
|
|
||||||
return "The intended socket type was not recognized"
|
|
||||||
case EAI_SYSTEM:
|
|
||||||
return "A system error occurred";
|
|
||||||
case EAI_OVERFLOW:
|
|
||||||
return "An argument buffer overflowed";
|
|
||||||
default:
|
|
||||||
return "Unknown error";
|
|
||||||
|
|
||||||
/* define this now as this is a private implementation of said function */
|
|
||||||
#define HAVE_GAI_STRERROR
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* resolver_error() calls failf() with the appropriate message after a resolve
|
* resolver_error() calls failf() with the appropriate message after a resolve
|
||||||
* error
|
* error
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void resolver_error(struct connectdata *conn, const char *host_or_proxy)
|
static CURLcode resolver_error(struct connectdata *conn)
|
||||||
{
|
{
|
||||||
failf(conn->data, "Could not resolve %s: %s; %s", host_or_proxy,
|
const char *host_or_proxy;
|
||||||
conn->async.hostname,
|
CURLcode rc;
|
||||||
#ifdef HAVE_GAI_STRERROR
|
if(conn->bits.httpproxy) {
|
||||||
/* NetWare doesn't have gai_strerror and on Windows it isn't deemed
|
host_or_proxy = "proxy";
|
||||||
thread-safe */
|
rc = CURLE_COULDNT_RESOLVE_PROXY;
|
||||||
gai_strerror(conn->async.status)
|
}
|
||||||
#else
|
else {
|
||||||
Curl_strerror(conn, conn->async.status)
|
host_or_proxy = "host";
|
||||||
#endif
|
rc = CURLE_COULDNT_RESOLVE_HOST;
|
||||||
);
|
}
|
||||||
|
|
||||||
|
failf(conn->data, "Could not resolve %s: %s", host_or_proxy,
|
||||||
|
conn->async.hostname);
|
||||||
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -479,17 +439,9 @@ CURLcode Curl_resolver_wait_resolv(struct connectdata *conn,
|
|||||||
if(entry)
|
if(entry)
|
||||||
*entry = conn->async.dns;
|
*entry = conn->async.dns;
|
||||||
|
|
||||||
if(!conn->async.dns) {
|
if(!conn->async.dns)
|
||||||
/* a name was not resolved */
|
/* a name was not resolved, report error */
|
||||||
if(conn->bits.httpproxy) {
|
rc = resolver_error(conn);
|
||||||
resolver_error(conn, "proxy");
|
|
||||||
rc = CURLE_COULDNT_RESOLVE_PROXY;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
resolver_error(conn, "host");
|
|
||||||
rc = CURLE_COULDNT_RESOLVE_HOST;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
destroy_async_data(&conn->async);
|
destroy_async_data(&conn->async);
|
||||||
|
|
||||||
@@ -524,17 +476,18 @@ CURLcode Curl_resolver_is_resolved(struct connectdata *conn,
|
|||||||
|
|
||||||
if(done) {
|
if(done) {
|
||||||
getaddrinfo_complete(conn);
|
getaddrinfo_complete(conn);
|
||||||
destroy_async_data(&conn->async);
|
|
||||||
|
|
||||||
if(!conn->async.dns) {
|
if(!conn->async.dns) {
|
||||||
resolver_error(conn, "host");
|
CURLcode rc = resolver_error(conn);
|
||||||
return CURLE_COULDNT_RESOLVE_HOST;
|
destroy_async_data(&conn->async);
|
||||||
|
return rc;
|
||||||
}
|
}
|
||||||
|
destroy_async_data(&conn->async);
|
||||||
*entry = conn->async.dns;
|
*entry = conn->async.dns;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* poll for name lookup done with exponential backoff up to 250ms */
|
/* poll for name lookup done with exponential backoff up to 250ms */
|
||||||
int elapsed = Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle);
|
long elapsed = Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle);
|
||||||
if(elapsed < 0)
|
if(elapsed < 0)
|
||||||
elapsed = 0;
|
elapsed = 0;
|
||||||
|
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "setup.h"
|
#include "curl_setup.h"
|
||||||
#include "curl_addrinfo.h"
|
#include "curl_addrinfo.h"
|
||||||
|
|
||||||
struct addrinfo;
|
struct addrinfo;
|
||||||
|
@@ -26,16 +26,12 @@
|
|||||||
* but sslgen.c should ever call or use these functions.
|
* but sslgen.c should ever call or use these functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "setup.h"
|
#include "curl_setup.h"
|
||||||
|
|
||||||
#ifdef USE_AXTLS
|
#ifdef USE_AXTLS
|
||||||
#include <axTLS/ssl.h>
|
#include <axTLS/ssl.h>
|
||||||
#include "axtls.h"
|
#include "axtls.h"
|
||||||
|
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "sendf.h"
|
#include "sendf.h"
|
||||||
#include "inet_pton.h"
|
#include "inet_pton.h"
|
||||||
#include "sslgen.h"
|
#include "sslgen.h"
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#ifndef __AXTLS_H
|
#ifndef HEADER_CURL_AXTLS_H
|
||||||
#define __AXTLS_H
|
#define HEADER_CURL_AXTLS_H
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* _ _ ____ _
|
* _ _ ____ _
|
||||||
* Project ___| | | | _ \| |
|
* Project ___| | | | _ \| |
|
||||||
@@ -59,4 +59,5 @@ int Curl_axtls_check_cxn(struct connectdata *conn);
|
|||||||
#define curlssl_data_pending(x,y) (x=x, y=y, 0)
|
#define curlssl_data_pending(x,y) (x=x, y=y, 0)
|
||||||
|
|
||||||
#endif /* USE_AXTLS */
|
#endif /* USE_AXTLS */
|
||||||
#endif
|
#endif /* HEADER_CURL_AXTLS_H */
|
||||||
|
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
/* Base64 encoding/decoding */
|
/* Base64 encoding/decoding */
|
||||||
|
|
||||||
#include "setup.h"
|
#include "curl_setup.h"
|
||||||
|
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
#define _MPRINTF_REPLACE /* use our functions only */
|
||||||
#include <curl/mprintf.h>
|
#include <curl/mprintf.h>
|
||||||
|
110
lib/bundles.c
Normal file
110
lib/bundles.c
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 2012, Linus Nielsen Feltzing, <linus@haxx.se>
|
||||||
|
* Copyright (C) 2012, 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 "curl_setup.h"
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
#include "urldata.h"
|
||||||
|
#include "url.h"
|
||||||
|
#include "progress.h"
|
||||||
|
#include "multiif.h"
|
||||||
|
#include "bundles.h"
|
||||||
|
#include "sendf.h"
|
||||||
|
#include "rawstr.h"
|
||||||
|
|
||||||
|
#include "curl_memory.h"
|
||||||
|
/* The last #include file should be: */
|
||||||
|
#include "memdebug.h"
|
||||||
|
|
||||||
|
static void conn_llist_dtor(void *user, void *element)
|
||||||
|
{
|
||||||
|
struct connectdata *data = element;
|
||||||
|
(void)user;
|
||||||
|
|
||||||
|
data->bundle = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
CURLcode Curl_bundle_create(struct SessionHandle *data,
|
||||||
|
struct connectbundle **cb_ptr)
|
||||||
|
{
|
||||||
|
(void)data;
|
||||||
|
DEBUGASSERT(*cb_ptr == NULL);
|
||||||
|
*cb_ptr = malloc(sizeof(struct connectbundle));
|
||||||
|
if(!*cb_ptr)
|
||||||
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
|
||||||
|
(*cb_ptr)->num_connections = 0;
|
||||||
|
(*cb_ptr)->server_supports_pipelining = FALSE;
|
||||||
|
|
||||||
|
(*cb_ptr)->conn_list = Curl_llist_alloc((curl_llist_dtor) conn_llist_dtor);
|
||||||
|
if(!(*cb_ptr)->conn_list) {
|
||||||
|
Curl_safefree(*cb_ptr);
|
||||||
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
}
|
||||||
|
return CURLE_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Curl_bundle_destroy(struct connectbundle *cb_ptr)
|
||||||
|
{
|
||||||
|
if(!cb_ptr)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if(cb_ptr->conn_list) {
|
||||||
|
Curl_llist_destroy(cb_ptr->conn_list, NULL);
|
||||||
|
cb_ptr->conn_list = NULL;
|
||||||
|
}
|
||||||
|
Curl_safefree(cb_ptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add a connection to a bundle */
|
||||||
|
CURLcode Curl_bundle_add_conn(struct connectbundle *cb_ptr,
|
||||||
|
struct connectdata *conn)
|
||||||
|
{
|
||||||
|
if(!Curl_llist_insert_next(cb_ptr->conn_list, cb_ptr->conn_list->tail, conn))
|
||||||
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
|
||||||
|
conn->bundle = cb_ptr;
|
||||||
|
|
||||||
|
cb_ptr->num_connections++;
|
||||||
|
return CURLE_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Remove a connection from a bundle */
|
||||||
|
int Curl_bundle_remove_conn(struct connectbundle *cb_ptr,
|
||||||
|
struct connectdata *conn)
|
||||||
|
{
|
||||||
|
struct curl_llist_element *curr;
|
||||||
|
|
||||||
|
curr = cb_ptr->conn_list->head;
|
||||||
|
while(curr) {
|
||||||
|
if(curr->ptr == conn) {
|
||||||
|
Curl_llist_remove(cb_ptr->conn_list, curr, NULL);
|
||||||
|
cb_ptr->num_connections--;
|
||||||
|
conn->bundle = NULL;
|
||||||
|
return 1; /* we removed a handle */
|
||||||
|
}
|
||||||
|
curr = curr->next;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
45
lib/bundles.h
Normal file
45
lib/bundles.h
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
#ifndef HEADER_CURL_BUNDLES_H
|
||||||
|
#define HEADER_CURL_BUNDLES_H
|
||||||
|
/***************************************************************************
|
||||||
|
* _ _ ____ _
|
||||||
|
* Project ___| | | | _ \| |
|
||||||
|
* / __| | | | |_) | |
|
||||||
|
* | (__| |_| | _ <| |___
|
||||||
|
* \___|\___/|_| \_\_____|
|
||||||
|
*
|
||||||
|
* Copyright (C) 2012, Linus Nielsen Feltzing, <linus@haxx.se>
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
struct connectbundle {
|
||||||
|
bool server_supports_pipelining; /* TRUE if server supports pipelining,
|
||||||
|
set after first response */
|
||||||
|
size_t num_connections; /* Number of connections in the bundle */
|
||||||
|
struct curl_llist *conn_list; /* The connectdata members of the bundle */
|
||||||
|
};
|
||||||
|
|
||||||
|
CURLcode Curl_bundle_create(struct SessionHandle *data,
|
||||||
|
struct connectbundle **cb_ptr);
|
||||||
|
|
||||||
|
void Curl_bundle_destroy(struct connectbundle *cb_ptr);
|
||||||
|
|
||||||
|
CURLcode Curl_bundle_add_conn(struct connectbundle *cb_ptr,
|
||||||
|
struct connectdata *conn);
|
||||||
|
|
||||||
|
int Curl_bundle_remove_conn(struct connectbundle *cb_ptr,
|
||||||
|
struct connectdata *conn);
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* HEADER_CURL_BUNDLES_H */
|
||||||
|
|
@@ -6,7 +6,7 @@
|
|||||||
# | (__| |_| | _ <| |___
|
# | (__| |_| | _ <| |___
|
||||||
# \___|\___/|_| \_\_____|
|
# \___|\___/|_| \_\_____|
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
# Copyright (C) 2011 - 2013, 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
|
||||||
@@ -153,6 +153,12 @@ sub scanfile {
|
|||||||
checkwarn($line, length($1)+1, $file, $l, "missing space after close paren");
|
checkwarn($line, length($1)+1, $file, $l, "missing space after close paren");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# scan for use of banned functions
|
||||||
|
if($l =~ /^(.*\W)(sprintf|vsprintf|strcat|strncat|gets)\s*\(/) {
|
||||||
|
checkwarn($line, length($1), $file, $l,
|
||||||
|
"use of $2 is banned");
|
||||||
|
}
|
||||||
|
|
||||||
# check for open brace first on line but not first column
|
# check for open brace first on line but not first column
|
||||||
# only alert if previous line ended with a close paren and wasn't a cpp
|
# only alert if previous line ended with a close paren and wasn't a cpp
|
||||||
# line
|
# line
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#ifndef HEADER_CONFIG_DOS_H
|
#ifndef HEADER_CURL_CONFIG_DOS_H
|
||||||
#define HEADER_CONFIG_DOS_H
|
#define HEADER_CURL_CONFIG_DOS_H
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* _ _ ____ _
|
* _ _ ____ _
|
||||||
* Project ___| | | | _ \| |
|
* Project ___| | | | _ \| |
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -79,7 +79,6 @@
|
|||||||
#define HAVE_SYS_SOCKET_H 1
|
#define HAVE_SYS_SOCKET_H 1
|
||||||
#define HAVE_SYS_STAT_H 1
|
#define HAVE_SYS_STAT_H 1
|
||||||
#define HAVE_SYS_TYPES_H 1
|
#define HAVE_SYS_TYPES_H 1
|
||||||
#define HAVE_TERMIOS_H 1
|
|
||||||
#define HAVE_TIME_H 1
|
#define HAVE_TIME_H 1
|
||||||
#define HAVE_UNISTD_H 1
|
#define HAVE_UNISTD_H 1
|
||||||
|
|
||||||
@@ -149,7 +148,7 @@
|
|||||||
|
|
||||||
#if defined(__HIGHC__) || \
|
#if defined(__HIGHC__) || \
|
||||||
(defined(__GNUC__) && (__GNUC__ < 4))
|
(defined(__GNUC__) && (__GNUC__ < 4))
|
||||||
#define ssize_t int
|
#define ssize_t int
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")
|
#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")
|
||||||
@@ -162,12 +161,9 @@
|
|||||||
#define HAVE_SIGACTION 1
|
#define HAVE_SIGACTION 1
|
||||||
#define HAVE_SIGSETJMP 1
|
#define HAVE_SIGSETJMP 1
|
||||||
#define HAVE_SYS_TIME_H 1
|
#define HAVE_SYS_TIME_H 1
|
||||||
|
#define HAVE_TERMIOS_H 1
|
||||||
#define HAVE_VARIADIC_MACROS_GCC 1
|
#define HAVE_VARIADIC_MACROS_GCC 1
|
||||||
|
|
||||||
#if (DJGPP_MINOR >= 4)
|
|
||||||
#define HAVE_STRLCAT 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Because djgpp <= 2.03 doesn't have snprintf() etc. */
|
/* Because djgpp <= 2.03 doesn't have snprintf() etc. */
|
||||||
#if (DJGPP_MINOR < 4)
|
#if (DJGPP_MINOR < 4)
|
||||||
#define _MPRINTF_REPLACE
|
#define _MPRINTF_REPLACE
|
||||||
@@ -178,15 +174,15 @@
|
|||||||
|
|
||||||
#elif defined(__HIGHC__)
|
#elif defined(__HIGHC__)
|
||||||
#define HAVE_SYS_TIME_H 1
|
#define HAVE_SYS_TIME_H 1
|
||||||
|
#define strerror(e) strerror_s_((e))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MSDOS /* Watt-32 */
|
#ifdef MSDOS /* Watt-32 */
|
||||||
#define HAVE_CLOSESOCKET_CAMEL 1
|
#define HAVE_CLOSE_S 1
|
||||||
#define CloseSocket(s) close_s((s))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef word
|
#undef word
|
||||||
#undef byte
|
#undef byte
|
||||||
|
|
||||||
#endif /* HEADER_CONFIG_DOS_H */
|
#endif /* HEADER_CURL_CONFIG_DOS_H */
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -298,9 +298,6 @@
|
|||||||
/* Define if you have the <string.h> header file. */
|
/* Define if you have the <string.h> header file. */
|
||||||
#define HAVE_STRING_H
|
#define HAVE_STRING_H
|
||||||
|
|
||||||
/* Define if you have the `strlcat' function. */
|
|
||||||
#undef HAVE_STRLCAT
|
|
||||||
|
|
||||||
/* Define if you have the `strlcpy' function. */
|
/* Define if you have the `strlcpy' function. */
|
||||||
#undef HAVE_STRLCPY
|
#undef HAVE_STRLCPY
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -305,9 +305,6 @@
|
|||||||
/* Define if you have the <string.h> header file. */
|
/* Define if you have the <string.h> header file. */
|
||||||
#define HAVE_STRING_H
|
#define HAVE_STRING_H
|
||||||
|
|
||||||
/* Define if you have the `strlcat' function. */
|
|
||||||
#undef HAVE_STRLCAT
|
|
||||||
|
|
||||||
/* Define if you have the `strlcpy' function. */
|
/* Define if you have the `strlcpy' function. */
|
||||||
#undef HAVE_STRLCPY
|
#undef HAVE_STRLCPY
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -504,9 +504,6 @@
|
|||||||
/* Define to 1 if you have the `strcasecmp' function. */
|
/* Define to 1 if you have the `strcasecmp' function. */
|
||||||
#define HAVE_STRCASECMP 1
|
#define HAVE_STRCASECMP 1
|
||||||
|
|
||||||
/* Define to 1 if you have the `strcasestr' function. */
|
|
||||||
#define HAVE_STRCASESTR 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strcmpi' function. */
|
/* Define to 1 if you have the `strcmpi' function. */
|
||||||
/* #undef HAVE_STRCMPI */
|
/* #undef HAVE_STRCMPI */
|
||||||
|
|
||||||
@@ -525,9 +522,6 @@
|
|||||||
/* Define to 1 if you have the <string.h> header file. */
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
#define HAVE_STRING_H 1
|
#define HAVE_STRING_H 1
|
||||||
|
|
||||||
/* Define to 1 if you have the `strlcat' function. */
|
|
||||||
#define HAVE_STRLCAT 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strlcpy' function. */
|
/* Define to 1 if you have the `strlcpy' function. */
|
||||||
#define HAVE_STRLCPY 1
|
#define HAVE_STRLCPY 1
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, 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
|
||||||
@@ -471,9 +471,6 @@
|
|||||||
/* Define to 1 if you have the <string.h> header file. */
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
#define HAVE_STRING_H 1
|
#define HAVE_STRING_H 1
|
||||||
|
|
||||||
/* Define to 1 if you have the `strlcat' function. */
|
|
||||||
/* #undef HAVE_STRLCAT */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strlcpy' function. */
|
/* Define to 1 if you have the `strlcpy' function. */
|
||||||
/* #undef HAVE_STRLCPY */
|
/* #undef HAVE_STRLCPY */
|
||||||
|
|
||||||
|
398
lib/config-vms.h
398
lib/config-vms.h
@@ -1,398 +0,0 @@
|
|||||||
#ifndef HEADER_CONFIG_VMS_H
|
|
||||||
#define HEADER_CONFIG_VMS_H
|
|
||||||
/***************************************************************************
|
|
||||||
* _ _ ____ _
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
***************************************************************************/
|
|
||||||
|
|
||||||
/* */
|
|
||||||
/* MSK, 02/05/04, Hand edited for trail build on Alpha V7.3, DEC C 6.5-003 */
|
|
||||||
/* MSK, 03/09/04, Seems to work for all platforms I've built on so far. */
|
|
||||||
/* Added HAVE_SYS_IOCTL_H define */
|
|
||||||
/* TES, 10/06/04, Added MAX_INITIAL_POST_SIZE, HAVE_BASENAME */
|
|
||||||
/* MSK, 02/02/05, Changed HAVE_TERMIOS_H to an undef since the change in */
|
|
||||||
/* getpass.c no longer undef'd it during compile. */
|
|
||||||
/* MSK, 02/08/05, turned two config-vms files into one by using USE_SSLEAY */
|
|
||||||
/* MPZ, 12/28/05, changed HAVE_STRTOK_R define to use CRTL_VER */
|
|
||||||
/* MSK, 01/27/07, needed to add HAVE_STRUCT_TIMEVAL define */
|
|
||||||
|
|
||||||
/* Define cpu-machine-OS */
|
|
||||||
#if defined(__alpha)
|
|
||||||
# define OS "ALPHA-HP-VMS"
|
|
||||||
#elif defined(__vax)
|
|
||||||
# define OS "VAX-HP-VMS"
|
|
||||||
#elif defined(__ia64)
|
|
||||||
# define OS "IA64-HP-VMS"
|
|
||||||
#else
|
|
||||||
# define OS "UNKNOWN-HP-VMS"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Define if you have the ANSI C header files. */
|
|
||||||
#define STDC_HEADERS 1
|
|
||||||
|
|
||||||
/* Define if you can safely include both <sys/time.h> and <time.h>. */
|
|
||||||
#define TIME_WITH_SYS_TIME 1
|
|
||||||
|
|
||||||
/* The size of `int', as computed by sizeof. */
|
|
||||||
#define SIZEOF_INT 4
|
|
||||||
|
|
||||||
/* The size of `long double', as computed by sizeof. */
|
|
||||||
#define SIZEOF_LONG_DOUBLE 8
|
|
||||||
|
|
||||||
/* The size of `long long', as computed by sizeof. */
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
|
||||||
|
|
||||||
/* The size of `short', as computed by sizeof. */
|
|
||||||
#define SIZEOF_SHORT 2
|
|
||||||
|
|
||||||
/* The size of `size_t', as computed by sizeof. */
|
|
||||||
#define SIZEOF_SIZE_T 4
|
|
||||||
|
|
||||||
/* Define if you have the alarm function. */
|
|
||||||
#define HAVE_ALARM 1
|
|
||||||
|
|
||||||
/* Define if you have the geteuid function. */
|
|
||||||
#define HAVE_GETEUID 1
|
|
||||||
|
|
||||||
/* Define if you have the basename function. */
|
|
||||||
#define HAVE_BASENAME 1
|
|
||||||
|
|
||||||
/* Define if you have the gethostbyaddr function. */
|
|
||||||
#define HAVE_GETHOSTBYADDR 1
|
|
||||||
|
|
||||||
/* Define if you have the gethostname function. */
|
|
||||||
#define HAVE_GETHOSTNAME 1
|
|
||||||
|
|
||||||
/* Define if you have the getpwuid function. */
|
|
||||||
#define HAVE_GETPWUID 1
|
|
||||||
|
|
||||||
/* Define if you have the getservbyname function. */
|
|
||||||
#define HAVE_GETSERVBYNAME 1
|
|
||||||
|
|
||||||
/* Define if you have the gettimeofday function. */
|
|
||||||
#define HAVE_GETTIMEOFDAY 1
|
|
||||||
|
|
||||||
/* Define if you have the inet_addr function. */
|
|
||||||
#define HAVE_INET_ADDR 1
|
|
||||||
|
|
||||||
/* Define if you have the ioctl function. */
|
|
||||||
#define HAVE_IOCTL 1
|
|
||||||
|
|
||||||
/* Define if you have a working ioctl FIONBIO function. */
|
|
||||||
#define HAVE_IOCTL_FIONBIO 1
|
|
||||||
|
|
||||||
/* Define if you have a working ioctl SIOCGIFADDR function. */
|
|
||||||
#define HAVE_IOCTL_SIOCGIFADDR 1
|
|
||||||
|
|
||||||
/* Define if you have the perror function. */
|
|
||||||
#define HAVE_PERROR 1
|
|
||||||
|
|
||||||
/* Define if you have the select function. */
|
|
||||||
#define HAVE_SELECT 1
|
|
||||||
|
|
||||||
/* Define if you have the setvbuf function. */
|
|
||||||
#define HAVE_SETVBUF 1
|
|
||||||
|
|
||||||
/* Define if you have the sigaction function. */
|
|
||||||
#define HAVE_SIGACTION 1
|
|
||||||
|
|
||||||
/* Define if you have the signal function. */
|
|
||||||
#define HAVE_SIGNAL 1
|
|
||||||
|
|
||||||
/* Define if you have the socket function. */
|
|
||||||
#define HAVE_SOCKET 1
|
|
||||||
|
|
||||||
/* Define if you have the strcasecmp function. */
|
|
||||||
#define HAVE_STRCASECMP 1
|
|
||||||
|
|
||||||
/* Define if you have the strcmpi function. */
|
|
||||||
/* #define HAVE_STRCMPI 1 */
|
|
||||||
|
|
||||||
/* Define if you have the strdup function. */
|
|
||||||
#define HAVE_STRDUP 1
|
|
||||||
|
|
||||||
/* Define if you have the strftime function. */
|
|
||||||
#define HAVE_STRFTIME 1
|
|
||||||
|
|
||||||
/* Define if you have the stricmp function. */
|
|
||||||
/* #define HAVE_STRICMP 1 */
|
|
||||||
|
|
||||||
/* Define if you have the strstr function. */
|
|
||||||
#define HAVE_STRSTR 1
|
|
||||||
|
|
||||||
/* Define if you have the ftruncate function. */
|
|
||||||
#define HAVE_FTRUNCATE 1
|
|
||||||
|
|
||||||
/* Define if you have the uname function. */
|
|
||||||
#define HAVE_UNAME 1
|
|
||||||
|
|
||||||
/* Define if you have the <errno.h> header file. */
|
|
||||||
#define HAVE_ERRNO_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <err.h> header file. */
|
|
||||||
#define HAVE_ERR_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <fcntl.h> header file. */
|
|
||||||
#define HAVE_FCNTL_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <getopt.h> header file. */
|
|
||||||
#define HAVE_GETOPT_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <malloc.h> header file. */
|
|
||||||
#define HAVE_MALLOC_H 1
|
|
||||||
|
|
||||||
/* Define if you need the malloc.h header header file even with stdlib.h */
|
|
||||||
/* #define NEED_MALLOC_H 1 */
|
|
||||||
|
|
||||||
/* Define if you have the <net/if.h> header file. */
|
|
||||||
#define HAVE_NET_IF_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <netdb.h> header file. */
|
|
||||||
#define HAVE_NETDB_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <netinet/if_ether.h> header file. */
|
|
||||||
#define HAVE_NETINET_IF_ETHER_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <netinet/in.h> header file. */
|
|
||||||
#define HAVE_NETINET_IN_H 1
|
|
||||||
|
|
||||||
/* OpenSSL section starts here */
|
|
||||||
|
|
||||||
/* Define if you have a working OpenSSL installation */
|
|
||||||
#ifdef USE_SSLEAY
|
|
||||||
|
|
||||||
/* if OpenSSL is in use */
|
|
||||||
#define USE_OPENSSL 1
|
|
||||||
|
|
||||||
/* Define if you have the crypto library (-lcrypto). */
|
|
||||||
#define HAVE_LIBCRYPTO 1
|
|
||||||
|
|
||||||
/* Define if you have the ssl library (-lssl). */
|
|
||||||
#define HAVE_LIBSSL 1
|
|
||||||
|
|
||||||
/* Define if you have the <openssl/crypto.h> header file. */
|
|
||||||
#define HAVE_OPENSSL_CRYPTO_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <openssl/err.h> header file. */
|
|
||||||
#define HAVE_OPENSSL_ERR_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <openssl/pem.h> header file. */
|
|
||||||
#define HAVE_OPENSSL_PEM_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <openssl/rsa.h> header file. */
|
|
||||||
#define HAVE_OPENSSL_RSA_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <openssl/ssl.h> header file. */
|
|
||||||
#define HAVE_OPENSSL_SSL_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <openssl/x509.h> header file. */
|
|
||||||
#define HAVE_OPENSSL_X509_H 1
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This needs to be defined for OpenSSL 0.9.7 and other versions that have the
|
|
||||||
* ENGINE stuff supported. If an include of "openssl/engine.h" fails, then
|
|
||||||
* undefine the define below.
|
|
||||||
*/
|
|
||||||
#define HAVE_OPENSSL_ENGINE_H 1
|
|
||||||
|
|
||||||
#endif /* USE_SSLEAY */
|
|
||||||
/* OpenSSL section ends here */
|
|
||||||
|
|
||||||
/* Define if you have the <pwd.h> header file. */
|
|
||||||
#define HAVE_PWD_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <sgtty.h> header file. */
|
|
||||||
#define HAVE_SGTTY_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <stdlib.h> header file. */
|
|
||||||
#define HAVE_STDLIB_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <sys/socket.h> header file. */
|
|
||||||
#define HAVE_SYS_SOCKET_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <sys/stat.h> header file. */
|
|
||||||
#define HAVE_SYS_STAT_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <sys/time.h> header file. */
|
|
||||||
#define HAVE_SYS_TIME_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <sys/types.h> header file. */
|
|
||||||
#define HAVE_SYS_TYPES_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <termios.h> header file. */
|
|
||||||
#undef HAVE_TERMIOS_H
|
|
||||||
|
|
||||||
/* Define if you have the <time.h> header file. */
|
|
||||||
#define HAVE_TIME_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <unistd.h> header file. */
|
|
||||||
#define HAVE_UNISTD_H 1
|
|
||||||
|
|
||||||
/* Define if you have the resolv library (-lresolv). */
|
|
||||||
#define HAVE_LIBRESOLV 1
|
|
||||||
|
|
||||||
/* Define if you have the socket library (-lsocket). */
|
|
||||||
#define HAVE_LIBSOCKET 1
|
|
||||||
|
|
||||||
/* Define if getaddrinfo exists and works */
|
|
||||||
#define HAVE_GETADDRINFO 1
|
|
||||||
|
|
||||||
/* Define if you have the <timeval.h> header file. */
|
|
||||||
#define HAVE_TIMEVAL_H 1
|
|
||||||
|
|
||||||
/* Define if you have the timeval struct. */
|
|
||||||
#define HAVE_STRUCT_TIMEVAL 1
|
|
||||||
|
|
||||||
/* Name of this package! */
|
|
||||||
#define PACKAGE "not-used"
|
|
||||||
|
|
||||||
/* Version number of this archive. */
|
|
||||||
#define VERSION "not-used"
|
|
||||||
|
|
||||||
/* Define if you have the getpass function. */
|
|
||||||
#undef HAVE_GETPASS
|
|
||||||
|
|
||||||
/* Define if you have the <inttypes.h> header file. */
|
|
||||||
#undef HAVE_INTTYPES_H
|
|
||||||
|
|
||||||
/* Define if you have the <strings.h> header file. */
|
|
||||||
#define HAVE_STRINGS_H 1
|
|
||||||
|
|
||||||
/* Define if you have the <string.h> header file. */
|
|
||||||
#define HAVE_STRING_H 1
|
|
||||||
|
|
||||||
/* Define if you have the `strtok_r' function. */
|
|
||||||
/* Condition lifted from <string.h> */
|
|
||||||
#if __CRTL_VER >= 70301000
|
|
||||||
# define HAVE_STRTOK_R 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Define if you have the `strtoll' function. */
|
|
||||||
#define HAVE_STRTOLL 1
|
|
||||||
|
|
||||||
/* Define if you have the <memory.h> header file. */
|
|
||||||
#define HAVE_MEMORY_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */
|
|
||||||
#define NEED_MEMORY_H 1
|
|
||||||
|
|
||||||
/* Define if you have the `sigsetjmp' function. */
|
|
||||||
#define HAVE_SIGSETJMP 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <setjmp.h> header file. */
|
|
||||||
#define HAVE_SETJMP_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <limits.h> header file. */
|
|
||||||
#define HAVE_LIMITS_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
|
||||||
#define HAVE_SYS_IOCTL_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stropts.h> header file. */
|
|
||||||
#define HAVE_STROPTS_H 1
|
|
||||||
|
|
||||||
/* Define if you have the getnameinfo function. */
|
|
||||||
#define HAVE_GETNAMEINFO 1
|
|
||||||
|
|
||||||
/* Define to the type qualifier of arg 1 for getnameinfo. */
|
|
||||||
#define GETNAMEINFO_QUAL_ARG1 const
|
|
||||||
|
|
||||||
/* Define to the type of arg 1 for getnameinfo. */
|
|
||||||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
|
|
||||||
|
|
||||||
/* Define to the type of arg 2 for getnameinfo. */
|
|
||||||
#define GETNAMEINFO_TYPE_ARG2 size_t
|
|
||||||
|
|
||||||
/* Define to the type of args 4 and 6 for getnameinfo. */
|
|
||||||
#define GETNAMEINFO_TYPE_ARG46 size_t
|
|
||||||
|
|
||||||
/* Define to the type of arg 7 for getnameinfo. */
|
|
||||||
#define GETNAMEINFO_TYPE_ARG7 int
|
|
||||||
|
|
||||||
/* Define if you have the recv function. */
|
|
||||||
#define HAVE_RECV 1
|
|
||||||
|
|
||||||
/* Define to the type of arg 1 for recv. */
|
|
||||||
#define RECV_TYPE_ARG1 int
|
|
||||||
|
|
||||||
/* Define to the type of arg 2 for recv. */
|
|
||||||
#define RECV_TYPE_ARG2 void *
|
|
||||||
|
|
||||||
/* Define to the type of arg 3 for recv. */
|
|
||||||
#define RECV_TYPE_ARG3 int
|
|
||||||
|
|
||||||
/* Define to the type of arg 4 for recv. */
|
|
||||||
#define RECV_TYPE_ARG4 int
|
|
||||||
|
|
||||||
/* Define to the function return type for recv. */
|
|
||||||
#define RECV_TYPE_RETV int
|
|
||||||
|
|
||||||
/* Define if you have the recvfrom function. */
|
|
||||||
#define HAVE_RECVFROM 1
|
|
||||||
|
|
||||||
/* Define to the type of arg 1 for recvfrom. */
|
|
||||||
#define RECVFROM_TYPE_ARG1 int
|
|
||||||
|
|
||||||
/* Define to the type pointed by arg 2 for recvfrom. */
|
|
||||||
#define RECVFROM_TYPE_ARG2 void
|
|
||||||
|
|
||||||
/* Define if the type pointed by arg 2 for recvfrom is void. */
|
|
||||||
#define RECVFROM_TYPE_ARG2_IS_VOID 1
|
|
||||||
|
|
||||||
/* Define to the type of arg 3 for recvfrom. */
|
|
||||||
#define RECVFROM_TYPE_ARG3 int
|
|
||||||
|
|
||||||
/* Define to the type of arg 4 for recvfrom. */
|
|
||||||
#define RECVFROM_TYPE_ARG4 int
|
|
||||||
|
|
||||||
/* Define to the type pointed by arg 5 for recvfrom. */
|
|
||||||
#define RECVFROM_TYPE_ARG5 struct sockaddr
|
|
||||||
|
|
||||||
/* Define to the type pointed by arg 6 for recvfrom. */
|
|
||||||
#define RECVFROM_TYPE_ARG6 int
|
|
||||||
|
|
||||||
/* Define to the function return type for recvfrom. */
|
|
||||||
#define RECVFROM_TYPE_RETV int
|
|
||||||
|
|
||||||
/* Define if you have the send function. */
|
|
||||||
#define HAVE_SEND 1
|
|
||||||
|
|
||||||
/* Define to the type of arg 1 for send. */
|
|
||||||
#define SEND_TYPE_ARG1 int
|
|
||||||
|
|
||||||
/* Define to the type qualifier of arg 2 for send. */
|
|
||||||
#define SEND_QUAL_ARG2 const
|
|
||||||
|
|
||||||
/* Define to the type of arg 2 for send. */
|
|
||||||
#define SEND_TYPE_ARG2 void *
|
|
||||||
|
|
||||||
/* Define to the type of arg 3 for send. */
|
|
||||||
#define SEND_TYPE_ARG3 int
|
|
||||||
|
|
||||||
/* Define to the type of arg 4 for send. */
|
|
||||||
#define SEND_TYPE_ARG4 int
|
|
||||||
|
|
||||||
/* Define to the function return type for send. */
|
|
||||||
#define SEND_TYPE_RETV int
|
|
||||||
|
|
||||||
/* Define to hide dollar sign from compilers in strict ansi mode. */
|
|
||||||
#define decc_translate_vms(__s) decc$translate_vms(__s)
|
|
||||||
|
|
||||||
#endif /* HEADER_CONFIG_VMS_H */
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user