1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423
|
2018-04-30 Tim Rühsen <tim.ruehsen@gmx.de>
Prepare Release 1.99.1 (alpha)
2018-04-30 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/fuzzer.h: Disable pedantic and unused warnings
2018-04-30 Tim Rühsen <tim.ruehsen@gmx.de>
Update copyright to 2018
2018-04-30 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/update_copyright: Update to 2018
2018-04-30 Tim Rühsen <tim.ruehsen@gmx.de>
Add scripts for testing on gcc and OpenCSW buildfarm
* ci-test: New script with generic code
* ci-test.d/gcc110.fsffrance.org.sh: Script with special code for gcc110 (CentOS 7.4)
* ci-test.d/gcc70.fsffrance.org.sh: Script with special code for gcc70 (NetBSD 5.1)
* ci-test.d/login.opencsw.org.sh: Script with special code for OpenCSW (Solaris)
2018-04-30 Tim Rühsen <tim.ruehsen@gmx.de>
* Makefile.am: Don't do syntax-check + check_options in tarball build
2018-04-13 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/valgrind-suppressions: Ignore pthread leak from gai_misc.c
2018-04-13 Tim Rühsen <tim.ruehsen@gmx.de>
Add G_GNUC_WGET_UNUSED to fuzz code
* fuzz/libwget_xml_parse_buffer_fuzzer.c: Likewise
* fuzz/main.c: Likewise
2018-04-13 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/Makefile.am: Remove hard-coded compiler flags
2018-04-13 Tim Rühsen <tim.ruehsen@gmx.de>
Remove _GL_INLINE from functions
* libwget/hashmap.c: Likewise
* libwget/iri.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* libwget/utils.c: Likewise
Gcc 4.1.3 on NetBSD 5.1 errors when duplicate _GL_INLINE is given as a
function attribute.
From the gnulib manual: "C code ordinarily should not use inline. Typically it
is better to let the compiler figure out whether to inline, as compilers are
pretty good about optimization nowadays. In this sense, inline is like
register, another keyword that is typically no longer needed"
2018-04-30 Tim Rühsen <tim.ruehsen@gmx.de>
Exclude fuzz corpora from tarball
* fuzz/Makefile.am: Do not include corpora in tarball
* fuzz/main.c: SKIP if corpora directory isn't found (make check)
The fuzz corpora are thousands of files, not needed for a standard build
from a distribution tarball. The reproducers of former issues are being
included for regression testing.
2018-04-23 Tim Rühsen <tim.ruehsen@gmx.de>
Add --retry-connrefused
* src/options.c: Add --retry-connrefused
* src/wget.c (establish_connection): Skip final failure
* src/wget_options.h (struct config): Add retry_connrefused
2018-04-27 Darshit Shah <darnir@gnu.org>
* tests/valgrind-suppressions: Update suppressions for Glibc 2.27
2018-04-17 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/mail.sh: Assume bash, print email to file if msmtp not found
2018-04-17 Darshit Shah <darnir@gnu.org>
* contrib/mail.sh: File got deleted accidentally in an earlier commit
2018-04-16 Darshit Shah <darnir@gnu.org>
Update the AUTHORS list
2018-04-12 Tim Rühsen <tim.ruehsen@gmx.de>
* .lgtm.yml: Call ./bootstrap
2018-04-12 Tim Rühsen <tim.ruehsen@gmx.de>
Dont't recognize %3A as colon in relative URLs
* include/wget/wget.h: New function wget_iri_unescape_url_inline()
* libwget/iri.c: Likewise
* src/wget.c (_normalize_uri): Use wget_iri_unescape_url_inline()
* examples/check_url_types.c: Likewise
* tests/test-base.c: Add test case
* unit-tests/test.c (test_iri_relative_to_absolute): Add test case
Relative URLS like in href='foo%3A/' have been detected and parsed
as absolute URL with (unknown) scheme 'foo:'.
This commit fixes it.
2018-04-11 Bas van Schaik <github@s.traiectum.net>
* .lgtm.yml: Remove unnneeded package installation and ./bootstrap
- no need to install gnutls-dev; it's installed automatically during the
build/analysis process
- however, the lgtm.yml I used for setting wget2 up on lgtm.com does
install two other packages that are not auto-detected: lzip and
libgpgme11-dev
- no need to run ./bootstrap either; LGTM will do that automatically :)
2018-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
* .lgtm.yml: New file for static analysis on lgtm.com [ci skip]
2018-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/xml.c: Fix copyright date (test lgtm.com automatism) [ci skip]
2018-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
* include/wget/wget.h: Fix header guard (found by lgtm.com)
2018-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (_do_handshake): Fix error value for older GnuTLS on OSX
2018-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/Makefile: Make css_tokenizer.c generation more portable
2018-03-15 Jiading Guo <zingdle@gmail.com>
Add --[no-]compression=TYPE
* src/options.c: Add compression option support
* src/wget.c: Generate 'Accept-Encoding' headers accordingly
* src/wget_options.h: Add compression variables
* libwget/decompressor.c: Add xz and "none" types
* include/wget/wget.h: Add xz types
* docs/wget2.md: Add compression option document
* tests/Makefile.am: Add compression test
* tests/libtest.c: Add request header test support
* tests/libtest.h: Add request header test support
* tests/test-compression.c: Add compression test
2018-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (_do_handshake): Fix error value for older GnuTLS
2018-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c (wget_tcp_connect): Use WGET_E_* return code
2018-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
Add Jiading Guo to AUTHORS [ci skip]
2018-04-10 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget_job.h: Fix typo in comment [ci skip]
2018-04-10 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (parse_prefer_family): Fix pointer type
Fixes #373
2018-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Enable hashing fallback to nettle
2018-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
Fix scan-build for gnulib hash code
* .gitlab-ci.yml: Obsolete configure cache
* include/wget/wget.h: Add WGET_DIGTYPE_MAX
* libwget/hashfile.c: Fix code
2018-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hashfile.c: Fix warnings
2018-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Fix detection of gnutls/crypto.h
Some versions of GnuTLS do not provide a crypto.h, so we have
to check for it's presence.
This check fails with some versions of GnuTLS since crypto.h
lacks the #include <gnutls/gnutls.h>.
2018-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/mingw: Add fix for lib/pthread_sigmask.c
2018-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Remove gcc's -Wno-incompatible-pointer-types when cross-compiling
2018-04-03 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Fix misalignment, found by oss-fuzz
2018-04-03 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/*.in: Update oss-fuzz corpora
2018-04-02 Darshit Shah <darnir@gnu.org>
* .gitlab-ci.yml: Add new Arch CI which is run only on schedules
[ci skip]
2018-04-03 Tim Rühsen <tim.ruehsen@gmx.de>
Check for gnutls/crypto.h
* configure.ac: Check for gnutls/crypto.h
* libwget/hashfile.c: Need HAVE_GNUTLS_CRYPTO_H to include gnutls/crypto.h
Found this problem on the OpenCSW Solaris build farm
2018-04-03 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/cookie.c: Don't define _U, already defined on Solaris
2018-04-03 Tim Rühsen <tim.ruehsen@gmx.de>
* README.md: Remove gperf from dependency list
2018-04-02 Darshit Shah <darnir@gnu.org>
* configure.ac: Add comment explaining IDNA support
2018-04-02 Darshit Shah <darnir@gnu.org>
* bootstrap.conf: Update dependencies
2018-04-01 Darshit Shah <darnir@gnu.org>
* .gitlab-ci.yml: Switch commitcheck script to basic alpine container
2018-04-01 Darshit Shah <darnir@gnu.org>
* .gitlab-ci.yml: Remove flawfinder and change valgrind to Debian
2018-03-29 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Do not build lzip tarball
2018-03-29 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Copy gnulib subdir instead using git [skip ci]
2018-03-29 Tim Rühsen <tim.ruehsen@gmx.de>
Use wget_snprintf() in src/*.c
* src/options.c: Use wget_snprintf() instead of snprintf()"
* src/wget.c: Likewise
2018-03-28 Tim Rühsen <tim.ruehsen@gmx.de>
Use libwget's print-like functions instead the stdio ones
* include/wget/wget.h: Amend return type of wget_bar_print(), wget_bar_vprintf()
* libwget/Makefile.am: Replace fprintf in generated css_tokenizer.c
* libwget/bar.c: Replace *printf by wget_*printf,
(_bar_set_progress): Generate progress bar with memcpy/memset
* libwget/hpkp.c: Replace *printf by wget_*printf
* libwget/cookie.c: Likewise
* libwget/hpkp.c: Likewise
* libwget/hsts.c: Likewise
* libwget/http.c: Likewise
* libwget/http_parse.c: Likewise
* libwget/io.c: Likewise
* libwget/net.c: Likewise
* libwget/ocsp.c: Likewise
* libwget/pipe.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* libwget/utils.c: Likewise
* libwget/xml.c: Likewise
The intention is to not pull in (large) code parts from libc when
linking statically, the performance is better and we have no
portability issues on non-POSIX platforms (e.g. Windows).
2018-03-28 Tim Rühsen <tim.ruehsen@gmx.de>
Add more printf-like functions
* include/wget/wget.h: Add wget_vfprintf(), wget_fprintf(),
wget_vsnprintf(), wget_snprintf()
* libwget/printf.c: Likewise
2018-03-28 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/strscpy.c: Fix return value of strscpy()
2018-03-28 Tim Rühsen <tim.ruehsen@gmx.de>
* unit-tests/test.c: Add tests for strscpy()
2018-03-28 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/Makefile.am: Build man pages for hashmap/stringmap API
2018-03-25 Tim Rühsen <tim.ruehsen@gmx.de>
Document hashmap and stringmap
* include/wget/wget.h: Cleanups
* libwget/hashmap.c: Documentation + cleanups
* libwget/stringmap.c: Documentation + cleanups
* libwget/vector.c: Fix doxygen issue
2018-03-25 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/vector.c: Small cleanups
2018-03-25 Tim Rühsen <tim.ruehsen@gmx.de>
Remove param 'off' from wget_vector_create()
* libwget/vector.c (wget_vector_create): Remove param 'off',
(wget_vector_set_growth_policy): Add new function
* include/wget/wget.h: Add prototype for wget_vector_set_growth_policy()
* */*.c: Remove param 'off' from calls to wget_vector_create()
2018-03-24 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for vector routines
* docs/Makefile.am: Add man page
* include/wget/wget.h: Amend some vector functions
* libwget/vector.c: Add checks for parameters,
add documentation
2018-03-23 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Remove stages, fix configure cache
2018-03-23 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Add testing on Alpine (musl/busybox)
2018-03-23 Darshit Shah <darnir@gnu.org>
Merge the Full/Debian and VPATH Runners into one
2018-03-23 Darshit Shah <darnir@gnu.org>
More efficient use of CI Pipelines
* .gitlab-ci.yml: Split CI runners into 3 stages, build, test and
deploy. Stages are executed in that order. So any breakage will save the
later stages from executing.
2018-03-23 Tim Rühsen <tim.ruehsen@gmx.de>
* cfg.mk: Exclude tests/gpg and tests/certs from any syntax checks
2018-03-23 Darshit Shah <darnir@gnu.org>
Fix GPGME detection in configure
2018-03-23 Darshit Shah <darnir@gnu.org>
Update gnulib submodule
* gnulib: Update submodule
* bootstrap: Update script from gnulib submodule
2018-03-23 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-iri-subdir.c: Add runtime test for working SHIFT_JIS->UTF-8 transcoding
2018-02-24 Darshit Shah <darnir@gnu.org>
New script to ensure that patches without copyright assignment aren't merged
* AUTHORS: Update file with all known contributors to date. Update
FSF Copyright Assignment status in the first column
* contrib/commit-check: New script. This is to be run on each merge
request to master to ensure that the copyright assignment process
has been completed.
* .gitlab-ci.yml: Add a new CommitCheck CI which ensures that the
author has completed their Copyright Assignments. This runner is
allowed to fail, so it won't affect the CI runners for all forks.
2018-02-26 Darshit Shah <darnir@gnu.org>
Add new scripts to send Copyright assignment mails
* contrib/assignment_template.txt: Template header text for email
* contrib/mail.sh: Script that composes and sends an email to a new
contributor for Copyright Assignment
* cfg.mk: Add exceptions for assignment_template.txt to syntax-check
2018-02-25 Darshit Shah <darnir@gnu.org>
Allow a list of possible signature-extensions
* stc/options.c: Modify old option signature-extension to now be a
stringlist. Also rename it to signature-extensions
* src/wget_options.h: Move sig_ext from char* to wget_vector_t
* src/wget.c: Iterate over all signature extensions and request a
signature file
* tests/test-gpg-styles.c: Add new test for signature extensions
* docs/wget2.md: Update documentation for signature-extensions
2018-03-15 Jiading Guo <zingdle@gmail.com>
Fix lzma decompressor init
* libwget/decompressor.c: Use lzma_auto_decoder() instead to auto detect lzma/xz format.
2018-03-18 Tim Rühsen <tim.ruehsen@gmx.de>
* bootstrap.conf: Add pkg-config as dependency
2018-03-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix decompress_open argument type
* include/wget/wget.h: Fix 'encoding' to wget_content_encoding_type_t,
make wget_content_encoding_by_name() PURE,
make wget_content_encoding_to_name() PURE.
* libwget/decompressor.c: Fix struct _wget_decompressor_st encoding to
wget_content_encoding_type_t,
fix wget_content_encoding_to_name() for 'identity'.
2018-03-15 Tim Rühsen <tim.ruehsen@gmx.de>
Add type<->name functions for content-encoding types
* include/wget/wget.h: AdD typedef wget_content_encoding_type_t,
add wget_content_encoding_unknown,
add prototypes for wget_content_encoding_by_name() and
wget_content_encoding_to_name().
* libwget/decompressor.c: Implement wget_content_encoding_by_name() and
wget_content_encoding_to_name().
2018-03-13 Tim Rühsen <tim.ruehsen@gmx.de>
* README.md: Increase GnuTLS version from 2.10.0 to 3.3, 3.5 or 3.6
2018-02-27 Jay <jbhv12@gmail.com>
error handling in XML parsing
* include/wget/wget.h: removed nonnull attribute and defined error code
* libwget/metalink.c: wget_metalink_parse returns null if XML is malformed
* libwget/xml.c: added coditions to detect malformed XML in parseXML
* po/POTFILES.in: localization support for metalink.c
2018-03-08 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-gzip.c: Fix unused define w/o WITH_ZLIB
2018-03-08 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c (wget_test_start_server): Fix unused var w/o WITH_GNUTLS
2018-03-07 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Add -Werror to appropriate runners
2018-03-07 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Add -Wno-error to gnulib compiler flags
2018-03-07 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats_site.c (print_human): Fix unused-but-used warning
2018-03-07 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c (wget_tcp_set_stats_site): Fix unused argument
2018-03-04 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/mingw: Add dlfcn-win32 build
2018-03-02 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c (_http_server_start): Check MHD_OPTION_STRICT_FOR_CLIENT
2018-03-02 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c (_http_server_start): Enable strict MHD client mode
Will not allow spaces in the GET target URI from the next release.
2018-02-26 Tim Rühsen <tim.ruehsen@gmx.de>
* src/http_parse.c (wget_http_parse_response_header): Remove unneeded comment
2018-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-gzip.c: Add tests for broken server gzip Content-Encoding
2018-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
* src/http.c (wget_http_get_response_cb): Add gzip workarounds
2018-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
Support binary content in test suite
* tests/libtest.h (wget_test_file_t): Add content_length member
* tests/libtest.c (_answer_to_connection): Support content_length member
2018-02-23 Tim Rühsen <tim.ruehsen@gmx.de>
Fix ignorant server's Content-Encoding
* libwget/decompressor.c: Fix segfault on unexpected Content-Encoding
* tests/Makefile.am: Add test-gzip.c
* tests/test-gzip.c: New test
Reported-by: Jiading Guo
 
2018-03-02 Tim Rühsen <tim.ruehsen@gmx.de>
Fix header guards
* include/wget/wget.h: Likewise
* include/wget/wgetver.h.in: Likewise
* libwget/*.h: Likewise
* src/*.h: Likewise
* tests/libtest.h: Likewise
Header guards should not start with _.
Private headers now reflect the path within the project.
The two public headers reflect the releative install directory.
2018-03-02 Tim Rühsen <tim.ruehsen@gmx.de>
Fix doxygen syntax
* src/wget_gpgme.h: Likewise
* libwget/thread.c: Likewise
* src/wget_gpgme.h: Likewise
2018-03-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/iri.c (wget_iri_get_escaped_resource): Escape space in query
2018-03-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c: Add links about request line format
2018-02-25 Tim Rühsen <tim.ruehsen@gmx.de>
Fix oss-fuzz build
* fuzz/Makefile.am: Add ../src/stats_server.o ../src/stats_site.o to oss-fuzz rule
* fuzz/libwget_http_client_fuzzer.c: Fix pedantic C++ errors
2018-02-23 DalmeGNU <dalmemail@gmail.com>
* src/wget.c: Avoid printing two times the number of errors in the same bar_printf()
2018-02-21 Vijo Cherian <codervijo@gmail.com>
* src/options.c: Improve --help output
2018-02-23 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Check config.metalink before executing metalink code
2018-02-22 Tim Rühsen <tim.ruehsen@gmx.de>
* src/ssl_gnutls.c (_do_handshake): Check for GNUTLS_E_PREMATURE_TERMINATION
2018-02-22 Tim Rühsen <tim.ruehsen@gmx.de>
Fix stats and add docs for stats
* docs/wget2.md: Extend docs for --stats-*
* include/wget/wget.h: Rename WGET_STATS_TLS_TCP_PROTO to WGET_STATS_TLS_HTTP_PROTO,
add WGET_STATS_OCSP_STAPLING.
* libwget/ssl_gnutls.c: add stapling stats member, cleanup variables
* po/POTFILES.in: Remove rsrc/stats_server.c
* src/stats_dns.c: Cleanup
* src/stats_ocsp.c: Add stapling to stats
* src/stats_server.c: Cleanup
* src/stats_site.c: Rename STATS_SCHEME_* to STATS_METHOD_*
* src/stats_tls.c: Cleanup
* src/wget_stats.h: Remove memory alloc from NULL_TO_DASH()
2018-02-21 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats_site: Change PGP verification status in CSV output
2018-02-21 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats_site.c: Avoid double entries when signature checking is on
2018-02-21 Tim Rühsen <tim.ruehsen@gmx.de>
* src/gpgme.c: Add and use _print_gpg_error()
2018-02-20 Darshit Shah <darnir@gnu.org>
* src/wget.c(_get_body): Remove leftover debugging statement
2018-02-20 Tim Rühsen <tim.ruehsen@gmx.de>
* src/gpgme.c: Some fixes and cleanups
2018-02-20 Tim Rühsen <tim.ruehsen@gmx.de>
* src/gpgme.c (wget_verify_job): Always initialize info structure
2018-02-20 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/csv2tree: New file
2018-02-20 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/csv2json: New file
2018-02-20 Tim Rühsen <tim.ruehsen@gmx.de>
Remove JSON format for stats options
* include/wget/wget.h: Remove WGET_STATS_FORMAT_JSON
* src/stats.c: Remove JSON code
* src/stats_dns.c: Likewise
* src/stats_ocsp.c: Likewise
* src/stats_server.c: Likewise
* src/stats_site.c: Likewise
* src/stats_tls.c: Likewise
* src/wget_stats.h: Likewise
* tests/stats-test-util.h: Remove JSON tests
We will provide an extra tool to convert CSV into JSON.
2018-02-19 Tim Rühsen <tim.ruehsen@gmx.de>
Remove tree statistics
* docs/wget2.md: Remove 'tree' format from --stats-site
* po/POTFILES.in: Remove src/stats_site.c
* src/host.c: Remove host_docs, tree_docs
* src/job.c: Add a unique ID for each job
* src/stats.c: Remove TREE stuff
* src/stats_dns.c: Likewise
* src/stats_ocsp.c: Likewise
* src/stats_server.c: Likewise
* src/stats_tls.c: Likewise
* src/stats_site.c: Likewise,
add site_stats_t, cleanup CSV and HUMAN output
* src/wget.c: Set job ID and ParentID, remove TREE stuff
* src/wget_host.h: Remove TREE stuff
* src/wget_job.h: add id and parent_id to struct JOB
* src/wget_stats.h: Add json_stats
* tests/stats-test-util.h: Remove TREE test
We decided to provide an external tool to generate TREE and other
formatted output from Wget2's CSV output.
2018-02-17 Tim Rühsen <tim.ruehsen@gmx.de>
* stats_*.c: Add missing entry for WGET_STATS_FORMAT_TREE
2018-02-17 Tim Rühsen <tim.ruehsen@gmx.de>
Move external stats_opts_t from stat.c to wget_stats.h
* src/stats.c: Remove external stats_opts_t
* src/wget_stats.h: Add external stats_opts_t
2018-02-17 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats.c (stats_init): Fix memory leak
2018-02-17 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats.c (stats_exit): Only deinit after init
2018-02-17 Tim Rühsen <tim.ruehsen@gmx.de>
Move Site stats code to own source file
2018-02-17 Tim Rühsen <tim.ruehsen@gmx.de>
Move Server stats code to own source file
2018-02-17 Tim Rühsen <tim.ruehsen@gmx.de>
Move OCSP stats code to own source file
2018-02-16 Tim Rühsen <tim.ruehsen@gmx.de>
Move TLS stats code to own source file
2018-02-16 Tim Rühsen <tim.ruehsen@gmx.de>
Clean up DNS stats code
* src/stats_dns.c: Renames and cleanups
* src/wget_stats.h: Likewise
2018-02-16 Tim Rühsen <tim.ruehsen@gmx.de>
Move _shell_expand() into own source file
* src/Makefile.am: Add utils.c and wget_utils.h
* src/options.c: Remove _shell_expand()
* src/stats.c: Likewise
* src/utils.c: New file with shell_expand()
* src/wget_utils.h: Header file for shell_expand()
* fuzz/Makefile.am: Add utils.o
* unit-tests/Makefile.am: Likewise
2018-02-16 Tim Rühsen <tim.ruehsen@gmx.de>
Move dns stats code into stats_dns.c
2018-02-16 Tim Rühsen <tim.ruehsen@gmx.de>
Fix stats tests
2018-02-16 Tim Rühsen <tim.ruehsen@gmx.de>
Refactorings on stats option parsing and printing
2018-02-14 Darshit Shah <darnir@gnu.org>
Set callback for stats_site and allow freeing non-init mutex
2018-02-13 Tim Rühsen <tim.ruehsen@gmx.de>
Refactoring of stats callback functions
2018-02-13 Darshit Shah <darnir@gnu.org>
Handle tree stats case
2018-02-13 Darshit Shah <darnir@gnu.org>
Some more cleanups
2018-02-13 Darshit Shah <darnir@gnu.org>
Replace dns data and mutex
2018-02-13 Darshit Shah <darnir@gnu.org>
Improve stats printing
2018-02-21 Darshit Shah <darnir@gnu.org>
* src/options.c(print_version): Add gpgme info to wget2 --version
2018-02-20 Darshit Shah <darnir@gnu.org>
Handle case where wget_bar_init() fails
2018-02-20 Jay <jbhv12@gmail.com>
added error in progress report
2018-02-17 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (process_response): Collect site stats only when requested
2018-02-17 zingdle <zingdle@gmail.com>
* src/stats.c: Fix handling of output location for stats code
2018-02-15 Darshit Shah <darnir@gnu.org>
* src/stats.c: Initialize all stats modules, always
This is a terrible hack. But it's the smallest solution I can come up
with, with the existing stats code to fix the problem that none of the
stats are being reported.
The problem is that stats_init() must be called before the command line
is parsed. But stats_init() depends on the command line parsing code to
set the status flags for which stats to report. Hence, it always sees
them all as negative.
This commit will initialize all the stats modules, always. So, the stats
are always collected. Only, we decide at the very end, what, if
anything, to display. As is obvious, this is terrible. It's a waste of
resources to compute all these stats that are simply not required. But,
till the stats code is re-written cleanly, this is what we have to deal
with
2018-02-15 Darshit Shah <darnir@gnu.org>
* .gitignore: Update gitignore file
2018-02-15 Darshit Shah <darnir@gnu.org>
Revert "* libwget/thread.c(pthread_mutex_destroy): Survive destroying a non-initialized mutex"
This reverts commit c46669387bcb4caffa792d2d6360b09685bf3449.
2018-02-15 Darshit Shah <darnir@gnu.org>
* bootstrap.conf: Clean up some files that gnulib-tool.py creates
2018-02-15 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats.c (stats_print): Fix possible memory leak
2018-02-15 Tim Rühsen <tim.ruehsen@gmx.de>
Revert "Delay stats_init till after comand line parsing"
This reverts commit 33e3322a718a330fb6b426c6a640a0f3f7746d36.
2018-02-14 Tim Rühsen <tim.ruehsen@gmx.de>
* gnulib: Update
2018-02-14 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module limits-h
* bootstrap.conf: Add limits-h
* libwget/cookie.c: Include limits.h
* libwget/metalink.c: Likewise
2018-02-14 Tim Rühsen <tim.ruehsen@gmx.de>
* po/POTFILES.in: Remove lib/openat-die.c
2018-02-14 Darshit Shah <darnir@gnu.org>
* libwget/thread.c(pthread_mutex_destroy): Survive destroying a non-initialized mutex
2018-02-13 Darshit Shah <darnir@gnu.org>
* src/stats.c: Print to stderr not stdout
2018-02-14 Tim Rühsen <tim.ruehsen@gmx.de>
Use realpath() instead of canonicalize_filename_mode()
* bootstrap.conf: Use canonicalize-lgpl module
* src/gpgme.c: Likewise
Using realpath() reduces extra code from gnulib.
2018-02-13 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Fix help text for --enable-fuzzing
2018-02-13 Darshit Shah <darnir@gnu.org>
Delay stats_init till after comand line parsing
The stats module depends on the command line parser to set some of its
values. Without that, the module is initialized incorrectly.
2018-02-09 Darshit Shah <darnir@gnu.org>
src/wget.c(main): Honor --quiet for progress bar
2018-02-07 Tim Rühsen <tim.ruehsen@gmx.de>
Fix make dist with --disable-doc
* configure.ac: Unconditionally process docs/*.in files
* docs/Makefile.am: Unconditionally put DoxygenLayout.xml into EXTRA_DIST
2018-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Fix --disable-docs for make distcheck
2018-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Fix --disable-doc configure option
2018-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Remove continuation slashes
2018-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Add pipeline (gcc full and gcc minial build)
2018-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* cfg.mk: Exclude .gitlab-ci.yml from sc_two_space_separator_in_usage
2018-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c: Remove obsolete dummy functions
2018-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* src/gpgme.c (wget_verify_get_base_file): Fix to build w/o WITH_GPGME
2018-02-03 Tim Rühsen <tim.ruehsen@gmx.de>
Fix manywarnings for gcc 8
* configure.ac: Amend for gcc-8
* m4/wget_manywarnings.m4: Amend for gcc-8
2018-02-02 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c (wget_http_get_response_cb): Fix undefined behavior
2018-02-02 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c: Use getaddrinfo() for fuzzing
2017-11-03 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_http_client_fuzzer
* fuzz/Makefile.am: Add libwget_http_client_fuzzer
* fuzz/libwget_http_client_fuzzer.c: New file
* fuzz/libwget_http_client_fuzzer.in: Initial corpora
* fuzz/run-clang.sh: Small cleanup
2018-01-30 Tim Rühsen <tim.ruehsen@gmx.de>
More tests for --https-enfore
* src/options.c: Add debug lines, fix exit_status to exit_status_t
* src/wget_options.h: Amend prototype of get_exit_status()
* tests/test--https-enforce-soft2.c: New test
* tests/test--https-enforce-soft3.c: New test
* tests/Makefile.am: Add new tests
* src/wget.c (_fallback_to_http): Skip robotstxt jobs
* tests/libtest.c: New option WGET_TEST_HTTPS_REJECT_CONNECTIONS
for wget_test_start_server()
2018-01-29 Tim Rühsen <tim.ruehsen@gmx.de>
Add test test--https-enforce-hard3.c
2018-01-29 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c (wget_test): Allow {{port}} in options
2018-01-29 Tim Rühsen <tim.ruehsen@gmx.de>
Add options --default-http-port and --default-https-port
* docs/wget2.md: Add docs for the two options
* include/wget/wget.h: Prototype for wget_iri_set_defaultport()
* libwget/iri.c: New function wget_iri_set_defaultport()
* src/options.c: New options --default-http-port and --default-https-port
* src/wget_options.h (struct config): Add default_http_port and default_https_port
2018-01-29 Tim Rühsen <tim.ruehsen@gmx.de>
Fix exit code for TLS connect errors
* libwget/ssl_gnutls.c (_do_handshake): Return WGET_E_CONNECT on connect errors
* src/wget.c (establish_connection): Set WG_EXIT_STATUS_NETWORK on connect errors
2018-01-23 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (parse_https_enforce): Fix wrong casts
2018-01-23 Tim Rühsen <tim.ruehsen@gmx.de>
Add tests for --https-enforce
* tests/Makefile.am: Add new tests
* tests/libtest.c: Code cleanup,
(_answer_to_connection): implement protocol specific urls,
(wget_test_start_server): implement WGET_TEST_HTTP(S)_ONLY,
(wget_test): Allow absolute URLS for WGET_TEST_REQUEST_URL(S)
* tests/libtest.h (wget_test_url_t): Add https_only and http_only
2018-01-23 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Fix --https-enforce=soft --recursive
2018-01-19 Tim Rühsen <tim.ruehsen@gmx.de>
Add http:// to URIs without scheme
* libwget/iri.c (wget_iri_parse): Add http:// to uri without scheme
* include/wget/wget.h (wget_iri_t): Add member msize
This commit also fixes a buffer overflow in wget_iri_set_scheme in
combination with wget_iri_clone.
2018-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Simplify code for --https-enforce
* libwget/iri.c (wget_iri_set_scheme): Cleanup
* src/host.c (host_add_robotstxt_job): Add param http_fallback
* src/wget_host.h: Likewise
* src/job.c (job_init): Add param http_fallback
* src/wget_job.h: Likewise
* src/wget.c: Remove http_fallback_urls and http_fallback_urls_mutex,
(add_url_to_queue): Set http_fallback for new jobs,
(add_url): Likewise
2018-01-18 DalmeGNU <dalmemail@gmail.com>
Add new option --https-enforce
* docs/wget2.md: Add docs
* src/options.c: Add --https-enforce and parse_https_enforce()
* src/wget.c:
* src/wget_options.h: Add config.https_enforce and WGET_HTTPS_ENFORCE_*
2018-01-30 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c (_wget_tcp_resolve): Handle EAI_ALLDONE
2018-01-29 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Save artifacts for the VPATH build
2018-01-29 Tim Rühsen <tim.ruehsen@gmx.de>
Fix testing options
* Makefile.am: Add wget2 executable from builddir
* contrib/check_options: Use given command line arguments
2018-01-29 Tim Rühsen <tim.ruehsen@gmx.de>
Suppress ASAN leak detection in getaddrinfo_a()
* .gitlab-ci.yml: export LSAN_OPTIONS=suppression=...
* tests/Makefile.am: Add suppression file to TESTS_ENVIRONMENT
* tests/clang-asan-suppressions: New file with leak suppression
getaddrinfo_a() has leak(s) that we have to suppress when using
the address sanitizer.
2018-01-27 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (downloader_thread): Pause on error with --disable-threads
2018-01-26 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/valgrind-suppressions: Add leaks in glibc's getaddrinfo_a()
2018-01-26 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c (wget_test): Add 10s timeout to wget2 command line
2018-01-26 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Use persistent ccache and configure cache
2018-01-25 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/io.c: #undef select for _WIN32 build
Reported-by: Gisle Vanem
2018-01-24 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/wget_options_fuzzer.dict: Update with new options
2018-01-24 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/wget_options_fuzzer.in: Add new corpora
2018-01-24 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (parse_regex_type): Return error instead of exit()
2018-01-19 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (main): Minor cleanup
2018-01-23 Tim Rühsen <tim.ruehsen@gmx.de>
* src/host.c (host_queue_free): Fix double free with --debug
2018-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Add --http2-request-window to set max. # of parallel HTTP/2 streams
* docs/wget2.md: Docs for --http2-request-window
* src/options.c: Add --http2-request-window
* src/wget_options.h: Remove unused config.http1_request_window
2018-01-15 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/release: Fix and add more checks
2018-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
Fix option checking
* Makefile.am: Add contrib/check_options to EXTRA_DIST
* contrib/check_options: Fix paths
2018-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Add SECTION_PLUGIN and move plugin options into it
2018-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/check_options: Force /bin/bash to have shopt
2018-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Remove WARC and FTP stuff
2018-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2_md2man.sh.in: Remove set -o pipefail (incompatible)
2018-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for plugin options
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for --local-db, --input-encoding=encoding
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Amend text for --secure-protocol
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for --gnutls-options
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for --fsync-policy, --hpkp, --hpkp-file
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for --dns-caching, --http2, --metalink
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for --cookie-suffixes
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Update link to public_suffix_list.dat
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/check_options: Enable/fix pattern matching for case
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for --robots
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Fix syntax of --private-key
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Don't display -n compat option on --help
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Fix --inet*, Add text for --tcp-fastopen
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/check_options: Amend collecting options
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Remove --config-file in favor of --config
* docs/wget2.md: Amend docs
* src/options.c: Remove option --config-file
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Fix option syntax
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/check_options: Adjust search patter
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for --ocsp, --ocsp-stapling and --ocsp-file
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for --tls-session-file and --tls-false-start
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for --http-proxy and --https-proxy
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add space before --tries and --output-document
2018-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for --check-hostname
2018-01-11 Darshit Shah <darnir@gnu.org>
* docs/wget2_md2man.sh.in: Add bash error flags to script
2018-01-11 Darshit Shah <darnir@gnu.org>
* docs/wget2.md: Add documentation for --signature-extension
2018-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Check wget2 options against wget2 manual
* Makefile.am: Call contrib/check_options in 'make check'
* contrib/check_options: New script to check options
2018-01-10 Neil Locketz <neil@nlocketz.com>
Delete signature file, and delete files that fail signature validation.
* docs/wget2.md: Added documentation for new '--verify-save-failed'
* src/gpgme.c: Exposed function to determine base downloaded file from
signature JOB.
* src/options.c: Added '--verify-save-failed' to allow users to keep downloaded
files that fail validation.
* src/wget.c: Logic for unlinking signatures, and files failing validation.
* src/wget_gpgme.c: Declaration for new function that determine base downloaded
files.
* tests/Makefile.am: Added New test code, fixed missing SOURCES.
* tests/gpg-test-util.h: Conditionally expect a saved base file if exit
code == 0, never expect a saved signature file.
* tests/test-gpg-save-failed.c: A test that tests the '--verify-save-failed'
flag.
* tests/test-gpg-style.s: Remove signature file from expected output.
Added flag '--verify-save-failed' to disable the "fail delete" behavior.
2018-01-12 Avinash Sonawane <rootkea@gmail.com>
* README.md: Add libgpgme to build requirements
2016-11-25 Tim Rühsen <tim.ruehsen@gmx.de>
Prepare alpha release
2018-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Update gnulib
2018-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Fix warnings
* configure.ac: Add -Wno-assign-enum -Wno-unreachable-code to gnulib warnings
* libwget/thread.c: Add #pragmas to silence warnings from gnulib includes
* libwget/utils.c: Likewise
* src/log.c: Likewise
* src/wget.c: Likewise
* src/bar.c: Make _terminate_thread static
* tests/test-gpg-styles.c: Make urls static
2018-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Add -Wno-float-conversion to gnulib compilation
2018-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Make strings translatable for error_printf()
* libwget/*.c: Likewise
* src/*.c: Likewise
* po/POTFILES.in: Add source files
2018-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Remove data/ directory
* Makefile.am: Remove data/ from SUBDIRS
* configure.ac: Remove data/Makefile from AC_CONFIG_FILES
* tests/Makefile.am: Remove WGET_DATADIR from DEFS
* unit-tests/Makefile.am: Likewise
* data/effective_tld_names.dat: Move to unit-tests/files/public_suffix_list.dat
and update from upstream
* unit-tests/test.c (test_cookies): Use public_suffix_list.dat
2018-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2.md: Add text for --xattr
2018-01-10 Tim Rühsen <tim.ruehsen@gmx.de>
Add man pages to tarball
2018-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Fix building docs
* Makefile.am: Add README.md to EXTRA_DIST
* configure.ac: Generate conditionals WITH_DOXYGEN and WITH_PANDOC
* docs/Makefile.am: Use conditionals for building
2018-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Check for pandoc in ./configure
* configure.ac: Check for pandoc
* docs/Makefile.am: Use $(PANDOC)
* docs/wget2_md2man.sh.in: Use $PANDOC shell variable
2018-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Generate .texi and .info from markdown manual
* Makefile.am: Convert .md to .texi and .info
* mainpage.md: Rename wget2_manual.md to wget2.md
* wget2_manual.md: Renamed to wget2.md
2018-01-09 Darshit Shah <darnir@gnu.org>
Add a space after section header string in md manual
2018-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Generate wget2 man page
* .gitignore: Add auto-generated docs/wget2_md2man
* README.md: Add pandoc
* configure.ac: Generate docs/wget2_md2man
* docs/Makefile.am: Build wget2.1
* docs/wget2_manual.md: Fix things for a better man page experience
* docs/wget2_md2man.sh.in: Template file for docs/wget2_md2man
2018-01-10 Tim Rühsen <tim.ruehsen@gmx.de>
* po/POTFILES.in: Add src/stats.c
2018-01-10 Tim Rühsen <tim.ruehsen@gmx.de>
Fix calls to info_printf() for translation
* src/stats.c: Add _() around static text
* src/wget.c: Likewise
2018-01-10 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: 'make' before 'make distcheck' in VPATH build
2018-01-09 Neil Locketz <neil@nlocketz.com>
GPG signature information now presented in --site-stats
* src/stats.c: Site stats output contains relevant GPG signature information
* stc/wget.c: Now exits with just a generic GPG error if any sigs fail validation.
More information presented in --site-stats output.
* src/wget_host.h: Added signature information to DOC struct.
* src/wget_options.h: Removed old exit codes in favor of single GPG error exit code.
* tests/Makefile.am: Added test-gpg-bad to Makefile
* tests/gpg/helloworld.txt.bad.sig: A corrupted signature (I just deleted a byte somewhere)
* tests/test-gpg-bad.c: A test for a bad (corrupted) signature.
* tests/test-gpg-invalid.c: Changed exit code to the single GPG error exit code.
2017-12-26 Tim Rühsen <tim.ruehsen@gmx.de>
Use hashmap instead of vector for DNS caching
* libwget/dns_cache.c: Likewise
2017-12-26 Tim Rühsen <tim.ruehsen@gmx.de>
Refactor DNS chaching code out of net.c
* include/wget/wget.h: Add missing wget_dns_cache declarations
* libwget/Makefile.am: Add dns_cache.c
* libwget/dns_cache.c: New file
* libwget/net.c: Remove DNS chaching code
2018-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
Fix MinGW compilation without threads
* .gitlab-ci.yml: Test without multi-threading
* pthread_sigmask.c.mingw: New file with patch for MinGW
Wine/MinGW seems to have a multi-threadign issue (sometimes hangs).
Disabling threads using ./configure --disable-threads needs a change in
gnulib. It has been reported, but not worked on currently.
So we provide our own solution.
2018-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
* gnulib: Update
2018-01-05 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (_print_info): Amend printed error messages
2018-01-04 Darshit Shah <darnir@gnu.org>
Eliminate redundant variable config.head_progress
2018-01-04 Darshit Shah <darnir@gnu.org>
Unify functions to print progress stats and progress_head stats
2018-01-04 Darshit Shah <darnir@gnu.org>
* libwget/iri.c: Don't percent encode the query portion of a IRI
2018-01-02 Darshit Shah <darnir@gnu.org>
Add support to change the GPG signature file extension
* src/wget_options.h: Define a new option, --signature-extension
* src/options.c: Guard the SECTION_GPG in help_section_t with ifdef's.
Set new option as a string and give it a default value
* src/wget.c(process_response): Use the value in config.sig_ext to
decide the extension of the signature file
* tests/Makefile.am: Add new tests to Makefile
* tests/test-gpg-styles.c: New test file
2018-01-02 Darshit Shah <darnir@gnu.org>
* src/options.c: Put GPG options in their own help section
2018-01-04 Darshit Shah <darnir@gnu.org>
* src/wget.c: Gracefully disable progress when built without threads
2018-01-03 Tim Rühsen <tim.ruehsen@gmx.de>
Fix build to work without multi-threading
* libwget/thread.c: Fix wget_thread_start() and wget_thread_join()
* src/wget.c: Fix typo
* tests/libtest.c: Don't skip tests when multi-threading is disabled
2018-01-03 Tim Rühsen <tim.ruehsen@gmx.de>
Fix --without-plugin-support build
* configure.ac: Check for dlsym and introduce $FUZZ_LIBS
* fuzz/Makefile.am: Use $FUZZ_LIBS instead of $LIBS
2018-01-03 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/Makefile.am: Do not build/run GPG tests if gpgme isn't installed
2018-01-01 Tim Rühsen <tim.ruehsen@gmx.de>
Add test for --filter-mime-type
* tests/Makefile.am: Add test--filter-mime-type
* tests/test--filter-mime-type.c: New test
2017-12-30 DalmeGNU <dalmemail@gmail.com>
Add --filter-mime-type option
* src/wget.c: Add mime type check before downloading a file
* src/options.c: Add --filter-mime-type option
* src/wget_options.h: Add mime_types to the config structure
* docs/wget2_manual.md: Add documentation related to the new option
2018-01-01 Darshit Shah <darnir@gnu.org>
Cleaner error messages for GPG Verification
* src/wget.c(process_response): Remove some info_printf statements. They
are printed from gpgme now
* src/gpgme.c: Pass the filename of the signature file (if any) ad use
it to print an error message to the screen. This prevents the double
error messages that were printed and works well with the progress bar
2017-12-25 Neil Locketz <neil@nlocketz.com>
Fixed problems pointed out in MR. Added tests and doxygen documentation.
* bootstrap.conf: Add canonicalize module.
* cfg.mk: Added exclusions to no new line at EOF for binary files used in tests.
* configure.ac: Check for libgpgme
* docs/wget2_manual.md: Added manual entries for --verify-sig, --gnupg-homedir, and new exit codes.
* fuzz/Makefile.am: Amend linker options
* include/wget/wget.h: Add error codes for GPG signature verification.
* po/POTFILES.in: Add new files.
* src/Makefile.am: Add src/gpgme.c and src/wget_gpgme.h
* src/gpgme.c: Using new error codes, and better signature verification failure detection.
* src/job.c (job_free): Free sig_filename
* src/options.c: Add new options --gnupg-homedir and --verify-sig
* src/wget.c: Verify the signature if possible, exit with the proper status code,
print error messages
* src/wget_gpgme.h: Add documentation.
* src/wget_job.h: Extend struct JOB
* src/wget_options.h: Add new status codes, add new members to struct config
* tests/Makefile.am: Added new tests.
* tests/gpg-test-util.h: Common GPG testing functionality (tries to verify a signature, expects exit code ... etc).
* tests/gpg/helloworld.txt: Text that has been signed in the .sig files.
* tests/gpg/helloworld.txt.{invalid,no-pub,missing,trusted}.sig: Signatures on helloworld.txt with properties described by their names.
* tests/gpg/openpgp-revocs.d/*: Revocation certs for the fake "homedir"
* tests/gpg/private-keys-v1.d/*: The not-so-private private keys used to sign the test file.
* tests/gpg/pubring.kbx: Fake gnupg homedir public key ring.
* tests/gpg/test-gpg-*.c: Tests.
* tests/valgrind-supressions: Supress failures due to oddness with GPGME.
* unit-tests/Makefile.am: Add src/gpgme.o to BASE_OBJS
2018-01-01 Tim Rühsen <tim.ruehsen@gmx.de>
* cfg.mk: Exclude *gnulib/*.c from sc_copyright_check
2018-01-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/thread.c: Fix typos (make syntax-check)
2017-12-31 Tim Rühsen <tim.ruehsen@gmx.de>
Remove unused function wget_vector_deinit()
* include/wget/wget.h: Likewise
* libwget/vector.c: Likewise
2017-12-31 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats.c (_free_tree_docs_entry): Use wget_vector_free()
2017-12-29 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for thread functions
* docs/Makefile.am: Add man page
* libwget/thread.c: Add documentation
2017-12-31 Tim Rühsen <tim.ruehsen@gmx.de>
* README.md: Extend list of dependencies
2017-12-31 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/main.c: Fix path separator on MinGW
2017-12-30 Tim Rühsen <tim.ruehsen@gmx.de>
Revert "* .gitlab-ci.yml: Remove MinGW CI runner"
This reverts commit 89166a38d428ccb02eb263394130dd4acada2b51.
At least on Debian unstable the MinGW build works stable now.
This might be due to the latest fixes in the threading area.
2017-12-30 DalmeGNU <dalmemail@gmail.com>
* docs/wget2_manual.md: Remove duplicate documentation on the --report-speed option and change it a bit
2017-12-30 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/bar.c (wget_bar_set_slots): Fix memleak when adding more slots
2017-12-29 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (main): Fix read overflow on progress+spider without TTY
2017-12-23 DalmeGNU <dalmemail@gmail.com>
Fix the filename encoding for the progress bar in spider mode
* src/wget.c: Use functions from wget2 to get the filename,
refactor get_local_filename(). Shorten the progress info
line
* src/wget_main.h: Use const for get_local_filename() param
2017-12-28 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/thread.c: Suppress -Wundef warnings in gnulib includes
2017-12-27 Tim Rühsen <tim.ruehsen@gmx.de>
Avoid copying initialized glthread structures
* libwget/thread.c: Use malloc+init instead init+memdup
Memdup'ing the glthread structures broke internal pointers,
at least on Windows.
Reported-by: Gisle Vanem
2017-12-23 DalmeGNU <dalmemail@gmail.com>
Print progress info related to headers when spider+progress are set
* src/options.c: Set config.head_progress if spider+progress are set
* src/wget.c: New function print_head_progress_report(),
new function get_filename()
* src/wget_options.h: New var config.head_progress
2017-12-25 Tim Rühsen <tim.ruehsen@gmx.de>
* src/bar.c: Let progress thread stop
Glthreads don't have a cancel or kill function, so we use
a global termination flag.
2017-12-10 DalmeGNU <dalmemail@gmail.com>
Improve progress speed display
* include/wget/wget.h: Use enum for WGET_REPORT_SPEED_*
* libwget/bar.c: Add ringbuffer for smoother speed calculations
* src/wget.c (main): Replace call to print_progress_report() by
call to bar_printf()
2017-12-20 Darshit Shah <darnir@gnu.org>
libwget/bar.c: Ensure all progress bars have the same size
2017-12-20 Tim Rühsen <tim.ruehsen@gmx.de>
Add test for multi-threading
* unit-tests/Makefile.am: Add test-cond
* unit-tests/test-cond.c: New test
2017-12-17 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/build_fuzzers: Print out a small info
2017-05-03 Tim Rühsen <tim.ruehsen@gmx.de>
Thread abstraction via gnulib thread wrapper (glthread)
* bootstrap.conf: Add modules cond, lock and thread,
remove module pthread
* include/wget/wget.h: Remove pthread code,
add new wget_thread_* functions,
amend params of wget_thread_* functions,
add init and exit functions for mutex initialization
* */*.[ch]: Amend threading to new API
This change let libwget work with different kinds of
threading libraries incl. pthreads and windows threads.
2017-12-15 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Reduce warnings from gnulib code
2017-12-12 Tim Rühsen <tim.ruehsen@gmx.de>
Fix some more URLs from http:// to https://
* .travis.sh: Likewise
* .travis_setup.sh: Likewise
* COPYING: Likewise
* COPYING.LESSER: Likewise
* bootstrap: Likewise
* include/wget/wget.h: Likewise
* include/wget/wgetver.h.in: Likewise
* libwget/atom_url.c: Likewise
* libwget/iri.c: Likewise
2017-12-11 Tim Rühsen <tim.ruehsen@gmx.de>
Fix race condition(s) in downloader logic
* src/host.c: Use new flag job.done,
add more documentation,
protect some debugging lines with hosts_mutex
* src/wget.c: Use job.done instead of job.inuse
* src/wget_host.h: Use void return for host_add_job()
and host_add_robotstxt_job()
* src/wget_job.h (struct JOB): Add job.done
The job.inuse flag has been used for two purposes. This
resulted in sporadic conflicts between threads. While one was
destroying a job structure another got this structure from the
job queue. Best reproducible with '-r --spider' combination.
2017-12-06 Tim Rühsen <tim.ruehsen@gmx.de>
Fix deadlock in host_remove_job()
* src/host.c (_host_remove_job): New function fixes deadlock
Fixes #314
2017-12-08 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/*_fuzzer.in/*: Update fuzzer corpora
2017-12-08 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/build_fuzzers: Add new helper script to build fuzzers
2017-12-08 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/get_ossfuzz_corpora: Fix script to handle many corpora
2017-12-08 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Fix clang warning about 64/32 conversion
2017-12-08 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c: Fix clang warning about 64/32 conversion
2017-12-05 Tim Rühsen <tim.ruehsen@gmx.de>
* gnulib: Update
2017-11-30 DalmeGNU <dalmemail@gmail.com>
Implement speed reporting in the progress bar and the --report-speed switch
* docs/wget2_manual.md: Add documentation for the --report-speed switch
* include/wget/wget.h: Define the report speed types, add reference to wget_bar_set_speed_type()
* libwget/bar.c: Modify the wget2 progress bar to print speed information
* src/bar.c: Add code to set the type of speed reporting
* src/options.c: Add the --report-speed switch and a function to parse the legal types
* src/wget_options.h: Add 'report_speed' in the config structure
* src/wget.c: Print speed reports at the end of a download thread
2017-12-06 Tim Rühsen <tim.ruehsen@gmx.de>
Fix several issues foudn by cppcheck
* libwget/bar.c (_wget_bar_st): Remove unused member screen_width
* libwget/css.c: Reduce scope of variables
* libwget/encoding.c: Likewise
* libwget/hpkp.c: Likewise
* libwget/http.c: Likewise
* libwget/http_parse.c: Likewise
* libwget/iri.c: Likewise
* libwget/net.c: Likewise
* libwget/sitemap_url.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* libwget/vector.c: Likewise
* src/dl.c: Likewise
2017-12-06 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Add VPATH build
2017-12-06 Tim Rühsen <tim.ruehsen@gmx.de>
Use BUILDDIR for popen() in test suite
* tests/Makefile.am: Set BUILDDIR
* tests/libtest.c: Use BUILDDIR for executable path
2017-12-05 Tim Rühsen <tim.ruehsen@gmx.de>
Update link libraries in Makefiles
* fuzz/Makefile.am: Update link libraries and remove redundant code
* libwget/Makefile.am: Likewise
* src/Makefile.am: Likewise
* tests/Makefile.am: Likewise
* unit-tests/Makefile.am: Likewise
2017-12-04 Tim Rühsen <tim.ruehsen@gmx.de>
* po/POTFILES.in: Add lib/regcomp.c
2017-12-04 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c: Fix -Wundef warning on Win32
2017-12-04 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Include getpass.h
2017-12-04 Tim Rühsen <tim.ruehsen@gmx.de>
* bootstrap.conf: Add modules pipe-posix, regex
# Conflicts:
# bootstrap.conf
2017-12-02 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Use new Fedora27 CI image
2017-12-02 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hpkp.c: Silence doxygen
2017-12-02 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/bar.c: Add missing documentation
2017-12-02 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hashfile.c: Use doxygen 'ingroup' instead of 'defgroup'
2017-12-02 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c: Fix end of doxygen file
2017-12-02 Tim Rühsen <tim.ruehsen@gmx.de>
Fix some doxygen issues
* libwget/hash_printf.c: Fix name of param
* libwget/hpkp.c: Document missing param,
(wget_hpkp_db_add): Rename param
* libwget/ssl_gnutls.c: Fix \ref syntax warnings
* libwget/strscpy.c: Fix param usage in docs
2017-08-19 Ander Juaristi <a@juaristi.eus>
doxygen: Document SSL/TLS engine
2017-11-30 DalmeGNU <dalmemail@gmail.com>
* docs/wget2_manual.md: Add documentation for --max-threads and --chunk-size switches
2017-11-29 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Add make distcheck
2017-11-29 Dan <dalmemail@amaya.tk>
* src/options.c: Prevert --max-threads & --chunk-size flags combination
2017-11-28 DalmeGNU <dalmemail@gmail.com>
* src/options.c: Don't allow wget2 to show any password dialogs if there are no URL arguments
2017-11-28 Akash Rawal <argmlac@gmail.com>
* unit-tests/Makefile.am: Make libwget usable in dummy libraries
2017-11-24 Akash Rawal <argmlac@gmail.com>
Fix 'make distcheck' for VPATH build
* fuzz/Makefile.am: Use $(srcdir) to find files
* tests/Makefile.am: Add stats-test-util.h to *_SOURCES where needed
2017-11-24 Akash Rawal <argmlac@gmail.com>
* .travis.yml: Fix travis-ci build
2017-11-28 DalmeGNU <dalmemail@gmail.com>
* src/wget.c: Let the user know if file is completely retrieved after a 416 HTTP error
2017-11-29 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/wget_options_fuzzer.c: Fix for C++ building
2017-11-21 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/Makefile.am: Fix building for oss-fuzz
2017-11-18 Tim Rühsen <tim.ruehsen@gmx.de>
Add testmode to avoid interactive functions when testing
* fuzz/Makefile.am: Link options fuzzer with testing.o
* fuzz/wget_options_fuzzer.c: Set test mode
* src/Makefile.am: Add testing.c and wget_testing.h
* src/options.c (prompt_for_password, run_use_askpass):
Check for testing mode
* src/testing.c: New file
* src/wget_testing.h: New file
* unit-tests/Makefile.am: Link with testing.o
2017-11-16 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hsts.c: Check some function arguments against NULL
2017-11-16 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test--accept.c: Fix new tests for Windows
Reported-by: Gisle Vanem
2017-11-15 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Fix reading passwords for fuzzing
2017-11-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix resource leaks
* src/options.c (prompt_for_password): Fix indentation,
(run_use_askpass): Add file actions to close pipe fds in child,
(init): Free config.password before calling prompt_for_password(),
(deinit): Free config.use_askpass_bin
2017-11-14 Avinash Sonawane <rootkea@gmail.com>
Fix warnings
* src/wget.c : Declare 'nthreads' as static variable
* src/wget.c (regex_match_pcre): explicit typecast to PCRE2_SPTR
2017-11-14 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-stats-tls.c: Remove superfluous include
2017-11-14 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/stats-test-util.h: Fix free() on arbitrary stack content
2017-11-14 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (run_use_askpass): Remove warning
2017-11-13 Neil Locketz <neil@nlocketz.com>
Hosts gathered from metalinks are added to hosts hashmap
* src/wget.c: Add metalink mirrors to hosts hashmap
2017-11-14 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Fix check for WITH_LIBPCRE
2017-11-14 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (run_use_askpass): Use const for 'question'
2017-11-14 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (init): Fix memleak (harmless)
2017-11-14 Tim Rühsen <tim.ruehsen@gmx.de>
* README.md: Add lzip to list of prerequisites
2017-11-13 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Cleanups, prevent resource leaks in --use-askpass
2017-11-11 DalmeGNU <dalmemail@gmail.com>
Disable TLS Session Resumption by default
* src/options.c: Set config.tls_resume to false/zero by default
* docs/wget2_manual.md: Add docs for --tls-resume
2017-11-06 DalmeGNU <dalmemail@gmail.com>
Implementation of --use-askpass switch
* bootstrap.conf: Add 'posix_spawn' and 'spawn-pipe' gnulib modules
* docs/wget2_manual.md: Add docs for --use-askpass
* src/options.c: Add implementation of --use-askpass
* src/wget_options.h (struct config): Add 'use_askpass_bin' member
2017-11-11 Tim Rühsen <tim.ruehsen@gmx.de>
* bootstrap.conf: Add more prerequisites
2017-11-10 Tim Rühsen <tim.ruehsen@gmx.de>
* include/wget/wget.h: More documentation added
2017-11-10 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Add Cache-Control: no-cache if --no-cache is given
2017-11-06 Neil Locketz <neil@nlocketz.com>
Response Time Site Statistic
* include/wget/wget.h: first_data_back field added to represent the time of first bytes received back.
* libwget/http.c: Assigning first_data_back at the appropriate time.
* stc/wget_host.h: Added response_time field to DOC, holds response time for document.
* src/stats.c: Logic to calculate response_time for DOCs, and stat printing.
2017-11-06 Neil Locketz <neil@nlocketz.com>
Transfer time site statistic
* include/wget/wget.h: Added request_start, and response_end to wget_http_request_t, and wget_http_response_t respectively.
* libwget/http.c: New fields initialized/set with their corresponding values at the right time.
* stc/wget_host.h: Added timestamps to DOC for request timeframes.
* src/stats.c: Logic to calculate request_start and response_end for DOCs. Stats writing.
2017-11-05 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Skip DNS resolve for bind address for fuzz/ tests
2017-11-03 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (add_statistics): Count status 303, 307, 308 as redirects
2017-11-03 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c (wget_http_get_response_cb): Improve gzip workaround
2017-10-31 DalmeGNU <dalmemail@gmail.com>
Implement --ask-password switch to enable a password prompt
* bootstrap.conf: Add 'getpass' gnulib module
* docs/wget2_manual.md: Amend docs for --ask-password
* src/options.c: Add implementation of --ask-password
* src/wget_options.h (struct config): Add 'password' member
2017-11-02 Tim Rühsen <tim.ruehsen@gmx.de>
* include/wget/wget.h: Add some struct member documentation
2017-11-02 Tim Rühsen <tim.ruehsen@gmx.de>
Fix out-of-memory issue in option parsing
* src/options.c (parse_stringlist_expand): Limit number
entries in vector table.
And endless loop situation when reading config files lead
to an out-of-memory situation.
Found by oss-fuzz (issue 4015).
Bug existed since a long time.
2017-11-01 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/wget_options_fuzzer.in: Update fuzzer corpora
2017-11-01 Tim Rühsen <tim.ruehsen@gmx.de>
Let plugin_db_load_from_envvar() return error
* src/options.c (init): Return error if plugin_db_load_from_envvar() fails
* src/plugin.c (plugin_db_load_from_envvar): Return error instead of void
* src/wget_plugin.h (plugin_db_load_from_envvar): Likewise
2017-10-23 Neil Locketz <neil@nlocketz.com>
Split up plugin tests into several files
* tests/Makefile.am: Add new files
* tests/test-plugin-failure.c: New file with tests based on invalid input
* tests/test-plugin-interception.c: New file for testing the various things
plugins can intercept
* tests/test-plugin-nonexistance.c: New file for tests with plugins that don't exist)
* tests/test-plugin.c: Moved tests to the above new files
2017-10-23 Neil Locketz <neil@nlocketz.com>
Split individual stats tests into their own files
* tests/Makefile.am: Add new files
* tests/stats-test-util.h: New file
* tests/test-stats-all.c: New file
* tests/test-stats-dns.c: DNS stats tests
* tests/test-stats-ocsp.c: OCSP stats tests
* tests/test-stats-server.c: Server stats tests
* tests/test-stats-site.c: Site stats tests
* tests/test-stats-tls.c: TLS stats tests
2017-11-01 Tim Rühsen <tim.ruehsen@gmx.de>
Fix memory leak in wget2
* src/options.c (init): Free config.logfile before assignment
Found by oss-fuzz (issue 3963).
Bug existed since a long time.
Bug is not relevant except for testing.
2017-10-31 Tim Rühsen <tim.ruehsen@gmx.de>
Fix buffer overflow in option parser
* src/options.c (_parse_option): Add end-of-string check
Found by oss-fuzz (issue 3950).
Bug existed since a long time.
2017-10-29 Tim Rühsen <tim.ruehsen@gmx.de>
Add support for RFC 7616 HTTP Digest Access Authentication
* docs/Makefile.am: Remove libwget-md5.3
* include/wget/wget.h: Remove wget_md5_printf_hex(),
add wget_hash_printf_hex()
* libwget/Makefile.am: Rename md5.c to hash_printf.c
* libwget/hash_printf.c: New file with wget_hash_printf_hex()
* libwget/http.c (wget_http_add_credentials): Remove hardcoded MD5 algo
* tests/test-metalink.c: Use wget_hash_printf_hex()
RFC 7616 adds/replaces the MD5 digest algorithm with SHA-256.
2017-04-13 Michael Heerklotz <michael.heerklotz@check24.de>
Added new setting --filter-urls
* docs/wget2_manual.md: Added doc for new setting
* src/options.c: Added new setting
* src/wget.c: Added code for new setting.
* src/wget_options.h: Added new setting
This commit hasn't been copyright-assigned to the FSF.
2017-04-13 Michael Heerklotz <michael.heerklotz@check24.de>
Added regex filters (--accept-regex, --reject-regex, --regex-type)
* configure.ac: Added detection of libpcre and libpcre2
* include/wget/wget.h: Added regex_type defines
* src/options.c: Added the new options
* src/wget.c: Added regex code
* src/wget_options.h: Added the new options
* tests/test--accept.c: Added tests for the new options
This commit hasn't been copyright-assigned to the FSF.
2017-10-27 Tim Rühsen <tim.ruehsen@gmx.de>
Fixes for oss-fuzz
* fuzz/Makefile.am: Extend oss-fuzz make script
* fuzz/wget_options_fuzzer.c: Do not opendir() in init()
* src/wget_options.h: Tell C++ that functions are C
* src/wget_plugin.h: Likewise
2017-10-10 Tim Rühsen <tim.ruehsen@gmx.de>
Add wget_options_fuzzer
* Makefile.am: Fix make target 'fuzz-coverage'
* configure.ac: Enable building static library by default,
add option --enable-fuzzing
* fuzz/Makefile.am: Add wget_options_fuzzer,
check for FUZZING (set with --enable-fuzzing)
* fuzz/README.md: Amend the text
* fuzz/main.c: Use printf() instead of wget_info_printf()
* fuzz/run-clang.sh: Use fuzzer binaries built by 'make'
* fuzz/wget_options_fuzzer.c: New fuzzer
* fuzz/wget_options_fuzzer.dict: New fuzzer dictionary
* fuzz/wget_options_fuzzer.in/*: Initial fuzz corpora
* libwget/net.c: Skip IP address resolution when fuzzing
* src/log.c: Don't create files when fuzzing,
don't print to console when fuzzing
* src/options.c: Add set_exit_status() and get_exit_status(),
don't print --help / --version to console when fuzzing,
do not call exit() - return error instead,
fix recursion level in _read_config(),
don't create files when fuzzing,
fix memory leaks in deinit()
* src/stats.c: Don't create files when fuzzing
* src/wget.c: Remove set_exit_status()
* src/wget_main.h: Remove exit_status_t
* src/wget_options.h: Add exit_status_t
* tests/test-plugin.c: Fix expected exit codes from 1 to 2
This is for application fuzzing (namely code from src/).
The code in src/ had to be prepared in certain ways, but it
doesn't add significant overhead, even makes the code cleaner
in some ways. Several of these changes have already been committed
into the master branch.
2017-10-22 Tim Rühsen <tim.ruehsen@gmx.de>
Rename WGET_HTML_PARSED_RESULT to wget_html_parsed_result_t
* examples/check_url_types.c: Likewise
* examples/print_html_urls.c: Likewise
* fuzz/libwget_html_url_fuzzer.c: Likewise
* include/wget/wget.h: Likewise
* libwget/html_url.c: Likewise
* src/wget.c: Likewise
2017-10-22 Tim Rühsen <tim.ruehsen@gmx.de>
Rename WGET_HTML_PARSED_URL to wget_html_parsed_url_t
* examples/check_url_types.c: Likewise
* examples/print_html_urls.c: Likewise
* include/wget/wget.h: Likewise
* libwget/html_url.c: Likewise
* src/wget.c: Likewise
2017-10-22 Tim Rühsen <tim.ruehsen@gmx.de>
Rename WGET_PARSED_URL to wget_css_parsed_url_t
* examples/print_css_urls3.c: Likewise
* include/wget/wget.h: Likewise
* libwget/css_url.c: Likewise
2017-10-22 Tim Rühsen <tim.ruehsen@gmx.de>
Rename ROBOTS to wget_robots_t
* fuzz/libwget_robots_parse_fuzzer.c: Rename ROBOTS to wget_robots_t
* include/wget/wget.h: Likewise
* libwget/robots.c: Likewise
* src/wget_host.h: Likewise
* unit-tests/test.c: Likewise
2017-10-22 Tim Rühsen <tim.ruehsen@gmx.de>
Replace ROBOTS_PATH by wget_string_t
* include/wget/wget.h: Remove struct ROBOTS_PATH
* libwget/robots.c: Replace ROBOTS_PATH by wget_string_t
* src/host.c: Likewise
* src/wget.c: Likewise
* unit-tests/test.c: Likewise
2017-10-21 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (_read_config): Fix buffer underflow
2017-10-21 Tim Rühsen <tim.ruehsen@gmx.de>
* gnulib: Update for glob() buffer overflows
2017-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (parse_timeout): Fix two integer overflows
2017-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (parse_numbytes): Fix integer overflow
2017-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
Cleanup dl_error* functions
* src/dl.c: Deduplicate code, use const where needed
* src/wget_dl.h: Use const attribute for dl_error_t.msg
2017-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget_plugin.h: Include needed header files
2017-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (get_home_dir): Allow free'ing 'home' outside the function
2017-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (_read_config): Add errno and strerror to error message
2017-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
* unit-tests/test-dl.c: Fix memory leak
2017-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c (wget_tcp_set_bind_address): Fix allocation policy flag
2017-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c (_wget_tcp_resolve): Fix read of uninitialized stack memory
2017-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c (_parse_no_proxies): Remove wrong destructor from vector 'proxies'
2017-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
* gnulib: Update
2017-10-14 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Fine-tune help output
2017-10-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add wget_strscpy()
* include/wget/wget.h: Add wget_strscpy()
* libwget/strscpy.c: New file
* libwget/Makefile.am: Add strscpy.c
* libwget/html_url.c: Use wget_strscpy() instead of wget_strlcpy()
* libwget/http.c: Likewise
* libwget/iri.c: Likewise
* libwget/metalink.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* libwget/test_linking.c: Likewise
* src/job.c: Likewise
* src/plugin.c: Likewise
* src/wget.c: Likewise
2017-10-11 Tim Rühsen <tim.ruehsen@gmx.de>
Use MHD_free in test suite if available
* configure.ac: Check for MHD_free(),
fallback to AC_SEARCH_LIBS if pkg-config not available
* tests/libtest.c: Call MHD_free() where appropriate,
small cleanups
2017-10-10 Avinash Sonawane <rootkea@gmail.com>
* .gitlab-ci/yml: Add scan-build for fuzz/*, tests/* and unit-tests/*
2017-10-10 Avinash Sonawane <rootkea@gmail.com>
* .gitlab-ci.yml: Generate flawfinder report
2017-10-11 Tim Rühsen <tim.ruehsen@gmx.de>
Cleanup test library
* tests/libtest.c (_http_server_start): Use wget_error_printf instead of printf,
simplify some code,
gettextize some printf strings,
(wget_test): generate WIN32 command line
2017-10-09 Tim Rühsen <tim.ruehsen@gmx.de>
Fix usage of wget_global_init() and wget_http_get()
* examples/*.c: Use 0 instead of NULL as terminating param
* fuzz/main.c: Likewise
* include/wget/wget.h: Remove G_GNUC_WGET_NULL_TERMINATED from
wget_global_init() and wget_http_get().
2017-10-09 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c: Fix free'ing of certain variables
2017-10-09 Tim Rühsen <tim.ruehsen@gmx.de>
* include/wget/wget.h: Fix usage of G_GNUC_WGET_NONNULL for clang-cl (Windows)
2017-10-07 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (parse_local_db): Let --local-db be a master switch
2017-10-07 Tim Rühsen <tim.ruehsen@gmx.de>
Add --no-local-db to test suite
* tests/libtest.c: Add --no-local-db to wget2 options
* tests/test-plugin.c: Fix test
2017-09-27 Dan <dalmemail@amaya.tk>
Implement '--local-db' option
* src/options.c: New function parse_local_db(),
new option '--local-db',
(init): Check for config settings
* src/wget_options.h (struct config): Add local_db
2017-10-07 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Fix scan-build
2017-10-07 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/iri.c (wget_iri_relative_to_abs): Fix null pointer dereference
2017-09-21 Tim Rühsen <tim.ruehsen@gmx.de>
Implement --dns-timeout using getaddrinfo_a()
* configure.ac: Check for getaddrinfo_a() in libanl
* libwget/net.c: Implement _wget_tcp_resolve() with timeout
Currently, there seems to be memory leak in getaddrinfo_a().
Needs investigation and a bug report.
2017-10-06 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Generate scan-build report (clang static analyzer)
2017-10-07 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (send_ocsp_request): Fix null ptr dereference
2017-10-07 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget_bar.h: Remove unneeded G_GNUC_WGET_NONNULL_ALL from bar_slot_begin()
2017-10-07 Avinash Sonawane <rootkea@gmail.com>
Use snprintf() instead of sprintf()
* tests/libtest.c: Likewise
* unit-tests/test.c: Likewise
2017-10-07 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget_xattr.h: Move #include into guarded area
2017-10-05 Avinash Sonawane <rootkea@gmail.com>
Fix issues reported by clang static analyzer
* unit-tests/test-dl-dummy.c: use wget_strlcpy() intead of strcpy()
* src/plugin.c: Likewise
* tests/libtest.c: Get rid of strcpy()
* unit-tests/test.c: Fix out-of-bound array access
2017-10-05 Avinash Sonawane <rootkea@gmail.com>
Reduce variable scope
* examples/print_html_urls.c: Likewise
* fuzz/libwget_cookie_fuzzer.c: Likewise
* fuzz/main.c: Likewise
* tests/libtest.c: Likewise
* unit-tests/test.c: Likewise
Found by: cppcheck
2017-10-07 Avinash Sonawane <rootkea@gmail.com>
Remove dead assignments
* libwget/http.c: Likewise
* libwget/net.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* src/wget.c: Likewise
Found by: Clang static analyzer (scan-build)
2017-10-05 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-plugin.c: Fix check for skipping the test
2017-09-28 Josef Moellers <jmoellers@suse.de>
Terminate http request on response status code 416.
* libwget/http.c (wget_http_get_response_cb): Stop download on
status code 416, cleanup using HTTP status defines.
* libwget/http.h: Add HTTP status defines from Wget1.x
HTTP status response 416 Requested Range Not Satisfiable.
This sometimes happens when a server responds incorrectly to a range request.
There is not enough information available (Range of the request) to properly
handle this case. If it were, the case that the file has already been
completely downloaded could be detected and an appropriate message could be
generated. I also took the liberty to port the status codes from the old wget
source to libwget/http.h to make the code more readable.
2017-10-05 Avinash Sonawane <rootkea@gmail.com>
Reduce scope of variables
* libwget/bar.c: Likewise
* libwget/console.c: Likewise
* libwget/encoding.c: Likewise
* libwget/hashmap.c: Likewise
* libwget/io.c: Likewise
* libwget/md5.c: Likewise
* libwget/netrc.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* libwget/xml.c: Likewise
* src/job.c: Likewise
* src/plugin.c: Likewise
* libwget/hashfile.c: Include local private.h
* src/host.c: Remove unused find_free_job_context struct
Found by: cppcheck
2017-10-04 Tim Rühsen <tim.ruehsen@gmx.de>
Remove testing for MHD in test suite
* tests/libtest.c: Likewise
* tests/libtest.h: Likewise
Reported-by: Gisle Vanem
2017-10-04 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/*.in: Update fuzzer corpora
2017-10-04 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/*: Fix clang-5.0 to clang-6.0
2017-10-03 Tim Rühsen <tim.ruehsen@gmx.de>
Skip plugin tests if shared build is disabled
The use of -shared in the LDFLAGS for the plugins does not work
with './configure --disable-shared'. Instead of failing the build
this patch SKIPs the plugin tests.
2017-10-02 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/main.c: Remove libtool prefix 'lt-' from directory names
2017-10-02 Tim Rühsen <tim.ruehsen@gmx.de>
Remove -static from AM_LDFLAGS in test directories
* fuzz/Makefile.am: Remove -static from AM_LDFLAGS
* tests/Makefile.am: Likewise
* unit-tests/Makefile.am: Likewise
'make check' didn't work on CygWin with these settings.
Also, GnuTLS removed these a short time ago from the fuzz/
directory since there were build issues.
2017-10-02 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/mingw: Cleanup
2017-10-02 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Set values for enum actions
2017-10-02 Tim Rühsen <tim.ruehsen@gmx.de>
* README.md: Add libiconv to dependencies
2017-10-02 Tim Rühsen <tim.ruehsen@gmx.de>
Extend plugin loading for CygWIN
* src/dl.c: Add PATTERN for CygWin
* tests/test-plugin.c: Define LOCAL_NAME for CygWin
* unit-tests/test-dl.c: Define BUILD_NAME and LOCAL_NAME for CygWin
2017-10-02 Tim Rühsen <tim.ruehsen@gmx.de>
Make fuzzers survive on CygWin
* fuzz/libwget_hpkp_fuzzer.c: Check for RTLD_NEXT
* fuzz/libwget_hsts_fuzzer.c: Likewise
* fuzz/libwget_netrc_fuzzer.c: Likewise
* fuzz/libwget_ocsp_fuzzer.c: Likewise
* fuzz/libwget_tlssess_fuzzer.c: Likewise
On CygWin RTLD_NEXT doesn't exist, so we can't overwrite/preload fopen().
2017-09-29 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c (wget_test): Flush stderr after each write
2017-09-29 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Remove MinGW CI runner
Due to several instabilities / hangs we temporarily remove
the MinGW CI runner. One problem is the buggy behavior of
MinGW pthread_cond_broadcast() that doesn't wake up every thread.
As a result Wget2 sometimes hangs and so does the test suite.
2017-09-29 Tim Rühsen <tim.ruehsen@gmx.de>
.gitlab-ci.yml: grep posix version of libgcc_s_seh-1.dll
2017-09-28 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Remove --enable-static configure flag from MinGW build
2017-09-27 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Fix WINEPATH
2017-09-22 Avinash Sonawane <rootkea@gmail.com>
* tests/libtest.c (_http_server_start): Remove explicit type conversion
2017-09-27 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/netrc.c (wget_netrc_db_load): Use wget_strncasecmp_ascii()
2017-09-27 Tim Rühsen <tim.ruehsen@gmx.de>
Add GNU extensions to .netrc parsing
* include/wget/wget.h (wget_netrc_t): Add port and force
* libwget/netrc.c (wget_netrc_db_load): Parse port and force
2017-09-22 DalmeGNU <dalmemail@gmail.com>
Replace error_printf() with debug_printf() in order to solve #254
2017-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Test MinGW with -j1
2017-09-20 Tim Rühsen <tim.ruehsen@gmx.de>
Use type bool instead of char
* include/wget/wget.h: Use type bool instead of char
* libwget/bar.c: Likewise
* libwget/base64.c: Likewise
* libwget/cookie.c: Likewise
* libwget/encoding.c: Likewise
* libwget/hsts.c: Likewise
* libwget/http.h: Likewise
* libwget/http_highlevel.c: Likewise
* libwget/http_parse.c: Likewise
* libwget/ip.c: Likewise
* libwget/iri.c: Likewise
* libwget/logger.c: Likewise
* libwget/net.h: Likewise
* libwget/ocsp.c: Likewise
* libwget/tls_session.c: Likewise
* libwget/vector.c: Likewise
* src/plugin.c: Likewise
* src/wget_host.h: Likewise
* src/wget_job.h: Likewise
* src/wget_plugin.h: Likewise
* tests/test-plugin-dummy.c: Likewise
2017-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
Fix HPKP checking
* libwget/ssl_gnutls.c (_verify_certificate_callback): PIN check the
whole cert chain.
We used only cert #0 for HPKP checking. This broke connectivity
to github.com.
Now checking the whole cert chain.
Fixes #293
2017-09-20 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/thread.c: Do not call pthread functions with NULL thread value
2017-09-20 Tim Rühsen <tim.ruehsen@gmx.de>
Fix HTTPS functionality on _WIN32
* libwget/ssl_gnutls.c: Add _win32_send() and _win32_recv(),
set those functions as push and pull functions on _WIN32.
Sets the GnuTLS pull and push functions to make gnulib sockets work.
Tested only on MinGW64.
2017-09-20 Tim Rühsen <tim.ruehsen@gmx.de>
Remove obsolete server code from library and test suite
* include/wget/wget.h: Remove wget_tcp_listen(), wget_tcp_accept(),
wget_ssl_server_init(), wget_ssl_server_deinit(), wget_ssl_server_open(),
wget_ssl_server_close().
* libwget/net.c: Remove wget_tcp_listen(), wget_tcp_accept(),
remove tcp->passive,
amend wget_tcp_tls_start() and wget_tcp_tls_stop().
* libwget/net.h: Remove tcp->passive.
* libwget/ssl_gnutls.c: Remove server variables, wget_ssl_server_init(),
wget_ssl_server_deinit(), wget_ssl_server_open(), wget_ssl_server_close().
* tests/libtest.c: Remove FTP(S) code and obsolete test server code.
* tests/libtest.h: Remove FTP flags, structures, functions.
2017-09-08 Avinash Sonawane <rootkea@gmail.com>
* doc/wget2_manual.md: Add docs for --stats-* options
2017-09-17 Avinash Sonawane <rootkea@gmail.com>
Fix --stats-* for chunked download
* src/stats.c (stats_docs_add): For chunked download add chunk sizes to print total size
* src/stats.c (stats_tree_docs_add): Point to doc with non-HEAD method in case of collision
2017-09-15 Avinash Sonawane <rootkea@gmail.com>
Add tests for --stats-*=format:file
* tests/test-stats.c: test --stats-site=tree:file
* tests/test-stats.c: test --stats-all=csv:file
2017-09-15 Avinash Sonawane <rootkea@gmail.com>
* src/stats.c: Refactor stats code
2017-09-14 Avinash Sonawane <rootkea@gmail.com>
Add HTTP status to --stats-site=csv and --stats-site=json
* src/wget_host.h: Add 'status' to struct DOC
* src/stats.c (print_*_site_entry): Print status
2017-09-14 Avinash Sonawane <rootkea@gmail.com>
Add new format 'tree' for --stats-site
* include/wget/wget.h: Add WGET_STATS_FORMAT_TREE to wget_stats_format_t enum
* src/options.c (parse_stats): Accept format 'tree' for --stats-site switch
* src/stats.c (stats_print_tree): Print tree-ish o/p for format WGET_STATS_FORMAT_TREE
2017-09-14 Avinash Sonawane <rootkea@gmail.com>
* src/stats.c (stats_print): For --stats-all=csv:foo, save stats in separate files
2017-09-12 Avinash Sonawane <rootkea@gmail.com>
Add --stats-all switch as a shorthand to turn ON all the stats-* switches
* src/wget_options.h (struct config): Add member 'stats_all'
* src/options.c: Add new function parse_stats_all to parse --stats-all
* tests/test-stats.c (stats_options[]): Add "--stats-all"
* src/stats.c (stats_print): Append to file if --stats-all is provided
2017-09-11 Avinash Sonawane <rootkea@gmail.com>
Fix --stats-site o/p for --spider
* src/wget_host.h (struct HOST_DOCS): change datatype of 'docs' from wget_vector_t to wget_hashmap_t
* src/stats.c (stats_docs_add): For --spider replace contents of 'doc' with 'resp' of second GET request
2017-09-10 Avinash Sonawane <rootkea@gmail.com>
Consolidate --stats-site CSV and JSON o/p
* src/stats.c: Consolidate print_csv() and print_json()
* src/stats.c: Consolidate print_site_stats_csv() and print_site_stats_json()
* src/wget_stats.h: Move stats_format_t enum to include/wget/wget.h
2017-09-09 Avinash Sonawane <rootkea@gmail.com>
Fix --stats-* JSON o/p
* src/wget_host.h: Add 'json_stats' context struct
* src/stats.c: Pass 'ctx' stats_print_*_entry()s
2017-09-09 Avinash Sonawane <rootkea@gmail.com>
* src/stats.c: Consolidate code from stats_print_*() functions in stats_print()
2017-09-08 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats.c (stats_set_option): Fix memory leak
2017-09-08 Tim Rühsen <tim.ruehsen@gmx.de>
Fix --stats-site hashing
* src/stats.c (_host_docs_hash): Disable integer sanitizer checks,
avoid memory allocation.
(stats_docs_add): Use calloc instead of malloc.
2017-09-08 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats.c: More consolidation
2017-09-08 Tim Rühsen <tim.ruehsen@gmx.de>
Detangle src/hosts.c and src/stats.c
* src/host.c: Move stuff to src/stats.c
* src/options.c (init): Save --stats-site status in config
* src/stats.c: Insert stuff rom src/host.c
* src/wget.c: Cleaup regarding the above changes
* src/wget_host.h: Add structs and prototypes
* src/wget_options.h: Add config.stats_site
* src/wget_stats.h: Add prototypes
* unit-tests/Makefile.am: Link stats.o where needed
2017-09-07 Avinash Sonawane <rootkea@gmail.com>
Add JSON o/p for --stats-site
* src/wget_host.h: Add print_site_stats_json() prototype declaration
* src/stats.c (stats_print_json): Handle WGET_STATS_TYPE_SITE case
* src/host.c: Add print_site_stats_json(), hosts_hashmap_json() and
print_json() functions
2017-09-07 Tim Rühsen <tim.ruehsen@gmx.de>
Detangle stats from options.c
* src/options.c (parse_stats): Call stats_set_option() to set values,
(deinit): Call stats_exit()
* src/stats.c: Move stats_opts here,
new functions stats_set_option() and stats_exit()
* src/wget_options.h: Remove stats_format_t, stats_opts_t, stats_opts
* src/wget_stats.h: Add stats_format_t,
add prototypes for stats_exit() and stats_set_option()
2017-09-07 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats.c: Cleanup stats output dispatching
2017-09-07 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats.c (stats_server_hpkp): Add G_GNUC_WGET_PURE attribute
2017-09-07 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats.c: Reduce number of memory allocations
2017-09-06 Avinash Sonawane <rootkea@gmail.com>
Add CSV o/p for --stats-site
I'll amend this later.
2017-09-06 Avinash Sonawane <rootkea@gmail.com>
Collect site stats only if --stats-site switch is supplied
* src/wget.c (wget_tcp_set_stats_site): Set 'stats-site' flag
* src/wget.c (add_statistics): Collect Site stats only if `stats_site` is set
* src/stats.c (stats_init): Call wget_tcp_set_stats_site if --stats-site is supplied
* include/wget/wget.h: Add wget_tcp_set_stats_site() prototype declaration
2017-09-06 Tim Rühsen <tim.ruehsen@gmx.de>
Rearrange stats struct members to avoid padding
* src/wget_stats.h: Likewise
* libwget/ssl_gnutls.c: Likewise
2017-09-05 Avinash Sonawane <rootkea@gmail.com>
Add docs
* libwget/http.c: Document wget_tcp_set_stats_server() and wget_tcp_get_stats_server()
* libwget/net.c: Document wget_tcp_set_stats_dns() and wget_tcp_get_stats_dns()
* libwget/ssl_gnutls.c: Document wget_tcp_set_stats_tls() and wget_tcp_get_stats_tls()
* libwget/ssl_gnutls.c: Document wget_tcp_set_stats_ocsp() and wget_tcp_get_stats_ocsp()
2017-09-05 Avinash Sonawane <rootkea@gmail.com>
Add robots.txt as child of first doc having same host as robots.txt
* src/host.c (tree_docs_add): Likewise
* src/host.c (print_treeish): Backtrack once all children have been printed
* src/wget.c: Remove commented code
* scr/wget_job.h: Remove not needed 'cloned_robot_iri' and 'previous_robot_job'
* src/wget_host.h: Remove not needed 'bool robot_iri'
2017-09-04 Avinash Sonawane <rootkea@gmail.com>
Add robot_iri to blacklist and do not free it explicitly
* src/wget.c (add_url_to_queue): Likewise
* src/wget.c (add_url): Likewise
* src/host.c (host_remove_job): Don't free robot_iri explicitly
2017-09-04 Avinash Sonawane <rootkea@gmail.com>
* tests/test-stats.c: Add tests for -r with --stats-* options
2017-09-03 Tim Rühsen <tim.ruehsen@gmx.de>
Add test 'test-stats' for new stats options
* tests/Makefile.am: Add test-stats.c
* tests/test-stats.c: New file
2017-09-03 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (downloader_thread): Add missing brackets around else case
2017-09-03 Tim Rühsen <tim.ruehsen@gmx.de>
* src/stats.c: Reduce # of allocations in stats_print_* functions
2017-09-03 Tim Rühsen <tim.ruehsen@gmx.de>
* src/host.c (print_encoding): Add 'const' attribute to function
2017-09-03 Avinash Sonawane <rootkea@gmail.com>
Do not print sizes in human-readable form
* src/host.c (host_docs_hashmap): Likewise
* libwget/http.c (_free_host_entry): Fix parenhesis
* src/options.c: Amend help text to reflect the progress
2017-09-02 Avinash Sonawane <rootkea@gmail.com>
* src/host.c (print_treeish): Use context variable instead of local static variable
2017-09-01 Avinash Sonawane <rootkea@gmail.com>
Assign enum values explicitly
* include/wget/wget.h: Likewise
* src/stats.c (stats_print_human): Remove commented code
2017-09-01 Avinash Sonawane <rootkea@gmail.com>
* src/stats.c (stats_print_csv): Use buffer to print CSV header
2017-09-01 Avinash Sonawane <rootkea@gmail.com>
Refactor --stats-tls code
* src/wget_stats.h: Change datatype of 'tls_con' and 'resumed' from char to bool
* libwget/ssl_gnutls.c (stats_data_t struct): Likewise
* src/stats.c (stats_print_*): Use WGET_HTTP_PROTOCOL_* instead of hard-coded values
2017-09-01 Avinash Sonawane <rootkea@gmail.com>
Add port to DNS stats
* include/wget/wget.h: Add WGET_STAST_DNS_PORT to wget_stats_dns_t enum
* libwget/netc. (wget_tcp_resolve): store port in _stats_data_t struct
* src/wget_stats.h: Add 'port' to dns_stats_t struct
* src/stats.c (stats_callback): Collect port into dns_stats_t struct
* src/stats.c (stats_print_*): Print port
2017-08-29 Avinash Sonawane <rootkea@gmail.com>
* libwget/http.c: Suppress clang warning about integer overflow
2017-08-23 Avinash Sonawane <rootkea@gmail.com>
Add parent child relationships and print them in tree-ish form
* include/wget/wget.h: Add prototype for wget_vector_deinit()
* libwget/vector.c: Add wget_vector_deinit() to free 'v->entry'
(can be used for vector maintaining references)
* src/host.c: Refactor tree_docs_add()
* src/host.c: Add hosts_hashmap_tree() and print_treeish() to print tree-ish o/p
* wget/host.h: Add 'root' and 'robot' to HOST struct
* src/wget_job.h (JOB struct): Add 'previous_robot_job' and 'clonned_robot_iri'
2017-08-20 Avinash Sonawane <rootkea@gmail.com>
Add data structures and functions for tree-ish o/p
* src/wget_host.h: Add tree_docs hashmap to HOST struct
* src/wget_host.h: Add TREE_DOCS struct
* src/host.c: Add _tree_docs_hash() as hash function for 'tree_docs' hashmap
* src/host.c: Add _tree_docs_compare() as compare function for 'tree_docs' hashmap
* src/host.c: Add _free_tree_docs_entry() as destructor for 'tree_docs' hashmap
* src/host.c: (tree_docs_add): Add entry to 'tree_docs' hashmap
* src/host.c: (tree_docs_get): Get entry from 'tree_docs' hashmap
2017-08-17 Avinash Sonawane <rootkea@gmail.com>
Add doc_size and content-encoding to --stats-site
* src/wget_host.h (DOC struct): Add size_downloaded, size_decompressed and encoding
* src/wget.c (_prepare_file): Simplify code
* src/options.c: Amend --stats-* help text
* src/host.c (host_docs_add): Collect size_downloded, size_decompressed and encoding
2017-08-16 Avinash Sonawane <rootkea@gmail.com>
* src/host.c: Suppress clang warning about integer overflow
2017-07-31 Avinash Sonawane <rootkea@gmail.com>
Add --stats-site switch
* include/wget/wget.h: Add WGET_STATS_TYPE_SITE to wget_stats_type_t enum
* src/options.h: Increase stats_opts[] size to 5
* src/options.c: Add --stats-site
* src/wget_host.h: Add 'robot_iri' to DOC struct
* src/host.c: Add new functions print_site_stats(), hosts_hashmap() and host_docs_hashmap()
* src/stats.c (stats_print_human): Print site stats
* src/wget.c: Call host_add() as soon as scheme changes due to HSTS
* src/wget.c: Clone robot_iri
* src/wget_stats.h: Fix indentation
2017-07-31 Avinash Sonawane <rootkea@gmail.com>
Assign enum values explicitly
* src/wget_options.h (stats_format_t enum): Likewise
* src/options.c (help_section_t enum): Likewise
* libwget/css_tokenizer.h: Likewise
* libwget/bar.c (_bar_slot_status_t enum): likewise
* src/host.c (host_docs_get): Initialize 'host_docsp'
* src/wget.c (add_statistics): Add call to host_docs_add()
2017-07-30 Avinash Sonawane <rootkea@gmail.com>
Add WGET_STATS_HPKP_ERROR to handle HPKP error
* include/wget/wget.h: Add WGET_STATS_HPKP_ERROR to wget_hpkp_stats_t enum
* src/wget_stats.h (server_stats_t struct): Change datatype of 'hpkp' from char to wget_hpkp_stats_t
* libwget/ssl_gnutls.c (_cert_verify_hpkp): Store WGET_STATS_HPKP_ERROR for error
* src/stats.c (stats_server_hpkp): Return appropriate message depending on 'hpkp' value
2017-07-28 Avinash Sonawane <rootkea@gmail.com>
Collect --stats-server for unique servers(IPs) only
* src/wget_stats.h: Add member 'scheme' to server_stats_t struct
* src/stats.c (stats_callback): Collect 'scheme' in server_stats_t struct
* src/stats.c (stats_print_*): Print 'scheme'
* include/wget/wget.h: Add WGET_STATS_SERVER_SCHEME to wget_server_stats_t enum
* libwget/hashmap.c (wget_hashmap_contains): Add check for 'h' being non-NULL
* libwget/http.c: Add _host_hash() as hash function for 'hosts' hashmap
* libwget/http.c: Add _host_compare() as compare function for 'hosts' hashmap
* libwget/http.c: Add _free_host_entry() destructor for 'hosts' hashmap
* libwget/http.c (host_add): Add host to 'hosts' hashmap
2017-07-28 Avinash Sonawane <rootkea@gmail.com>
* include/wget/wget.h: Set explicit enum values
2017-07-28 Avinash Sonawane <rootkea@gmail.com>
Add IP to --stats-server
* src/wget_stats.h: Add 'ip' to 'server_stats_t' struct
* src/stats.c (stats_callback): Collect IP
* src/stats.c (stats_print_*): Print IP
* src/stats.c (free_server_stats): Free 'ip'
* libwget/net.h (wget_tcp_st struct): Add 'ip'
* libwget/net.c (wget_tcp_connect): Store IP in tcp->ip
* libwget/http.c: Collect IP from conn->tcp->ip
2017-07-27 Avinash Sonawane <rootkea@gmail.com>
* src/options.c: Amend the help text for --stats-* options
2017-07-26 Avinash Sonawane <rootkea@gmail.com>
Collect site-based stats
* src/wget_host.h: Add HOST_DOCS and DOC structs
* src/host.c (_host_docs_compare): Add compare function for host_docs hashmap
* src/host.c (_host_docs_hash): Add hash function for host_docs hashmap
* src/host.c (_free_host_docs_entry): Add destructor for host_docs hashmap
* src/host.c (host_docs_add): Add function to add stats in host_docs hashmap
* src/host.c (host_docs_get): Add function to retrieve doc from host_docs hashmap
* src/wget.c (process_response_header): Add call to host_docs_add()
2017-07-21 Avinash Sonawane <rootkea@gmail.com>
Assign default value if wget_tcp_get_stats_* return NULL
* src/stats.c (stats_callback): Likewise
* src/wget_stats.h: Change datatype of cert_chain_size, nvalid,
ignored, nrevoked from size_t to int
* src/wget_stats.h: Change datatype of hpkp from wget_hpkp_stats_t
to char
* src/options.c (parse_stats): Exit if unknown stats format
* libwget/net.c (wget_tcp_resolve): Initialize 'before_millisecs'
* libwget/ssl_gnutls.c: Add function definitions for wget_tcp_*_stats_ocsp()
2017-07-20 Avinash Sonawane <rootkea@gmail.com>
Add support for --stats-*[=[format:]filename]
* src/options.c: Add parse_stats() function to parse --stats-*[=[format:]filename]
* src/wget_options.h: Add stats_format_t enum and stats_opts_t struct
* src/stats.c: Add stats_print_human() for "human" formatted output
3 case-insensitive formats: json, csv and human (default)
'stdout' is the default file. '-' stands for 'stdout'.
2017-07-12 Avinash Sonawane <rootkea@gmail.com>
* src/stats.c: Fix --stats-server and --stats-ocsp JSON output
2017-07-12 Avinash Sonawane <rootkea@gmail.com>
Add flag tls_stats to separate --stats-tls from --stats-ocsp
* libwget/ssl_gnutls.c: Likewise
* src/http.c (wget_http_open): Add check to see whether stats_callback is non-NULL
2017-07-12 Avinash Sonawane <rootkea@gmail.com>
* src/stats.c (free_server_stats): free server_stats_t members
2017-07-11 Avinash Sonawane <rootkea@gmail.com>
Print Server stats and OCSP stats in CSV and JSON format
* src/stats.c: Likewise
* src/wget_stats.h: Remove stats_print*() function declarations
2017-07-11 Avinash Sonawane <rootkea@gmail.com>
Print --stats-server, if asked, for HPKP_NOMATCH
* libwget/http.c (wget_http_open): Call stats_callback() even for WGET_E_CERTIFICATE, if asked
* src/wget_stats.h (server_stats_t struct): Fix indentation
* src/stats.c (stats_print): Fix info_printfs() for server stats
2017-07-10 Avinash Sonawane <rootkea@gmail.com>
Add HPKP_NEW to --stats-server
* src/wget_stats.h: Add hpkp_new to server_stats_t struct
* src/stats.c (stats_callback): Collect hpkp_new
* src/stats.c (stats_print): Print hpkp_new
* libwget/http.c (wget_http_get_response_cb): Collect hpkp_new stats
* include/wget/wget.h: Add WGET_STATS_SERVER_HPKP_NEW to wget_server_stats_t enum
2017-07-10 Avinash Sonawane <rootkea@gmail.com>
Add IGNORED to --stats-ocsp
* libwget/ssl_gnutls.c (_verify_certificate_callback): Add nignored to stats
* src/stats.c (stats_callback): Collect nignored
* src/stast.c (stats_print): Print nignored
2017-07-08 Avinash Sonawane <rootkea@gmail.com>
Add HPKP stats and hostname to --stats-server
* libwget/ssl_gnutls.c: Collect HPKP stats in tcp struct via session_context
* libwget/http.c: Collect hostname and HPKP stats in _stats_data_t struct
* src/stats.c: Collect hostname in stats_callback() and print it
2017-07-08 Avinash Sonawane <rootkea@gmail.com>
Add --stats-ocsp option
* src/wget_stats.h: Add ocsp_stats_t struct
* src/stats.c: Add ocsp_stats_v vector to store OCSP stats
* src/stats.c: Add OCSP stats code in stats_init(), stats_callback() and stats_print()
* src/wget_options.h: Add stats_ocsp to struct config
* src/options.c: Add --stats-ocsp
* include/wget/wget.h: Add wget_ocsp_stats_t enum
* include/wget/wget.h: Add WGET_STATS_TYPE_OCSP to wget_stats_type_t enum
* libwget/ssl_gnutls.c: Add wget_tcp_set_stats_ocsp() and wget_tcp_get_stats_ocsp()
2017-07-07 Avinash Sonawane <rootkea@gmail.com>
Print stats in CSV and JSON format
* src/wget_stats.h: Add prototypes for stats_printcsv() and stats_printjson()
* src/stats.c: Add stats_printcsv() and stats_printjson() functions
* libwget/ssl_gnutls.c: Change datatype of cert_chain_size from unsigned int to size_t
2017-07-06 Avinash Sonawane <rootkea@gmail.com>
Add --stats-server option
* src/wget_stats.h: Add server_stats_t struct
* src/stats.c: Add server_stats_v vector to store server stats
* src/stats.c: Add server stats code in stats_init(), stats_callback and stats_print()
* src/stats.c: Add free_server_stats() destructor
* src/wget_options.h: Add stats_server to struct config
* src/options.c: Add --stats-server
* include/wget/wget.h: Add wget_server_stats_t and wget_hpkp_stats_t enums
* include/wget/wget.h: Add WGET_STATS_TYPE_SERVER to wget_stats_type_t enum
* libwget/http.c: Add wget_tcp_set_stats_server() and wget_tcp_get_stats_server()
* libwget/http_parse.c: Check for "Content-Security-Policy" header
* libwget/ssl_gnutls.c: Collect HPKP stats in wget_tcp_t struct
* libwget/net.h: Add hpkp to wget_tcp_st struct
2017-06-16 Avinash Sonawane <rootkea@gmail.com>
Add --stats-dns and --stats-tls options
* src/wget_stats.h: Add dns_stats_t and tls_stats_t structs
* src/stats.c: Add stats_init(), stats_callback() and stats_print() functions
* src/stats.c: Add dns_stats_v and tls_stats_v vectors
* src/stats.c: Add free_tls_stats() and free_tls_stats() functions
* src/wget_options.h: Add stats_dns and stats_tls in config struct
* src/options.c: Add --stats-dns and --stats-tls
* src/wget.c: Add call to stats_init() and stats_print() functions
* src/Makefile.am: Add stats.c and wget_stats.h files
* include/wget/wget.h: Add prototypes for wget_tcp_set_stats_dns() and wget_tcp_set_stats_tls()
* include/wget/wget.h: Add prototypes for wget_tcp_get_stats_dns() and wget_tcp_get_stats_tls()
* include/wget/wget.h: Add wget_stats_type_t, wget_dns_stats_t and wget_tls_stats_t enums
* libwget/ssl_gnutls.c: Add wget_tcp_set_stats_tls() and wget_tcp_get_stats_tls()
* libwget/net.h: Add TLS stats in wget_tcp_st struct
* libwget/net.c: Add wget_tcp_set_stats_dns() and wget_tcp_get_stats_dns()
2017-09-18 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c (_answer_to_connection): Fix memleaks found by coverity
2017-09-18 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c: Fix warnings on _WIN32
2017-09-18 Tim Rühsen <tim.ruehsen@gmx.de>
* src/log.c: Fix unused param warning on _WIN32
2017-09-18 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (_print_info): Remove call to deprecated GnuTLS function
2017-09-18 Tim Rühsen <tim.ruehsen@gmx.de>
Change __WIN32 to _WIN32
* tests/test-idn-cmd.c: Likewise
* tests/test-idn-robots.c: Likewise
2017-09-18 Darshit Shah <darnir@gnu.org>
* tests/libtest.h: Add WGET_TEST_FEATURE_FTP to satisfy clang
2017-09-18 Darshit Shah <darnir@gnu.org>
Revert "* libwget/net.c: Remove port variable from DNS cache"
This reverts commit b9006672dcbbffb3995a78918d04bfe009f29e2d.
We cannot remove the port variable from the DNS cache. The struct
addrinfo structure contains the port information and hence causes issues
during HTTP->HTTPS redirects
2017-09-18 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c: Cleanups
2017-09-18 Tim Rühsen <tim.ruehsen@gmx.de>
Fix configure ans Makefile.am for MHD
* Makefile.am: Add tests to SUBDIRS only with MHD
* configure.ac: Fix MHD detection
2017-09-18 Tim Rühsen <tim.ruehsen@gmx.de>
Fix two IDN tests for MinGW/Windows
* tests/test-idn-cmd.c: Skip UTF-8 on command line
* tests/test-idn-robots.c: Likewise
MinGW mangles UTF-8 characters on the command line, so we skip
those tests.
2017-09-17 Tim Rühsen <tim.ruehsen@gmx.de>
Add Wget2 dependencies to mingw script
2017-09-16 Darshit Shah <darnir@gnu.org>
* libwget/net.c: Remove port variable from DNS cache
2017-09-17 Darshit Shah <darnir@gnu.org>
Use Feature Flags to SKIP unsupported tests
* tests/libtest.{c,h}: Add support for feature flags during test
startup. Check if Wget2 is compiled with the feature and conditionally
SKIP the tests
* tests/test-*.c: Pass the right feature flags for each test. MHD for
HTTP, FTP for FTP, IDN and PLUGIN when applicable
2017-09-17 Darshit Shah <darnir@gnu.org>
* configure.ac: Support compiling without MHD support
2017-09-18 Darshit Shah <darnir@gnu.org>
* .gitlab-ci.yml: The Fedora runner should use GCC
2017-09-18 Darshit Shah <darnir@gnu.org>
* .gitlab-ci.yml: Use new MingW Docker Image
2017-09-16 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Adjust WINEPATH, remove CXX
2017-09-16 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/metalink.c (_add_file_hash): Skip spaces at begin of mirror URL
2017-09-16 Darshit Shah <darnir@gnu.org>
Fix bug with combination of host-directories and cut-dirs
* libwget/iri.c(wget_iri_get_path): Change API so that a path separator
is added _only_ if one does not already exist at the end of the buffer.
This should be a non-breaking change.
* src/wget.c(get_local_filename): Append a "/" at the end of the
hostname, always.
2017-09-16 Darshit Shah <darnir@gnu.org>
* tests/test-cut-dir: Add two new tests with host directories
2017-09-13 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/buffer_printf.c (wget_buffer_vprintf_append): Reset precision after use
2017-09-08 Didik Setiawan <ds@didiksetiawan.com>
Fix socket handle issue on MinGW64 build
Helped-by: Akash Rawal
Helped-by: Tim Rühsen
2017-09-12 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c (_http_server_start): Do not use real randomness
2017-09-12 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Adjust build flags
2017-09-12 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/mingw: Add /usr/x86_64-w64-mingw32/lib/pkgconfig to PKG_CONFIG_PATH
2017-08-17 Didik Setiawan <ds@didiksetiawan.com>
Add digest authentication test
* tests/Makefile.am: Add test 'test-auth-digest'
* tests/libtest.c: Fix HTTP server to handle digest
authentication
* tests/libtest.h: Add opaque for digest authentication
* tests/test-auth-digest.c: Add new test to prove digest
authentication functionality
2017-09-11 Darshit Shah <darnir@gnu.org>
* configure.ac: MHD is used only in tests. Don't link to Wget2
2017-09-12 Akash Rawal <argmlac@gmail.com>
* .gitlab-ci.yml (MinGW64): Remove hardcoded path to wget2 clone
2017-09-12 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/mingw: Include building libmicrohttpd
2017-09-11 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Remove MHD clone & bootstrap (now in docker build)
2017-09-11 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Remove MHD install, moved into docker build
2017-09-11 Tim Rühsen <tim.ruehsen@gmx.de>
Use gnulib-tool.py to speed up ./bootstrap
* README.md: Add python to optional dependencies
* bootstrap: Use gnulib-tool.py if possible
* gnulib: Update
gnulib-tool.py is much faster than the old gnulib-tool.
2017-09-10 Avinash Sonawane <rootkea@gmail.com>
* src/wget.c: If not -r then don't send second GET request for --spider
2017-09-10 Didik Setiawan <ds@didiksetiawan.com>
Fix Clang warnings on MHD code
Reported-by: Avinash Sonawane
2017-09-05 Darshit Shah <darnir@gnu.org>
* .gitlab-ci.yaml: Set default CFLAGS to retain the human readable symbols
2017-09-05 Darshit Shah <darnir@gnu.org>
Prevent heap-use-after-free of default_challenges
* src/wget_job.h: Add new field to JOB struct, challenges_alloc. This
field indicates whether the JOB object owns the challenges struct.
* src/job.c(job_free): Free the challenges struct of the job only if it
is owned. Else, let the owner handle freeing it.
* src/wget.c: Mark the challenges vector as owned when it is taken from
the response. If it is the default vector, it is not owned.
2017-09-03 Didik Setiawan <ds@didiksetiawan.com>
Remove redundant debugging option
* tests/test--post-file.c: Remove redundant debugging option
* tests/test-auth-basic.c: Likewise
* tests/test-metalink.c: Likewise
* tests/test-redirection.c: Likewise
* tests/test-wget-1.c: Likewise
Debugging option already provided in tests/libtest.c, so we don't need
to adding it in each test file
2017-09-03 Didik Setiawan <ds@didiksetiawan.com>
Fix expected error code regarding wrong authentication test
* tests/test-auth-basic.c: Fix expected error code regarding wrong
authentication test which use basic scheme
2017-09-03 Didik Setiawan <ds@didiksetiawan.com>
* test/libtest.c: Remove unnecessary old http server code
2017-09-03 Didik Setiawan <ds@didiksetiawan.com>
* test/libtest.c: Ensure dinfo variable to be initialized before usage
2017-08-23 Didik Setiawan <ds@didiksetiawan.com>
* tests/libtest.c: Add server info into HTTP header
2017-08-04 Didik Setiawan <ds@didiksetiawan.com>
Fix HTTP server to handle chunked transfer encoding
* tests/libtest.c: Fix HTTP server to handle chunked
transfer encoding
* tests/test-bad-chunk.c: Modify test to conform with new
server
* tests/test-chunked.c: Likewise
2017-07-19 Didik Setiawan <ds@didiksetiawan.com>
* tests/libtest.c: Fix -Wunused-param caused by MHD API
2017-07-14 Didik Setiawan <ds@didiksetiawan.com>
* tests/libtest.c: Add HTTPS server handler
2017-07-13 Didik Setiawan <ds@didiksetiawan.com>
Fix HTTP server to handle basic authentication
* tests/libtest.c: Add basic authentication test handler
* tests/test-auth-basic.c: Add test for wrong credentials
2017-07-11 Didik Setiawan <ds@didiksetiawan.com>
Fix HTTP server response to handle 302 redirection
* tests/libtest.c: Fix HTTP server response to handle 302
status code
2017-07-10 Didik Setiawan <ds@didiksetiawan.com>
Fix HTTP server response to handle 404 Not Found
* tests/libtest.c: Fix HTTP server response to handle 404
Not Found status code with non-empty body
2017-07-09 Didik Setiawan <ds@didiksetiawan.com>
Fix HTTP server response to handle Byte serving
* tests/libtest.c: Fix HTTP server response to handle Byte
serving
2017-07-05 Didik Setiawan <ds@didiksetiawan.com>
Fix HTTP server response to handle If-Modified-Since
* tests/libtest.c: Fix HTTP server response to handle
If-Modified-Since
2017-06-25 Didik Setiawan <ds@didiksetiawan.com>
Fix requested URL query string which contains space
* tests/libtest.c: Fix requested URL query string which
contains space
2017-06-23 Didik Setiawan <ds@didiksetiawan.com>
Fix empty requested URL regarding IDN hostname
* tests/libtest.c: Fix empty requested URL by redirect
default page to index.html regarding IDN hostname
2017-06-22 Didik Setiawan <ds@didiksetiawan.com>
Fix empty requested URL
* tests/libtest.c: Fix empty requested URL by redirect
default page to index.html
2017-06-21 Didik Setiawan <ds@didiksetiawan.com>
Fix remote URL to handle IRI object
* tests/libtest.c: Fix remote URL which contains IRI object
using Libmicrohttpd function (MHD_http_unescape)
2017-06-18 Didik Setiawan <ds@didiksetiawan.com>
Fix HTTP server response to handle directory creation
* tests/libtest.c: Fix HTTP server response regarding
directory creation on recursive download
2017-06-18 Didik Setiawan <ds@didiksetiawan.com>
Fix HTTP server response to include available header
* tests/libtest.c: Fix HTTP server response to include
available header. This solved many cases which involving
proper HTTP header response such as for Chunked
"Transfer-Encoding" and "Redirection"
2017-06-17 Didik Setiawan <ds@didiksetiawan.com>
Fix HTTP server to get available port
* tests/libtest.c: Automatically get available port for HTTP
server using Libmicrohttpd function
2017-06-16 Didik Setiawan <ds@didiksetiawan.com>
Fix requested URL which contains query string
* tests/libtest.c: Fix requested URL which contains
query string
2017-06-14 Didik Setiawan <ds@didiksetiawan.com>
Fix HTTP server response to handle 404 Not Found
* tests/libtest.c: Fix HTTP server response to handle 404
Not Found status code with empty body
2017-06-13 Didik Setiawan <ds@didiksetiawan.com>
* tests/libtest.c: Create Libmicrohttpd function wrapper
2017-06-05 Didik Setiawan <ds@didiksetiawan.com>
Initial system preparation for Libmicrohttpd integration
* .gitlab-ci.yml: Add Libmicrohttpd package for CI testing
using Debian/gcc, Fedora/clang and MinGW64
* .travis.sh: Add Libmicrohttpd package for OSX/clang
* .travis_setup.sh: Add Libmicrohttpd package for Debian/gcc
and clang
* README.md: Add info which mentioning Libmicrohttpd as
optional requirement
* configure.ac: Check for Libmicrohttpd availability
2017-09-06 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2_manual.md: Fix several small things
2017-09-06 Tim Rühsen <tim.ruehsen@gmx.de>
Remove redundant pointer syntax from function pointer calls
* libwget/hsts.c: Likewise
* libwget/ocsp.c: Likewise
* libwget/plugin.c: Likewise
* src/plugin.c: Likewise
2017-09-06 Tim Rühsen <tim.ruehsen@gmx.de>
* src/plugin.c (plugin_db_finalize): Check if initialized
2017-09-05 Tim Rühsen <tim.ruehsen@gmx.de>
README.md: document clang not working with 'make check-coverage'
2017-09-04 Akash Rawal <argmlac@gmail.com>
Fix clang warnings
* include/wget/wget.h: Add new function wget_ssl_set_config_object()
* libwget/ssl_gnutls.c: Likewise
* src/options.c: Use wget_ssl_set_config_object()
* libwget/ssl_gnutls.c (wget_ssl_write_timeout): Remove unreachable code
not required by syntax
* src/wget.c (downloader_thread): Likewise
* unit-tests/test.c (test_hpkp): Remove unnecessary variable with same
name
2017-09-03 Akash Rawal <argmlac@gmail.com>
Add plugin APIs for custom HSTS, HPKP and OCSP databases
* include/wget/wget.h: Add plugin API declarations
* libwget/hsts.c: Make wget_hsts_db_t extensible
* libwget/hpkp.c: Make wget_hpkp_db_t extensible
* libwget/ocsp.c: Make wget_ocsp_db_t extensible
* libwget/plugin.c: Add virtual functions for plugin API
* src/plugin.c: Add plugin API implementation
* src/wget_plugin.h: Likewise
* src/option.c: Add code to call the implementation
* src/wget.c: Likewise
* tests/test-plugin-dummy: Add plugin with dummy databases for testing
* tests/Makefile.am: Add target libplugindb.la
* tests/test-plugin.c: Add tests for custom databases
* unit-tests/test.c: Add tests for new HPKP functions
* libwget/ssl_gnutls.c: Adapt to API changes
* examples/http_multi_get.c: Likewise
* fuzz/libwget_hpkp_fuzzer.c: Likewise
* fuzz/libwget_hsts_fuzzer.c: Likewise
* fuzz/libwget_ocsp_fuzzer.c: Likewise
This feature implemented as per the specifications at
https://gitlab.com/akash_rawal/wget2/wikis/Stage-4
2017-09-03 Akash Rawal <argmlac@gmail.com>
Add plugin APIs for intercepting downloaded files.
Merged from branch tmp-akash_rawal-stage3 into master
* include/wget/wget.h: Add function declarations
* libwget/plugin.c: Add virtual functions
* configure.ac: Check for fmemopen()
* src/plugin.c: Add implementation
* src/wget_plugin.h: Likewise
* src/wget.c: Add code that calls the implementation
* tests/test-plugin-dummy.c (pluginapi): Add option 'parse-rot13',
'only-rot13' and 'test-pp'
* tests/test-plugin.c: Add tests
* tests/libtest.c: Load files into dynamic memory instead of stack,
enables testing with large files.
Plugin APIs for intercepting downloaded files have been implemented
as per specifications at https://gitlab.com/akash_rawal/wget2/wikis/Stage-3
2017-09-02 Tim Rühsen <tim.ruehsen@gmx.de>
Include sys/uio.h for writev()
* configure.ac: Check for sys/uio.h
* libwget/ssl_gnutls.c: Include sys/uio.h for writev() if available
Fixes #260
Reported-by: Gabriele Balducci
 
2017-09-01 Darshit Shah <darnir@gnu.org>
Call strerror() to get Error message with some errors
2017-09-01 Darshit Shah <darnir@gnu.org>
* libwget/http.c(wget_http_send_request): Fix printf specifier data type
2017-08-31 Darshit Shah <darnir@gnu.org>
Remove magic numbers when setting exit codes
Magic numbers are bad, they make the code very difficult to read since
one must guess their intention. Which is why this commit eliminates all
the magic numbers for setting the exit status and replaces them with a
structured enum. This has the added benefit of having these values as
symbols in the final symbol table.
* src/wget.c: Replace all calls to set_exit_status() to use the
exit_status_t enum values
* src/wget_main.h: Define the exit_status_t enum and associated exit
error code values
2017-08-31 Darshit Shah <darnir@gnu.org>
* src/wget.c(process_response_header): Remove dead (commented) code
2017-08-31 Darshit Shah <darnir@gnu.org>
* src/wget.c(process_response_header): Clean up auth failure pathways
2017-08-31 Avinash Sonawane <rootkea@gmail.com>
Do not print request body if it's an OCSP request
* include/wget/wget.h: Add 'debug_skip_body' flag to 'wget_http_request_t'
* libwget/ssl_gnutls.c: set 'debug_skip_body' flag if it's an OCSP request
* libwget/http.c: Do not print 'req->body' if 'debug_skip_body' is set
2017-08-31 Avinash Sonawane <rootkea@gmail.com>
* src/wget.c: Fix regression of having extra '/' in filename
2017-08-23 Darshit Shah <darnir@gnu.org>
New benchmark script
2017-08-23 Tim Rühsen <tim.ruehsen@gmx.de>
Improve fuzzer helper scripts
* fuzz/get_ossfuzz_corpora: Improve description text
* fuzz/view-coverage.sh: Allow 1+ arguments
2017-08-23 Darshit Shah <darnir@gnu.org>
Add counter for authorization failures
Fixes #259
2017-08-23 Tim Rühsen <tim.ruehsen@gmx.de>
Use clang for sanitizer CI
* .gitlab-ci.yml: Use clang for sanitizing, remove memory sanitizer
* configure.ac: Do not combine leak and memory sanitizer for clang
Memory sanitizer only makes sense when all dependencies are built with it.
Else we will see many false positives.
2017-08-23 Tim Rühsen <tim.ruehsen@gmx.de>
Update gnulib
2017-08-15 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (_do_handshake): Entangle code
2017-08-15 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/README.md: Add sanitizer options
2017-08-15 Tim Rühsen <tim.ruehsen@gmx.de>
Update gnulib
2017-08-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix 'deflate' content-type decompression
* ../libwget/decompressor.c (deflate_init): Fix deflate initialization
Fixes: #251
Reported-by: Avinash Sonawane
2017-08-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix possible buffer read underflow
* libwget/cookie.c (_path_match): Fix underflow
Fixes: #253
Reported-by: Avinash Sonawane
2017-08-15 Avinash Sonawane <rootkea@gmail.com>
* Suppress clang warning about integer overflow
* src/host.c: Likewise
* src/blacklist.c: Likewise
* src/wget.c: Likewise
2017-08-15 Avinash Sonawane <rootkea@gmail.com>
* libwget/utils.c: Fix unsigned integer overflow
* wget_match_tail: Likewise
* wget_match_tail_nocase: Likewise
Found by fuzzing
2017-08-13 Didik Setiawan <ds@didiksetiawan.com>
Fix DATADIR clash when build using MinGW64
* tests/Makefile.am: Change DATADIR to WGET_DATADIR
* unit-tests/Makefile.am: Likewise
* unit-tests/test.c: Likewise
When build Wget2 using MinGW64 and embedding other library
(Libmicrohttpd), DATADIR macro from Wget2 clash with MinGW64
header.
2017-08-09 Darshit Shah <darnir@gnu.org>
* libwget/bar.c(_bar_set_progress): Fix progress bar printf command to fit total size
2017-08-08 Darshit Shah <darnir@gnu.org>
* libwget/bar.c: Deduplicate code in function wget_bar_set_slots
2017-08-07 Darshit Shah <darnir@gnu.org>
* libwget/bar.c: SPlit duplicated code into function
2017-08-07 Darshit Shah <darnir@gnu.org>
* libwget/bar.c: Replace redundant variable bar->max_slots with bar->nslots
2017-08-07 Darshit Shah <darnir@gnu.org>
* libwget/bar.c(wget_bar_init): Fix progress bar memory allocation value
2017-08-01 Darshit Shah <darnir@gnu.org>
Add documentation for wget_bar_set_slots
2017-08-04 Tim Rühsen <tim.ruehsen@gmx.de>
Hide internal structures/defines from doxygen
* include/wget/wget.h: Use _ as prefix for internals
* libwget/atom_url.c: Likewise
* libwget/cookie.c: Likewise
* libwget/iri.c: Likewise
* libwget/net.c: Likewise
* libwget/rss_url.c: Likewise
* libwget/sitemap_url.c: Likewise
* src/wget_options.h: Likewise
2017-08-04 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for xml parsing functions.
* libwget/xml.c: Rename XML_CONTEXT to _xml_context,
document wget_* functions
* docs/Makefile.am: Sort order of man page files,
add building of libwget-xml.3
2017-08-03 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Improve ASAN and UBSAN sanitizer flags
2017-08-03 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/*.in/*: Update fuzzer corpora
2017-08-03 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/utils.c: Fix param name in docs of wget_strnglob()
2017-08-03 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c: Document 'protocol' for wget_tcp_set_protocol()
2017-08-03 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/buffer_printf.c: Do not document internal defines
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/Makefile.am: Add -Wno-pedantic to suppress dlsym() warnings
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_tlssess_fuzzer
* fuzz/Makefile.am: Add libwget_tlssess_fuzzer
* fuzz/libwget_tlssess_fuzzer.c: New file
* fuzz/libwget_tlssess_fuzzer.in/*: Add fuzz corpora
* libwget/tls_session.c: Prepare code for fuzzing
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_ocsp_fuzzer
* fuzz/Makefile.am: Add libwget_ocsp_fuzzer
* fuzz/libwget_ocsp_fuzzer.c: New file
* fuzz/libwget_ocsp_fuzzer.in/*: Add fuzz corpora
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ocsp.c: Suppress clang warning about integer overflow
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_netrc_fuzzer
* fuzz/Makefile.am: Add libwget_netrc_fuzzer
* fuzz/libwget_netrc_fuzzer.c: New file
* fuzz/libwget_netrc_fuzzer.dict: Add dictionary
* fuzz/libwget_netrc_fuzzer.in/*: Add fuzz corpora
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/netrc.c: Suppress clang warning about integer overflow in hash function
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http_parse.c (wget_http_parse_response_header): Fix 1-byte-read-buffer-overflow
Fix oss-fuzz issue #2823.
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http_parse.c (wget_http_parse_content_disposition): Fix NULL ptr dereference
Fix oss-fuzz issue #2822.
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_hsts_fuzzer
* fuzz/Makefile.am: Add libwget_hsts_fuzzer
* fuzz/libwget_hsts_fuzzer.c: New file
* fuzz/libwget_hsts_fuzzer.in/*: Add fuzz corpora
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
Fix HSTS code regarding time_t overflow
* libwget/hsts.c: Use int64_t instead of time_t,
(wget_hsts_new): Fix possible integer overflow,
(_hsts_db_load): Likewise.
Same type of changes that we applied to HPKP code,
to fix the integer over/underflows found by fuzzing.
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/strlcpy.c: Add documentation
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/stringmap.c: Suppress clang warning about integer overflow
The hash functions rely on integer overflow.
Found by fuzzing.
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/*.in/*: Update fuzzer corpora from oss-fuzz
2017-08-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hpkp.c (wget_hpkp_set_maxage): Fix integer overflow
Fix oss-fuzz issue #2820.
2017-07-31 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/strlcpy.c: Always include string.h
2017-07-31 Tim Rühsen <tim.ruehsen@gmx.de>
Check for fmemopen()
* configure.ac: Check for fmemopen()
* fuzz/libwget_hpkp_fuzzer.c: Skip corpora load if fmemopen is missing
2017-07-31 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/libwget_hpkp_fuzzer.c: Skip corpora loading on WIN32
2017-07-31 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/libwget_hpkp_fuzzer.c: Remove assert.h (syntax-check)
2017-07-31 Tim Rühsen <tim.ruehsen@gmx.de>
Fix DNS caching (regression)
* libwget/net.c: Add 'port' param where needed
Reported-by: Avinash Sonawane
2017-07-31 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/README.md: Add undefined sanitizer to CFLAGS
2017-07-31 Tim Rühsen <tim.ruehsen@gmx.de>
New fuzzer 'libwget_hpkp_fuzzer'
* fuzz/Makefile.am: Add libwget_hpkp_fuzzer
* fuzz/libwget_hpkp_fuzzer.c: New fuzzer
* fuzz/libwget_hpkp_fuzzer.in/*: Add fuzzer corpora
2017-07-31 Tim Rühsen <tim.ruehsen@gmx.de>
Fix integer overflows in HPKP code
* libwget/hpkp.c: Use int64_t instead of time_t,
(_hash_hpkp): Suppress integer overflow detection,
(_hpkp_db_load): Avoid integer overflow
Two integer overflows detected by fuzzing. One is wanted and thus
we suppress detection by clang. The other was unwanted and is fixed.
2017-07-31 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/Makefile.am: Build all fuzzers with 'make oss-fuzz'
2017-07-30 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_http_parse_fuzzer
* fuzz/Makefile.am: Add libwget_http_parse_fuzzer
* fuzz/libwget_http_parse_fuzzer.c: New fuzzer
* fuzz/libwget_http_parse_fuzzer.dict: New dictionary
* fuzz/libwget_http_parse_fuzzer.in/*: Fuzzer corpora
* fuzz/run-clang.sh: Use all availbale cores for fuzzing
2017-07-30 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http_parse.c (wget_http_parse_content_disposition): Fix memleak (found by fuzzing)
2017-07-30 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http_parse.c (wget_http_parse_link): Fix memleak (found by fuzzing)
2017-07-30 Tim Rühsen <tim.ruehsen@gmx.de>
Fix off-by-one buffer read in wget_hpkp_pin_add()
* libwget/hpkp.c (wget_hpkp_pin_add): Fix pinsize value,
(_compare_pin): Fix off-by-one buffer read
* libwget/base64.c (wget_base64_decode_alloc): Add outlen param
* include/wget/wget.h (wget_base64_decode_alloc): Likewise
* fuzz/libwget_base64_fuzzer.c: Add 3rd param to wget_base64_decode_alloc()
Found by local fuzzing
2017-07-30 Darshit Shah <darnir@gnu.org>
* libwget/http.c: Disable some very verbose debug statements
2017-07-30 Darshit Shah <darnir@gnu.org>
Support Wget 1.x `--auth-no-challenge` switch
* src/job.c(job_init): Set default value of challenges_alloc to false
(job_free): Free the challenges vector only if the current job owns it
* src/options.c: Add new switch "--auth-no-challenge"
* src/wget.c(add_url_to_queue): Honor the config.auth_no_challenge
option
(add_url): Same
(process_response_header): Fallback to Server provided challenges if
defaults don't work
2017-07-29 Darshit Shah <darnir@gnu.org>
Fix make syntax-check due to double word
2017-07-29 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http_parse.c (wget_http_parse_header_line): Fix memleaks (found by fuzzing)
2017-07-29 Darshit Shah <darnir@gnu.org>
* fuzz/libwget_utils_fuzzer.c: Fix call to wget_strglob
2017-07-29 Darshit Shah <darnir@gnu.org>
Revert "Prevent tiny memory allocations when globbing"
This reverts commit 2d7fe3e9fc364f282c945f372b9a78f8a56d66ff.
With the above patch, a tiny memory allocation is avoided, but in doing
so, it misses an important case. The glob(3) call never returns a
success when the file does not already exist at the given path.
2017-07-28 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Move to Fedora 26
2017-07-28 Tim Rühsen <tim.ruehsen@gmx.de>
Fix more clang warnings
* libwget/css_tokenizer.lex: Skip -Wsuggest-attribute=pure for clang
* libwget/iri.c (wget_iri_parse): Explicit cast
* src/dl.c: Use 'int' for vector size
* src/options.c: Likewise,
remove 'return' after call to exit(),
(set_long_option): Rename local var 'env' to 'path'
* src/plugin.c: Make global vars 'static',
Use 'int' for vector size
2017-07-28 Tim Rühsen <tim.ruehsen@gmx.de>
Fix more clang warnings
* tests/test-plugin-dummy.c: Make options 'static'
* unit-tests/test-dl.c (string_vector_check): Make vector index 'int'
* unit-tests/test-dl.c (string_vector_dump): Likewise
* unit-tests/test.c (test_hsts): Make port 'uint16_t'
2017-07-28 Tim Rühsen <tim.ruehsen@gmx.de>
Fix clang warnings
* libwget/css.c (wget_css_parse_buffer): Explicitly typecast 'len' to int
* libwget/http.c (_send_callback): Change datatype of 'rc' from int to ssize_t
* libwget/http.c (_recv_callback): Likewise
* libwget/http.c (wget_http_match_no_proxy): Change param name from 'no_proxies' to
'no_proxies_vec' to not to shadow global 'no_proxies'
* libwget/ssl_gnutls.c (check_ocsp_response): Explicit type conversion to unsigned int
* libwget/net.c (wget_tcp_listen): Move declaration of variable 'on' in #ifdef block where it's used
* src/options.c (set_long_option): Change datatypes of 'invert', 'char_insensitive'
and 'value_present' from int to char
Reported-by: Avinash Sonawane
2017-07-26 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/libwget_cookie_fuzzer.in/*: Update corpora
2017-07-26 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/get_all_corpora: Work even if fuzzers are not pre-built
2017-07-26 Akash Rawal <argmlac@gmail.com>
* libwget/iri.c (iri_ports): Remove redundant const
2017-07-25 Akash Rawal <argmlac@gmail.com>
Make wget_iri_set_scheme() update iri->uri
* include/wget/wget.h (wget_iri_st): Add field uri_allocated
* libwget/iri.c: Make wget_iri_set_scheme() update iri->uri
2017-07-24 Akash Rawal <argmlac@gmail.com>
Fix recursive downloads with '-c' option
* bootstrap.conf: Enable safe-read module
* src/wget.c: Fix recursive downloads with '-c' option
* tests/Makefile.am: Add test-c-r.c
* tests/test-c-r.c: Add tests
2017-07-25 Tim Rühsen <tim.ruehsen@gmx.de>
Fix fuzzer regression test for WIN32
* fuzz/main.c: Adjust slash and remove .exe
Reported-by: Gisle Vanem
2017-07-25 Tim Rühsen <tim.ruehsen@gmx.de>
Fail fuzzers if *.in directory does not exist
* fuzz/Makefile.am: Set -DTEST_RUN
* fuzz/main.c: Error on non-exisiting *.in directory
2017-07-23 Darshit Shah <darnir@gnu.org>
Use C99 bool instead of unsigned int in IRI struct and code
2017-07-23 Tim Rühsen <tim.ruehsen@gmx.de>
Change type of port numbers from char * to uint16_t
* include/wget/wget.h: Amend struct wget_iri_st,
amend API
* libwget/hsts.c: Amend port type to uint16_t
* libwget/http.c: Likewise
* libwget/http.h: Likewise
* libwget/http_highlevel.c: Likewise
* libwget/http_parse.c: Likewise
* libwget/iri.c: Likewise
* libwget/net.c: Likewise
* src/blacklist.c: Likewise
* src/host.c: Likewise
* src/wget.c: Likewise
* src/wget_host.h: Likewise
* tests/libtest.c: Likewise
* unit-tests/test.c: Likewise
2017-07-23 Darshit Shah <darnir@gnu.org>
Clean up .gitignore and sort
2017-07-23 Darshit Shah <darnir@gnu.org>
Remove unneeded make variables
2017-07-22 Darshit Shah <darnir@gnu.org>
* libwget/{hsts,hpkp}.c: Don't print all contents as debug messages
2017-07-23 Darshit Shah <darnir@gnu.org>
Fix heap-use-after-free bug in IRI
* libwget/http.c(wget_http_open): iri maybe free'd far before the
connection is closed. Hence, strdup the relevant fields
* libwget/http.c(wget_http_close): Free the newly strdup'ed memory
2017-07-22 Darshit Shah <darnir@gnu.org>
* include/wget/wget.h: Improve setting of noreturn attribute to functions
2017-07-22 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/cookie.c (_compare_cookie2): Fix code to avoid warnings and undefined behavior
2017-05-02 Avinash Sonawane <rootkea@gmail.com>
Implement --force-progress to force show progress bar
* bootstrap.conf: Add isatty module
* src/options.c: Add force_progress option
* src/wget.c: if force_progress then turn on progress bar
* src/wget_options.h: Add force_progress in config struct
2017-05-02 Avinash Sonawane <rootkea@gmail.com>
* src/wget.c: Disable progress bar if output isn't TTY
Reported By: Darshit Shah
2017-07-22 Didik Setiawan <ds@didiksetiawan.com>
Fix digest authentication when server omits algorithm value
* libwget/http.c: Fix digest authentication mechanism when
server omits algorithm value
2017-07-20 Avinash Sonawane <rootkea@gmail.com>
Fix doxygen warnings
* README.md: Mark options
* docs/wget2_manual.md: Mark URLs
* libwget/bar.c: Fix doc for bar_init(),
add doxygen close tag at end of file
* libwget/buffer.c: Fix doc for wget_buffer_reset()
* libwget/console.c: Move unused tag to front of param
* libwget/hpkp.c: Fix documented params for wget_hpkp_new()
* libwget/iri.c: Fix doc for wget_iri_supported()
* libwget/net.c: Fix doc for wget_tcp_printf()
* libwget/utils.c: Move unused tag to front of param
2017-07-21 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Add missing param to print_plugin_help
2017-07-08 Akash Rawal <argmlac@gmail.com>
Add plugin APIs for intercepting URLs
* include/wget/wget.h: Add function declarations
* libwget/plugin.c: Add virtual functions
* src/plugin.c: Add implementation
* src/wget_plugin.h: Likewise
* src/wget.c: Add code that calls the implementation
* src/wget_job.h: Add a variable to store 'accept' action
* tests/Makefile.am: Add libpluginapi.la
* tests/test-plugin-dummy.c: Add a test plugin for testing
* tests/test-plugin.c: Add tests
Plugin API for intercepting URLs has been implemented as per
specifications at https://gitlab.com/akash_rawal/wget2/wikis/Stage-2
2017-07-16 Akash Rawal <argmlac@gmail.com>
* src/dl.c: Fix gcc warnings when compiled without plugin support
2017-07-16 Akash Rawal <argmlac@gmail.com>
* src/dl.c (convert_to_path_if_not): Use wget_aprintf() and simplify the code
2017-06-12 Akash Rawal <argmlac@gmail.com>
Add command line option forwarding for plugins
* include/wget/wget.h: Add API for command line option forwarding
* libwget/plugin.c: Likewise
* libwget/test_linking: Add function from libwget/plugin.c
* src/dl.c: Remove unused dl_search1() and dl_list1(),
use wget_vector_t for pointer arrays
* src/wget_dl.h: Likewise
* src/plugin.c: Implement option forwarding
* src/wget_plugin.h: Likewise
* src/options.c: Add options '--plugin-opt=', '--plugin-help'
* unit-tests/test-dl.c: Use dl_list() instead of dl_list1()
* tests/Makefile.am: Add test plugins pluginoption, pluginfaulty1,
pluginfaulty2
* tests/test-plugin-dummy.c: Implement additional test plugins
* tests/test-plugin.c: Extend tests for testing option processing
Command line option forwarding has been implemented as per
specifications at https://gitlab.com/akash_rawal/wget2/wikis/Stage-1
Several style issues were also fixed (Thanks Ander Juaristi)
2017-07-19 Avinash Sonawane <rootkea@gmail.com>
* src/options.c : Push 'invert' handling from set_long_option() to parse functions
* src/options.c : Make --mirror boolean
* src/options.c (parse_proxy): Modify --proxy to have behavior described below:
1) --proxy is boolean which means inherit proxies from environment
2) --no-proxy is boolean which means don't inherit proxies from environment
3) --proxy=<addrs> sets http_proxy and https_proxy to <addrs> (shorthand!)
4) --no-proxy=<addrs> makes wget2 to not use proxy while dealing with <addrs>
2017-07-19 Avinash Sonawane <rootkea@gmail.com>
* src/options.c (set_long_option): Check if opt->var is NULL before accessing *(opt->var)
2017-07-19 Avinash Sonawane <rootkea@gmail.com>
* src/options.c (set_long_option): Allow empty string i.e. "" to be argument of an option
* src/options.c (parse_bool): If value is an empty string then set opt->var to 0
2017-07-19 Avinash Sonawane <rootkea@gmail.com>
* src/options.c (opt_compare_config_linear): Skip '_' or '-' from s1 only if there is '-' or '_' in s2
* src/options.c (set_long_option): Invert value for boolean option with the prefix --no- even if the
option argument is false/0/off e.g. --no-cache=off
* src/options.c (set_long_option): For long options with value separated by '=', treat empty string("") argument
as if no argument was given
2017-07-17 Avinash Sonawane <rootkea@gmail.com>
* src/options.c (set_long_option): Remove linear search
* src/options.c (_parse_option): Accept command with '_' char e.g. http_proxy
* src/options.c (set_long_option): Remove unnecessary linear search
* src/options.c (set_long_option): options are case-, underscore- and minus-insensitive.
2017-07-19 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Add -fdiagnostics-color only for gcc >= 5
2017-07-16 Tim Rühsen <tim.ruehsen@gmx.de>
Add libwget_html_url_fuzzer
* fuzz/Makefile.am: Add libwget_html_url_fuzzer
* fuzz/libwget_html_url_fuzzer.dict: Add dictionary
* fuzz/libwget_html_url_fuzzer.in/*: New copora
2017-07-16 Tim Rühsen <tim.ruehsen@gmx.de>
Update gnulib
2017-07-16 Tim Rühsen <tim.ruehsen@gmx.de>
Revert "* libwget/http_parse.c (wget_http_print_date): Fix gmtime crash with Wine"
This reverts commit 11d413476bac87d9315727f8ce127e7acdde2066.
This has been fixed by gnulib.
2017-07-16 Tim Rühsen <tim.ruehsen@gmx.de>
Revert "* src/log.c (_write_out): Fix localtime crash with Wine"
This reverts commit e7c78f2e3049c6f862ed06da4424a5b2980ed616.
This has been fixed by gnulib.
2017-07-14 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Use pkg-config to find libidn2 config
2017-07-14 Tim Rühsen <tim.ruehsen@gmx.de>
Use FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION from oss-fuzz
* fuzz/Makefile.am: Remove -DTEST_RUN from AM_CPPFLAGS
* fuzz/main.c: Use #ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2017-07-14 Tim Rühsen <tim.ruehsen@gmx.de>
Check for fuzzer build in helper scripts
* fuzz/get_ossfuzz_corpora: Check if fuzzer were build for fuzzing
* fuzz/run-clang.sh: Likewise
2017-07-14 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/get_all_corpora: New script to update oss-fuzz corpora
2017-07-14 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/*_fuzzer.in/*: Update fuzzer corpora from oss-fuzz
2017-07-11 Tim Rühsen <tim.ruehsen@gmx.de>
Fix buffer_printf() when char type is unsigned
Sometimes 'char' is not enough. C doesn't specify if it is
signed or unsigned. Here we had to explicitly use 'signed char'
instead of 'char'.
Gcc can be switched to unsigned char with -funsigned-char.
Reported-by: Michael <michael@cyber-dome.com>
2017-07-10 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/Makefile.am: Fix static build of libwget_cookie_fuzzer
2017-07-10 Tim Rühsen <tim.ruehsen@gmx.de>
Consolidate response header parsing
* include/wget/wget.h: New prototype wget_http_parse_header_line()
* libwget/http.c (_on_header_callback): Use wget_http_parse_header_line()
* libwget/http_parse.c: New function wget_http_parse_header_line(),
(wget_http_parse_response_header): Use wget_http_parse_header_line()
We had doubled code for HTTP/1.1 and HTTP/2 response header parsing.
Now merged into one function.
Reported-by: Avinash Sonawane
2017-07-10 Akash Rawal <argmlac@gmail.com>
Fix broken Travis-CI builds
* .travis.sh: Print fuzz/test-suite.log on failure
* .travis.yml: Install libunistring-dev
2017-07-10 Tim Rühsen <tim.ruehsen@gmx.de>
Add password parsing to wget_iri_parse()
* libwget/iri.c (wget_iri_parse): Find and set password
* unit-tests/test.c: Test password parsing
2017-07-09 Akash Rawal <argmlac@gmail.com>
Fix const-correctness issue with wget_iri_clone
* include/wget/wget.h: Add 'const' to wget_iri_clone's parameter
* libwget/iri.c: Likewise
2017-07-08 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/run-clang.sh: Needs bash for ctrl-c handling
2017-07-07 Darshit Shah <darnir@gnu.org>
Fix recursive downloads when using HTTP2
* src/wget.c (downloader_thread): Ensure that the job->original_url
field is always set before attempting a download
2017-07-07 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Set default read timeout to 900s
2017-07-07 Tim Rühsen <tim.ruehsen@gmx.de>
Do not use ALPN when not build with HTTP/2 support
* libwget/ssl_gnutls.c (struct _config): Conditionally set .alpn
* src/options.c (init): Set ALPN string only when build with HTTP/2 support
2017-07-07 Tim Rühsen <tim.ruehsen@gmx.de>
* src/log.c (_write_out): Fix localtime crash with Wine
2017-07-07 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http_parse.c (wget_http_print_date): Fix gmtime crash with Wine
2017-07-05 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/Makefile.am: Add link libraries to build cookie fuzzer
2017-07-05 Tim Rühsen <tim.ruehsen@gmx.de>
Disable plugin tests when plugins are disabled
* configure.ac: Add conditional PLUGIN_SUPPORT
* tests/Makefile.am: Enable plugin testing only if PLUGIN_SUPPORT exists
* unit-tests/Makefile.am: Likewise
2017-07-05 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Fix static linking with libidn2
2017-07-04 Tim Rühsen <tim.ruehsen@gmx.de>
Remove h2-14 and h2-16 from ALPN
* libwget/ssl_gnutls.c: Remove h2-14 and h2-16 from default ALPN offer
* examples/http_multi_get.c: Set ALPN to h2,http/1.1
* src/options.c: Likewise
h2-14 and h2-16 were some HTTP/2 drafts, should not be relevant in
the real world now.
2017-07-03 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/Makefile.am: Fix oss-fuzz target for new cookie fuzzer
2017-07-01 Tim Rühsen <tim.ruehsen@gmx.de>
Enhance memtohex fuzzer, rename it to utils fuzzer
* Makefile.am: Rename libwget_memtohex_fuzzer to libwget_utils_fuzzer
* libwget_memtohex_fuzzer.c: Renamed to libwget_utils_fuzzer.c
* libwget_utils_fuzzer.c: New file
* libwget_utils_fuzzer.in/*: Test corpora
* run-clang.sh: Add merge step in ctrl-c handler
2017-06-30 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/libwget_memtohex_fuzzer.c: Add all functions from utils.c
2017-06-30 Tim Rühsen <tim.ruehsen@gmx.de>
Update fuzzer with latest corpora from oss-fuzz
* fuzz/get_ossfuzz_corpora: Enhance corpora merging
* fuzz/libwget_*fuzzer.in/*: Updated fuzz corpora
2017-06-29 Tim Rühsen <tim.ruehsen@gmx.de>
Update gnulib submodule
2017-06-26 Tim Rühsen <tim.ruehsen@gmx.de>
Update fuzz corpora from OSS-Fuzz
* fuzz/get_ossfuzz_corpora: New file to download and merge corpora
* fuzz/*.in/*: New corpora
* fuzz/run-clang.sh: Updated to work with get_ossfuzz_corpora
2017-06-25 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Switch MinGW64 build to Debian
2017-06-24 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (_cert_verify_hpkp): Fix code for GnuTLS < 3.1.3
2017-06-24 Tim Rühsen <tim.ruehsen@gmx.de>
Correctly include config.h into css_tokenizer
* libwget/css_tokenizer.lex: Add config.h via %top directive
* libwget/Makefile.am: Remove sed from make target
2017-06-23 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/cookie.c (wget_cookie_parse_setcookie): Avoid maxage integer overflow
2017-06-23 Avinash Sonawane <rootkea@gmail.com>
*configure.ac: Fix warning about 'AM_PROG_MKDIR_P' macro being deprecated
* README.md: Update gettext required version
2017-06-22 Tim Rühsen <tim.ruehsen@gmx.de>
Increase fuzz coverage for cookie code
* fuzz/libwget_cookie_fuzzer.c: Add more function calls
* fuzz/libwget_cookie_fuzzer.in/*: Add test corpora
2017-06-22 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/libwget_xml_parse_buffer_fuzzer.c: Don't hang when readng from stdin
2017-06-22 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/io.c (wget_update_file): Fix leak found by fuzzing
2017-06-22 Tim Rühsen <tim.ruehsen@gmx.de>
Fix issues in cookie code found by fuzzing
* libwget/cookie.c (wget_cookie_db_load_psl): Fix memleak when
psl_load_file() fails,
(_compare_cookie): Fix strcmp() NULL pointer crash,
(_wget_cookie_normalize_cookie): Fix memleak
2017-06-22 Avinash Sonawane <rootkea@gmail.com>
* src/options.c: Fix array index out of bounds runtime error
2017-06-22 Tim Rühsen <tim.ruehsen@gmx.de>
Enhance creating of libwget/css_tokenizer.c
* Makefile.am: Remove '<stdout>' special handling in coverage rules
* libwget/Makefile.am: Generate css_tokenizer.c with proper automake
macros, prepend include line using sed.
2017-06-22 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/libwget_xml_parse_buffer_fuzzer.c: Increase fuzz code coverage
2017-06-22 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/libwget_base64_fuzzer.c: Add coverage for wget.h inline functions
2017-06-22 Tim Rühsen <tim.ruehsen@gmx.de>
Let CI create online fuzz coverage report
* .gitlab-ci.yml: Place fuzz coverage report in public area
* Makefile.am: Use 'make check' in fuzz directory
* README.md: Add link to fuzz coverage report
* fuzz/Makefile.am: Remove make target 'fuzz-coverage'
* fuzz/coverage.sh: Remove file
2017-06-18 Tim Rühsen <tim.ruehsen@gmx.de>
* po/POTFILES.in: Add libwget/http_parse.c
2017-06-18 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/libwget_cookie_fuzzer.c: Add forgotten file
2017-06-18 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_cookie_fuzzer
* fuzz/Makefile.am: Add libwget_cookie_fuzzer
* fuzz/libwget_cookie_fuzzer.c: New fuzzer
* fuzz/libwget_cookie_fuzzer.in/*: Corpora
* fuzz/run-clang.sh: Add -lpsl and -lgnutls
2017-06-18 Tim Rühsen <tim.ruehsen@gmx.de>
Move parsing from libwget/http.c to libwget/http_parse.c
* libwget/Makefile.am: Add http_parse.c
* libwget/http.c: Remove parse functions
* libwget/http_parse.c: New file with parse functions
2017-06-17 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_base64_fuzzer
* fuzz/Makefile.am: Add libwget_base64_fuzzer
* fuzz/libwget_base64_fuzzer.c: New fuzzer
* fuzz/libwget_base64_fuzzer.in/*: Corpora
2017-06-17 Tim Rühsen <tim.ruehsen@gmx.de>
Increase fuzz coverage for bar.c and rss_url.c
* fuzz/libwget_atom_url_fuzzer.c: Add RSS parsing
* fuzz/libwget_atom_url_fuzzer.dict: Add RSS tags
* fuzz/libwget_bar_fuzzer.c: Increase fuzz code coverage
* fuzz/*.in/*: Update corpora
2017-06-17 Tim Rühsen <tim.ruehsen@gmx.de>
Check slot value in wget_bar_slot_deregister()
* libwget/bar.c (wget_bar_init): Remove redundant xfree()s,
(wget_bar_slot_downloaded): Check value of 'slot' param
2017-06-16 Tim Rühsen <tim.ruehsen@gmx.de>
Fix issues in IRI code found by fuzzing
* include/wget/wget.h: Remove nonnull attribute from wget_iri_compare()
* libwget/iri.c (wget_iri_clone): Fix possible crashes due to random free(),
(wget_iri_compare): Check input arguments against NULL,
(wget_iri_set_scheme): Use string compare instead of pointer compare
2017-06-15 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_iri_fuzzer
* fuzz/Makefile.am: Add libwget_sitemap_url_fuzzer
* fuzz/libwget_iri_fuzzer.c: New fuzzer
* fuzz/libwget_iri_fuzzer.dict: New dictionary
* fuzz/libwget_iri_fuzzer.in/*: Corpora
2017-06-15 Ander Juaristi <a@juaristi.eus>
Fix MinGW compatibility issues
* libwget/buffer_printf.c (_read_precision): do not pass a va_list
as argument.
(_read_field_width): likewise.
2017-06-15 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_sitemap_url_fuzzer
* fuzz/Makefile.am: Add libwget_sitemap_url_fuzzer
* fuzz/libwget_sitemap_url_fuzzer.c: New fuzzer
* fuzz/libwget_sitemap_url_fuzzer.dict: New dictionary
* fuzz/libwget_sitemap_url_fuzzer.in/*: Corpora
* fuzz/run-clang.sh: Add -jobs and -workers
2017-06-15 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/utils.c: Fix param in docs of wget_strglob()
2017-06-15 Tim Rühsen <tim.ruehsen@gmx.de>
Remove nonnnull attribute from functions
* include/wget/wget.h: Remove G_GNUC_WGET_NONNULL from several functions
* libwget/buffer.c: Add explicit checks for NULL
* libwget/buffer_printf.c (wget_buffer_vprintf_append): Likewise
* libwget/net.c: Likewise
The nonnull attribute removes the NULL checks under certain conditions.
That might turn out as a security flaw.
2017-06-15 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/metalink.c: Avoid calling memcpy with src=NULL
2017-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_css_url_fuzzer
* fuzz/Makefile.am: Add libwget_css_url_fuzzer
* fuzz/libwget_css_url_fuzzer.c: New fuzzer
* fuzz/libwget_css_url_fuzzer.dict: New dictionary
* fuzz/libwget_css_url_fuzzer.in/*: Corpora
2017-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/css.c (wget_css_parse_buffer): Fix length calculation
2017-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/libwget_atom_url_fuzzer.dict: Remove empty line at EOF
2017-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Add new fuzzer libwget_atom_url_fuzzer
* fuzz/Makefile.am: Add libwget_atom_url_fuzzer
* fuzz/libwget_atom_url_fuzzer.c: New fuzzer
* fuzz/libwget_atom_url_fuzzer.dict: New dictionary
* fuzz/libwget_atom_url_fuzzer.in/*: Corpora
2017-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Add fuzz corpora from OSS-Fuzz
* *.in/*: New copora
* run-clang.sh: Add needed libraries to fuzzer executables (regression)
2017-06-12 Ander Juaristi <a@juaristi.eus>
docs: Inline docs for net.c
2017-06-12 Ander Juaristi <a@juaristi.eus>
docs: Inline docs for IRI/URI API
2017-06-12 Ander Juaristi <a@juaristi.eus>
docs: Inline docs for buffer and buffer_printf
2017-06-13 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c (wget_http_add_credentials): Remove debug printf
2017-06-13 Tim Rühsen <tim.ruehsen@gmx.de>
New options --http-proxy-user and --http-proxy-passord
* docs/wget2_manual.md: Amend description of user/password options
* docs/wget2_manual.md: Add new param to wget_http_add_credentials()
* libwget/http.c (wget_http_parse_response_header): Add Proxy-Authenticate
HTTP header,
(wget_http_add_credentials): Add Proxy-Authorization HTTP header,
(_on_header_callback): Add Proxy-Authenticate HTTP header
* libwget/http_highlevel.c: Amend call to wget_http_add_credentials()
* src/job.c (job_free): Free proxy_challenges
* src/options.c: Add --http-proxy-password and --http-proxy-user
* src/wget.c (process_response_header): Add status code 407,
(_add_authorize_header): New function,
(http_create_request): Use _add_authorize_header()
* src/wget_job.h: Add JOB.proxy_challenges
* src/wget_options.h: Add config.http_proxy_username and config.http_proxy_password
* unit-tests/test.c: Amend call to wget_http_add_credentials()
2017-06-12 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c: Debug output for certain OCSP warnings
2017-06-11 Akash Rawal <argmlac@gmail.com>
* src/options.c (set_long_option): Fix behavior for options that don't accept arguments and are not boolean
2017-06-11 Akash Rawal <argmlac@gmail.com>
Allow setting destructor to keys to wget_stringmap_t
* include/wget/wget.h: Add wget_stringmap_key_destructor_t and
wget_stringmap_set_key_destructor() declaration.
* libwget/stringmap.c: Add wget_stringmap_set_key_destructor()
definition.
2017-06-11 Akash Rawal <argmlac@gmail.com>
Remove rarely used parameter 'off' from wget_hashmap_create()
* libwget/hashmap.c: Remove 'off' parameter, now defaults to -2,
Add wget_hashmap_set_growth_policy() to set 'off'
* include/wget/wget.h: likewise
* libwget/hpkp.c: Adapt to the change in wget_hashmap_create()
* libwget/hsts.c: Likewise
* libwget/netrc.c: Likewise
* libwget/ocsp.c: Likewise
* libwget/stringmap.c: Likewise
* libwget/test_linking.c: Likewise
* libwget/tls_session.c: Likewise
* src/blacklist.c: Likewise
* src/host.c: Likewise
* src/wget.c: Likewise
2017-06-11 Avinash Sonawane <rootkea@gmail.com>
* unit-tests/test.c: Add tests for wget_http_parse_response_header()
2017-06-10 Tim Rühsen <tim.ruehsen@gmx.de>
Fix integer overflow in metalink code found by OSS-Fuzz
* fuzz/libwget_metalink_parse_fuzzer.repro/5268760606801920:
Reproducer from oss-fuzz
* libwget/metalink.c (_add_piece): Avoid integer overflow
2017-06-09 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/fuzzer.h: Add extern 'C'
2017-06-09 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/README.md: Add code coverage section
2017-06-09 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/Makefile.am: Add clean-local make target
2017-06-08 Tim Rühsen <tim.ruehsen@gmx.de>
Increase fuzz coverage of wget_metalink_parse()
* libwget_metalink_parse_fuzzer.c: Call wget_metalink_sort_mirrors()
* libwget_metalink_parse_fuzzer.dict: Add keywords
* libwget_metalink_parse_fuzzer.in/xml1: Add content
2017-06-08 Tim Rühsen <tim.ruehsen@gmx.de>
Add script for fast checking of fuzz coverage
* fuzz/view-coverage.sh: New helper script
2017-06-08 Tim Rühsen <tim.ruehsen@gmx.de>
Add more fuzz corpora for wget_xml_parse_buffer()
* fuzz/libwget_xml_parse_buffer_fuzzer.in/*: New files
2017-06-08 Tim Rühsen <tim.ruehsen@gmx.de>
Increase fuzz coverage for wget_xml_parse_buffer()
* libwget_xml_parse_buffer_fuzzer.c: Increase fuzz coverage
* libwget_xml_parse_buffer_fuzzer.dict: Add 'style' keyword
2017-06-07 Tim Rühsen <tim.ruehsen@gmx.de>
Use C instead of C++ for fuzzer targets
* configure.ac: Remove AC_PROG_CXX
* fuzz/Makefile.am: Amend *_SOURCES for .c fuzzer targets,
Remove non-portable EXTRA_DIST wildcards,
Add dist-hook to include fuzzer target files,
Add oss-fuzz make target.
* fuzz/fuzzer.h: New file
* fuzz/*cc: Rename to C, include fuzzer.h
* fuzz/main.c: Include fuzzer.h
* fuzz/run-clang.sh: Build and run fuzzer targets made with clang/libFuzzer
2017-06-07 Akash Rawal <argmlac@gmail.com>
Fix name clashes with gnulib
* tests/test-plugin.c: Rename setenv and unsetenv to setenv_rpl
and unsetenv_rpl respectively.
* unit-tests/test-dl.c: Rename rpl_remove to remove_rpl.
Reported by @gvanem
2017-06-06 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/Makefile.am: Remove buffer_printf_perf, stringmap_perf from check_PROGRAMS
2017-06-06 Akash Rawal <argmlac@gmail.com>
Fix sanitizer builds
* .gitlab-ci.yml: Separate sanitizer build from `make distcheck` and
use clang++ as c++ compiler in clang/Fedora build
* .travis.sh: Use clang++ as c++ compiler if CC=clang and
disable sanitizer builds (unstable on Travis-CI)
* .travis.yml: Add lzip package
* .travis_setup.sh: Likewise
2017-06-06 Tim Rühsen <tim.ruehsen@gmx.de>
Remove obsolete files from tests/
* tests/buffer_printf_perf.c: Remove
* tests/stringmap_perf.c: Remove
Reported-by: Gisle Vanem
2017-06-06 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Parallel 'make check' for Debian image
2017-05-30 Akash Rawal <argmlac@gmail.com>
Add basic plugin loading mechanism
* configure.ac: Add configure time tests for plugin support backend.
* include/wget/wget.h: Add basic plugin API
* libwget/Makefile.am: Add new file plugin.c to libwget.la
* libwget/plugin.c: Add plugin API functions (new file)
* src/Makefile.am: Add new files dl.c, wget_dl.h, plugin.c, wget_plugin.h
to wget2
* src/dl.c: Add abstraction for dynamic loading of object files
* src/wget_dl.h: Likewise
* src/plugin.c: Add implementation for loading plugins
* src/wget_plugin.h: likewise
* src/options.c: Add options `--plugin=`, `--local-plugin=`,
`--plugin-dirs=`, `--list-plugins`
* src/wget.c: Add function calls to initialize and finalize plugin
support system
* unit-tests/Makefile.am: Add test-dl, libalpha.la, and libbeta.la
* unit-tests/test-dl.c: Add unit test for src/dl.c
* unit-tests/test-dl-dummy.c: Likewise
* tests/Makefile.am: Add test-plugin, libpluginname.la, and
libpluginexit.la
* tests/test-plugin.c: Add tests for plugin support
* tests/test-plugin-dummy.c: Likewise
* libwget/test-linking.c: Fix warnings with --enable-manywarnings
* unit-tests/test.c: likewise
Plugin loading mechanism has been implemented as per specifications
at https://gitlab.com/akash_rawal/wget2/wikis/Stage-0
2017-06-06 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/Makefile.am: Add test corpora to tarball
2017-06-06 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Use dist-lzip instead of dist-xz
2017-06-06 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Set CXXFLAGS for --enable-sanitize-... options
2017-06-04 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: YAML doesn't like paths starting with */
2017-06-04 Tim Rühsen <tim.ruehsen@gmx.de>
Add OSS-Fuzz reproducers to test suite
* cfg.mk: Exclude *.repro/* from syntax-check
* fuzz/Makefile.am: Add *.repro/* to EXTRA_DIST
* fuzz/libwget_metalink_parse_fuzzer.repro/clusterfuzz-testcase-minimized-5103826937839616:
Reproducer for OSS-Fuzz issue #1915
* fuzz/libwget_xml_parse_buffer_fuzzer.repro/clusterfuzz-testcase-minimized-4704516446355456:
Reproducer for OSS-Fuzz issue #2041
* fuzz/main.c: Scan and test all files from *.repro/
2017-06-04 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/xml.c (getScriptContent): Fix read-off-by-one found by OSS-Fuzz (#2041)
2017-06-04 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Add all .log files to artifacts
2017-06-04 Akash Rawal <argmlac@gmail.com>
* .travis.sh: Fix printing logs when build fails
2017-06-03 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/Makefile.am: Remove lib/ from include directories
2017-06-02 Tim Rühsen <tim.ruehsen@gmx.de>
Use fuzz targets as unit tests for 'make check'
* Makefile.am: Add 'fuzz' directory to SUBDIRS,
tune 'fuzz-coverage' make target,
print info on how to view coverage report.
* configure.ac: Add AC_PROG_CXX for C++ code in fuzz/
* fuzz/Makefile: Removed
* fuzz/Makefile.am: New file
* fuzz/libwget_bar_fuzzer.cc: Fix memleak
* fuzz/main.c: Add code for unit testing
The OSS-Fuzz targets will now be taken for unit testing as well.
That is, they will be tested by 'make check' including our sanitizer
and valgrind checks. The fuzz tests will be run once with each test
corpus from the corresponding '.in' directory.
A 'make fuzz-coverage' generates a coverage report for running all
fuzz targets against their corpora.
2017-06-01 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/libwget_memtohex_fuzzer.cc: Add two test vectors
2017-06-01 Tim Rühsen <tim.ruehsen@gmx.de>
Add make target 'fuzz-coverage'
* Makefile.am: Add target 'fuzz-coverage' to generate a coverage
report for fuzz targets.
* fuzz/Makefile: Add target 'fuzz-coverage'
* fuzz/coverage.sh: New script to call a fuzz target with each corpus.
* fuzz/libwget_metalink_parse_fuzzer.cc: Add check for max input length.
* fuzz/libwget_xml_parse_buffer_fuzzer.cc: Likewise
* fuzz/libwget_robots_parse_fuzzer.cc: Add comment
* fuzz/libwget_robots_parse_fuzzer.in/user_agent2: Amend for max coverage
* fuzz/main.c: selfmade __AFL_LOOP() returns 0 after first invocation.
* fuzz/libwget_memtohex.in: Rename to fuzz/libwget_memtohex_fuzzer.in
* fuzz/libwget_metalink_parse.in: Rename to fuzz/libwget_metalink_parse_fuzzer.in
* fuzz/libwget_robots_parse.in: Rename to fuzz/libwget_robots_parse_fuzzer.in
* fuzz/libwget_xml_parse_buffer.in: Rename to fuzz/libwget_xml_parse_buffer_fuzzer.in
* fuzz/libwget_xml_parse_buffer.options: Removed
* fuzz/libwget_metalink_parse_fuzzer.options: Removed
2017-06-01 Avinash Sonawane <rootkea@gmail.com>
Use HTTPS url instead of SSH to clone the repo
2017-05-31 Tim Rühsen <tim.ruehsen@gmx.de>
Move unit tests from tests/ to unit-tests/
* Makefile.am: Add unit-tests
* cfg.mk: Make syntax-check work with unit-tests/
* configure.ac: Add unit-tests/Makefile
* tests/Makefile.am: Remove unit tests
* unit-tests/Makefile.am: New file with unit test rules
* unit-tests/*.c: Moved from tests/
* unit-tests/files: Moved from tests/
unit-tests/ is for library/API unit testing.
tests/ is for testing wget2 utility.
2017-05-31 Tim Rühsen <tim.ruehsen@gmx.de>
Enhance fuzz code
* fuzz/*_fuzzer.cc: Use malloc() instead of stack memory to help
sanitizers.
* fuzz/libwget_robots_parse.in/user_agent1: Increase code coverage.
* fuzz/main.c: define __AFL_LOOP() is not already defined.
2017-05-31 Akash Rawal <argmlac@gmail.com>
Silence GCC warnings
* tests/test.c (test_parser): Replace hardcoded array size with an expression
* tests/test-parse-html.c (test_parse_files): Likewise
2017-05-30 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/xml.c (getValue): Fix memleak
Found locally via fuzzing.
2017-05-30 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (metalink_parse_localfile): Fix memleak
Found locally via fuzzing.
2017-05-30 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/metalink.c (_metalink_parse): Fix memleak
Found locally via fuzzing.
2017-05-30 Tim Rühsen <tim.ruehsen@gmx.de>
.gitignore: Add generated files from fuzz/ directory
2017-05-30 Tim Rühsen <tim.ruehsen@gmx.de>
Add two fuzz corpora
* fuzz/libwget_metalink_parse.in/tag1: New file
* fuzz/libwget_xml_parse_buffer.in/tag1: New file
2017-05-30 Tim Rühsen <tim.ruehsen@gmx.de>
Fix off-by-one read in XML code
* libwget/xml.c (getToken): Fix off-by-one read
Reported-by: oss-fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1915
2017-05-30 Tim Rühsen <tim.ruehsen@gmx.de>
Fix fuzz minimizing command
* fuzz/README.md: Fix build recipe
* fuzz/run-afl.sh: Fix check whether to call afl-tmin
2017-05-30 Tim Rühsen <tim.ruehsen@gmx.de>
* fuzz/Makefile: Forgot to add to repo
2017-05-29 Tim Rühsen <tim.ruehsen@gmx.de>
Add *.options files to fuzzer
* fuzz/libwget_metalink_parse.options: New file
* fuzz/libwget_xml_parse_buffer.options: New file
Max input len is 64 for OSS-Fuzz, we need larger input for
some fuzz targets.
2017-05-29 Tim Rühsen <tim.ruehsen@gmx.de>
Enhance fuzzing
* cfg.mk: Let make-syntax-check survive
* fuzz/libwget_metalink_parse.dict: New dictionary
* fuzz/libwget_robots_parse.dict: New dictionary
* fuzz/libwget_xml_parse_buffer.dict: New dictionary
* fuzz/libwget_robots_parse.in/disallowed1: Obsolete by afl-cmin
* fuzz/libwget_robots_parse.in/user_agent3: Likewise
* fuzz/libwget_xml_parse_buffer.in/index.html: Removed redundant HTML tags
* fuzz/run-afl.sh: Auto-optimize corpora with afl-tmin
2017-05-29 Tim Rühsen <tim.ruehsen@gmx.de>
Add initial fuzzing code
* fuzz/*: New files
README.md contains instructions how to build and run single fuzzers.
Currently we have fuzzers and corpora for
- wget_memtohex()
- wget_metalink_parse()
- wget_robots_parse()
- wget_xml_parse_buffer()
* fuzz/libwget_bar.in/123456: New file
2017-05-28 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test.c: Add test_strlcpy to cover wget_strlcpy()
2017-05-28 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test.c: Add test for wget_strmemcpy for 100% coverage
2017-05-28 Ander Juaristi <a@juaristi.eus>
Make wget_buffer_realloc static
* libwget/buffer.c (wget_buffer_realloc): rename to _buffer_realloc,
and make it static.
(_buffer_realloc): new function.
This function may overflow if incorrectly used so we make it internal to
'buffer.c'. All the functions there that rely on it know how to use it
correctly.
2017-05-27 Tim Rühsen <tim.ruehsen@gmx.de>
Fix wget_strmemcpy() and add tests for mem.c
* include/wget/wget.h: Remove nonnull attribute from wget_strmemcpy
* libwget/mem.c: Check input values for wget_strmemcpy
* tests/test.c: Add tests for functions of mem.c
2017-05-26 Tim Rühsen <tim.ruehsen@gmx.de>
* AUTHORS: Updated contributor list
2017-05-26 Akash Rawal <argmlac@gmail.com>
* .gitlab-ci.yml: Enable MinGW64 build
2017-05-25 Tim Rühsen <tim.ruehsen@gmx.de>
Fix clang -Wconversion warnings
* include/wget/wget.h (wget_ready_2_transfer): Change 'mode' to int
* libwget/io.c: Likewise
* libwget/hpkp.c: Explicit int to bit conversion
* libwget/http.c: Likewise
* libwget/net.c: Likewise
* libwget/ocsp.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* tests/libtest.c: Likewise
* libwget/iri.c (wget_iri_unescape_inline): Explicit int to char conversion
* libwget/utils.c: Likewise
2017-05-24 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/Makefile.am: Fix CPPFLAGS for libcsstokenizer
2017-05-24 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/Makefile.am: Remove macro warnings
2017-05-22 Didik Setiawan <ds@didiksetiawan.com>
Add support to save file extended attributes
* configure.ac: Check for xattr availability
* src/Makefile.am: Add wget_xattr.h
* src/options.c: Add new config 'xattr',
(parse_execute): Add new option 'xattr
* src/wget.c: (_prepare_file): Add condition for 'xattr',
(http_send_request): Add parameter 'original_url',
(add_url): Assign 'original_url' with proper value,
(download_thread): Add variable 'original_url',
(write_xattr_metadata): New function,
(set_file_metadata): New function
* src/wget_job.h: Add variable 'original_url'
* src/wget_options.h: Add new config 'xattr'
* src/wget_xattr.h: Add new function declaration 'set_file_metadata',
Add fsetxattr() if defined in operating system
These attributes provide a lightweight method of later determining
where a file was downloaded from. Adapted from Wget 1.x.
This patch changes:
* autoconf detects whether extended attributes are available and
enables the code if they are.
* The new flags --xattr and --xattr=no control whether xattr is enabled.
* The original and redirected URLs are recorded as shown below.
* This works for both single fetches and recursive mode.
The attributes that are set are:
user.xdg.origin.url: The URL that the content was fetched from.
user.xdg.referrer.url: The URL that was originally requested.
user.mime_type: Two-part identifier for file formats and format contents.
user.charset: File encoding.
For example, where http://lwn.net redirects to https://lwn.net:
$ wget2 --xattr http://lwn.net
...
$ getfattr -d index.html
user.charset:"UTF-8"
user.mime_type:="text/html"
user.xdg.origin.url="https://lwn.net/"
user.xdg.referrer.url="http://lwn.net/"
2017-05-24 Tim Rühsen <tim.ruehsen@gmx.de>
Fix build for non-Windows envs without poll()
* bootstrap.conf: Add module msvc-nothrow
* libwget/io.c: Include msvc-nothrow.h on _WIN32,
(wget_ready_2_transfer): Fix code for non-Windows envs
2017-05-24 Tim Rühsen <tim.ruehsen@gmx.de>
MinGW cleanup
* include/wget/wget.h: Add const to first param of wget_restrict_file_name
* libwget/utils.c: Likewise
* tests/libtest.c: Remove debug output, start/stop ftp server thread,
popen() without 'b'.
* tests/test-iri.c: Skip test on _WIN32
2017-05-23 Tim Rühsen <tim.ruehsen@gmx.de>
Fix more tests for MinGW build
* include/wget/wget.h: Fixed indentation
* tests/libtest.h (wget_test_file_t): Add restricted_mode member
* tests/libtest.c (_scan_for_unexpected): Respect 'restricted_mode' value,
(wget_test): Likewise.
* test-iri-percent.c: Set WGET_RESTRICT_NAMES_NOCONTROL to expected filename
* tests/test-iri.c: Likewise
* tests/test-iri-subdir.c: Skip test on Windows build
2017-05-23 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/mingw: Fix WINEPATH and ./configure options
2017-05-23 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (_get_header): Restrict file name from Content-Disposition
2017-05-23 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/utils.c (wget_restrict_file_name): Explicitely use signed char
2017-05-23 Tim Rühsen <tim.ruehsen@gmx.de>
Fix test-directory-clash on MinGW+Wine
* ../src/wget.c (_prepare_file): Check for EACCESS in unique loop
Reported-by: Akash Rawal
2017-05-23 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c (wget_test): Sync output streams to avoid garbled output
2017-05-23 Tim Rühsen <tim.ruehsen@gmx.de>
Make _restrict_file_name() public as wget_restrict_file_name()
* include/wget/wget.h: Add wget_restrict_file_name() declaration,
add WGET_RESTRICT_* defines.
* libwget/utils.c: Add wget_restrict_file_name() definition.
* src/options.c (parse_restrict_names): Use WGET_RESTRICT_*,
default to WGET_RESTRICT_NAMES_WINDOWS in _WIN32.
* src/wget.c: Remove restrict_file_name(),
(get_local_filename): Use wget_restrict_file_name().
* src/wget_options.h: Remove RESTRICT_NAMES_* defines.
* tests/libtest.c (_scan_for_unexpected): Use wget_restrict_file_name(),
(wget_test): Use wget_restrict_file_name().
Reported-by: Akash Rawal
2017-05-22 Akash Rawal <argmlac@gmail.com>
Disabled /dev/full test on non-linux systems
* tests/test-wget-1.c: Test full disc only if __linux__ is defined
2017-05-22 Akash Rawal <argmlac@gmail.com>
Fix detecting directories on _WIN32
* src/wget.c (_prepare_file): Check for dir on errno = EACCES
_WIN32 set errno=EACCES on open(<directory>) while Linux sets
errno=EISDIR.
2017-05-22 Akash Rawal <argmlac@gmail.com>
Fix test--accept.c and test--follow-tags.c on Win32
* tests/test--accept.c: Use " instead of ' on command line
* tests/test--follow-tags.c: Remove unneeded ' on command line
Win32 doesn't like 'xxx' on the command line, wants "xxx".
2017-05-20 Akash Rawal <argmlac@gmail.com>
* tests/libtest.c (_write_msg): Flush stderr
Without flushing, the output messages are garbled on
MinGW / Win32 builds.
2017-05-22 Akash Rawal <argmlac@gmail.com>
Fix select() for _WIN32
* libwget/io.c: Include io.h and winsock2.h,
use OS socket descriptor for select()
2017-05-20 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c: Start/Stop HTTPS server again
2017-05-20 Tim Rühsen <tim.ruehsen@gmx.de>
Open files in binary mode where needed
* examples/websequencediagram.c: Use binary mode on file open
* libwget/css.c: Likewise
* libwget/hashfile.c: Likewise
* libwget/http_highlevel.c: Likewise
* libwget/io.c: Likewise
* libwget/xml.c: Likewise
* src/job.c: Likewise
* src/options.c: Likewise
* src/wget.c: Likewise
* tests/libtest.c: Likewise
* tests/stringmap_perf.c: Likewise
This fixes discrepancies between stat/st_size and read bytes on
MinGW / Wine / Windows.
2017-05-19 Tim Rühsen <tim.ruehsen@gmx.de>
Let test suite finish with MinGW + Wine
* contrib/mingw: Amend the MinGW recipe
* libwget/io.c (wget_ready_2_transfer): Wait 10ms before select() on MinGW
* tests/libtest.c: Make 'terminate' a volatile sig_atomic_t.
(_http_server_thread): Add debug output.
(_empty_directory): Fix recursive removing directories.
(wget_test_stop_server): Use wget_thread_cancel() instead of
pthread_kill() + wget_thread_join().
2017-05-17 Akash Rawal <argmlac@gmail.com>
* tests/libtest.c: Remove stray EXEEXT from the command line construction
2017-05-15 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/Makefile.am: Use convenience library to avoid unused macro warnings
2017-05-15 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Remove explicit 'make syntax-check'
2017-05-15 Tim Rühsen <tim.ruehsen@gmx.de>
* Makefile.am: Add 'make syntax-check' to 'make check'
2017-05-15 Tim Rühsen <tim.ruehsen@gmx.de>
Remove nonnull attribute from some functions
* include/wget/wget.h: Remove nonnull attribute from some functions
* libwget/encoding.c: Add explicit checks for NULL
* libwget/io.c: Likewise
* libwget/pipe.c: Likewise
* libwget/strlcpy.c: Likewise
* libwget/utils.c: Likewise
2017-05-12 Gianluca Varisco <gianluca.varisco@gmail.com>
* README: Fixed typo "Accept-Encdoing" -> "Accept-Encoding"
2017-05-12 Akash Rawal <argmlac@gmail.com>
Remove redundant VGSUPPFILE macro
* tests/Makefile.am: Remove VGSUPPFILE macro from libtest.la
* tests/libtest.c: Replace VGSUPPFILE with an expression using SRCDIR
2017-05-03 Vijo Cherian <codervijo@gmail.com>
Moved help strings into options structure
* src/options.c: New enum help_section_t,
new functions print_first() and print_next(),
moved all help strings to struct options.
Print help strings such that it fits in 80 columns
2017-05-03 Avinash Sonawane <rootkea@gmail.com>
* src/options.c (set_long_option): Remove redundant bsearch call
2017-05-03 Avinash Sonawane <rootkea@gmail.com>
* libwget/http.c: Reorder switch cases in ascending order
2017-05-03 Avinash Sonawane <rootkea@gmail.com>
* libwget/http.c: Implement Wayback Machine's X-Archive-Orig-last-modified HTTP header
2017-05-03 Akash Rawal <argmlac@gmail.com>
Make wget_http_connection_t an abstract type
* include/wget/wget.h: Convert wget_http_connection_t to forward declaration
* libwget/http.h: Move wget_http_connection_t definition here
* libwget/Makefile.am: Add new file http.h
* libwget/http.c: Include http.h and add accessor functions
* libwget/http_highlevel.c: Include http.h
* src/wget.c: Replace access to wget_http_connection_t with accessor function calls
2017-05-03 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/xalloc.c: Satisfy syntax-check
2017-05-03 Tim Rühsen <tim.ruehsen@gmx.de>
* examples/getstream.c (header_callback): Use wget_malloc() instead of malloc()
2017-05-03 Tim Rühsen <tim.ruehsen@gmx.de>
Add new function wget_free()
* examples/check_url_types.c: Use wget_xfree() instead of free()
* examples/http_get2.c: Likewise
* examples/print_css_urls2.c: Likewise
* examples/print_html_urls.c: Likewise
* include/wget/wget.h: Add wget_free() and define wget_xfree()
* libwget/xalloc.c: Implement wget_free()
* include/wget/wget.h: Add declaration for wget_free()
* libwget/xalloc.c: Implement wget_free()
2017-05-03 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Enable syntax-check
2017-05-03 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Remove trailing whitespace
2017-05-02 Avinash Sonawane <rootkea@gmail.com>
* tests/libtest.c: Use --no-proxy for wget2 invocation in test-suite
2017-05-02 Avinash Sonawane <rootkea@gmail.com>
Implement `--proxy` switch to import env proxy vars
* src/wget_options.h: Add `--proxy` option
* src/options.c(init): Import env proxy var by default and only if no
corresponding proxy variable is specified on command-line
2017-05-03 Akash Rawal <argmlac@gmail.com>
* src/options.c: Implement optional arguments and separate handling for --no-<option>
2017-05-02 Tim Rühsen <tim.ruehsen@gmx.de>
*libwget/strlcpy.c: Fix wget_strlcpy on OSX / BSD
2017-05-02 Tim Rühsen <tim.ruehsen@gmx.de>
Rename strlcpy to wget_strlcpy
* include/wget/wget.h: Rename and remove gnulib deps.
* libwget/strlcpy.c: Rename function and fall back to strlcpy.
* */*.c: Rename strlcpy to wget_strlcpy.
2017-05-02 Tim Rühsen <tim.ruehsen@gmx.de>
Amend --http-proxy and --https-proxy behavior
* libwget/http.c (_parse_proxies): Alloc vector on demand
* src/options.c (wget_http_set_http_proxy): Return # of proxies
successfully parsed,
(wget_http_set_https_proxy). Likewise.
* src/options.c (init): Empty and undefined proxy variable is the same.
* tests/test.c (test_set_proxy): Amend tests.
2017-05-02 Avinash Sonawane <rootkea@gmail.com>
Remove unnecessary `while` loop & add test
* libwget/http.c (_parse_proxies): Remove non-required `while`
* tests/test.c (test_set_proxy): Add test with leading whitespaces
2017-05-01 Avinash Sonawane <rootkea@gmail.com>
Add tests for wget_http_set_http(s)_proxy() functions
* tests/test.c (test_set_proxy): Add tests for wget_http_set_http_proxy()
* tests/test.c (test_set_proxy): Add tests for wget_http_set_https_proxy()
* libwget/http.c (wget_http_set_http_proxy): Return length of http_proxies if no parse error
* libwget/http.c (wget_http_set_https_proxy): Return length of https_proxies if no parse error
2017-05-01 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Remove WIN32 futimens() implementation
The newest gnulib brings WIN32 futimens().
2017-05-01 Tim Rühsen <tim.ruehsen@gmx.de>
*gnulib: Update
2017-04-30 Tim Rühsen <tim.ruehsen@gmx.de>
Fix syntax-check 'sc_prohibit_have_config_h'
* cfg.mk: Remove sc_prohibit_have_config_h from local-checks-to-skip
* libwget/*.c: Include <config.h> unconditionally
* src/*.c: Likewise
* tests/*.c: Likewise
2017-04-30 Tim Rühsen <tim.ruehsen@gmx.de>
Remove useless parens (syntax-check)
* include/wget/wget.h: Remove useless parens
* libwget/ssl_gnutls.c: Likewise
2017-04-30 Tim Rühsen <tim.ruehsen@gmx.de>
Remove gnulib dependencies from examples and wget.h
* cfg.mk: Add examples as excludes for config.h
* examples/Makefile.am: Remove -I to srcdir and builddir
* examples/*.c: Remove #include <config.h>
* include/wget/wget.h: Remove gettext include and defines
* libwget/private.h: Add gettext include and defines
* src/wget_main.h: Likewise
* tests/libtest.h: Likewise
* src/log.c: Add #include <string.h>
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
* cfg.mk: New file with rules for 'make syntax-check'
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
Remove useless cpp parens (syntax-check)
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
Remove trailing whitespaces (syntax-check)
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
Fix space-tab sequences (syntax-check)
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c: Satisfy sc_require_config_h (syntax-check)
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
* bootstrap: Update to version 19
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
Remove == from scripts (syntax-check)
* .travis.sh: == -> =
* .travis_setup.sh: Likewise
* contrib/gen_option_diff.sh: Likewise
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
Do not include unused strings.h
* examples/getstream.c: Remove #include <strings.h>
* libwget/css.c: Likewise
* libwget/encoding.c: Likewise
* libwget/hashfile.c: Likewise
* libwget/metalink.c: Likewise
* libwget/net.c: Likewise
* libwget/robots.c: Likewise
* src/wget.c: Likewise
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Use EXIT_SUCCESS (syntax-check)
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Remove double colons (syntax-check)
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
* po/POTFILES.in: Update (syntax-check)
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
Spell filesystem 'file system' (syntax-check)
* docs/wget2_manual.md: filesystem -> file system
* tests/libtest.c: Likewise
* tests/libtest.h: Likewise
* tests/test-wget-1.c: Likewise
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c: Use O_NONBLOCK instead of O_NDELAY (syntax-check)
2017-04-29 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Add --disable-doc / --enable-doc (default)
2017-04-27 Darshit Shah <darnir@gnu.org>
* libwget/bar.c: Allocate all memory for progress display together
2017-04-27 Darshit Shah <darnir@gnu.org>
Prevent tiny memory allocations when globbing
* libwget/utils.c: Rename wget_strnglob to wget_strglob. It now calls
glob on the entire string.
* include/wget/wget.h: Change protoype of wget_strnglob
* src/options.c: Change calls to wget_strnglob to use new wget_strglob
calls
2017-04-27 Darshit Shah <darnir@gnu.org>
Improve the benchmark scripts slightly
2017-04-26 Tim Rühsen <tim.ruehsen@gmx.de>
Add error handler for decompression
* include/wget/wget.h: New functions wget_decompress_set_error_handler()
and wget_decompress_get_context().
* libwget/decompressor.c: New functions wget_decompress_set_error_handler()
and wget_decompress_get_context().
* libwget/http.c: Implement and set decompressor error handler.
2017-04-13 Michael Heerklotz <michael.heerklotz@check24.de>
Added a more detailed logging for HTTP errors
* src/wget.c: More detailed logging for HTTP response code
2017-04-25 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Remove double 'help' option
2017-04-24 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/encoding.c (wget_str_to_ascii): Fall back to TR46 transitional on error
2017-04-24 Tim Rühsen <tim.ruehsen@gmx.de>
* .gitlab-ci.yml: Create coverage report and online docs
2017-04-24 Darshit Shah <darnir@gnu.org>
Updated CI configuration
2017-04-25 Tim Rühsen <tim.ruehsen@gmx.de>
* README.md: Update
2017-04-23 Tim Rühsen <tim.ruehsen@gmx.de>
Add Gitlab CI (Debian)
* .gitlab-ci.yml: New file
2017-04-22 Darshit Shah <darnir@gnu.org>
* libwget/buffer_printf.c: Cast output of va_arg correctly
2017-04-21 Avinash Sonawane <rootkea@gmail.com>
* src/options.c (print_version): Remove redundant preprocessor check
2017-04-21 Tim Rühsen <tim.ruehsen@gmx.de>
Fix --chunk-size with missing Content-Length
* src/wget.c (process_head_response): Don't release job after HEAD
* tests/libtest.c: Implement WGET_TEST_SERVER_SEND_CONTENT_LENGTH
* tests/libtest.h: Define WGET_TEST_SERVER_SEND_CONTENT_LENGTH
* tests/test-wget-1.c: Add new tests for --chunk-size
2017-04-13 Tim Rühsen <tim.ruehsen@gmx.de>
* src/job.c (job_validate_file): Fix --chunk-size for partially existing files
2017-04-20 Tim Rühsen <tim.ruehsen@gmx.de>
Hide wget_cookie_st
* include/wget/wget.h: Remove struct wget_cookie_st declaration,
add wget_cookie_to_setcookie(),
add wget_cookie_parse_setcookie(),
change wget_http_parse_setcookie() cookie param.
* libwget/cookie.c: Add struct wget_cookie_st declaration,
(wget_cookie_init): Use xcalloc(),
(wget_cookie_to_setcookie): New function,
(wget_cookie_parse_setcookie): New function,
(_wget_cookie_normalize_cookie): Fix host_only flag.
* libwget/http.c (wget_http_parse_setcookie): Code moved to
wget_http_parse_setcookie(),
(wget_http_parse_response_header): Amend cookie handling.
* tests/test.c (test_cookies): Amend test code and test data.
2017-04-17 Darshit Shah <darnir@gnu.org>
* src/options.c: Handle --version similar to --help
2017-04-18 Michael Heerklotz <michael.heerklotz@check24.de>
Ignore all anchor links instead of only '#'
* examples/check_url_types.c: Modified _normalize_uri() to ignore all anchor links
* examples/print_css_urls2.c: Removed check for anchor links
* src/wget.c: Modified _normalize_uri() and _convert_links() to ignore all anchor links
2017-04-19 Tim Rühsen <tim.ruehsen@gmx.de>
Fix spelling issues found by ka7/misspell_fixer
* include/wget/wget.h: Fix typo
* libwget/base64.c: Likewise
* libwget/http.c: Likewise
* src/wget.c: Likewise
2017-04-18 Tim Rühsen <tim.ruehsen@gmx.de>
* README.md: Mention 'bash ./bootstrap'
2017-04-16 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/encoding.c (wget_memiconv): Treat non-reversible conversion as error
2017-04-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix -c --chunk-size if the file is already complete
* src/wget.c (process_response_header): Check for status 416
* tests/test-wget-1.c: Added 2 tests
2017-04-15 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (_body_callback_context): Change size of max_memory and length to 64bit
2017-04-14 Tim Rühsen <tim.ruehsen@gmx.de>
* benchmarks/bench_https_http*: Add warmup runs
2017-04-13 Michael Heerklotz <michael.heerklotz@check24.de>
Added settings --cut-url-get-vars and --cut-file-get-vars and fixed --backups
* docs/wget2_manual.md: Added doc for the new settings
* src/options.c: Fixed --backups and added --cut-url-get-vars and --cut-file-get-vars
* src/wget.c: Added --cut-url-get-vars and --cut-file-get-vars
* src/wget_options.h: Added --cut-url-get-vars and --cut-file-get-vars
* tests/Makefile.am: Added test-cut-get-vars
* test-cut-get-vars.c: New file
2017-04-13 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/html_url.c (_css_parse_uri): Fix -Wunused-param
2017-04-13 Michael Heerklotz <michael.heerklotz@check24.de>
Fixed crash in convert-links code introduced with html css parsing
* include/wget/wget.h: Removed unused variable.
* libwget/html_url.c: Updated code to always return pointer inside "html" variable.
* test/test-k.c: Updated test to cover the bug.
2017-04-13 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/html_url.c: Remove empty _css_parse_encoding()
2017-04-13 Darshit Shah <darnir@gnu.org>
* libwget/html_url.c: Remove some trailing whitespaces
2017-04-12 Michael Heerklotz <michael.heerklotz@check24.de>
Added support for html css style tag and attribute
* include/wget/wget.h: Add 'size_t len' to wget_css_parse_buffer()
and wget_css_get_urls()
* libwget/css.c (wget_css_parse_buffer): Use yy_scan_bytes() instead
of yy_scan_string()
* libwget/css_url.c: Add param to wget_css_get_urls() and
wget_css_parse_buffer()
* libwget/html_url.c: Add _css_parse_encoding() and _css_parse_uri(),
(_html_get_url): Deal with 'style' attribute,
(wget_html_free_urls_inline): Free url if needed
* libwget/test_linking.c: Add param to wget_css_parse_buffer()
* libwget/xml.c (parseXML): Add check for 'style'
* src/wget.c (css_parse): Add param 'size_t len'
* tests/Makefile.am: Add new test test-parse-html-css
* tests/test-parse-html-css.c: New file
2017-04-12 Tim Rühsen <tim.ruehsen@gmx.de>
Follow link:rel=preload with --page-requisites
* libwget/html_url.c (_html_get_url): Add rel=preload to be followed
* tests/test--page-requisites.c: Add a test href for rel=preload
2017-04-12 Tim Rühsen <tim.ruehsen@gmx.de>
Fix --page-requisites <link> handling
* libwget/html_url.c: Add helper ctx->uri_index,
fix "icon shortcut" -> "shortcut icon",
fix check for "stylesheet"
* src/wget.c (html_parse): Check for !html_url->link_inline
* tests/test--page-requisites.c: Add 'not.txt' URL and reference
2017-04-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add special HTML to test--page-requisites.c
* tests/test--page-requisites.c: Add HTML code
With --page-requisites shortcut icons should not be followed.
Link with rel="stylesheet" should be followed.
2017-04-12 Tim Rühsen <tim.ruehsen@gmx.de>
Fix progress bar when off_t is 32 bits
* include/wget/wget.h: Amend prototype of wget_human_readable()
* libwget/bar.c: Use uint64_t instead of off_t
* libwget/utils.c (wget_human_readable): Change 3rd param off_t -> uint64_t
2017-04-12 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/init.c (wget_global_init): Init console
2017-04-12 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/console.c (_reset_color): Do not reset color if stdout is not a TTY
2017-04-12 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-cut-dirs.c: Add more tests
2017-04-12 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (_prepare_file): Case-insensitive check for WIN32 NUL file
2017-04-12 Michael Heerklotz <michael.heerklotz@check24.de>
Fix --cut-dirs
* src/wget.c (get_local_filename): Add / after host part
* tests/Makefile.am: Add new test 'test-cut-dirs'
* tests/test-cut-dirs.c: New file
2017-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
* Makefile.am: Add empty line to ChangeLog after date/author
2017-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/libtest.c (_ftp_server_thread): Remove redundant check for WIN64
2017-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/pipe.c: Remove redundant check for WIN64
2017-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
Fix handling of -O /dev/null
* src/wget.c (_prepare_file): Return -2 if filename is /dev/null,
(http_receive_response): Check outfd for >= 0
Reported-by: Gisle Vanem
2017-04-11 Darshit Shah <darnir@gnu.org>
Prevent wget2rc from being read during tests
* src/options.c: Treat parse_filename{,s} as string vectors and clear
them with a no-* command line option
* tests/libtest.c: Pass --no-config to all the tests by default
2017-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/css_tokenizer.lex: Use clang #pragma for -Wshorten-64-to-32
2017-04-11 Tim Rühsen <tim.ruehsen@gmx.de>
Fix --chunk-size / -O combination
* src/wget.c (process_head_response): Set metalink->name if
config.output_document is set.
Reported-by: Gisle Vanem
Fixes: #177
2017-04-10 Tim Rühsen <tim.ruehsen@gmx.de>
Generate prettier ChangeLog from git log
* Makefile.am (gen_changelog): Use git log directly without
additional gnulib tools.
2017-04-10 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (_prepare_file): Skip saving to '/dev/null' resp. 'NUL' on WIN32
2017-04-10 Avinash Sonawane <rootkea@gmail.com>
* configure.ac: Add "-fPIC -pie" for Thread sanitizer
2017-04-10 Avinash Sonawane <rootkea@gmail.com>
* configure.ac: Fix test for asan and tsan being mutually exclusive
* configure.ac: Fix test for asan and tsan being mutually exclusive
* configure.ac: Make `./configure --help` document about msan and tsan being mutually exclusive
2017-04-09 Avinash Sonawane <rootkea@gmail.com>
* configure.ac: Check for msan and tsan being mutually exclusive
2017-04-09 Avinash Sonawane <rootkea@gmail.com>
* configure.ac: Check for Valgrind and Sanitizers being mutually exclusive
* configure.ac: Check for valgrind and Sanitizers being mutually exclusive
* configure.ac: Make ./configure --help document above check
* configure.ac: Make ./configure --help document the existing check of asan and msan
2017-04-08 Darshit Shah <darnir@gnu.org>
* docs/libwget.doxy: Fix path to libwget header file for documentation
2017-04-07 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/css_tokenizer.lex: Suppress clang warnings
2017-04-07 Tim Rühsen <tim.ruehsen@gmx.de>
* examples/check_url_types.c: Fix clang warning
2017-04-07 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c: Support TCP Fast Open on OSX via connectx()
2017-04-07 Darshit Shah <darnir@gnu.org>
* configure.ac: Don't complain when exhaustive switch has default case
2017-04-07 Darshit Shah <darnir@gnu.org>
*libwget/http.c: Remove unused attribute from used parameters
2017-04-07 Darshit Shah <darnir@gnu.org>
*libwget/net.c: Silence clang's -Wconditional-uninitialized
2017-04-07 Darshit Shah <darnir@gnu.org>
src/options.c (parse_command_line): Silence compiler warning for precision loss
2017-04-07 Darshit Shah <darnir@gnu.org>
* src/log.c: Silence -Wunused-parameter when not on Windows
2017-04-07 Darshit Shah <darnir@gnu.org>
* configure.ac: Prevent some useless clang warnings
2017-04-07 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c (wget_http_open): Disable push for HTTP/2 connections
2017-04-07 Tim Rühsen <tim.ruehsen@gmx.de>
Revert "* libwget/net.c: Silence -Wundef if TCP_FASTOPEN is undefined"
This reverts commit 2c17f6fc429f4e1edf78b329ff3509d1ed22f392.
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
Fix libraries to use libtool variables
* examples/Makefile.am: Use $(LTLIBICONV) $(LTLIBINTL) $(LTLIBTHREAD)
* src/Makefile.am: Likewise
* tests/Makefile.am: Likewise
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/utils.c (wget_get_screen_size): Fix return value
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
gnulib: Update
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Silence -Wbad-function-cast in WIN32 futimens()
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c: Silence -Wunused-parameter if GnuTLS isn't available
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/utils.c: Silence -Wunused-parameter if HAVE_IOCTL is undefined
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c: Silence -Wundef if TCP_FASTOPEN is undefined
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hashfile.c: Silence -Wundef from gnulib's hash code
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/cookie.c: Silence -Wunused-parameter if without LIBPSL
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* include/wget/wget.h: Silence -Wundef from gnulib's gettext.h
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Reduce warnings from gnulib code
2017-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
gnulib: Update
2017-04-05 Darshit Shah <darnir@gnu.org>
* .gitignore: Update gitignore file with new tests and examples executables
2017-04-05 Darshit Shah <darnir@gnu.org>
* src/options.c: Ensure --hpkp-file is tilde expanded as well
2017-04-05 Tim Rühsen <tim.ruehsen@gmx.de>
Fix -Wundef warnings
* libwget/decompressor.c: #if -> #ifdef
* libwget/http.c: Likewise
* libwget/net.c: Likewise
* src/wget.c: Likewise
2017-04-05 Tim Rühsen <tim.ruehsen@gmx.de>
* m4/wget_manywarnings.m4: Fix for MinGW
2017-04-05 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Remove -Wformat when cross-compiling
2017-04-05 Darshit Shah <darnir@gnu.org>
* src/options.c: Add hpkp-file to output of wget2 --help
2017-04-05 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Only read 'no_proxy' if proxy settings exist
2017-04-05 Tim Rühsen <tim.ruehsen@gmx.de>
Add support for 'no_proxy' environment variable
* include/wget/wget.h: Add flag 'proxied' to wget_http_connection_t,
add arg 'proxied' to wget_http_request_to_buffer(),
add new function declaration wget_http_set_no_proxy(),
add new function declaration wget_http_match_no_proxy().
* libwget/http.c: Add variable 'no_proxies',
(wget_http_open): Check host against 'no_proxy' and set 'conn->proxied'
when appropriate,
(wget_http_send_request): Call wget_http_request_to_buffer() with
conn->proxied,
(wget_http_request_to_buffer): Check 'proxied',
(_parse_proxies): Cleanup,
(_parse_no_proxies): New function,
(wget_http_set_no_proxy): New function,
(wget_http_match_no_proxy): New function
* libwget/init.c (wget_global_deinit): Free no_proxy memory
* libwget/ip.c: Add code in comments (for later use)
* libwget/utils.c (wget_match_tail, wget_match_tail_nocase): Cleanup
* src/options.c (init): Handle 'no_proxy' env variable
* src/wget_options.h (struct config): Add no_proxy member
2017-04-04 Didik Setiawan <ds@didiksetiawan.com>
Fix illegal memory access when parsing null-terminated string
2017-03-28 Didik Setiawan <ds@didiksetiawan.com>
* tests/test.c: Add wget_robots_parse unit test
2017-04-04 Tim Rühsen <tim.ruehsen@gmx.de>
Add futimens() implementation for _WIN32
* src/wget.c: Add futimens() if _WIN32 is defined
Reported-by: Gisle Vanem
Fixes: #167
2017-04-04 Avinash Sonawane <rootkea@gmail.com>
Use time_t instead of long
* include/wget/wget.h : Use time_t instead of long
Reported-by : Gisle Vanem
2017-04-04 Avinash Sonawane <rootkea@gmail.com>
Use https:// instead of git://
* .gitmodule: Use https:// instead of git:// to support proxy environments
2017-04-02 Akash Rawal <argmlac@gmail.com>
* libwget/http.c: Avoid signed integer overflow due to intermediate ptrdiff_t by casting operands to uintptr_t
2017-03-31 Tim Rühsen <tim.ruehsen@gmx.de>
* README.md: Add section about clang's CFI
2017-03-30 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-metalink.c: Free allocated memory to satisfy leak sanitizer
2017-03-30 Tim Rühsen <tim.ruehsen@gmx.de>
Fix --enable-fsanitize-msan for gcc
* configure.ac: Add -fsanitize=leak if available
2017-03-30 Tim Rühsen <tim.ruehsen@gmx.de>
Fix logical operator in brotli code
* libwget/decompressor.c (brotli_decompress): Fix expression
Reported-by: Coverity Scan (cid: 165234)
2017-03-30 Tim Rühsen <tim.ruehsen@gmx.de>
Fix possible NULL ptr dereference
* src/wget.c (process_response): Check value for wget_metalink_parse()
Reported-by: Coverity Scan (cid: 149094)
2017-03-30 Tim Rühsen <tim.ruehsen@gmx.de>
Fix VPATH issue for test suite
* tests/Makefile.am: Set SRCDIR to $(abs_srcdir)
* tests/libtest.c: Remove '../' in front of SRCDIR
* tests/test-i-https.c: Likewise
Reported-by: Akash Rawal
2017-03-29 Akash Rawal <argmlac@gmail.com>
Fix path of valgrind-suppressions in vpath build
* tests/Makefile.am: For libtests.la, define VGSUPPFILE to absolute path to
tests/valgrind-suppressions
* tests/libtest.c: Use VGSUPPFILE macro instead of hardcoded path to
valgrind-suppressions
2017-03-29 Tim Rühsen <tim.ruehsen@gmx.de>
Fix documentation of wget_vaprintf and wget_aprintf
* libwget/printf.c: Both functions do not return NULL.
2017-03-29 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Add -Wdeclaration-after-statement to unwanted options (C89 only)
2017-03-29 Tim Rühsen <tim.ruehsen@gmx.de>
* m4/wget_manywarnings.m4: Call gcc instead of gcc
2017-03-29 Tim Rühsen <tim.ruehsen@gmx.de>
* m4/wget_manywarings.m4: Add extra options only for gcc >= 6
2017-03-29 Avinash Sonawane <rootkea@gmail.com>
Use atoll() instead of atol() for time_t variables
* libwget/cookie.c: Use atoll() instead of atol()
* libwget/hsts.c: Likewise
* libwget/http.c: Likewise
* libwget/ocsp.c: Likewise
* libwget/tls_session.c: Likewise
* libwget/hpkp.c: Change type of maxage from long to time_t
2017-03-29 Tim Rühsen <tim.ruehsen@gmx.de>
* .travis.sh: Set CFLAGS to '-O0 -g'
2017-03-29 Avinash Sonawane <rootkea@gmail.com>
Read and write time_t as long long int
* libwget/cookie.c: Write time_t as long long int
* libwget/hsts.c: Likewise
* libwget/ocsp.c: Likewise
* libwget/tls_session.c: Likewise
* libwget/hpkp.c: Read and write time_t as long long int
Reported-By: Tim Rühsen
2017-03-28 Darshit Shah <darnir@gnu.org>
Prevent a NULL pointer dereference
* src/options.c (parse_header): Prevent derefencing a potential NULL
pointer
Reported-by: Coverity Scan (cid: 165230)
2017-03-28 Darshit Shah <darnir@gnu.org>
Fix resource leak
* libwget/http.c (_on_header_callback): Prevent leaking memory when
there is an empty HTTP2 response
Reported-by: Coverity Scan (cid: 165231)
2017-03-28 Darshit Shah <darnir@gnu.org>
Prevent resource leak
* src/wget.c (_normalize_uri): Prevent leaking resource urlpart when the
url is just "#".
Reported-by: Coverity Scan (cid: 165232)
2017-03-27 Tim Rühsen <tim.ruehsen@gmx.de>
Skip IDNA tests when IDNA not available
* libwget/encoding.c: Fix #ifdef
* tests/test-idn-cmd.c: Skip if IDNA not available
* tests/test-idn-meta.c: Likewise
* tests/test-idn-robots.c: Likewise
* tests/test.c (test_iri_parse): Skip IDN test
2017-03-25 Tim Rühsen <tim.ruehsen@gmx.de>
* examples/check_url_types.c: Move #include <signal.h> further to the top
2017-03-26 Akash Rawal <argmlac@gmail.com>
Fix vpath builds
* examples/Makefile.am: Add -DWGETVER_FILE to AM_CPPFLAGS
* libwget/Makefile.am: Likewise
* src/Makefile.am: Likewise
* tests/Makefile.am: Likewise
* include/wget/wget.h: Include WGETVER_FILE if defined
2017-03-25 Tim Rühsen <tim.ruehsen@gmx.de>
Fix regression regarding chunked transfer-encoding
* libwget/http.c (wget_http_get_response_cb): Save data when chunk
complete in one data packet.
* tests/Makefile.am: Add new test 'test-chunked'
* tests/test-chunked.c: New test
2017-03-23 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/encoding.c: Include idn-free.h on _WIN32
2017-03-23 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/xalloc.c (wget_calloc): Init *p explicit (_noreturn issue)
2017-03-23 Gisle Vanem <gvanem@yahoo.no>
* libwget/xalloc.c (wget_realloc): Initialize variable p to NULL
2017-03-23 Avinash Sonawane <rootkea@gmail.com>
Fix misuse of libidn & libidn2 memory
* libwget/encoding.c (wget_str_to_ascii):
Free libidn memory with idn_free(),
Free libidn2 memory with idn2_free()
2017-03-23 Tim Rühsen <tim.ruehsen@gmx.de>
Fix chunk overflow in HTTP download for 32bit systems
* libwget/http.c: Check for pointer overflow
* tests/test-bad-chunk.c: Adjust tests
Reported-by: Dagobert Michelsen
2017-03-21 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/random.c: Include process.h on Windows
2017-03-21 Tim Rühsen <tim.ruehsen@gmx.de>
Fix console colors for Windows
* include/wget/wget.h: Add WGET_CONSOLE_COLOR_MAGENTA
* libwget/console.c: Add WGET_CONSOLE_COLOR_MAGENTA
* src/log.c: Add colors to write functions
Reported-by: Gisle Vanem
2017-03-21 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/html_url.c (_html_get_url): Fix commented info_printf line
2017-03-21 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Do not include wordexp.h
2017-03-21 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/console.c (wget_console_set_fg_color): Fix WIN32 code
2017-03-21 Tim Rühsen <tim.ruehsen@gmx.de>
NEWS: Mention brotli compression support
2017-03-20 Tim Rühsen <tim.ruehsen@gmx.de>
Use IDNA2008 + TR46 non-transitional for IRIs
* libwget/encoding.c: Fix unistring includes,
(wget_str_to_ascii): Check for libidn2 version
* src/options.c (init): Remove "unistring" output for --version
2017-03-13 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-k.c: Test link within <script> tag
2017-03-10 Tim Rühsen <tim.ruehsen@gmx.de>
Update AUTHORS and NEWS
2017-03-10 Tim Rühsen <tim.ruehsen@gmx.de>
Check NULL value param in wget_iri_escape()
* include/wget/wget.h: Remove G_GNUC_WGET_NONNULL_ALL from wget_iri_escape
* libwget/iri.c (wget_iri_escape): Check 'src' for NULL value
2017-03-10 Tim Rühsen <tim.ruehsen@gmx.de>
* examples/check_url_types.c (html_parse): Fix possible crash
2017-03-09 Tim Rühsen <tim.ruehsen@gmx.de>
Check for invalid 'BASE' URLs in HTML
* src/wget.c (html_parse): Check if 'base' parses correctly
* tests/test-base.c: Add test with invalid base URL
2017-03-08 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/tls_session.c: Make code similar to hsts.c
2017-03-08 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hpkp.c: Make code similar to hsts.c
2017-03-08 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hsts.c: Be compliant with Wget 1.x
2017-03-08 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hpkp.c (wget_hpkp_db_add): NULLify freed pointer
2017-03-07 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c: Improve msg for invalid OCSP stapling status
2017-03-07 Tim Rühsen <tim.ruehsen@gmx.de>
Fix .netrc parsing
* include/wget/wget.h (_wget_netrc_db_st): Rename .key to .host
* libwget/netrc.c (wget_netrc_db_add): Fix parsing
* tests/test.c: New function test_netrc()
2017-03-07 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (process_response_header): Fix formatting
2017-03-05 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (_verify_certificate_callback): Use GnuTLS error printing
2017-03-05 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hpkp.c (_hpkp_db_load): Fix parsing host entries
2017-03-04 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test.c: Remove call of wget_hpkp_set_port()
2017-03-04 Tim Rühsen <tim.ruehsen@gmx.de>
Remove port from HPKP code
* include/wget/wget.h: Remove wget_hpkp_set_port()
* libwget/hpkp.c (struct _wget_hpkp_st): Remove 'port'
* src/wget.c (process_response_header): Do not call wget_hpkp_set_port()
2017-03-03 Tim Rühsen <tim.ruehsen@gmx.de>
Add examples/check_url_types.c
* examples/Makefile.am: Add rule for examples/check_url_types
* examples/check_url_types.c: New file
This adds a Alexa top-X scanner to find out the numbers of
http:// links in landing pages retrieved via https://.
It follows and counts redirections separated by secure and insecure
ones, flags if the landing page was completely secure, counts links
in the landing HTML page (same-page, external, http, https).
2017-03-03 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http_highlevel.c (wget_http_get): Do not loop forever on repeating 401 responses
2017-03-03 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (_verify_certificate_callback): Fix #ifdefs
2017-03-03 Tim Rühsen <tim.ruehsen@gmx.de>
Fix crash on unexpected server PUSH PROMISE (http/2)
* libwget/http.c (_on_frame_recv_callback): Check for valid context,
(_on_header_callback): Likewise
2017-03-03 Tim Rühsen <tim.ruehsen@gmx.de>
Allow new 'expires' format for Set-Cookie header
* libwget/http.c (wget_http_parse_full_date): Allow format
'1 Mar 2027 09:23:12 GMT'
* tests/test.c (test_cookies): Test new format
2017-03-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c (_on_frame_recv_callback): Fix decompressor init
2017-03-01 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/init.c (wget_global_deinit): Free more resources
2017-03-01 Tim Rühsen <tim.ruehsen@gmx.de>
* gnulib: Update
2017-02-28 Tim Rühsen <tim.ruehsen@gmx.de>
Fix URL encoding issue in requests
* libwget/iri.c (wget_iri_escape_query): Do not escape ampersand,
(wget_iri_get_escaped_resource): Use wget_iri_escape_query()
* tests/test-base.c: Add test URLs with spacing in path, query and param
2017-02-28 Tim Rühsen <tim.ruehsen@gmx.de>
Fix URLs to HTTPS where possible
2017-02-28 Tim Rühsen <tim.ruehsen@gmx.de>
* examples/websequencediagram_high.c: Use https URLs
2017-02-28 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c (wget_http_get_response): Check if body member is set
2017-02-28 Tim Rühsen <tim.ruehsen@gmx.de>
* examples/websequencediagram.c: Use HTTPS, fix functionality
2017-02-28 Tim Rühsen <tim.ruehsen@gmx.de>
Fix http to https
* README.md: Fix http to https
* bootstrap.conf: Likewise
* configure.ac: Likewise
2017-02-28 Tim Rühsen <tim.ruehsen@gmx.de>
Exclude some URLs from recursive download with -p.
* include/wget/wget.h: Add link_inline to WGET_HTML_PARSED_URL
* libwget/html_url.c: Add link_inline to _html_context_t,
(_html_get_url): Set ctx->link_inline
* src/wget.c (html_parse): Exclude action and formaction URLs,
exclude certain 'link' URLs from download
2017-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
* README.md: Mention HPKP and brotli support
2017-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
Add brotli decompression, Accept-Encoding 'br'
2017-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
* wget.c (_css_parse_uri): Fix previous commit
2017-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
* wget.c (_css_parse_uri): Fix charset conversion for CSS parsing
2017-02-23 Tim Rühsen <tim.ruehsen@gmx.de>
Fix charset conversion for HTML parsing
* src/wget.c: New helper function _normalize_uri()
(sitemap_parse_text): Check size before allocating stack space
* tests/Makefile.am: Add test-iri-subdir
* tests/test-iri-subdir.c: Add new test
2017-02-23 Tim Rühsen <tim.ruehsen@gmx.de>
*src/wget.c,src/wget_main.h: Include wget.h in wget_main.h
2017-02-22 Tim Rühsen <tim.ruehsen@gmx.de>
Restore --config being a list of filenames
* src/options.c: New functions parse_stringlist_expand(),
parse_filenames().
Use parse_filenames() for --config / --config-file.
2016-12-03 Darshit Shah <darnir@gnu.org>
Support tilde expansion of filenames from wgetrc
* src/options.c (_shell_expand): New function to perform tilde
expansion on a given string
(parse_filename): Parse the input string and perform shell expansion on
it using _shell_expand
(parse_string): Set the parser functions for various options that may be
set from a config file to use parse_filename
(wget_strnglob): Run glob() on only the specified part of the string
2017-02-22 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Print headers before body with -S
2017-02-21 Tim Rühsen <tim.ruehsen@gmx.de>
HPKP: Drop/reject expired entries on save/load
* libwget/hpkp.c: Check max_age on load/save.
2017-02-21 Tim Rühsen <tim.ruehsen@gmx.de>
Remove HPKP entries with zero PINs
* libwget/hpkp.c (wget_hpkp_db_check_pubkey): Fix subdomain default,
(wget_hpkp_db_add): Remove entry on zero PINs
* src/wget.c: Remove comment line
* tests/test.c (test_hpkp): Test this feature
2017-02-20 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (_cert_verify_hpkp): Fix for GnuTLS < 3.1.3
2017-02-20 Tim Rühsen <tim.ruehsen@gmx.de>
Fix memleak in HPKP
* include/wget/wget.h: Changed declaration of wget_hpkp_free()
* libwget/hpkp.c: Use wget_hpkp_free() as destructor function
* libwget/http.c (wget_http_free_hpkp_entries): Amended
* tests/test.c: Fix typos
2017-02-20 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/certs/README: Add info on how to create pin-sha256 values for HPKP
2017-02-20 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test.c: Add unit testing for HPKP
2017-02-20 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hpkp.c (_wget_hpkp_compare_pins): Implement 'includeSubDomains'
2017-02-19 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hpkp.c (wget_hpkp_set_host): Free host before assignment
2017-02-19 Tim Rühsen <tim.ruehsen@gmx.de>
Implement HPKP checking
* include/wget/wget.h: Add function wget_hpkp_db_check_pubkey(),
add WGET_SSL_HPKP_CACHE
* libwget/hpkp.c: Implement wget_hpkp_db_check_pubkey()
* libwget/ssl_gnutls.c: Implement and use _cert_verify_hpkp()
* src/options.c (init): Set WGET_SSL_HPKP_CACHE
2017-02-17 Tim Rühsen <tim.ruehsen@gmx.de>
HPKP API redesign
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Fix position of hpkp options in array
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hpkp.c (wget_hpkp_db_load): Fix -Wformat=
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (init): Fix calls of wget_str_asprintf()
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
libwget/hpkp.c (wget_hpkp_db_load): Fix -Wsign-compare
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
* include/wget/wget.h: Fix HPKP function declarations
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hpkp.c: Fix signed/unsigned format warnings
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hpkp.c (wget_hpkp_new): Fix -Wold-style-definition
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
* include/wget/wget.h: Use WGETAPI for hpkp function declarations
2017-01-09 Ander Juaristi <ajuaristi@gmx.es>
HPKP: version the HPKP file, for the future
* libwget/hpkp.c (wget_hpkp_db_save): write the version number
(wget_hpkp_db_load): check the version number == 1
2017-01-09 Ander Juaristi <ajuaristi@gmx.es>
HPKP: Check file is regular or symlink
* libwget/hpkp.c (wget_hpkp_db_save): check if file is regular or symlink. If symlink, resolve it since unlink(2) does not follow symlinks.
2017-01-08 Ander Juaristi <ajuaristi@gmx.es>
HPKP: Fix memory leaks
* src/wget.c (main, process_response_header): add debug traces
* libwget/http.c (wget_http_parse_public_key_pins): fix memory leaks
* libwget/hpkp.c (__wget_hpkp_free, wget_hpkp_db_load): fix memory
leaks
2017-01-05 Ander Juaristi <ajuaristi@gmx.es>
HPKP: inline docs
2017-01-05 Ander Juaristi <ajuaristi@gmx.es>
HPKP: return WGET_HPKP_ENTRY_EXISTS
2017-01-04 Ander Juaristi <ajuaristi@gmx.es>
HPKP: Define return values.
2017-01-04 Ander Juaristi <ajuaristi@gmx.es>
HPKP: use vector rather than linked list for b64 pins
2016-12-28 Ander Juaristi <ajuaristi@gmx.es>
HPKP: add log traces + fix bugs
2016-12-27 Ander Juaristi <ajuaristi@gmx.es>
HPKP: hpkp complete
2016-12-13 Ander Juaristi <ajuaristi@gmx.es>
HPKP: fix wget_hpkp_db_save()
* src/wget.c (main): call wget_hpkp_db_save() at the end (params
inverted).
* include/wget/wget.h: export wget_hpkp_db_save().
* libwget/hpkp.c (__hashtable_browse_cb): fix fprintf format string.
(wget_hpkp_db_save): check filename is not an empty string.
(wget_hpkp_db_load): likewise.
2016-12-13 Ander Juaristi <ajuaristi@gmx.es>
HPKP: new option --hpkp-file
* src/wget_options.h (struct config): new string hpkp_file.
* src/options.c (struct options): new command-line option --hpkp-file.
(init): set --hpkp-file default to $HOME/.wget-hpkp.
(deinit): free config.hpkp_file.
* src/wget.c (main): call wget_hpkp_db_save() at the end.
2016-12-13 Ander Juaristi <ajuaristi@gmx.es>
HPKP: new option --hpkp-file
2016-12-09 Ander Juaristi <ajuaristi@gmx.es>
HPKP: functions to load & save the database file
* libwget/hpkp.c (__wget_hpkp_new): new function. NO-OP, NEEDS
IMPLEMENTATION.
(__vector_browse_cb): new callback function to browse the vector.
(__hashtable_browse_cb): new callback function to browse the hash
table.
(wget_hpkp_db_save): new function.
(__wget_hpkp_parse_host_line): new function.
(__wget_hpkp_parse_pin_line): new function.
(wget_hpkp_db_load): new function.
2016-11-12 Ander Juaristi <ajuaristi@gmx.es>
Prototype HPKP functions
* include/wget/wget.h: new public function wget_hpkp_db_init().
* libwget/hpkp.c: new file.
2016-11-12 Ander Juaristi <ajuaristi@gmx.es>
Merge from upstream/master
Conflicts: libwget/Makefile.am
2016-11-12 Ander Juaristi <ajuaristi@gmx.es>
HPKP boilerplate
* libwget/Makefile.am: new file hpkp.c.
* src/options.c (print_help, struct options): new command line option '--hpkp'.
(init): initialize HPKP database with wget_hpkp_db_init().
* src/wget_options.h (struct config): new handle 'hpkp' to the HPKP
database.
2016-10-25 Ander Juaristi <ajuaristi@gmx.es>
HPKP: initial commit
2017-02-21 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test.c (test_buffer): Add more tests
2017-02-21 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/buffer.c (wget_buffer_free_data): Set size to 0
2017-02-21 Tim Rühsen <tim.ruehsen@gmx.de>
* Makefile.am: Fix 'make check-coverage'
2017-02-21 Tim Rühsen <tim.ruehsen@gmx.de>
Fix memleak in cookie code
* examples/http_get2.c: Use wget_cookie_db_free() to free cookie db
* libwget/cookie.c (wget_cookie_db_init): Fix #ifdef around PSL code
* libwget/init.c (wget_global_deinit): Use wget_cookie_db_free()
2017-02-03 Tim Rühsen <tim.ruehsen@gmx.de>
* contrib/release: Update
2017-02-03 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Add xz archive format
2017-02-01 Tim Rühsen <tim.ruehsen@gmx.de>
Fix possible file name truncation
* tests/test-parse-html.c: Increase buffer for filename
* tests/test.c: Likewise
2017-01-23 Tim Rühsen <tim.ruehsen@gmx.de>
New function wget_logger_is_active()
* include/wget/wget.h: Add prototype
* libwget/Makefile.am: Add logger.h
* libwget/log.c: Include logger.h
* libwget/logger.c: Include logger.h, add wget_logger_is_active()
* libwget/net.c: Use wget_logger_is_active()
* libwget/private.h: Remove struct _wget_logger_st
2017-01-23 Tim Rühsen <tim.ruehsen@gmx.de>
Use typedefs for function pointer arguments
* include/wget/wget.h: Add typedefs
* libwget/cookie.c: Use typedefs
* libwget/css.c: Likewise
* libwget/css_url.c: Likewise
* libwget/decompressor.c: Likewise
* libwget/hashmap.c: Likewise
* libwget/hsts.c: Likewise
* libwget/http.c: Likewise
* libwget/init.c: Likewise
* libwget/io.c: Likewise
* libwget/list.c: Likewise
* libwget/logger.c: Likewise
* libwget/metalink.c: Likewise
* libwget/net.c: Likewise
* libwget/netrc.c: Likewise
* libwget/ocsp.c: Likewise
* libwget/private.h: Likewise
* libwget/robots.c: Likewise
* libwget/stringmap.c: Likewise
* libwget/tls_session.c: Likewise
* libwget/vector.c: Likewise
* libwget/xml.c: Likewise
* src/blacklist.c: Likewise
* src/host.c: Likewise
* src/options.c: Likewise
* src/wget.c: Likewise
* tests/stringmap_perf.c: Likewise
* tests/test.c: Likewise
2017-01-20 Tim Rühsen <tim.ruehsen@gmx.de>
base46: Use size_t as string length param
2017-01-20 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (restrict_file_name): Fix clang warning
2017-01-19 Tim Rühsen <tim.ruehsen@gmx.de>
Add typedef for wget_vector_browse() callback function
* include/wget/wget.h: Add typedef wget_list_browse_cb_t
* libwget/list.c: Use wget_list_browse_cb_t
2017-01-19 Tim Rühsen <tim.ruehsen@gmx.de>
Add typedef for wget_update() callback functions
* include/wget/wget.h: Add typedef wget_update_cb_t
* libwget/cookie.c: Use wget_update_cb_t
* libwget/hsts.c: Likewise
* libwget/tls_session.c: Likewise
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
gnulib: Update
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/io.c (wget_ready_2_transfer): Fix INF timeout for select()
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Revert "* .travis_setup.sh: Install graphiz and libidn2 on OSX"
This reverts commit 31c287f2ce90593e493c25581b351d7b944b8ff4.
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
* .travis_setup.sh: Install graphiz and libidn2 on OSX
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Fix search for '-e' commands
* src/options.c (set_long_option): Fallback to unsharp linear search,
(opt_compare_execute): Amend params.
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Fallback to select() if poll() not available
* bootstrap.conf: Add module select
* libwget/io.c (wget_ready_2_transfer): Add fallback code
2017-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (http_receive_response): Small code cleanup
2017-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
Add console color abstraction
* docs/Makefile.am: Add libwget-console.3
* include/wget/wget.h: Add console routines
* libwget/Makefile.am: Add libwget/console.c
* libwget/console.c: New file with console functions
* src/log.c: Add WIN32 and console function calls
2017-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
Add function wget_truncate()
* bootstrap.conf: Ad gnulib module ftruncate
* include/wget/wget.h: Add wget_truncate
* libwget/io.c: Add wget_truncate
* src/job.c: Call wget_truncate instead of truncate
The truncate() function is not covered by gnulib.
wget_truncate() is a wrapper around ftruncate(), which is covered
by gnulib.
2017-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/stringmap_perf.c: Use wget_malloc if mmap not available
2017-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/cookie.c (_cookie_db_save): Fix ferror() check
Reported-by: Gisle Vanem
2017-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
* gnulib: Update
2017-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/Makefile.am: Add more libs to LDADD
2017-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (downloader_thread): Slow down on connection errors
2017-01-05 Tim Rühsen <tim.ruehsen@gmx.de>
Let MSVC compile libwget/init.c (wget_global_init)
Reported-by: Gisle Vanem
2017-01-05 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (init): Call wget_net_init()
2017-01-05 Tim Rühsen <tim.ruehsen@gmx.de>
Remove redundant check for _WIN64
2017-01-05 Tim Rühsen <tim.ruehsen@gmx.de>
Add network init function to bootstrap sockets on Windows
* bootstrap.conf: Add gnulib module 'sockets'
* examples/http_get2.c: Call wget_net_init()
* include/wget/wget.h: Add wget_net_init() and wget_net_deinit()
* libwget/init.c (wget_global_init): Call wget_net_init(),
(wget_global_deinit): Call wget_net_deinit()
* libwget/net.c: Add wget_net_init() and wget_net_deinit()
2016-12-17 Tim Rühsen <tim.ruehsen@gmx.de>
Rename wget_str_[v]asprintf to wget_[v]aprintf
* include/wget/wget.h: Rename wget_str_[v]asprintf to wget_[v]aprintf
* libwget/http.c: Likewise
* libwget/iri.c: Likewise
* libwget/printf.c: Likewise
* libwget/vector.c: Likewise
* src/options.c: Likewise
* tests/test-metalink.c: Likewise
2016-12-21 Tim Rühsen <tim.ruehsen@gmx.de>
Adjust GnuTLS priorities
* libwget/ssl_gnutls.c (wget_ssl_init): Use system defaults for
secure_protocol "auto".
(wget_ssl_open): Set compatibility mode for "auto".
2016-12-21 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/cookie.c (wget_cookie_db_init): Fix argument of psl_latest()
2016-12-16 Tim Rühsen <tim.ruehsen@gmx.de>
Reduce redundant code by using strchrnul()
* bootstrap.conf: Add gnulib module strchrnul
* libwget/http.c (_parse_proxies): Remove redundant code
* libwget/ssl_gnutls.c (wget_ssl_open): Likewise
2016-12-16 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2_manual.md: Add description for --config-file
2016-12-16 Tim Rühsen <tim.ruehsen@gmx.de>
Read $SYSTEM_WGET2RC, $WGET2RC and ~/.wget2rc as config file
This patch separates the config files of wget and wget2.
Config files are read in the order they appear on the command line.
Fixes #132
2016-12-16 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (parse_stringlist): Remove redundant code
2016-12-15 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/thread.c: Return a value in dummy wget_thread_cancel()
Reported-by: Gisle Vanem
2016-12-14 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (process_response): Ignore sitemaps with --page-requisites
2016-12-13 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c (selftest_options): Clear config.headers before and after use
2016-12-13 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Relax CLI and config file parser regarding spaces
2016-12-12 Tim Rühsen <tim.ruehsen@gmx.de>
Take advantage of libpsl 0.16+
* libwget/cookie.c (wget_cookie_db_init): Use psl_latest() if possible
2016-12-03 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-bad-chunk.c: Remove WGET_TEST_KEEP_TMPFILES
2016-12-02 Tim Rühsen <tim.ruehsen@gmx.de>
Add tests with bad chunk size in the HTTP response
* tests/Makefile.am: Add test-bad-chunk.c
* tests/test-bad-chunk.c: New file with 3 tests
2016-12-02 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c: Ignore Transfer-Encoding for HTTP/2 requests
2016-11-30 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Respect WGETRC and SYSTEM_WGETRC env vars
2016-11-16 Darshit Shah <darnir@gnu.org>
* docs/wget2_manual.md: Update description of -O
2016-11-16 Darshit Shah <darnir@gnu.org>
Make the visibiity attribute preceed the prototype
* include/wget/wget.h: Make library symbol export attribute
((__visibility__)) preceed the function prototype to work on Windows
with MSVC
* tests/libtest.h: Same
Reported-by: Gisle Vanem
2016-11-16 Darshit Shah <darnir@gnu.org>
Rename LIBWGET_EXPORT to WGETAPI
* include/wget/wget.t: Rename LIBWGET_EXPORT to WGETAPI
* tests/libtest.h: Same
2016-11-16 Darshit Shah <darnir@gnu.org>
Export symbols only from wget.h
* libwget/iri.c: Move exporting of symbol wget_iri_schemes from here
* include/wget/wget.h: To here
2016-11-16 Darshit Shah <darnir@gnu.org>
Replace x{malloc,calloc} calls with wget_* methods
* include/wget/wget.h: Remove preprocessor definitions for xmalloc,
xcalloc and xrealloc
* src/job.c(job_validate_file): Replace xcalloc with wget_calloc
* src/wget.c(main): Same
(process_head_response): Same
(_prepare_file): Same
(http_send_request): Same
2016-11-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix integer overflow in ratio calculation
* libwget/bar.c (_bar_update_slot): Fix integer overflow in ratio calculation
Fixes #125
2016-11-15 Darshit Shah <darnir@gnu.org>
Fix timestamp in If-Modified-Since header
* src/wget.c(http_create_request): Use mtime instead of mtime+1
According to RFC 7238, section 3.3, an origin server may use exact
timestamp matching to implement conditional requests. Hence, Wget must
not modify the mtime at all
2016-11-15 Tim Rühsen <tim.ruehsen@gmx.de>
* src/bar.c (bar_init): Disable progress bar if threading is not available
2016-11-12 Darshit Shah <darnir@gnu.org>
* libwget/bar.c (_bar_set_progress): Typecast the right value to integer
2016-11-11 Tim Rühsen <tim.ruehsen@gmx.de>
Move m4 wget_ functions to m4/
* .gitignore: Add exception m4/wget_manywarnings.m4
* configure.ac: Remove manywarnings m4 code
* m4/wget_manywarnings.m4: Add manywarnings m4 code here
2016-11-11 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Define and use wget_MANYWARNINGS m4 macro
2016-11-11 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ip.c: Fix syntax error in docs
2016-11-09 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/io.c: Use open() instead of creat()
open() is covered by gnulib, creat() not.
2016-11-09 Tim Rühsen <tim.ruehsen@gmx.de>
Use defines for O_CREAT perms instead
* src/log.c (_write_out): Use S_* defines instead of 0644 for perms
* src/wget.c (_prepare_file): Likewise
2016-11-08 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/thread.c: Add missing wget_thread_cancel() dummy
2016-11-08 Tim Rühsen <tim.ruehsen@gmx.de>
* AUTHORS: Update
2016-11-08 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c: Include sys/ioctl.h on Windows.
(_set_async): Use ioctl() instead of ioctlsocket().
Reported-by: Gisle Vanem
2016-11-08 Tim Rühsen <tim.ruehsen@gmx.de>
* include/wget.h: G_GNUC_WGET_PRINT_FORMAT -> G_GNUC_WGET_PRINTF_FORMAT
2016-11-06 Ander Juaristi <ajuaristi@gmx.es>
New function to check for literal IPv4/IPv6 addresses
* bootstrap.conf: Add gnulib module 'inet_pton'
* docs/Makefile.am: Add man page libwget-ip.3
* wget/wget.h (struct wget_iri_st): New field 'is_ip_address'.
* libwget/Makefile.am: Add new file ip.c
* libwget/ip.c: New file defining new function wget_ip_is_family()
* libwget/iri.c (wget_iri_parse): Check for literal IP address
* src/wget.c: Do not add to HSTS if literal IP address
2016-11-08 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Remove old commented code
2016-11-08 Tim Rühsen <tim.ruehsen@gmx.de>
Update gnulib
2016-11-08 Tim Rühsen <tim.ruehsen@gmx.de>
Use gnulib basename
* bootstrap.conf: Add gnulib module 'dirname'
* libwget/io.c: Use base_name() to get file basename
2016-11-07 Tim Rühsen <tim.ruehsen@gmx.de>
* include/wget/wget.h: Fix compilation error
2016-11-07 Tim Rühsen <tim.ruehsen@gmx.de>
* include/wget/wget.h: Define empty LIBWGET_EXPORT if LIBWGET_STATIC is defined
2016-11-07 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/xalloc.c (wget_realloc): Call OOM callback if size is 0
2016-11-07 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Do not check for munmap()
2016-11-06 Ander Juaristi <ajuaristi@gmx.es>
New inline function to compute length of base64 decoded string
* include/wget/wget.h (wget_base64_get_decoded_length): new function
* libwget/tls_session.c (_tls_session_db_load): use
wget_base64_get_decoded_length().
2016-11-03 Tim Rühsen <tim.ruehsen@gmx.de>
Use wget_strdup() instead of strdup()
* examples/getstream.c: Use wget_strdup().
* libwget/cookie.c: Likewise.
* libwget/encoding.c: Likewise.
* libwget/http.c: Likewise.
* libwget/iri.c: Likewise.
* libwget/netrc.c: Likewise.
* src/options.c: Likewise.
* src/wget.c: Likewise.
* tests/test.c: Likewise.
2016-11-03 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hashmap_old.c: Removed
2016-11-03 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Understand 'Debian clang' and 'gcc-x.y' for
2016-11-02 Tim Rühsen <tim.ruehsen@gmx.de>
Fix gcc/clang warnings from the new manywarnings feature
* configure.ac: Suppress -Wunsuffixed-float-constants for gcc,
add -Wno-disabled-macro-expansion to clang flags
* examples/getstream.c: Removed 'unused' attributes from argc and argv.
* include/wget/wget.h: Fix slot to int for bar functions.
* libwget/bar.c: Fix slot to int for bar functions, cast to int,
change type of bitfield 'redraw' to unsigned.
* libwget/hsts.c (wget_hsts_new): Fix int to bitfield conversion.
* libwget/http.c: Cast printf %p format to (void *).
* src/wget.c: Cast printf %p format to (void *),
remove ACTION_DONE from enum actions.
* src/wget_host.h: Fix double declaration of host_remove_job()
* tests/libtest.c (wget_test_check_filesystem): Fix type of 'rc'.
* tests/test-idn-robots.c: Fix comma to semikolon at end of line.
* tests/test.c (test_strcasecmp_ascii): Fix type of loop variable.
2016-11-02 Tim Rühsen <tim.ruehsen@gmx.de>
Replace manywarnings module by our own code
* bootstrap.conf: Remove manywarnings, add warnings
* configure.ac: Replace manywarnings code
The new code works on recent gcc and clang with an overhead of
~100ms instead of ~9s here (without -C).
This is meant for developers only and is activated by either
--enable-gcc-warnings or by touching .manywarnings.
2016-10-23 Darshit Shah <darnir@gnu.org>
Fix parse_header() and add more tests
* src/options.c (parse_header): Fix bug where empty string did not clear
out all the headers
* src/options.c (selftest_options): Fix testcase for parse_header and
add more tests
2016-10-16 Tim Rühsen <tim.ruehsen@gmx.de>
Check for gcrypt.h
* configure.ac: Check for gcrypt.h
* libwget/hashfile.c: Check for HAVE_GCRYPT_H
2016-10-14 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib digest hash fallback
* bootstrap.conf: Add md2, md5, sha1, sha256, sha512 modules
* libwget/hashfile.c: Add code branch to use gnulib functions if needed
2016-10-16 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-iri.c: Fix test to work on non-UTF-8 locales
2016-10-16 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-iri-percent.c: Fix test to work on non-UTF-8 locales
2016-10-16 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test-restrict-ascii.c: Fix test to work on non-UTF-8 locales
2016-10-14 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/hashfile.c: Remove unused defines
2016-10-14 Tim Rühsen <tim.ruehsen@gmx.de>
Make --header replace wget's standard headers
* libwget/http.c (wget_http_create_request): Add 'Host' header
to header list,
(wget_http_send_request): Do not add 'Host' hard-coded,
(wget_http_request_to_buffer): Special treatment of 'Content-Length'
* src/wget.c (http_create_request): Replace wget's HTTP headers by
user-provided headers, except 'Cookie' headers which will be appended.
2016-10-13 Darshit Shah <darnir@gnu.org>
Support --header option
* src/options.c: Add new --header option and a new parse_header()
parsing function for that. Also add self tests for parsing
* src/wget_options.h: Same
* src/wget.c (http_create_request): Add the user added headers to the
HTTP Request
* src/test-wget-1.c: Add a test for the --header option
2016-10-13 Tim Rühsen <tim.ruehsen@gmx.de>
Separate progress bar logic into library and application parts
* include/wget/wget.h: Remove struct _wget_bar_ctx and wget_bat_ctx_t,
amend prototypes of wget_bar functions,
new function wget_bar_write_line()
* libwget/bar.c: Bunch of cleanups and code rearrangements
* src/wget_progress.h: Remove
* src/Makefile.am: Remove src/wget_progress.h
* src/bar.c: Remove mutex usage,
(_error_write) call wget_bar_write_line
* src/log.c: Remove redundant param checks
* src/wget.c: Add struct _body_callback_context,
always call bar_slot_begin() on begin of new download,
use downloader->id as progress slot
* src/wget_bar.h: Amend prototypes of bar_ functions
2016-10-12 Tim Rühsen <tim.ruehsen@gmx.de>
Call bar_update_slot() from main thread
* libwget/bar.c: Fix typos,
(wget_bar_set_slots): Init mem only when needed,
add comments describing Escape sequences
* src/bar.c (bar_update_slots): Take nslots as param
* src/wget.c: Move call to bar_update_slots() from worker to main thread
* src/wget_bar.h: Amend prototype of bar_update_slots()
2016-10-12 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/wget2_manual.md: More changes for Wget2
2016-10-11 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Fix quota calculation
2016-10-11 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c: Fix update of downloaded bytes for progress bar
2016-10-11 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c: Print debug messages using debug_printf()
2016-10-11 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Amend Wget2 banner string
2016-10-11 Tim Rühsen <tim.ruehsen@gmx.de>
* src/host.c (host_queue_free): Also free robots.txt job
2016-10-07 Darshit Shah <darnir@gnu.org>
* configure.ac: Ignore the Stack Protector warnings
2016-10-10 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c: Support compression for HTTP/2
2016-10-07 Darshit Shah <darnir@gnu.org>
Improved testing on Travis
* .travis.sh: Rewrite for clarity and speed. Testing shows that valgrind
and ASan don't play well together. So split their executions.
* .travis.yml: Enable ccache for builds. Also try to update libc6 if
possible
* .travis.yml: Do not run on OSX with CC=gcc. This is because on OSX,
gcc is only a wrapper around clang.
* .travis_setup.sh: Cosmetic changes only
* Makefile.am (check-coverage): Explcicitly disable valgrind tests when
checking coverage
* tests/libtest.c (wget_test): Use a provided suppressions file for
valgrind. This is required since the valgrind version on Travis seems to
be out of sync with libc. This causes valgrind to report a memory bug
falsely.
* tests/valgrind-suppressions: New file with some valgrind suppressions.
Included suppressions are for a valgrind/libc bug and to suppress
reachable memory messages from within gnutls
2016-10-06 Darshit Shah <darnir@gnu.org>
Revert "Test travis"
This reverts commit 75daf2cdc791d1d01892aae9138c103e405a1f53.
I screwed up. Pushed to the wrong repository
2016-10-06 Darshit Shah <darnir@gnu.org>
Test travis
2016-10-05 Darshit Shah <darnir@gnu.org>
* src/wget.c (nop): Add ifddef guards around SIGWINCH
2016-10-05 Tim Rühsen <tim.ruehsen@gmx.de>
Fix progress bar details
* include/wget/wget.h: wget_get_screen_size() must not be pure
* libwget/bar.c (_bar_get_width): Leave one space right to avoid linebreaks
* libwget/utils.c (wget_human_readable): Align # of bytes
* src/bar.c (wget_get_screen_size): Fix return value
2016-10-04 Darshit Shah <darnir@gnu.org>
Export a new function for determining screen dimensions
* include/wget/wget.h: New function wget_get_screen_size. Replaces old
wget_determine_screen_width
* libwget/bar.c (_bar_get_width): Use wget_get_screen_size instead of
wget_determine_screen_width
* libwget/utils.c: Replace function wget_determine_screen_width with a
more generic wget_get_screen_size.
2016-10-04 Darshit Shah <darnir@gnu.org>
Handle SIGWINCH for progress bar
* include/wget/wget.h: New function wget_bar_screen_resized, as an
indicator that the screen size may have changed. Also, wget_bar_update
may now modify the *bar parameter
* libwget/bar.c: Move detection code for screen size into a separate
function called _bar_get_width.
(wget_bar_update): Check if the screen width has changed and
reallocate more space if necessary
* src/wget.c: Install a new signal handler for SIGWINCH
2016-10-03 Darshit Shah <darnir@gnu.org>
Move window size detection to libwget
* include/wget/wget.h: Declare new function wget_determine_screen_width.
Also change prototype of wget_bar_init to not accept a max_width
parameter
* src/utils.c: Move function determine_screen_width from here ...
* libwget/utils.c: ... to here.
* src/utils.{c,h}: Delete empty file
* src/Makefile.am: Remove source files utils.{c,h}
* src/bar.c: Move detection of screen width from here ...
* libwget/bar.c: ... to here
* tests/test.c: wget_bar_init() no longer takes a max_width parameter
2016-10-03 Darshit Shah <darnir@gnu.org>
Cleaner API for progress bar within libwget
* include/wget/wget.h (_wget_bar_ctx): Remove unused elements
expected_size and filename. Rename slotpos to _slotpos to reflect that
it should not be used by the client.
* include/wget/wget.h: Remove declaration for old API functions
bar_register and bar_deregister. Define declarations for
wget_bar_slot_begin, wget_bar_slot_register and
wget_bar_slot_deregister.
* libwget/bar.c (_bar_slot_status_t): Define new enum to store the
status of a slot of the progress bar.
(_bar_slot_t): Remove unused element last_ctx. Also, define slot
elements: filename, file_size, bytes_downloaded and status.
(wget_bar_slot_begin): Define new function. Invoked when the client
has started downloading a new file.
(wget_bar_slot_register): New function to register a new file in a
progress bar slot.
(wget_bar_deregister): Remove old function
(wget_bar_slot_deregister): New function, called after file has
finished downloading. Successfully or unsuccessfully.
(wget_bar_deregister): Remove old function
(_bar_set_progress): last_ctx is no longer used. Instead data is
stored within the slot struct itself
(_bar_update_slot): Same
(_bar_print_final): Same
(wget_bar_deinit): Free the filename stored in the slot
* src/bar.c: Edit to reflect the changes in libwget API
* src/wget.c (_get_header): Same
(http_send_request): Same
(http_receive_response): Same
* src/wget_bar.h: Same
2016-10-03 Darshit Shah <darnir@gnu.org>
* libwget/bar.c: Remove mutex stdout
The mutex stdout was meant to ensure that multiple routines don't write
to the screen concurrently. However, this mutex is not required, since
such syncronization should be handled by the client using the library.
All other library methods for the progress avoid any form
synchronization primitives for this reason
2016-10-03 Darshit Shah <darnir@gnu.org>
* src/bar.c: Rename mutex to bar_mutex
2016-10-02 Darshit Shah <darnir@gnu.org>
* libwget/http.c: Remove unused struct _body_callback_context
2016-09-30 Tim Rühsen <tim.ruehsen@gmx.de>
Better code coverage for HTML parsing
* tests/test-idn-meta.c: Add HTML5 meta charset
* tests/test-meta-robots.c: Add meta robots 'all' and 'follow'
2016-09-30 Darshit Shah <darnir@gnu.org>
Mark some functions as pure
* libwget/cookie.c (_compare_cookie{,2}): Mark as pure
* libwget/encoding.c (_utf8_is_valid): Same
* libwget/hsts.c (_compare_hsts): Same
* libwget/ocsp.c (_compare_ocsp): Same
* libwget/netrc.c (_compare_netrc): Same
* libwget/tls_session.c (_compare_tls_session): Same
2016-09-30 Tim Rühsen <tim.ruehsen@gmx.de>
Rename include/libwget.h to include/wget/wget.h+wgetver.h
2016-09-29 Tim Rühsen <tim.ruehsen@gmx.de>
Add tests for CSS parsing
* tests/Makefile.am: Add test-parse-css.c
* tests/test-parse-css.c: New file including two tests
2016-09-29 Tim Rühsen <tim.ruehsen@gmx.de>
* Makefile.am: Remove unwanted stuff from coverage report
2016-09-29 Tim Rühsen <tim.ruehsen@gmx.de>
Reduce Travis OSX build overhead
2016-09-29 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test.c: Add wget_bar_* unit test
2016-09-29 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/bar.c: Cosmetics, param check for wget_bar_init()
2016-09-28 Darshit Shah <darnir@gnu.org>
Don't dereference NULL pointer when copying filename
* libwget/bar.c (wget_bar_deregister): Make sure filename is not NULL
before calling strdup() on it
2016-09-28 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c: Check WITH_LIBNGHTTP2 before referring nghttp2_nv
2016-09-28 Tim Rühsen <tim.ruehsen@gmx.de>
Fix race condition when pipelining reuqests
* libwget/http.c: Add streamid to debug messages
* src/progress.h: Remove member downloader and head from _body_callback_context
* src/wget.c (downloader_thread): Keep track of locking,
(_get_header): Remove reference to downloader,
(http_send_request): Replace downloader with job
With HTTP/2 pipelining (parallel streams per connection) is active.
The bug fixed stops file descriptor leaks and writing data into wrong
files.
2016-09-27 Dagobert Michelsen <dam@opencsw.org>
* README.md: Add build status for OpenCSW
2016-09-28 Tim Rühsen <tim.ruehsen@gmx.de>
* src/net.c (wget_tcp_resolve): Fix mutex unlocking
2016-09-28 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (add_url, process_response): Fix NULL pointer dereference
Reported-by: Coverity
2016-09-26 Darshit Shah <darnir@gnu.org>
* src/wget.c (establish_coneection): Don't crash when no mirrors defined for metalink file
2016-09-26 Darshit Shah <darnir@gnu.org>
* libwget/net.c (wget_tcp_resolve): Don't sleep with an acquired mutex
2016-09-27 Darshit Shah <darnir@gnu.org>
Support dynamic thread allocation in progress bar
* include/libwget.h.in: Add new function wget_bar_set_slots
* libwget/bar.c (_wget_bar_st): Add new struct member max_slots to store
the maximum number of slots of the progress bar
(wget_bar_init): Initialize the memory for all the possible
progress_bars
(wget_bar_set_slots): New function to modify the number of progress
slots at runtime. Can only increase the number of slots, not decrease.
* src/bar.c(bar_init): Remove unneeded variable lf. bar_init() is
invoked before any threads are created, hence do not print the required
newlines. This is now done by wget_bar_set_slots
(bar_update_slots): Wget2 interface for libwget's wget_bar_set_slots
(_error_write): Fix the position of acquiring the mutex. Don't make
changes to the screen while some other progress bar function may be
running
* src/bar.h: New function bar_update_slots
* src/wget.c: Create global variable nthreads.
(downloader_thread): Update the number of progress bar slots
* src/wget.h: New global variable nthreads
2016-09-27 Tim Rühsen <tim.ruehsen@gmx.de>
Simplify dynamic creation of threads
* src/bar.c (bar_init): Use config.max_threads
* src/options.c: Remove config.num_threads
* src/options.h: Remove config.num_threads
* src/wget.c (main): Use config.max_threads, remove async_urls
2016-09-27 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (main): Fix main loop
This also fixes the CTRL-C issue.
2016-09-27 Tim Rühsen <tim.ruehsen@gmx.de>
Fix unescaping of '+' in URL
* libwget/iri.c (wget_iri_unescape_inline): Do not touch '+'.
(wget_iri_parse): Replace '+' by ' ' in query part.
* tests/test.c (test_iri_parse): Add more tests
2016-09-26 Darshit Shah <darnir@gnu.org>
Make wget_bar_update update the entire progress
2016-09-26 Darshit Shah <darnir@gnu.org>
Draw animated progress bar for unknown file size
* libwget/bar.c: Use a tick counter and draw an animated progress bar,
similar to Wget 1.x when the file size is unknown
2016-09-26 Darshit Shah <darnir@gnu.org>
* configure.ac: Enable support for disabling assertions
2016-09-26 Tim Rühsen <tim.ruehsen@gmx.de>
* README.md: Add Coverity and Coveralls.io badge
2016-09-25 Darshit Shah <darnir@gnu.org>
Update travis script to psuh to coveralls.io
* .travis.sh: Run `make check-coverage` when running with CC=gcc
* .travis.yml: Use the newer trusty tahir builds for updated packages
* .travis.yml: Refactor. Split out the OSX installation steps into
.travis_setup.sh
. .travis_setup.sh: Same
* Makefile.am: Add --ignore-errors source to lcov command line
2016-09-25 Darshit Shah <darnir@gnu.org>
* Makefile.am: Add targets for checking code coverage
2016-09-23 Darshit Shah <darnir@gnu.org>
Improved progress bar functioning
2016-09-23 Darshit Shah <darnir@gnu.org>
Clean up progress bar code
Saving the max, cols and ratio to the slot structure was an optimization
used to prevent unneeded refreshes of the progress bar on slow
connections. However, with the asynchronous progress bar, this
optimization is no longer necessary as we refresh the progress bar far
fewer times already. Also, as other elements like the ETA are added to
the progress bar, these checks will only cause more problems as the ETA
would need to be updated even if no data has been downloaded in some
time.
* libwget/bar.c: Remove ratio, max, cur, cols and first from the
_wget_slot_st struct and eliminate all references to them.
2016-09-23 Darshit Shah <darnir@gnu.org>
Print a different progress bar when size is unknown
* libwget/bar.c(_wget_bar_st): New struct members known_size and
unknown_size to denote the character with which the progress bar is
filled in these two cases
(wget_bar_init): Initialize the new struct members with the right data
(wget_bar_update): Choose and print the right character based on
whether the size is known or not.
(_bar_print_final): Same
(wget_bar_deinit): Free the struct members
2016-09-23 Darshit Shah <darnir@gnu.org>
* src/bar.c(_error_write): Fix another potential race condition
In this case, the lock acquisition and release is done around the for
loop instead instead of around the call to wget_bar_update. By creating
such a coarse critical section, we ensure that the entire screen has
been redrawn for the user before any further changes to it are made.
This is especially the case when error_printf() is invoked in quick
succession which would cause multiple instances of wget_update_thread()
to run simultaneously, greatly increasing the lock contention.
2016-09-23 Darshit Shah <darnir@gnu.org>
* src/bar.c (_bar_update_thread): Fix a potential race condition
2016-09-20 Darshit Shah <darnir@gnu.org>
Improve accuracy of wget_human_readable
* libwget/utils.c (wget_human_readable): Set acc to 1000 and print to 2
decimal places. This is similar to the settings used in Wget 1.x.
* libwget/bar.c (_bar_slot_t): Define element human_size to be as large
as _BAR_DOWNBYTES_SIZE.
2016-09-20 Tim Rühsen <tim.ruehsen@gmx.de>
Use wget_human_readable() from Wget1.x
* bootstrap.conf: Remove module 'human'
* include/libwget.h.in: Amend wget_human_readable()
* libwget/bar.c: Use new function wget_human_readable()
* libwget/utils.c: Replace wget_human_readable()
* src/wget.c: Use new function wget_human_readable()
2016-09-20 Tim Rühsen <tim.ruehsen@gmx.de>
Print human readable total number of bytes in progress bar
* include/libwget.h.in: Add wget_human_readable_alloc()
* libwget/utils.c: Add wget_human_readable_alloc()
* libwget/bar.c: Use wget_human_readable_alloc()
* src/bar.c (bar_init): Set log function after call to wget_bar_init()
* src/wget.c (main): Use wget_human_readable() to print bottom line of bar
2016-09-20 Tim Rühsen <tim.ruehsen@gmx.de>
Use libwget alloc functions in CSS parser
* libwget/css.c: New wrapper functions yyalloc() and yyrealloc()
* libwget/css_tokenizer.lex: Set options noyyalloc and noyyrealloc
2016-09-19 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c: Fix calculation of quota
2016-09-19 Darshit Shah <darnir@gmail.com>
* README.md: Fix typo
2016-09-17 Darshit Shah <darnir@gmail.com>
Retain a copy of download context for progress bar
When the screen is scrolled or resized, we often need to redraw the
entire progress bar. However, when some threads have completed
downloading, this can cause those progress slots to become blank since
their contexts were deleted and hence lost. To prevent this, keep a copy
of the last context in the slot, so we can access it later for printing
the progress bar.
* libwget/bar.c (_bar_slot_t): New member, last_ctx
(wget_bar_deregister): Create a copy of the context just before we
deregister. This ensures that we copy the latest data for printing
(wget_bar_update): If no context is registered, then try printing the
last context available
(_bar_print_final): Make the method signature similar to
wget_bar_update for consistency
2016-09-19 Tim Rühsen <tim.ruehsen@gmx.de>
Fix Robots Exclusion Standard
* include/libwget.h.in: Add function wget_list_getnext().
* libwget/list.c: Add function wget_list_getnext().
* libwget/robots.c: Fix memory leak.
* src/host.c (host_remove_job): Cleanup queue after downloading and
scanning robots.txt.
* src/job.h (struct JOB): Add flag 'requested_by_user'.
* src/wget.c (add_url_to_queue): Set 'requested_by_user',
(add_url): Fix checking for disallowed paths.
* tests/Makefile.am: Add test 'test-robots'.
* tests/test-robots.c: New test to prove robots functionality.
Special handling for automatic robots.txt jobs
==============================================
What can happen with --recursive and --span-hosts is that a document from hostA
has links to hostB. All these links might go into the hostB queue before robots.txt
is downloaded and parsed. To avoid downloading of 'disallowed' documents, the queue
for hostB has to be cleaned up right after downloading and parsing robots.txt.
Any links links that have been explicitly requested by the user are still downloaded.
2016-09-14 Darshit Shah <darnir@gmail.com>
Use gnulib human module for human readable file size
* bootstrap.conf: Add the human module and its dependency unistd
* include/libwget.h.in: Replace method signature for wget_human_readable
* libwget/bar.c (_bar_slot_t): Add a new struct memeber for storing the
human readable string that it printed on the progress bar
(wget_bar_init): Initialise the new human_size struct member
(wget_bar_update): Use the new wget_human_readable() method
(_bar_print_final): Same
(wget_bar_deinit): Free the allocated memory for each slot
* libwget/utils.c (wget_human_readable): Replace the old function with a
call to the human_readable() method from gnulib
2016-09-14 Darshit Shah <darnir@gmail.com>
Handle return value of wget_thread_create
* src/bar.c: Handle return value of wget_bar_create and fallback to
quiet mode if progress bar cannot be drawn
2016-09-14 Darshit Shah <darnir@gmail.com>
Update gnulib module
2016-09-11 Darshit Shah <darnir@gmail.com>
Split logging functions into stdout and stderr
2016-09-10 Darshit Shah <darnir@gmail.com>
Fix location of error messages in progress bar
* src/bar.c (_error_write): New logging callback function for error
messages which will print the messages to the top of the progress bars
* src/log.c (log_write_error): New public method for writing error
messages to screen
* src/log.h: Same
2016-09-14 Darshit Shah <darnir@gmail.com>
Separate out the last update of the progress bar
When the progress bar is updated for the last time (whether exiting due
to error, or download complete), we may want to print information not
normally presented in the progress bar, like total time taken. To allow
this, separate out the printing of the last update of the progress bar
* include/libwget.h.in (_wget_bar_ctx): Remove unused members, final and
cond
* libwget/bar.c: Separate out the bar slot selection for reuse.
(_bar_print_final): New method for printing the last update of a
progress bar
2016-08-08 Tim Rühsen <tim.ruehsen@gmx.de>
Fix wget_bar_free()
2016-08-07 Darshit Shah <darnir@gmail.com>
Better naming of functions
2016-08-08 Darshit Shah <darnir@gmail.com>
Separate out bar_deinit and free'ing memory
* libwget/bar.c (wget_bar_init): Invoke wget_bar_deinit() to free up the
memory allocated to the various progress bar sections. Similarly, invoke
wget_bar_free() to free up the memory allocated to the progress bar
itself
2016-09-14 Darshit Shah <darnir@gmail.com>
Use xfree, xmalloc and xcalloc
* libwget/bar.c: Replace all calls to free(), malloc() and calloc() with
xfree(), xmalloc() and xcalloc() respectively
* libwget/hashmap.c: Same
2016-08-07 Darshit Shah <darnir@gmail.com>
Change tabs to spaces when not at Beginning of line
2016-08-07 Tim Ruehsen <tim.ruehsen@gmx.de>
Fix compiler warnings when IOCTL is not avaialble
* src/utils.c (determine_screen_width): Make sure there are no unused
variables when IOCTL is not available
2016-08-07 Darshit Shah <darnir@gmail.com>
Make compiler happy about strict-prototypes and shadowed variables
2016-08-06 Darshit Shah <darnir@gmail.com>
Use pthread_cancel to kill a thread
* include/libwget.h.in: Export new function wget_thread_cancel to kill
an existing thread nicely.
* libwget/thread.c: Same
* src/bar.c: Use the cleaner wget_thread_cancel() method to kill the
progress bar instead of polling for a variable.
2016-07-28 Darshit Shah <darnir@gmail.com>
Create an asynchronous progress bar
Give the progress bar its own thread and let it update the entire
display asynchronously at a specified time interval. The existing
implementation refreshes the progress bar for each network packet
downloaded. Over multiple downloader threads and a high speed network
connection this can lead to far too many redrawings of the screen. Also,
each of the downloader threads will block while trying to acquire the
thread mutex because another thread just retrieved a packet. While I
haven't profiled it, it seems like there would be extremely high lock
contention in the existing implementation. Instead, with a separate
thread, we can update all the progress bar slots simultaneously at
regular intervals.
* bootstrap.conf: Include Gnulib module "ioctl"
* include/libwget.h.in: Define always_inline, flatten and deprecated
compiler attributes for both GCC and Clang
* include/libwget.h.in: Export new functions wget_human_readable,
wget_bar_register and wget_bar_deregister.
* include/libwget.h.in (wget_http_response_t): Add new element
"cur_downloaded" to struct. This element keeps a track of the raw
number of bytes downloaded in the response
(_wget_bar_ctx): Define new struct for storing the progress bar
context.
* libwget/bar.c: Fix display of downloaded ratio. Ensure it does not
exceed 100% by comparing the raw downloaded bytes instead of
uncompressed downloaded bytes.
Add support for printing the filename and downloaded bytes to the
progress bar.
* libwget/http.c (wget_http_response_cb): Store the raw number of
bytes downloaded from the network in the response data
* libwget/utils.c (wget_human_readable): New function to convert an
int value to a human readable string
* src/bar.c: Use the entire screen width instead of just 70 columns
for the progress bar.
Provide methods to register and deregister a progress bar
context
(wget_bar_update_thread): New method for the progress bar thread
to update the output periodically.
* src/bar.h: Same
* src/job.h: Move definition of struct DOWNLOADER from main.c to
here
* src/progress.h: Move definition of _body_callback_context from
main.c to here
* src/utils.c: Add new method to determine the width of the screen
* src/utils.h: Same
* src/wget.c: Use the new progress bar contexts. Update, register
and deregister them
(main): Deinit the progress bar only if it was enabled
* src/Makefile.am: Add new files, progress.h, utils.c, utils.h
2016-09-16 Tim Rühsen <tim.ruehsen@gmx.de>
Fix following relative links
* src/wget.c (html_parse): Add only absolute URLs to 'known_urls'.
* tests/test-base.c: Test that the changes work.
Reported-by: Jaaap@github.com
2016-09-16 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/iri.c (_normalize_path): Fix return value
2016-09-16 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (add_url): Check pattern list for URL domain earlier.
This avoids wrong messages about why not following an URL.
2016-09-15 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/io.c (wget_update_file): Add comment regarding owner
flags when using mkstemp().
2016-09-14 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (add_url): Avoid theoretical NULL ptr dereference
Reported-by: Coverity
2016-09-14 Tim Rühsen <tim.ruehsen@gmx.de>
* src/wget.c (process_response_part): Fix NULL pointer dereference
Reported-by: Coverity
2016-09-14 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/encoding.c (wget_memiconv): Fix memleak
Reported-by: Coverity
2016-09-14 Tim Rühsen <tim.ruehsen@gmx.de>
* examples/print_html_urls.c (html_parse_localfile): Fix memleak
Reported-by: Coverity
2016-09-10 Darshit Shah <darnir@gmail.com>
Fix segfault in case of Basic Authentication
* src/wget.c(downloader_thread): Remove job only if it exists
2016-09-09 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/encoding.c: Use ICONV_CONST to avoid cc warning
2016-09-09 Tim Rühsen <tim.ruehsen@gmx.de>
Fix fnmatch() on Solaris
* bootstrap.conf: Add fnmatch-gnu
* configure.ac: Add AC_GNU_SOURCE
2016-09-09 Tim Rühsen <tim.ruehsen@gmx.de>
* examples/websequencediagram.c (main): Fix printf format string
2016-09-04 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Enable color diagnostics with ccache
2016-08-28 Tim Rühsen <tim.ruehsen@gmx.de>
* tests/test.c: Fix cookie tests for when libpsl not available
2016-08-28 Tim Rühsen <tim.ruehsen@gmx.de>
Support cookie prefixes __Secure- and __Host-
* libwget/cookie.c (_wget_cookie_normalize_cookie): Add checks
for __Secure- and __Host- prefixes.
* tests/test.c (test_cookies): Add test cases for the prefixes.
This change implements proposals from draft-ietf-httpbis-cookie-prefixes-00
as modern browsers do.
2016-08-07 Tim Rühsen <tim.ruehsen@gmx.de>
* include/libwget.h.in: Add attribute const to wget_hash_get_len()
2016-08-07 Tim Rühsen <tim.ruehsen@gmx.de>
Update gnulib submodule
2016-07-28 Darshit Shah <darnir@gmail.com>
Make compiler happy about using uninitialized vars
* tests/test.c(test_striconv): Explcitly initialize variables to
NULL to make compiler happy.
2016-07-28 Darshit Shah <darnir@gmail.com>
Add configure support for Thread Sanitizer as well
* configure.ac: Add configure option to enable Thread Sanitizer.
Enabling this option currently causes all tests to fil due to
various data races. Some of the races can be fixed, while others are
false positives.
[ci skip]
2016-07-28 Darshit Shah <darnir@gmail.com>
Reduce the depth of git clone on travis to 3
* .travis.yml: We don't need any git operations on Travis. Reduce
the clone depth.
[ci skip]
2016-07-28 Darshit Shah <darnir@gmail.com>
Make ASan happy about dangling memory in test-metalink
* tests/test-metalink.c: Explicitly free() heap allocated memory
2016-07-23 Darshit Shah <darnir@gmail.com>
Enable fsanitize options when running on Travis
* .travis.sh: Enable UBSan and ASan sanitizers on Travis
2016-06-16 Darshit Shah <darnir@gmail.com>
Fix a ubsan warning due to zero length VLA
2016-07-23 Darshit Shah <darnir@gmail.com>
Add configure option to enable compiler sanitizers
Compiler sanitization options allow the code to be instrumented at
compile time. They add instructions to detect various behaviours at
runtime. These options usually cause significant slowdown and will
often cause the program to crash. Hence, do *not* use them on
production systems. They are meant to be used only by the developers
for testing purposes. Three sanitization options are added to the
configure options in this commit:
1. Undefined Behaviour Sanitizer (ubsan): Detect issues in the code
that are undefined behaviour according to the C specification
2. Address Sanitizer (ASan): Detect addressing issues and memory
leaks at runtime. Slightly similar to Valgrind, but using compiler
added instrumentation
3. Memory Sanitizer (MSan): Detect uninitialized memory reads.
The Address Sanitizer and Memory Sanitizer options are mutually
exclusive, and hence a check for the same is added to the configure
script.
MSan additionally requires that all libraries be instrumented too.
Without that, MSan is nearly unusable due to various false
positives.
* configure.ac: Add option to enable UBSan, ASan and MSan fsanitize
options at compile time.
2016-07-22 Darshit Shah <darnir@gmail.com>
Update documentation to reflect actual behavior of -O
* docs/wget2_manual.md: Update documentation. -O does not act as a
shell redirection.
2016-07-22 Darshit Shah <darnir@gmail.com>
Fix issue when -C and -O are passed together
* src/wget.c(http_create_request): When -c and -O are passed
togther, ensure that the output_document is continued and not the
local_filename
2016-07-22 Darshit Shah <darnir@gmail.com>
Add new test to check for continue and -O options
* tests/test-wget-1.c: Add new test. If the remote filename
exists locally, then Wget2 tries to conitnue downloading that file
despite being given an explicit output document. This test checks
for such behaviour.
2016-07-22 Tim Rühsen <tim.ruehsen@gmx.de>
* src/options.c: Add linefeeds to --help output
2016-07-22 Tim Rühsen <tim.ruehsen@gmx.de>
Update README
* README.md: Update text to current status.
* docs/mainpage.md: Likewise.
2016-07-21 Tim Rühsen <tim.ruehsen@gmx.de>
Add TLS Session Resumption with persistent cache
* include/libwget.h.in: Add wget_tls_session_* set of functions,
add new define WGET_SSL_SESSION_CACHE
* libwget/Makefile.am: Add tls_session.c to libwget
* libwget/ssl_gnutls.c (struct _config): Add tls_session_cache.
(struct _session_context): Add delayed_session_data.
(wget_ssl_set_config_string): Handle WGET_SSL_SESSION_CACHE.
(wget_ssl_open): Add False Start debug messages,
Set session data if cound in cache,
Write session data into cache.
(wget_ssl_read_timeout): Write session data into cache when
False Start has been activated.
* libwget/tls_session.c: New file with session data cache implementation
* src/options.c (print_help): Add new options --tls-resume and
--tls-session-file.
(config): Set tls_resume activated by default.
(options[]): Add tls-resume and tls-session-file.
(init): Create session file name, init session data cache,
Set session cache for TLS layer.
(deinit): Free session cache and session cache filename.
* src/options.h (struct config): Add tls_session_db, tls_session_file,
tls_resume.
* src/wget.c (main): Save session cache if changed.
TLS Session Resumption speeds up TLS handshake by 1xRTT.
Together with TCP Fast Open (enabled by default), we are down at
1xRTT TLS handshake overhead. To get down to 0 RTT we need a different
TLS protocol - TLS v1.3 will hopefully soon be standardized.
2016-07-20 Tim Rühsen <tim.ruehsen@gmx.de>
Beautify TLS certificate information printout
* libwget/ssl_gnutls.c (_print_x509_certificate_info):
Beautify printout.
(_print_info): Likewise.
2016-07-20 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (wget_ssl_open): Fix #elif
2016-07-20 Tim Rühsen <tim.ruehsen@gmx.de>
Add support for TLS False Start
* include/libwget.h.in: New declaration wget_tcp_set_tls_false_start()
and wget_tcp_get_tls_false_start()
* libwget/net.c: New functions wget_tcp_set_tls_false_start() and
wget_tcp_get_tls_false_start()
* libwget/net.h: Add tls_false_start to struct wget_tcp_st
* libwget/ssl_gnutls.c (_do_handshake): Print TLS False Start status.
(wget_ssl_open): Enable TLS False Start for GnuTLS >= 3.5.0.
* src/options.c: Add description for --tls-false-start.
(struct option options): Add option --tls-false-start.
(init): Call wget_tcp_set_tls_false_start().
* src/options.h (struct config): Add member tls_false_start.
2016-07-14 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c (wget_ssl_close): Retry TLS shutdown on error
2016-07-12 Tim Rühsen <tim.ruehsen@gmx.de>
* po/Makevars: Removed from git repo
2016-07-12 Tim Rühsen <tim.ruehsen@gmx.de>
Generate distributed ChangeLog from git log
* bootstrap.conf: Add gnulib module 'gitlog-to-changelog'.
* Makefile.am: Generate the ChangeLog file from the git log.
2016-07-12 Tim Rühsen <tim.ruehsen@gmx.de>
* configure.ac: Add parallel-tests and gnu to automake options
2016-07-12 Tim Rühsen <tim.ruehsen@gmx.de>
Declare wget_iri_is(un)reserved() as const
* include/libwget.h.in: Declare wget_iri_isunreserved() and
wget_iri_isunreserved_path() with attribute 'const'
2016-07-05 Tim Rühsen <tim.ruehsen@gmx.de>
Refactor downloader main loop into a state machine
* src/host.c (_search_queue_for_free_job): Set 'used_by' for
allocated job.
(_search_host_for_free_job): Same.
New function _release_job().
New function host_release_jobs().
New function host_add_robotstxt_job().
(host_remove_job): Fix queue size calculation.
Added several debug lines.
* src/host.h: Declare host_add_robotstxt_job() and host_release_jobs()
* src/job.h: New variable 'used_by' for PART,
New variables 'used_by','downloader' for JOB.
* src/options.c: Default config.http2_request_window to 30.
Default config.http1_request_window to 10.
(deinit): Free config.accept_patterns and config.reject_patterns.
* src/options.h: Add 'http2_request_window' and 'http1_request_window'
to 'struct config'.
* src/wget.c (add_url_to_queue): Call host_add_robotstxt_job().
(add_url): Call host_add_robotstxt_job().
Refactor downloader_thread(), process_response_header(),
process_head_response(), process_response_part(), process_response().
2016-07-04 Tim Rühsen <tim.ruehsen@gmx.de>
Use TCP Fast Open (TFO) within TLS handshake
* include/libwget.h.in: New declaration wget_tcp_get_tcp_fastopen()
* libwget/net.c: New function wget_tcp_get_tcp_fastopen(),
(wget_tcp_connect): Support TFO
* libwget/ssl_gnutls.c: New function _ssl_writev()
(wget_ssl_open): Set _ssl_writev() as push function in TFO requested
2016-06-29 Tim Rühsen <tim.ruehsen@gmx.de>
Add benchmark scripts
* benchmarks/README: New file, short description
* benchmarks/bench_https_http1: New file, HTTPS via HTTP/1.1
* benchmarks/bench_https_http2: New file, HTTPS via HTTP/2.0
2016-06-24 Tim Rühsen <tim.ruehsen@gmx.de>
Refactoring to separate send, receive and HTTP state machine
* examples/websequencediagram.c (main): Call wget_http_request_set_body()
and wget_http_send_request() instead of wget_http_send_request_with_body().
* include/libwget.h.in: Add WGET_HTTP_USER_DATA, wget_get_timemillis(),
extend wget_thread_cond_wait(), add body, user_data, body_length to
wget_http_request_t, remove wget_http_send_request_with_body(),
add wget_http_request_get_int(), wget_http_request_set_ptr(),
wget_http_request_get_ptr(), wget_http_request_set_body().
* libwget/http.c: Add wget_http_request_get_int(),
wget_http_request_set_ptr(), wget_http_request_get_ptr(),
wget_http_request_set_body(),
remove wget_http_send_request_with_body(),
(wget_http_request_to_buffer): add body to request buffer.
* libwget/http_highlevel.c (wget_http_get): Replace
wget_http_send_request_with_body()
* libwget/iri.c: Use c-ctype.h instead of ctype.h
(wget_iri_parse): Allow any numbers of / after scheme:
(wget_iri_parse): Catch URIs without /after scheme:
* libwget/list.c (wget_list_browse): Small code rearrangement
* libwget/metalink.c (_add_mirror): Check mirror.iri for NULL
* libwget/ssl_gnutls.c (send_ocsp_request): Replace
wget_http_send_request_with_body()
* libwget/thread.c (wget_thread_cond_signal): Add timeout param
* libwget/utils.c: New function wget_get_timemillis()
* src/blacklist.c: Include wget.h instead of log.h
* src/blacklist.h: Fix indentation
* src/host.c: Add queueing stuff
* src/host.h: Reflect changes in host.c
* src/job.c: Remove queueing stuff
* src/job.h: Reflect changes in job.c
* src/log.c: Sync stdout/stderr to correct output order
* src/log.h: Remove shortcuts of print functions
* src/wget.c: Remove download_part() and http_get().
Add http_send_request(), http_receive_response(), try_connection(),
establish_connection(), add_statistics(), process_response_header().
Amend downloader_thread() to reflect the changes.
* src/wget.h: Add shortcut defines for print functions.
* tests/libtest.c (_http_server_thread): Fix compiler warning,
fix debug message.
New function _write_msg() to print server messages yellow.
(wget_test) Add -d to wget command line.
* tests/test-metalink.c (main): Add tests for V3 and V4 metalink
files read from command line (-i, --force-metalink)
* tests/test.c (test_iri_parse): Add test for slash-less mailto: URI
2016-06-22 Tim Rühsen <tim.ruehsen@gmx.de>
Use bitfields in structs where possible
2016-07-11 Tim Rühsen <tim.ruehsen@gmx.de>
* Makefile.am: Fix EXTRA_DIST config.rpath to build-aux/config.rpath
2016-07-08 Tim Rühsen <tim.ruehsen@gmx.de>
* README.md: Fix repo cloning instructions
2016-07-08 Tim Rühsen <tim.ruehsen@gmx.de>
Move ignored po/ files to po/.gitignore
* .gitignore: Remove po/ files
* po/.gitignore: New file
2016-07-07 Ander Juaristi <ajuaristi@gmx.es>
Remove references to autogen.sh. Set SKIP_PO.
* bootstrap.conf: add SKIP_PO=1, so that we don't have to pass
the --skip-po flag every time we run bootstrap.
* README.md, contrib/check-hard, contrib/mingw, docs/mainpage.md,
.travis.sh: amend references to autogen.sh.
* autogen.sh: Removed
* .gitignore: Add build-aux
* po/Makevars: Remove auto-generated file from repo
2016-06-26 Ander Juaristi <ajuaristi@gmx.es>
Use bootstrap
* bootstrap, bootstrap.conf: new files.
* configure.ac: invoke AC_CONFIG_MACRO_DIR and
AC_CONFIG_AUX_DIR.
2016-06-16 Tim Rühsen <tim.ruehsen@gmx.de>
API changes for HTTP/2 parallel/async requests
* .gitignore: New entry examples/http_multi_get
* Makefile.am: Move subdir 'examples' before 'src'
* examples/Makefile.am: Add http_multi_get
* examples/http_get2.c (main): Adapt code to API changes
* examples/http_multi_get.c: New example to show async/parallel
requests
* examples/websequencediagram.c (main): Adapt code to API changes
* include/libwget.h.in: New functions wget_http_request_set_header_cb,
wget_http_request_set_body_cb, wget_http_request_set_int.
Changed params of wget_http_get_response.
Removed wget_http_get_response_func, wget_http_get_response_stream,
wget_http_get_response_fd.
Changed params of wget_http_get_response_cb.
Add members pending_requests, received_http2_responses,
pending_http2_requests to wget_http_connection_t.
Add member req to wget_http_response_t.
Add members header_callback, body_callback, header_user_data,
body_user_data, response_keepheader to wget_http_request_t.
New function types wget_http_header_callback_t and
wget_http_body_callback_t.
* libwget/http.c: Implementation of the changes in include/libwget.h.in.
* libwget/http_highlevel.c: Adapt code to API changes
* libwget/ssl_gnutls.c: Fixed defaults for SNI, OCSP and
ALPN.
Adapt code to API changes.
* src/options.c: Reflect changes in libwget/ssl_gnutls.c
* src/wget.c: Adapt code to API changes
2016-06-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix compiler warnings
* include/libwget.h.in: Declare wget_tcp_get_protocol as PURE
* libwget/base64.c (wget_base64_decode, wget_base64_encode): Fix
warning about missing switch() default
* libwget/http.c (_on_header_callback): Add switch default case,
(wget_http_request_to_buffer): Remove unused variable 'use_proxy'
* libwget/ssl_gnutls.c (_print_info): Add switch default case
* libwget/vector.c (wget_vector_findext): Replace switch by if/else
* src/wget.c (_get_body): Check EAGAIN != EWOULDBLOCK via cpp
2016-06-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix compiler warnings in test suite
* tests/libtest.c (wget_test_check_filesystem): Fix printf
format warning
* tests/test-parse-html.c (html_dump): Add switch default case,
fix printf format warning
2016-06-15 Tim Rühsen <tim.ruehsen@gmx.de>
Suppress warning in auto-generated css_tokenizer.c
* libwget/css_tokenizer.lex: Add GCC pragmas to suppress warnings
when compiling libwget/css_tokenizer.c
2016-06-15 Tim Rühsen <tim.ruehsen@gmx.de>
Use gnutls_transport_[gs]et_int() in GnuTLS code if possible
* configure.ac: Check for gnutls_transport_get_int()
* libwget/ssl_gnutls.c: Use gnutls_transport_[gs]et_int() if possible
Avoid int <-> pointer conversions
2016-06-15 Tim Rühsen <tim.ruehsen@gmx.de>
Use less warnings for gnulib compilation on --enable-gcc-warnings
* autogen.sh: Add option --makefile-name=gnulib.mk to gnulib-tool
* configure.ac: Add 'subdir-objects' to AM_INIT_AUTOMAKE,
add macro 'gl_GCC_VERSION_IFELSE' from coreutils project,
enable extra gcc warnings by default when running from Git repo,
disable several warnings for gnulib compilation
* lib/Makefile.am: New file
2016-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Add colors to debug and error output
* src/log.c: Add _write_out(), _write_error(), _write_info()
Errors are printed red (if output is a TTY), debug output is
magenta/purple. Not configurable yet.
2016-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Print blacklist entries as debug messages
* src/blacklist.c (_blacklist_print): Call debug_printf()
2016-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Fix printf format warnings
* tests/buffer_printf_perf.c: Fix printf format warnings
* tests/stringmap_perf.c: Likewise
* tests/test.c: Likewise
2016-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Fix printf format warnings
* libwget/http.c: Fix printf format warnings
* libwget/http_highlevel.c: Likewise
* libwget/io.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* src/wget.c: Likewise
2016-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Remove warnings from gcc's -Wjump-misses-init
* libwget/ssl_gnutls.c (_verify_certificate_callback):
Move variable initialization upwards
* src/wget.c (html_parse): Move variable initialization upwards
2016-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Do not inline _no_memory()
* libwget/xalloc.c: Remove _GL_INLINE from _no_memory()
2016-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module 'manywarnings'
* autogen.sh: Add module manywarnings
* configure.ac: Add ./configure option --enable-gcc-warnings to enable
many warnings
* examples/Makefile.am: Add WERROR_CFLAGS and WARN_CFLAGS to AM_CFLAGS
* libwget/Makefile.am: Likewise
* src/Makefile.am: Likewise
* tests/Makefile.am: Likewise
2016-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Update gnulib to latest master
* gnulib: Sync with upstream
2016-06-06 Tim Rühsen <tim.ruehsen@gmx.de>
Fix FTP PASV listening in test suite
* tests/libtest.c: Fix FTP PASV listening
2016-05-20 Tim Rühsen <tim.ruehsen@gmx.de>
Revert "Support direct mpeg streams in examples/getstream.c"
This reverts commit d3d7342e8063be0428549ebe4df66560b030074c.
2016-05-20 Tim Rühsen <tim.ruehsen@gmx.de>
Support direct mpeg streams in examples/getstream.c
* examples/getstream.c: Support direct mpeg streams
2016-05-20 Tim Rühsen <tim.ruehsen@gmx.de>
Support audio/x-scpls in examples/getstream.c
* examples/getstream.c (main): Fix m3u parsing, Add audio/x-scpls
2016-05-19 Tim Rühsen <tim.ruehsen@gmx.de>
Let test suite survive on case-sensitive filesystems (e.g. HFS+)
* tests/libtest.c: New function wget_test_check_filesystem(),
(_empty_directory, _remove_directory): Do not print
errors about missing directories.
* tests/libtest.h: Add define WGET_TEST_FS_CASEMATTERS
* tests/test--accept.c: Renamed files to avoid casing problems
* tests/test-wget-1.c: Skip casing tests on case-sensitive filesystem
2016-05-16 Tim Rühsen <tim.ruehsen@gmx.de>
Check value of --progress option
* src/options.c: New parse function parse_progress_type
* src/options.h: Change type of config.progress to char
2016-05-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix and enhance examples/getstream.c
* autogen.sh: Add gnulib module 'c-strcasestr'
* examples/getstream.c: Support several playlist formats
getstream.c now supports .m3u, .wax, .asx, .pls, xspf playlist formats.
Playlist parsing is partly hackish - it is just an example after all.
The title information is displayed on stderr, the audio goes to stdout to
allow piping to mpg321, sox, etc. For details see the top comment in the
source file.
2016-05-15 Tim Rühsen <tim.ruehsen@gmx.de>
Support ICY response (shoutcast response)
* libwget/http.c(wget_http_parse_response_header): Check for ICY response
2016-05-14 Tim Rühsen <tim.ruehsen@gmx.de>
Add option --content-on-error
* src/options.c: Add --content-on-error to options and to help text
* src/options.h: Add content_on_error to struct config
* src/wget.c: Check config.content_on_error
* tests/test-wget-1.c: Add tests for --content-on-error
2016-05-10 Tim Rühsen <tim.ruehsen@gmx.de>
Do not use Proxy-Connection header field (RFC 7230 A.1.2.)
* libwget/http.c (wget_http_request_to_buffer): Do not create
Proxy-Connection header field for requests.
2016-05-10 Tim Rühsen <tim.ruehsen@gmx.de>
Add MinGW recipe/script
* contrib/mingw: New file
2016-05-08 Tim Rühsen <tim.ruehsen@gmx.de>
Adjust LDFLAGS for MinGW
* examples/Makefile.am: Add -no-install to AM_LDFLAGS
* libwget/Makefile.am: Add -no-undefined to libwget_la_LDFLAGS
2016-05-08 Tim Rühsen <tim.ruehsen@gmx.de>
Add EXEEXT to test suite executables
* tests/Makefile.am: Add $(EXEEXT) to executable names
* tests/libtest.c: Add EXEEXT to wget2 executable,
add support for EMULATOR env variable - e.g. to test with wine
2016-05-08 Tim Rühsen <tim.ruehsen@gmx.de>
Determine home directory in a portable fashion
* src/options.c (get_home_dir): Use gnulib glob() to get home directory
2016-05-08 Tim Rühsen <tim.ruehsen@gmx.de>
Fix includes for Windows
* libwget/http.c: Include ws2tcpip.h instead of sys/socket.h when available
* libwget/net.c: Likewise
2016-05-08 Tim Rühsen <tim.ruehsen@gmx.de>
Fix warnings
* libwget/http.c (wget_http_add_credentials): Fix snprintf format warnings
2016-05-08 Tim Rühsen <tim.ruehsen@gmx.de>
Fix async sockets for Windows
* libwget/net.c (_set_async): Add code path for Windows
2016-05-08 Tim Rühsen <tim.ruehsen@gmx.de>
Add missing gnulib modules
* autogen.sh: Add gnulib modules fsync, recv, recvfrom, socklen
2016-05-08 Tim Rühsen <tim.ruehsen@gmx.de>
Fix build for systems without getuid()
* configure.ac: Check for getuid()
* libwget/io.c (wget_update_file): Check for HAVE_GETUID
2016-05-08 Tim Rühsen <tim.ruehsen@gmx.de>
Fix --enable-bzip2/--disable-bzip2
* configure.ac: Fix AC_ARG_WITH for bzip2
2016-05-08 Tim Rühsen <tim.ruehsen@gmx.de>
Fix wget_srandom()
* include/libwget.h.in: Adjust wget_random() return type to int
* libwget/random.c (libwget/random.c): Use initstate_r() for seeding,
(wget_srandom): Use initstate_r() for seeding
2016-05-08 Tim Rühsen <tim.ruehsen@gmx.de>
gnulib: sync from upstream
2016-05-03 Tim Rühsen <tim.ruehsen@gmx.de>
Add --force-* options to docs
* wget2_manual.md: Add description for --force-css, --force-sitemap,
--force-atom, --force-rss, -force-metalink
2016-04-25 Tim Rühsen <tim.ruehsen@gmx.de>
Fix docs for wget_srandom()
* libwget/random.c: Fix param description
2016-04-25 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for robots.txt parsing
* libwget/robots.c: Add Doxygen docs
* docs/Makefile.am: Add rule for man page
2016-04-18 Tim Rühsen <tim.ruehsen@gmx.de>
Support parsing of UTF-16 HTML documents
* examples/print_html_urls.c (html_parse_localfile):
Detect BOM (Byte Order Mark), convert UTF-16 to UTF-8 before parsing.
* include/libwget.h.in: Remove wget_charset_transcode(),
add wget_memiconv() and wget_striconv().
* libwget/encoding.c: Implement wget_memiconv() and wget_striconv()
* src/wget.c (html_parse): Add 'html_len' param,
convert UTF-16 to UTF-8 before parsing.
* tests/test.c: New test for wget_memiconv().
2016-04-09 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for Atom and Sitemap URL extraction functions
* libwget/atom_url.c: Add Doxygen docs
* libwget/sitemap_url.c: Add Doxygen docs
* docs/Makefile.am: Add rules for man pages
* libwget/base64.c: Fix text
2016-04-09 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for base64 functions
* libwget/base64.c: Add Doxygen docs
* docs/Makefile.am: Add rule for man page
2016-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
Add option --fsync-policy
* src/options.c (print_help): Add short description,
(options): Add new option
* src/options.h (struct config): Add fsync_policy
* src/wget.c (http_get): Check config.fsync_policy before fsync()
--fsync-policy calls fsync() for each downloaded file.
This effectively waits until all data is written to hard disk before
wget continues. It slows down the performance - depending on the
speed of your storage.
2016-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
Write files non-blocking
* src/wget.c (_prepare_file): Use O_NONBLOCK for open(),
(_get_header): Likewise,
(_get_body): Wait for writability if needed,
(http_get): Code cleanups
2016-04-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/net.c (wget_tcp_read): Use recvfrom() instead of write()
2016-04-04 Tim Rühsen <tim.ruehsen@gmx.de>
Fix error message
* libwget/http.c (wget_http_get_response_cb): Fix message about
incomplete download
2016-04-03 Tim Rühsen <tim.ruehsen@gmx.de>
* po/POTFILES.in: libwget/compat.c -> libwget/strlcpy.c
2016-04-03 Tim Rühsen <tim.ruehsen@gmx.de>
Renamed libwget/compat.c -> libwget/strlcpy.c
2016-04-02 Tim Rühsen <tim.ruehsen@gmx.de>
Rename --follow-metalink to --metalink
* src/options.c, src/options.h, src/wget.c, tests/test-metalink.c:
Rename --follow-metalink to --metalink, rename config.follow_metalink
to config.metalink.
2016-04-02 Tim Rühsen <tim.ruehsen@gmx.de>
Share code for Metalink V3 and V4
* libwget/metalink.c: New functions _add_piece, _add_file_hash,
_add_mirror called by metalink V3 + V4 code in _metalink_parse().
2016-04-02 Tim Rühsen <tim.ruehsen@gmx.de>
Add tests for RFC 6249 Metalink in HTTP headers
* tests/test-metalink.c: Add tests
2016-04-02 Tim Rühsen <tim.ruehsen@gmx.de>
Fix memory leak in Metalink V3 parser
* libwget/metalink.c (_metalink_parse): Set destructor for mirror vector
2016-03-31 Tim Rühsen <tim.ruehsen@gmx.de>
Add tests for Metalink
* tests/Makefile.am: Add test-metalink
* tests/test-metalink.c: New file
This new tests are
- --no-follow-metalink
- metalink v3, without pieces
- metalink v4, without pieces
- metalink v4, with pieces
2016-03-30 Tim Rühsen <tim.ruehsen@gmx.de>
Add --force-metalink
* libwget.h.in: Remove metalink3_parse, metalink4_parse,
Add wget_metalink_parse
* libwget/metalink.c: Merge metalink4_parse() and metalink3_parse()
into wget_metalink_parse(),
Only store HTTP and HTTPS mirrors
* src/job.c: Adjust debug message
* src/options.c: Add --force-options
* src/options.h: Add config.force_metalink
* src/wget.c: New function metalink_parse_localfile()
2016-03-29 Tim Rühsen <tim.ruehsen@gmx.de>
*src/options.c: Allow --(no-)follow-metalink without argument
2016-03-29 Tim Rühsen <tim.ruehsen@gmx.de>
Do not use hard-coded user-agent in robots library code
* include/libwget.h.in: Update prototype of wget_robots_parse()
* libwget/robots.c (wget_robots_parse): Add client name as parameter
* src/wget.c: Call wget_robots_parse() with PACKAGE_NAME as client name
2016-03-29 Tim Rühsen <tim.ruehsen@gmx.de>
Set default User-Agent: to PACKAGE_NAME"/"PACKAGE_VERSION
* src/options.c: Set PACKAGE_NAME"/"PACKAGE_VERSION as user agent
2016-03-28 Giuseppe Scrivano <gscrivan@redhat.com>
wget: new option --follow-metalink
* src/options.h (struct config): Define follow_metalink.
* src/options.c (print_help): Add description for follow-metalink.
(struct options): Add follow-metalink.
(struct config): Initialize follow_metalink.
(init): do not follow metalink files when --mirror is used.
* src/wget.c (downloader_thread): Skip following metalinks when follow_metalink is off.
(_get_header): Store the metalink file when follow_metalink is false.
2016-03-28 Tim Rühsen <tim.ruehsen@gmx.de>
Allow options and URLs in any order
* src/options.c (parse_command_line): Reorder URLs after options
* src/options.h: Fix init() prototype
* src/wget.c, tests/test-parse-html.c, tests/test.c:
Fix main() argv argument
2016-03-27 Tim Rühsen <tim.ruehsen@gmx.de>
Fix metalink code to download files without pieces
* src/job.c (job_validate_file): Accept files without pieces
2016-03-27 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/metalink.c (_metalink4_parse): Set piece.position to 0
2016-03-26 Giuseppe Scrivano <gscrivan@redhat.com>
src/wget.c (_get_header): Do not store metalink files
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-03-22 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs in markdown format
* DoxygenLayout.xml: Set mainpage title
* libwget.doxy.in: Scan docs, add mainpage.md as main page
* mainpage.md: New file
* faq.md: New file
* wget2_manual.md: New file, derived from wget.texi
2016-03-24 Giuseppe Scrivano <gscrivan@redhat.com>
http: fix multi part files
* src/wget.c (download_part): Read temp part for the temporary files.
(_get_header): Write part file to the destination file.
(http_get): Keep a temporary fd for the file parts.
(struct _body_callback_context): Add 'head' and 'part'.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-03-20 Giuseppe Scrivano <gscrivan@redhat.com>
Fix compiler warnings
* include/libwget.h.in (wget_bar_init, wget_bar_update,
wget_bar_print): Change types to int and off_t.
* libwget/bar.c (wget_bar_init, wget_bar_update,
wget_bar_print): Change types to int and off_t.
* src/wget.c (_prepare_file): Add prototype. Change type of rc to
size_t.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-03-19 Giuseppe Scrivano <gscrivan@redhat.com>
wget: use safe_write module from gnulib
* autogen.sh: Add module 'safe-write'.
* src/wget.c (_prepare_file): Use safe_write instead of write.
(_get_body): Likewise.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-03-18 Giuseppe Scrivano <gscrivan@redhat.com>
Do not parse more than 10M and stream directly to disk
* src/wget.c (downloader_thread): drop code to save/append to file.
(_prepare_file): New function based on _save_file. Open the fd and
don't write any payload.
(_body_callback_context): Add outfd, max_memory, length.
(_get_header): Set the destination file here and keep the fd.
(_get_body): Keep in memory only what was specified, stream the rest
directly to file.
(http_get): Always use wget_http_get_response_cb instead of
wget_http_get_response. Close the file fd that was opened in
_prepare_file.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-03-16 Giuseppe Scrivano <gscrivan@redhat.com>
Use size_t instead of int for progress bar status
* include/libwget.h.in (wget_bar_init): Change type of nslots and max
from int to size_t.
(wget_bar_deinit): Likewise.
(wget_bar_update): Likewise.
(wget_bar_print): Likewise.
(wget_bar_vprintf): Likewise.
(wget_bar_printf): Likewise.
* libwget/bar.c (wget_bar_init): Change type of nslots and max
from int to size_t.
(wget_bar_deinit): Likewise.
(wget_bar_update): Likewise.
(wget_bar_print): Likewise.
(wget_bar_vprintf): Likewise.
(wget_bar_printf): Likewise.
* src/bar.h (bar_init): Change type of nslots and max from
int to size_t.
(bar_deinit): Likewise.
(bar_update): Likewise.
(bar_print): Likewise.
(bar_vprintf): Likewise.
(bar_printf): Likewise.
* src/bar.c (bar_init): Change type of nslots and max from
int to size_t.
(bar_deinit): Likewise.
(bar_update): Likewise.
(bar_print): Likewise.
(bar_vprintf): Likewise.
(bar_printf): Likewise.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-03-16 Giuseppe Scrivano <gscrivan@redhat.com>
libwget/http.c: Rename HTTP_CTYPE_SEPERATOR to HTTP_CTYPE_SEPARATOR
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-03-18 Tim Rühsen <tim.ruehsen@gmx.de>
Tune cookie parsing
* include/libwget.h.in: Add sort_age to struct wget_cookie_st
* libwget/cookie.c: Many code enhancements
* libwget/http.c (wget_http_parse_setcookie): Relax parsing,
(wget_http_parse_setcookie): Allow \n and \r\n as EOL
* libwget/private.h: Add missing #includes
* tests/Makefile.am: Add disabled test-cookies-http_state
* tests/test-cookies-http_state.c: New cookie test
There still 30 out of 220 tests failing, before this commit we had
135 failing. The left over tests are mainly corner cases, but feel free
to work on it. When all tests pass, we enable test-cookies-http_state
in Makefile.am.
2016-03-14 Tim Rühsen <tim.ruehsen@gmx.de>
Update .gitignore
* .gitignore: Updated
2016-03-14 Tim Rühsen <tim.ruehsen@gmx.de>
Add new examples websequencediagram[_highlevel]
* examples/websequencediagram.c: New file
* examples/websequencediagram_high.c: New file
* examples/Makefile.am: Add websequencediagram[_highlevel]
These examples show how to do two requests on one connection,
a POST and a GET, saving the downloaded body to disk.
websequencediagram uses the low-level API.
websequencediagram_highlevel uses the high-level API.
2016-03-14 Tim Rühsen <tim.ruehsen@gmx.de>
Add WGET_HTTP_SCHEME, WGET_HTTP_BODY, WGET_HTTP_BODY_SAVEAS for wget_http_get()
* include/libwget.h.in: Add WGET_HTTP_SCHEME, WGET_HTTP_BODY,
WGET_HTTP_BODY_SAVEAS
* src/http_highlevel.c: Implement WGET_HTTP_SCHEME, WGET_HTTP_BODY,
WGET_HTTP_BODY_SAVEAS
2016-03-14 Tim Rühsen <tim.ruehsen@gmx.de>
Use wget2 without libtool wrapper for test suite
* src/Makefile.am: Add wget2_noinstall target
* src/wget.c: On exit, only release memory within test suite
* tests/libtest.c: Call wget2_noinstall for testing
2016-03-14 Tim Rühsen <tim.ruehsen@gmx.de>
Fix superfluous 'Unsupported cookie-av' message
* libwget/http.c (wget_http_parse_setcookie): Break on end-of-string
2016-03-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add 'make check-valgrind' to simplify valgrind checking
* Makefile.am: Add rule 'check-valgrind'
2016-03-01 Tim Rühsen <tim.ruehsen@gmx.de>
Add support for HTML5 srcset attribute in IMG tags
* libwget/html_url.c: Add scanning srcset values
* tests/test--page-requisites.c: Add srcset test cases
2016-03-01 Tim Rühsen <tim.ruehsen@gmx.de>
Use TravisCI .svg image
* README.md: Use TravisCI .svg image
2016-02-12 Tim Rühsen <tim.ruehsen@gmx.de>
Remove unneeded variable in options.c
* src/options.c (main): Remove varibale 'truncated'
2016-02-07 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for memory functions
* libwget/mem.c: Add docs
* docs/Makefile.am: Add rule for man pages
* include/libwget.h.in: Cosmetic adjustments
2016-02-07 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for MD5 convenience functions
* libwget/md5.c: Add docs
* docs/Makefile.am: Add rule for man pages
2016-02-07 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/http.c: Remove #define MD5_DIGEST_LENGTH
2016-02-07 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/io.c: Remove bug introduced when fixing Coverity
2016-02-07 Tim Rühsen <tim.ruehsen@gmx.de>
Fix / silence some Coverity findings
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/Makefile.am: Remove redundant list of man files
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/iri.c: Make iri_ports static
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* docs/Makefile.am: Add rule for xalloc man page
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c: Fix the fix of 48c1f0961ee566287543f4149dbfc7fb5ba2b7bf
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/io.c: Fix some small glitches in Doxygen area
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/encoding.c: Use '#ifdef WITH_LIBIDN' instead of '#if'
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for printf functions
* libwget/printf.c: Convert GTK-DOC format into Doxygen
* docs/Makefile.am: Add rule for man pages
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/ssl_gnutls.c: Fix clang warnings
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for memory functions
* libwget/xalloc.c: Convert GTK-DOC format into Doxygen
* docs/Makefile.am: Add rule for man pages
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
* libwget/utils.c: Fix docs, rename function param
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
Fix argument to srandom()
* libwget/random.c: Cast argument to unsigned int
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
Fix docs for wget_srandom()
* libwget/random.c: Fix docs for wget_srandom()
2016-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
Fix check for BUILDING_LIBWGET
* include/libwget.h.in: Use '#if defined' instead of '#if'
2016-02-03 Tim Rühsen <tim.ruehsen@gmx.de>
Cosmetics
* libwget/thread.c: Fix comment after #endif
* src/wget.c (main): Remove unwanted spaces in if clause
2016-02-03 Giuseppe Scrivano <gscrivan@redhat.com>
autogen.sh: add 'stdbool' to libwget_gnulib_modules
2016-02-02 Giuseppe Scrivano <gscrivan@redhat.com>
Honor --disable-threads and support no threading
* include/libwget.h.in: Include <stdbool.h>.
Define wget_thread_support().
* libwget/thread.c: Change condition to check
for threading support.
(wget_thread_support): New function.
(wget_thread_start): [!USE_POSIX_THREADS && !USE_PTH_THREADS]
Invoke directly the function.
* src/wget.c (main): If no threads are supported then set the
number of max threads to 1. If the queue is not empty, call again the
downloader function. It will be used only in case no threads are
available.
(downloader_thread): Do not wait for new elements in the queue
when there are no threads.
* tests/libtest.c (wget_test_start_server): Skip the test if
there is no threads support.
2016-02-02 Giuseppe Scrivano <gscrivan@redhat.com>
Fix build when threads are not used
* include/libwget.h.in: [! PTHREAD_MUTEX_INITIALIZER]: Define
WGET_THREAD_COND_INITIALIZER.
2016-01-25 Tim Rühsen <tim.ruehsen@gmx.de>
Set default for --waitretry to 10s
src/options.c (struct config config): Init .waitretry with
10000 milliseconds.
2016-01-25 Tim Rühsen <tim.ruehsen@gmx.de>
Check for CTRL-C in timer loops
* src/wget.c (downloader_thread, download_part): Abort on CTRL-C
2016-01-25 Tim Rühsen <tim.ruehsen@gmx.de>
Updated copyright year for all relevant files
2016-01-25 Tim Rühsen <tim.ruehsen@gmx.de>
Add helper script for updating copyright dates
contrib/update_copyright: New file
2016-01-24 Tim Rühsen <tim.ruehsen@gmx.de>
Disable valgrind tests on Travis CI for Mac OS X
* .travis.yml: Do not install valgrind in OS X
* .travis.sh: Disable valgrind tests for OS X
2016-01-24 Tim Rühsen <tim.ruehsen@gmx.de>
Install valgrind for Travis CI on linux
* .travis.yml: Add valgrind to packages
* .travis.sh: Output tests/test.log
2016-01-24 Tim Rühsen <tim.ruehsen@gmx.de>
Switch to Travis-CI valgrind testing
* .travis.sh: Add --enable-valgrind-tests to ./configure,
export VALGRIND_TESTS=1
* .travis.yml: Install valgridn on Mac OS X
* tests/libtest.c: Add --max-threads=1 --prefer-family=ipv4 to wget2 command
2016-01-23 Tim Rühsen <tim.ruehsen@gmx.de>
Add $(LIB_PTHREAD) to makefiles
* examples/Makefile.am, libwget/Makefile.am, src/Makefile.am,
tests/Makefile.am: Add $(LIB_PTHREAD)
2016-01-22 Tim Rühsen <tim.ruehsen@gmx.de>
Add thread-safe wrapper code around random() and srandom()
* docs/Makefile.am: Add wget_random and wget_srandom to docs
* include/libwget.h.in: Add wget_random and wget_srandom
* libwget/Makefile.am: Add random.c
* libwget/http.c: Use wget_random()
* libwget/random.c: New file with wget_random and wget_srandom
* src/options.c: Remove call to srandom()
2016-01-22 Tim Rühsen <tim.ruehsen@gmx.de>
Fix Travis-CI files for Mac OS X
* .travis.sh: Remove 'allow_failures', Call .travis.sh script,
Install needed packages via 'brew', Remove configuration, building, testing
* .travis.sh: Add configuration, building, testing
2016-01-22 Tim Rühsen <tim.ruehsen@gmx.de>
Fix test suite for Mac OSX
* tests/libtest.c (_http_server_thread): Accept HTTP msg when chunked,
Fix removing test directories,
(wget_test_start_server) Remove stale test directories,
Prefer IPv4, Start FTPS thread only if needed,
(_scan_for_unexpected) Skip test for unexpected files on Mac OSX,
(wget_test) Add --max-threads and --prefer-family=ipv4 to wget2 command,
Remove MSWindows conditional code
2016-01-22 Tim Rühsen <tim.ruehsen@gmx.de>
Remove libpthread check from configure.ac
* configure.ac: Remove check for libpthread
* include/libwget.h.in: Check HAVE_PTHREAD_H,
Do not undefine gettext
* libwget/thread.c: Check HAVE_PTHREAD_H
This check is done by gnulib 'pthread' module.
2016-01-22 Tim Rühsen <tim.ruehsen@gmx.de>
Use gnulib gettime() instead of clock_gettime()
* src/log.c, src/wget.c: Call gettime() instead of clock_gettime()
2016-01-22 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib modules gettime and pthread
* autogen.sh: Add gnulib modules gettime and pthread
2016-01-22 Tim Rühsen <tim.ruehsen@gmx.de>
Fix DNS caching
* libwget/net.c (_wget_dns_cache_add): Allow NULL for port
Remove several #ifdefs (should be handled by gnulib now)
2016-01-19 Tim Rühsen <tim.ruehsen@gmx.de>
Let mkdir() be handled by gnulib
* src/wget.c: Remove conditional around mkdir()
2016-01-19 Giuseppe Scrivano <gscrivan@redhat.com>
Fix the /dev/null usage
* src/wget.c: do not create the directory if the first character is
'/'.
* tests/test-base.c: add test for -O/dev/null.
2016-01-19 Giuseppe Scrivano <gscrivan@redhat.com>
Fix compiler warning
* libwget/ssl_gnutls.c (_print_info): Always consider GNUTLS_CRD_SRP
2016-01-19 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for utils functions
* docs/Makefile.am: Add libwget-utils.3
* libwget/utils.c: Add utils function docs
2016-01-19 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for I/O functions
* docs/Makefile.am: Add libwget-io.3
* libwget/io.c: Add I/O function docs
2016-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Add docs for hash functions
* docs/Makefile.am: Add libwget-hash.3
* include/libwget.h.in: Remove hash function docs
* libwget/hashfile.c: Add hash function docs
2016-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Do not sort document members
* docs/libwget.doxy.in: Set SORT_MEMBER_DOCS = NO
2016-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Enable reading of config.h for docs generation
* docs/libwget.doxy.in: Enable reading of config.h
2016-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Extend .gitignore
* .gitignore: Add entries and sort with LC_ALL=C
2016-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Add contrib/check-hard for maintainer testing
* contrib/check-hard: New file
2016-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Add logo to HTML docs
* docs/gen-logo.sh: Add script to generate logo via imagemagick
* docs/wget-logo.png: Add generated logo
* docs/libwget.doxy.in: Include logo into docs
2016-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Add wget_list_t to docs group libwget-list
* include/libwget.h.in: Add wget_list_t to docs group libwget-list
2016-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Remove NULL check in list code
* libwget/list.c (wget_list_remove): Remove checking first param for NULL.
Since the function is declared with the first param being NON-NULL, gcc will
silently remove the check anyways. Clang even complains about the check.
2016-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Remove NULL check in vector code
* libwget/vector.c (wget_vector_add_str): Remove checking second param
for NULL.
Since the function is declared with 's' being NON-NULL, gcc will silently
remove the check anyways. Clang even complains about the check.
2016-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Fix resource leak when using libgcrypt for hashing
* libwget/hashfile.c (wget_hash_deinit): Close gcrypt context
2016-01-18 Tim Rühsen <tim.ruehsen@gmx.de>
Add error code WGET_E_TLS_DISABLED
* include/libwget.h.in: New define for WGET_E_TLS_DISABLED
2016-01-17 Tim Rühsen <tim.ruehsen@gmx.de>
Tweak doxygen config file
* docs/libwget.doxy.in: Hide absolute path in file names,
exclude private header files of libwget/,
exclude symbols starting with _
2016-01-17 Tim Rühsen <tim.ruehsen@gmx.de>
Use README.md as main page in HTML docs
* docs/libwget.doxy.in: Add README.md to INPUT
2016-01-17 Tim Rühsen <tim.ruehsen@gmx.de>
Use doxygen instead of gtk-doc
* Removed all gtk-doc files and references.
* Added doxygen files and rules
2016-01-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix double linkage finally
* tests/Makefile.am: Link only once per lib to avoid warnings
2016-01-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix wrong argument fetch in buffer printf routine
* libwget/buffer_printf.c (wget_buffer_vprintf_append): Fetch long value
from stack instead of long long with %l[dioux]
Found on Solaris 11 SPARC
2016-01-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix Solaris issue in tests/Makefile.am
* tests/Makefile.am: Link only once per lib to avoid warnings
2016-01-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix libwget/Makefilea. for Solaris
* libwget:/Makefile.am: Add ../lib/libgnu.la to test_linking_LDADD
2016-01-15 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module progname
Without this we have an unresolved symbol 'program_name' on
Solaris.
2016-01-15 Tim Rühsen <tim.ruehsen@gmx.de>
Include config.h on top in css_tokenizer.c
* libwget/Makefile.am: Add #include "config.h" to top of css_tokenizer.c
Found this issue on OpenSolaris
2016-01-15 Tim Rühsen <tim.ruehsen@gmx.de>
Add symbol visibility control to libwget
* autogen.sh: Add gnulib module lib-symbol-visibility,
add --libtool to gnulib-tool invokation
* examples/Makefile.am: Remove -static from AM_LDFLAGS,
remove ../lib/libgnu.a from LDADD
* include/libwget.h.in: Define LIBWGET_EXPORT,
add LIBWGET_EXPORT to all visible symbols
* libwget/Makefile.am: Remove AM_CPPFLAGS and LDADD,
add libwget_la_CPPFLAGS and libwget_la_LIBADD,
add test_linking_CPPFLAGS, fix test_linking_LDADD
* libwget/iri.c: Add LIBWGET_EXPORT to wget_iri_schemes and iri_ports
* src/Makefile.am: Remove wget2_LDFLAGS, fix wget2_LDADD
* tests/Makefile.am: Fix LDADD, fix test_LDADD, fix test_parse_html_LDADD,
fix libtest_la_CPPFLAGS and libtest_la_LIBADD
* tests/libtest.h: Add LIBWGET_EXPORT to symbols
2016-01-15 Tim Rühsen <tim.ruehsen@gmx.de>
Exclude private header files from gtk-doc parsing
* docs/libwget/Makefile.am: Add net.h and css_tokenizer.h to IGNORE_HFILES
2016-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
Remove vasprintf from configure.ac
* configure.ac: Remove vasprintf from AC_CHECK_FUNCS
2016-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
Add more gnulib modules
* autogen.sh: Add more gnulib modules
What came across my eyes:
closedir
fclose
fdopen
fflush
fopen
fstat
mkstemp
opendir
spawn-pipe
popen
random_r (change random() -> random_r() in a follow-up commit)
readdir
rename
stat
strtoll
time_r
unlink
2016-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
Removed redundant buffer print routines
Removed wget_buffer_vprintf_append, wget_buffer_printf_append,
wget_buffer_vprintf2 and wget_buffer_printf2.
Renamed their *2 counterpart to their old names.
2016-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
Added printf-style functions
* libwget/printf.c: New file
* docs/libwget/Makefile.am: Add libwget-printf.3
* docs/libwget/libwget-docs.sgml: Add printf section
* docs/libwget/libwget-sections.txt: Add SECTION libwget-printf
* include/libwget.h.in: Add function prototypes
* libwget/Makefile.am: Add printf.c
* libwget/base64.c, libwget/http.c, libwget/iri.c, libwget/logger.c,
libwget/md5.c, libwget/vector.c, src/options.c:
Use new functions instead of asprintf/vasprintf
2016-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
Use c-ctype.h where possible
* libwget/atom_url.c, libwget/buffer_printf.c, libwget/css.c,
libwget/html_url.c, libwget/http.c, libwget/rss_url.c, libwget/sitemap_url.c,
src/options.c src/wget.c, tests/libtest.c, tests/test-parse-html.c:
Use c-ctype.h where possible
2016-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
Use ASCII comparison fpr file extensions
* src/wget.c (_save_file): Use wget_strcasecmp_ascii
2016-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
Replace strcpy
* libwget/net.c (_wget_dns_cache_add, wget_tcp_set_bind_address):
Replace strcpy by memcpy
* src/wget.c (_convert_links): Replace strcpy by snprintf
* src/wget.c (downloader_thread): Replace strcpy by C99 initializer
* src/wget.c (_save_file): Replace strcpy by memcpy
* tests/test-wget-1.c (main): Replace strcpy by memcpy
2016-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
Remove redundant code from buufer routines
* libwget/buffer.c (wget_buffer_strcpy, wget_buffer_strcat):
Remove redundant code
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib modules memchr, memmove, memset, mkdir, strerror, strstr
* autogen.sh: Add gnulib modules memchr, memmove, memset, mkdir, strerror, strstr
* configure.ac: Remove checks for memchr, memmove, memset, mkdir,
strerror, strstr, strchr, strrchr
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module inline
* autogen.sh: Add gnulib module inline
* configure.ac: Remove AC_C_INLINE
* libwget/hashmap.c: Replace inline by _GL_INLINE
* libwget/iri.c: Replace inline by _GL_INLINE
* libwget/ssl_gnutls.c: Replace inline by _GL_INLINE
* libwget/utils.c: Replace inline by _GL_INLINE
* libwget/xalloc.c: Replace inline by _GL_INLINE,
include config.h
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib modules calloc-posix, malloc-posix, realloc-posix
* autogen.sh: Add gnulib modules calloc-posix, malloc-posix, realloc-posix
* configure.ac: Remove two comment lines
* libwget/xalloc.c: Remove rpl_malloc() and rpl_realloc()
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module setlocale
* autogen.sh: Add gnulib module setlocale
* configure.ac: Remove searching for setlocale, locale.h, sys/time.h
* src/wget.c: Move #include <locale.h> (cosmetics)
* examples/Makefile.am: Add $(LIBTHREAD), @INTL_MACOSX_LIBS@ to LDADD
* libwget/Makefile.am: Add to $(LTLIBTHREAD), @INTL_MACOSX_LIBS@ LDADD
* src/Makefile.am: Add $(LIBTHREAD), @INTL_MACOSX_LIBS@ to LDADD
* tests/Makefile.am: Add $(LIBTHREAD), @INTL_MACOSX_LIBS@ to LDADD
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module sys_stat, sys_file, sys_types
* autogen.sh: Add gnulib module sys_stat, sys_file, sys_types
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module sys_time
* autogen.sh: Add gnulib module sys_time
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module errno
* autogen.sh: Add gnulib module errno
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module langinfo
* autogen.sh: Add gnulib module langinfo
* configure.ac: Remove searching for stringprep.h and langinfo.h
* libwget/encoding.c: Remove conditional code
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module iconv
* autogen.sh: Add gnulib module iconv
* configure.ac: Remove AM_ICONV
* examples/Makefile.am: Add $(LIBICONV) to LDADD
* libwget/Makefile.am: Add $(LIBICONV) to LDADD
* src/Makefile.am: Add $(LIBICONV) to LDADD
* tests/Makefile.am: Add $(LIBICONV) to LDADD
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Cover network functions with gnulib modules
* autogen.sh: Add accept, bind, close, connect, getaddrinfo, getsockname,
listen, netdb, netinet_in, open, read, send, sendto, servent, setsockopt,
socket, sys_socket, write to modules
* configure.ac: Remove searching for ws2_32, libsocket, libnsl, netdb.h,
netinet/in.h, sys/socket.h, socket.
Add searching for netinet/tcp.h.
* examples/Makefile.am: Add additional libs.
* libwget/Makefile.am: Add additional libs.
* src/Makefile.am: Add additional libs.
* tests/Makefile.am: Add additional libs.
* libwget/http.c: Remove conditional code.
* libwget/net.c: Remove conditional code. Use c_isdgit().
* libwget/net.h: Remove conditional code.
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Use gnulib module strdup-posix instead of strdup
* autogen.sh: Replace strdup by strdup-posix
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Check if gcc __sync_fetch_and_add works with long long
* configure.ac: Check if gcc __sync_fetch_and_add works with long long
* src/wget.c (_fetch_and_add_longlong): Check WITH_SYNC_FETCH_AND_ADD_LONGLONG
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add compatibility to older flex versions
* libwget/Makefile.am: Remove space between -o and filename
2016-01-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add header file gnulib modules
* autogen.sh: Add gettext-h, inttypes, stdarg, stddef, stdint
* configure.ac: Remove check for inttypes.h, libintl.h, stddef.h
Remove AC_TYPE_* checks
* include/libwget.h.in: Include gnulib gettext.h
* examples/Makefile.am: Fix AM_CPPFLAGS, add $(LIBINTL) to LDADD
* libwget/Makefile.am: Fix LDADD and test_linking_LDADD
* src/Makefile.am: Add $(LIBINTL) to wget2_LDADD
* tests/Makefile.am: Fix AM_CPPFLAGS and libtest_la_CPPFLAGS,
add $(LIBINTL) to LDADD, test_LDADD and test_parse_html_LDADD
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Remove detection of select() from configure.ac
* configure.ac: Remove detection of select()
* src/wget.c: Remove commented include directives
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Add $(LIB_POLL) to *_LDADD
* examples/Makefile.am, src/Makefile.am, tests/Makefile.am:
Add $(LIB_POLL) to *_LDADD
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module poll
* autogen.sh: Add gnulib module poll
* configure.ac: Remove searching for poll.h and sys/poll.h
* libwget/io.c: Remove conditional code
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Use stdlib.h and unistd.h from gnulib
* configure.ac: Remove searching for stdlib.h and unistd.h
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module pwrite
* autogen.sh: Add gnulib module pwrite
* configure.ac: Remove searching for pwrite
* src/wget.c(download_part): Remove conditional code
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module qsort_r
* autogen.sh: Add gnulib module qsort_r
* configure.ac: Remove qsort_r code
* libwget/vector.c: Remove conditional code
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Call wget_str(n)casecmp_ascii instead of str(n)casecmp
* examples/print_css_urls2.c, libwget/cookie.c, libwget/css.c,
libwget/html_url.c, libwget/http.c, libwget/iri.c, libwget/metalink.c,
libwget/net.c, libwget/robots.c, libwget/ssl_gnutls.c,
libwget/stringmap.c, libwget/xml.c, src/job.c, src/options.c, src/wget.c:
Call wget_str(n)casecmp_ascii instead of str(n)casecmp
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib modules c-strcase, c-ctype and strcase
* autogen.sh: Add gnulib modules c-strcase, c-ctype and strcase
* configure.ac: Remove search for string.h, strings.h, str(n)casecmp
* libwget/utils.c: Use c_str(n)casecmp, c_isupper, c_isxdigit
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Update po/POTFILES.in
* po/POTFILES.in: Add src/bar.c and src/options.c,
Remove libwget/printf.c
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Remove libwget/printf.c
* configure.ac: Remove check for dprintf
* include/libwget.h.in: Remove dprintf/vdprintf prototypes
* libwget/Makefile.am: Remove printf.c from file list
* libwget/printf.c: Remove file
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Use dup2 gnulib fallback
* autogen.sh: Add dup2 to gnulib modules
* configure.ac: Remove searching for dup2()
* libwget/pipe.c: Remove commented includes
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Remove usage of alloca()
* libwget/hashfile.c (wget_hash_file_fd): Do not use alloca()
* src/options.c (_read_config): Do not use alloca()
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Add $(LIB_CLOCK_GETTIME) to tests
* tests/Makefile.am: Add $(LIB_CLOCK_GETTIME)
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Use strndup gnulib fallback
* autogen.sh: Add strndup to gnulib modules
* configure.ac: Remove searching for strndup()
* include/libwget.h.in: Remove conditional code
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Remove searching for usleep
* configure.ac: Remove searching for usleep()
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Use glob gnulib fallback
* autogen.sh: Add glob to gnulib modules
* configure.ac: Remove searching for glob() and glob.h
* src/options.c: Remove conditional code
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Use nanosleep gnulib fallback
* autogen.sh: Add nanosleep to gnulib modules
* configure.ac: Remove searching for nanosleep
* examples/Makefile.am: Add $(LIBSOCKET) $(LIB_NANOSLEEP) $(LIB_SELECT)
* src/Makefile.am: Add $(LIBSOCKET) $(LIB_NANOSLEEP) $(LIB_SELECT)
* tests/Makefile.am: Add $(LIBSOCKET) $(LIB_NANOSLEEP) $(LIB_SELECT)
* libwget/utils.c: Remove conditional code
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Use futimens gnulib fallback
* autogen.sh: Add futimens to gnulib modules
* configure.ac: Remove searching for futimens
* src/wget.c: Remove conditional code
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Replace gettimeofday by clock_gettime
* configure.ac: Remove check for gettimeofday
* src/log.c: Remove #include <sys/time>
* src/log.c (_write_debug): Use clock_gettime instead of gettimeofday
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Remove searching for fnmatch and fnmatch.h
* configure.ac: Remove searching for fnmatch and fnmatch.h
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Remove searching for fcntl.h
* configure.ac: Remove searching for fcntl.h
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Fix AC_CHECK_FUNCS for gnutls functions
* configure.ac: Remove 'gnutls' from AC_CHECK_FUNCS()
2016-01-11 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib module clock-time
* autogen.sh: Add clock-time to gnulib modules
* configure.ac: Remove searching for clock_gettime
* src/Makefile.am: Add $(LIB_CLOCK_GETTIME) to wget2_LDADD
* src/wget.c (set_file_mtime): Remove conditional code
2016-01-10 Tim Rühsen <tim.ruehsen@gmx.de>
Replace fnmatch function by gnulib fnmatch
* src/compat_fnmatch.c: Removed
* src/compat_fnmatch.h: Removed
* autogen.sh: Add fnmatch to gnulib modules
* src/Makefile.am: Remove compat_fnmatch.[ch]
* src/wget.c: Unconditionally include fnmatch.h
2016-01-10 Tim Rühsen <tim.ruehsen@gmx.de>
Remove test-ftp and test-ftps from test suite
* tests/Makefile.am: Remove test-ftp and test-ftps
These test were introduced as helpers for FTPS integration for
Wget1.x (GSOC 2015 project). We disable them until Wget2 supports
FTP/FTPS.
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Fix branch name in Travis-CI icon URL
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Add Travis-CI status icon
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Really fix return code of wget_str(n)casecmp_ascii
* libwget/utils.c (wget_strcasecmp_ascii, wget_strncasecmp_ascii):
Fix return value
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Fix return code of wget_strcasecmp_ascii and wget_strncasecmp_ascii
* libwget/utils.c (wget_strcasecmp_ascii, wget_strncasecmp_ascii):
Fix return value
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Link with libgnu.a
* libwget/Makefile.am: Add lib/ to AM_CPPFLAGS, add libgnu.a to *_LDADD
* src/Makefile.am: Same
* tests/Makefile.am: Same, rename object files to link with tests
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Fix OpenSolaris libidn include directory
* configure.ac: Search for idn/idna.h
* libwget/encoding.c: Include idn/idna.h if found
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Add flock to gnulib modules
* autogen.sh: Add flock to gnulib modules
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Fix Name + Libs in pkg-config file
* libwget.pc.in: Set Name to libwget and change -llibwget to -lwget
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Remove API version from library file names
* .gitignore, Makefile.am, configure.ac, examples/Makefile.am,
libwget.pc.in, libwget/Makefile.am, src/Makefile.am, tests/Makefile.am:
Remove API version from library file names
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Build shared library by default
* configure.ac: Add disable-static to LT_INIT
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Hook gnulib into project
2016-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
Add gnulib as submodule
2016-01-08 Tim Rühsen <tim.ruehsen@gmx.de>
Add error code WGET_E_TLS_DISABLED
* libwget/ssl_gnutls.c: If TLS is not compiled in, return WGET_E_TLS_DISABLED
from wget_ssl_open() and wget_ssl_server_open().
2016-01-05 Darshit Shah <darnir@gmail.com>
Fix .travis.yml file for Linux systems
* .travis.yml: Container based architecture doesn't allow Sudo.
Migrate file to support container based architecture
* .travis.sh: Same
2016-01-08 Darshit Shah <darnir@gmail.com>
Do not print responses in tests
* tests/test.c (check_cookie): Do not print responses. We want
this test to expose memory leaks, but printing the response of
wget_cookie_create_request_header isn't needed.
2016-01-08 Darshit Shah <darnir@gmail.com>
Use absolute pathanme to find PSL data
* tests/Makefile.am: PSL DATADIR should be the absolute pathname to
allow us to run tests from any directory.
2016-01-07 Tim Rühsen <tim.ruehsen@gmx.de>
Add support for gcrypt hashing
* configure.ac: Add libgcrypt as fallback for libnettle
* libwget/hashfile.c: Add gcrypt hash functions
2016-01-07 Tim Rühsen <tim.ruehsen@gmx.de>
Fix hash functions for use with libnettle
* src/hashfile: Add needed includes (nettle 3.1.1 and 2.7)
* src/hashfile (wget_hash_deinit): Call digest() instead of update()
2016-01-07 Tim Rühsen <tim.ruehsen@gmx.de>
Skip HTTPS tests when no HTTPS available
* tests/test-i-https.c: Skip test when no HTTPS available
2016-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
Do not descend into subdomains if not requested
* src/wget.c (in_host_pattern_list): Fix arguments of wget_match_tail()
2016-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
Auto-generate version defines for library header file
* include/libwget.h: Removed
* include/libwget.h.in: Added
2016-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
Rename LIBWGET_API_VERSION to LIBWGET_VERSION
2016-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
Fix hashing with GnuTLS
* libwget/ssl_gnutls.c: Do not skip automatic library initialization
* libwget/md5.c (wget_md5_printf_hex): Print message on error
* tests/test.c: New tests for hashing functionality
GnuTLS automatically initializes on application startup.
This wastes CPU cycles when not using HTTPS.
Switched off, simple functionality like MD5 fail (needed for metalink and
authorization). We have to implement hashing via -lcrypt or -lgcrypt
later - and than we could use GNUTLS_SKIP_GLOBAL_INIT again.
2016-01-06 Tim Rühsen <tim.ruehsen@gmx.de>
Do not percent unescape query
* tests/test.c: Test query parsing in API
* tests/test-base.c: Test query handling of wget2
* include/libwget.h: Add flags to wget_iri_t,
add function wget_iri_unescape_inline()
* libwget/iri.c: Add function wget_iri_unescape_inline(),
fix wget_iri_parse() to not percent unescape query
do not add fragment in wget_iri_get_escaped_resource()
2015-12-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix iconv conversion
* libwget/encoding.c: Kick out the last character from iconv().
Thanks to Eli Zaretskii <eliz@gnu.org> for suggesting the fix.
Reported-by: "Andries E. Brouwer" <Andries.Brouwer@cwi.nl>
2015-12-13 Ander Juaristi <ajuaristi@gmx.es>
Fix error return value in I/O code
* libwget/io.c: fix return value of __read() in case of error
2015-11-30 Ander Juaristi <ajuaristi@gmx.es>
Complete docs in I/O API
* libwget/http.c (wget_http_get_response_cb): removed unused variable
(compiler warning).
* libwget/io.c
(wget_fdgetline,wget_getline,wget_read_file,wget_update_file): added
source docs. Refactor: avoid code repetition.
(wget_ready_2_transfer): fixed HTML rendering of docs.
* docs/libwget/libwget-sections.txt: added new functions to GTK-Doc.
2015-11-23 Tim Rühsen <tim.ruehsen@gmx.de>
Fix return value in HSTS and Cookie code
* libwget/cookie.c (wget_cookie_db_load, wget_cookie_db_save):
Fix return value
* libwget/hsts.c (wget_hsts_db_load, wget_hsts_db_save):
Fix return value
2015-11-23 Tim Rühsen <tim.ruehsen@gmx.de>
Disable 'unused' warnings in CSS tokenizer
* libwget/css_tokenizer.lex: Disable GCC warnings unused-parameter
and unused-function
2015-11-23 Tim Rühsen <tim.ruehsen@gmx.de>
Cleanup cookie code
Cookies: Add new function wget_cookie_set_keep_session_cookies()
and adjust wget_cookie_db_load() and wget_cookie_db_save().
Use wget_update_file() for loading and saving.
2015-11-23 Tim Rühsen <tim.ruehsen@gmx.de>
Add check for function param in HSTS code
* libwget/hsts.c (wget_hsts_db_save): Check hsts_db for NULL,
(wget_hsts_db_load): Fix typo in error message
2015-11-23 Tim Rühsen <tim.ruehsen@gmx.de>
Fix typo in OSCP error message
* libwget/ocsp.c (wget_ocsp_db_load): Fix typo
2015-11-23 Tim Rühsen <tim.ruehsen@gmx.de>
Adjust OCSP and HSTS default file names
* src/options.c (print_help, init): Use ~/.wget-hsts and ~/.wget-ocsp
2015-11-23 Tim Rühsen <tim.ruehsen@gmx.de>
Fix test suite for CygWin
* New CygWin specific code for removing/cleaning test directory
2015-11-23 Tim Rühsen <tim.ruehsen@gmx.de>
Fix tests/test.c for non-GNU standard C libraries
* tests/test.c (test_buffer_printf): Skip left zero padding strings
2015-11-18 Tim Rühsen <tim.ruehsen@gmx.de>
Avoid implicit gloabl initialization by GnuTLS
* libwget/ssl_gnutls.c: Use GNUTLS_SKIP_GLOBAL_INIT if defined
2015-11-18 Tim Rühsen <tim.ruehsen@gmx.de>
Fix basename in wget_update_file()
* libwget/io.c (wget_update_file): Fxi basename
2015-11-11 Tim Rühsen <tim.ruehsen@gmx.de>
Add new options --netrc and --netrc-file
* libwget/netrc.c: New file for netrc API functions
* include/libwget.h: Add netrc function prototypes
* libwget/Makefile.am: Add netrc.c
* libwget/test_linking.c (main): Add call to wget_netrc_deinit()
* src/options.c: Add --netrc and --netrc-file
* src/options.h: Add config.netrc and config.netrc_file
* src/wget.c (http_get): Get login/password from netrc data
* tests/test-auth-basic.c (main): Add test for --netrc-file
2015-11-10 Tim Rühsen <tim.ruehsen@gmx.de>
Add define ascii_isspace and ascii_isalpha
* libwget/xml.c: Add and use defines here
2015-11-10 Tim Rühsen <tim.ruehsen@gmx.de>
Replace strlpcy by memcpy
* src/options.c (set_long_option): Replace strlcpy()
2015-11-10 Tim Rühsen <tim.ruehsen@gmx.de>
Replace calls to strncpy by memcpy
* libwget/xml.c (parseXML): Replace calls to strncpy()
2015-11-10 Tim Rühsen <tim.ruehsen@gmx.de>
Replaced strndup() by wget_strmemdup()
* examples/getstream.c, examples/print_css_urls2.c, libwget/cookie.c,
libwget/css_url.c, libwget/encoding.c, libwget/hsts.c,
libwget/html_url.c, libwget/http.c, libwget/metalink.c,
libwget/ocsp.c, libwget/robots.c, libwget/ssl_gnutls.c,
src/options.c, src/wget.c, tests/stringmap_perf.c,
tests/test-wget-1.c
Strndup() calls an additional strlen() on the input string.
This is normally not needed, and thus just consumes CPU cycles.
All calls to strndup() could be replaced by wget_strmemdup, which
basically allocates len+1 memory, calls memcpy and terminates with
a 0 byte.
2015-11-09 Tim Rühsen <tim.ruehsen@gmx.de>
Add type of file for OCSP databases
* libwget/ocsp.c (_ocsp_db_save_hosts): Add type of file to database
files.
2015-11-09 Tim Rühsen <tim.ruehsen@gmx.de>
Amend message when successfully updating files
* libwget/io.c (wget_update_file): Amend message
2015-11-09 Ander Juaristi <ajuaristi@gmx.es>
Avoid potential race condition in HSTS code
* libwget/hsts.c (_hsts_db_load): new internal function.
(wget_hsts_db_load): moved code to _hsts_db_load() internal function.
(wget_hsts_db_save): lock the file before saving, to avoid race
conditions. Reload only if access time greater than last read time.
2015-11-06 Tim Rühsen <tim.ruehsen@gmx.de>
Use wget_update_file() in OCSP code
* libwget/ocsp.c: Rearranged code to use wget_update_file
2015-11-06 Tim Rühsen <tim.ruehsen@gmx.de>
Add new function wget_update_file()
* include/libwget.h: Add wget_update_file()
* libwget/io.c: Add wget_update_file()
Add a function to care about locking, temp files, opening
overhead for our typical updating file database procedure.
Useful for HSTS, OCSP and Cookie file databases.
2015-11-08 Tim Rühsen <tim.ruehsen@gmx.de>
Close va_start() with va_end()
* tests/libtest.c (wget_test): Add va_end()
2015-11-06 Tim Rühsen <tim.ruehsen@gmx.de>
Adjust HSTS unit tests to latest changes
* tests/test.c (test_hsts): Adjust port 80 test, new port 8080 test
2015-11-04 Tim Rühsen <tim.ruehsen@gmx.de>
Use logic or instead of binary or
* libwget/atom_url.c (_atom_get_url): Use logic or
2015-10-31 Ander Juaristi <ajuaristi@gmx.es>
Fixed HSTS policy application
* include/libwget.h (wget_iri_set_scheme): new function.
* libwget/hsts.c (wget_hsts_host_match): HTTP default port -> HTTPS
default port
* libwget/iri.c (wget_iri_set_scheme): new function.
* src/wget.c (http_get): when changing the scheme, change the port
number as well (call wget_iri_set_scheme).
2015-10-30 Tim Rühsen <tim.ruehsen@gmx.de>
Add function wget_global_get_func()
* include/libwget.h: Add wget_global_get_func() prototype
* libwget/init.c: Add function wget_global_get_func()
2015-10-30 Tim Rühsen <tim.ruehsen@gmx.de>
Adjust package name and version
* configure.ac: Adjust package name and version
2015-10-28 Tim Rühsen <tim.ruehsen@gmx.de>
Fix HTTP2 in combination with --progress=bar
* src/wget.c (http_get): Call wget_http_get_response_cb()
2015-10-28 Tim Rühsen <tim.ruehsen@gmx.de>
Some cleanups
* src/options.c (read_config): Check for config.config_file
(get_home_dir): Cleanup
(init): Check for readability of config.config_file
2015-10-28 Tim Rühsen <tim.ruehsen@gmx.de>
Free config.config_file on exit
* src/options.c (deinit): Free config.config_file
2015-10-28 Tim Rühsen <tim.ruehsen@gmx.de>
Exit early on 0 URLs to process
* src/wget.c (main): Exit if no URLs found to process
2015-10-28 Tim Rühsen <tim.ruehsen@gmx.de>
Print error for unsupported CLI URLs
* src/wget.c (add_url_to_queue): Print error message
2015-10-27 Tim Rühsen <tim.ruehsen@gmx.de>
Rename --dns-cache to --dns-caching
* src/options.c: Rename --dns-cache to --dns-caching,
Remove double entry from help text
2015-10-27 Tim Rühsen <tim.ruehsen@gmx.de>
Rename --continue-download to --continue
* src/options.c: Rename --continue-download to --continue
2015-10-26 Tim Rühsen <tim.ruehsen@gmx.de>
Fix default_page to default-page in help text
* src/options.c: Fix default_page to default-page
2015-10-25 Tim Rühsen <tim.ruehsen@gmx.de>
Fix HTML BASE with absolute path
* src/wget.c (html_parse): Fix HTML BASE with absolute path
* tests/Makefile.am: Add test-base.c
* tests/test-base.c: New file
2015-10-25 Tim Rühsen <tim.ruehsen@gmx.de>
Add download statistics
* src/wget.c: New structure _statistics_t,
New function _fetch_and_add_longlong(),
(main): Print stats
(http_get): Collect stats
2015-10-24 Tim Rühsen <tim.ruehsen@gmx.de>
Remove unused argument argv from option parser functions
* src/options.c (struct option): Remove argv from parser()
(print_help, parse_integer, parse_numbytes, parse_string,
parse_stringset, parse_stringlist, parse_taglist, parse_bool,
parse_mirror, parse_timeout, parse_cert_type, parse_restrict_names,
parse_n_option, parse_prefer_family, parse_execute, parse_execute):
Remove unused argument argv.
* src/options.c (set_long_option): Adjust calls to parser functions.
2015-10-24 Tim Rühsen <tim.ruehsen@gmx.de>
Comment code for broken servers and document it
* libwget/src (wget_http_parse_response_header): Comment code
for broken servers and document it.
2015-10-24 Darshit Shah <darnir@gmail.com>
Ensure atleast one downloader thread
* src/options.c (init): The check for the minimum number of downloader
threads should be done on config.max_threads not config.num_threads.
2015-10-23 Tim Rühsen <tim.ruehsen@gmx.de>
Abort on SIGTERM or on 2x CTRL-C
i* src/wget.c (nop): Abort on SIGTERM or on 2x CTRL-C
2015-10-23 Tim Rühsen <tim.ruehsen@gmx.de>
Add --config option for backwards compatibility
* src/options.c: Add --config
2015-10-23 Giuseppe Scrivano <gscrivan@redhat.com>
Exit immediately if cannot set http_proxy or https_proxy
* src/wget.c (main): Exit immediately on an "init()" error.
* src/options.c (init): Raise an error if cannot set http_proxy or https_proxy.
* tests/test-parse-html.c (main): Check for "init" errors.
* tests/test.c (main): Check for "init" errors.
2015-10-23 Giuseppe Scrivano <gscrivan@redhat.com>
set_http_proxy and set_https_proxy can return an error
* libwget/http.h (wget_http_set_http_proxy): change the return type to int.
(wget_http_set_https_proxy): change the return type to int
* libwget/http.c (wget_http_set_http_proxy): return an error if cannot set the proxies.
(wget_http_set_https_proxy): return an error if cannot set the proxies.
2015-10-22 Giuseppe Scrivano <gscrivan@redhat.com>
Indent C preprocessor directives
* libwget/css_tokenizer.h: Indent C preprocessor directives.
* libwget/net.h: Likewise.
* libwget/private.h: Likewise.
* src/bar.h: Likewise.
* src/blacklist.h: Likewise.
* src/compat_fnmatch.h: Likewise.
* src/host.h: Likewise.
* src/job.h: Likewise.
* src/log.h: Likewise.
* src/options.h: Likewise.
* src/wget.h: Likewise.
2015-10-22 Giuseppe Scrivano <gscrivan@redhat.com>
.dir-locals.el: new file
2015-10-22 Giuseppe Scrivano <gscrivan@redhat.com>
Fix function prototypes
* src/bar.h: Fix function prototype.
* src/blacklist.h: Fix function prototype.
* src/compat_fnmatch.h: Fix function prototype.
* src/host.h: Fix function prototype.
* src/job.h: Fix function prototype.
* src/log.h: Fix function prototype.
* src/options.h: Fix function prototype.
2015-10-22 Giuseppe Scrivano <gscrivan@redhat.com>
Check for wget_iri_parse errors
* libwget/ssl_gnutls.c (send_ocsp_request): Check for wget_iri_parse errors.
* libwget/http_highlevel.c (wget_http_get): Check for wget_iri_parse errors.
* libwget/http.c (_parse_proxies): Check for wget_iri_parse errors.
2015-10-21 Ander Juaristi <ajuaristi@gmx.es>
Documented hashing functions
2015-10-20 Ander Juaristi <ajuaristi@gmx.es>
Typos
2015-10-20 Ander Juaristi <ajuaristi@gmx.es>
Initial docs for hashing utils
2015-10-23 Darshit Shah <darnir@gmail.com>
Fix compiler warning about unused return code
* src/options.c (init): Clang complains about an unused return code from
asprintf. So, we check to ensure that asprintf() actually managed to
allocate the said string.
2015-10-23 Darshit Shah <darnir@gmail.com>
Allow recursive downloads to be more concurrent
* src/wget.c (main): In cases where the queue_size is not known at
startup, spawn the maximum allowed threads for the thread pool.
2015-10-22 Darshit Shah <darnir@gmail.com>
Add option to explicitly set path to wgetrc file
* src/options.c (print_help, config, init, options): Add new option
--config-file.
* src/options.h: Same as above
* src.options.c (read_config): Use the config.config_file value instead
of a hard coded file path for wgetrc
2015-10-22 Darshit Shah <darnir@gmail.com>
OCSP and HSTS files should be stored to ~/.wget_*
* src/options.c: Include the pwd.h file to get access to pwd routines
* src/options.c (get_home_dir): New function that return strdup'ed
string containing location of directory for storing config files
* src/options.c (init): Initialize the config.hsts_file and
config.ocsp_file values correctly using get_home_dir()
* src/options.h (config): Move hsts_file and ocsp_file from being const
char* storages to only char* storages.
2015-10-20 Tim Rühsen <tim.ruehsen@gmx.de>
Add new test tests/test-redirection.c
2015-10-20 Tim Rühsen <tim.ruehsen@gmx.de>
Add extension of test suite port variables in response headers
* tests/libtest.h: Add member header_alloc to wget_test_url_t
* tests/libtest.c: Extend port vars in response headers
2015-10-19 Tim Rühsen <tim.ruehsen@gmx.de>
On CTRL-C save downloaded data before exit
* include/libwget.h: New declaration wget_http_abort_connection()
* libwget/http.c: New function wget_http_abort_connection()
* src/wget.c: Call wget_http_abort_connection() on CTRL-C
2015-10-19 Giuseppe Scrivano <gscrivan@redhat.com>
gnutls: check for gnutls_srp_server_get_username function
2015-10-18 Darshit Shah <darnir@gmail.com>
Rename option --num-threads to --max-threads
* src/options.[ch]: Rename the option --num-threads to --max-threads
which better describes the content it holds. We keep the --num-threads
config option around, since it will be used to hold the *actual* number
of threads in this instance of Wget2.
* src/wget.c (main): Initialize the value of config.num_threads. This
value is atmost config.max_threads or the number of URLs to download,
whichever is lower.
2015-10-18 Tim Rühsen <tim.ruehsen@gmx.de>
Change 'git branch' into 'git checkout'
* README.md: Change 'git branch' into 'git checkout'
2015-10-17 Tim Rühsen <tim.ruehsen@gmx.de>
Fix TLS read timeout issue with GnuTLS 3.4.x
* libwget/ssl_gnutls.c (wget_ssl_read_timeout): Comment out
code path for GnuTLS >= 0x030107
2015-10-16 Darshit Shah <darnir@gmail.com>
Fix issue when --debug is the first option passed
* src/options.c (init): set_long_option() expects only a the option
name without the preceeding --. Ensure that we remove those when
passing the --debug flag.
2015-10-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix shell in contrib/gen_option_diff.sh
* contrib/gen_option_diff.sh: Explicitly use /bin/bash
2015-10-15 Tim Rühsen <tim.ruehsen@gmx.de>
Add contrib/gen_option_diff.sh
* contrib/gen_option_diff.sh: New script file
2015-10-11 Tim Rühsen <tim.ruehsen@gmx.de>
Remove mentioning SPDY from README.md
* README.md: Remove mentioning SPDY
2015-10-11 Tim Rühsen <tim.ruehsen@gmx.de>
Rename wget executable to wget2
* .gitignore: Replace src/wget by src/wget2
* src/Makefile.am: Rename wget to wget2
* tests/Makefile.am: Link wget2-* objects
* tests/libtest.c: Execute wget2 instead of wget
2015-09-28 Tim Rühsen <tim.ruehsen@gmx.de>
Handle TLS rehandshakes
* libwget/ssl_gnutls.c: New static function _do_handshake()
* libwget/ssl_gnutls.c (wget_ssl_open): Move handshake code to _do_handshake()
* libwget/ssl_gnutls.c (wget_ssl_server_open): Use _do_handshake()
* libwget/ssl_gnutls.c (wget_ssl_read_timeout): Handle rehandshake
* libwget/ssl_gnutls.c (wget_ssl_write_timeout): Handle rehandshake
2015-09-23 Tim Rühsen <tim.ruehsen@gmx.de>
Add copyright notes to NEWS
* NEWS: Add copyright notes
2015-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
Print number of downloaded files and bytes when done
* src/wget.c: Print number of downloaded files and bytes when done
2015-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
Fix SPDY incompatibility
* src/options.c: Remove spdy/3.1 from ALPN offer
2015-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
Fix README
* README: Fix to wget2
2015-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
Fix README.md
* README.md: Fix to wget2
2015-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
Transfer copyright to Free Software Foundation, Inc.
2015-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
Fix mailing list and website in configure.ac
* configure.ac: Fix mailing list and website in AC_INIT
2015-09-21 Tim Rühsen <tim.ruehsen@gmx.de>
Add ABOUT-NLS and INSTALL to .gitignore
* .gitignore: Add ABOUT-NLS and INSTALL
2015-09-21 Tim Rühsen <tim.ruehsen@gmx.de>
Add fallback code for GnuTLS < 3.1.7
* libwget/ssl_gnutls.c (wget_ssl_read_timeout): Add fallback code for
older versions of GnuTLS.
2015-09-19 Tim Rühsen <tim.ruehsen@gmx.de>
Transform Mget into Wget
2015-09-18 Tim Rühsen <tim.ruehsen@gmx.de>
More HTTP/2 related code, new option --(no-)http2
2015-09-13 Tim Rühsen <tim.ruehsen@gmx.de>
Fixed cookie test routine
2015-09-12 Tim Rühsen <tim.ruehsen@gmx.de>
Added missing breaks to switch in libtest.c
2015-09-12 Tim Rühsen <tim.ruehsen@gmx.de>
Fix resource leak in new HTTP/2 code
2015-09-11 Tim Rühsen <tim.ruehsen@gmx.de>
Fix compilation without nghttp2
2015-09-11 Tim Rühsen <tim.ruehsen@gmx.de>
HTTP/2 download is working
2015-09-11 Tim Rühsen <tim.ruehsen@gmx.de>
Fix res->encoding in _html_get_url()
2015-09-10 Tim Rühsen <tim.ruehsen@gmx.de>
Fix typo in comment
2015-09-07 Tim Rühsen <tim.ruehsen@gmx.de>
Rearrange HTTP header API
2015-09-07 Tim Rühsen <tim.ruehsen@gmx.de>
Request HTTP/1.1 and HTTP/2.0 via ALPN
2015-08-31 Tim Rühsen <tim.ruehsen@gmx.de>
Fix Content-Disposition filename retrieval
2015-08-28 Tim Rühsen <tim.ruehsen@gmx.de>
Fix filename when charset conversion fails #2
2015-08-28 Tim Rühsen <tim.ruehsen@gmx.de>
Remove iconv() from AC_CHECK_FUNCS
2015-08-28 Tim Rühsen <tim.ruehsen@gmx.de>
Include sys/types.h in libmget.h
2015-08-28 Tim Rühsen <tim.ruehsen@gmx.de>
Fix filename when charset conversion fails
2015-07-12 Tim Rühsen <tim.ruehsen@gmx.de>
Unify mget_ssl_server_open and mget_ssl_open
2015-07-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add AUTH command to FTP test suite
2015-07-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add tests/test-ftps.c
2015-07-12 Tim Rühsen <tim.ruehsen@gmx.de>
Remove INSTALL from git
2015-07-12 Tim Rühsen <tim.ruehsen@gmx.de>
Add mget_tcp_tls_start() and mget_tcp_tls_stop()
2015-07-11 Tim Rühsen <tim.ruehsen@gmx.de>
Add FTPS server to test suite
2015-07-11 Tim Rühsen <tim.ruehsen@gmx.de>
Allow ordered and unordered I/O for FTP test suite
2015-07-10 Tim Rühsen <tim.ruehsen@gmx.de>
Add --inet4-only to tests/test-ftp.c
2015-07-10 Tim Rühsen <tim.ruehsen@gmx.de>
Added EPSV to tests/libtest.c
2015-07-10 Tim Rühsen <tim.ruehsen@gmx.de>
Include sys/wait.h for WIF* macros
2015-07-10 Tim Rühsen <tim.ruehsen@gmx.de>
Remove tests/.test_* with make clean
2015-07-10 Tim Rühsen <tim.ruehsen@gmx.de>
Remove unused variables from tests/libtest.c
2015-07-10 Tim Rühsen <tim.ruehsen@gmx.de>
Remove GNU make specialty from libmget/Makefile.am
2015-07-10 Tim Rühsen <tim.ruehsen@gmx.de>
Remove qsort_r trampoline version
2015-07-10 Tim Rühsen <tim.ruehsen@gmx.de>
Fix tests/libtest.c crash recently introduced
2015-07-09 Tim Rühsen <tim.ruehsen@gmx.de>
Add first FTP testing capability
2015-07-09 Tim Rühsen <tim.ruehsen@gmx.de>
Don't cache automatic server ports
2015-07-09 Tim Rühsen <tim.ruehsen@gmx.de>
Add Travis CI OSX check
2015-07-09 Tim Rühsen <tim.ruehsen@gmx.de>
Fix typo in libmget/encoding.c
2015-07-06 Tim Rühsen <tim.ruehsen@gmx.de>
Work around a libidn 1.30 vulnerability
2015-07-06 Tim Rühsen <tim.ruehsen@gmx.de>
Revert "Bump GETTEXT to version 0.19.1"
This reverts commit 469e501859c33ab0cb842eb5928698ed29ed9f9e.
2015-07-06 Tim Rühsen <tim.ruehsen@gmx.de>
Allow NULL for mget_http_parse_setcookie()i cookie param
2015-07-06 Tim Rühsen <tim.ruehsen@gmx.de>
Bump GETTEXT to version 0.19.1
2015-07-06 Tim Rühsen <tim.ruehsen@gmx.de>
Avoid tautological check warnings from clang
2015-07-06 Tim Rühsen <tim.ruehsen@gmx.de>
Avoid printf format warning
2015-07-06 Tim Rühsen <tim.ruehsen@gmx.de>
Add check and support for BSD style qsort_r
2015-07-05 Tim Rühsen <tim.ruehsen@gmx.de>
Fix check for HAVE_DPRINTF in libmget/printf.c
2015-05-04 Tim Ruehsen <tim.ruehsen@gmx.de>
Fix waste of CPU cycles in mget_iri_relative_to_abs()
2015-05-02 Tim Ruehsen <tim.ruehsen@gmx.de>
prepared for release
2015-03-22 Tim Ruehsen <tim.ruehsen@gmx.de>
use random/srandom instead weak functions rand/srand
2015-03-18 Tim Rühsen <tim.ruehsen@gmx.de>
added .gitignore
2015-03-13 Tim Rühsen <tim.ruehsen@gmx.de>
fixing two more Coverity issues
2015-03-12 Tim Ruehsen <tim.ruehsen@gmx.de>
fixing more Coverity issues
2015-03-09 Tim Rühsen <tim.ruehsen@gmx.de>
fixing more Coverity issues
2015-03-08 Tim Ruehsen <tim.ruehsen@gmx.de>
changes in hashmap handling
2015-03-07 Tim Ruehsen <tim.ruehsen@gmx.de>
fix several issues found by Coverity
2015-03-03 Tim Ruehsen <tim.ruehsen@gmx.de>
comment unused mget_bsprintf functions
2015-03-03 Tim Ruehsen <tim.ruehsen@gmx.de>
fix possible buffer overflow
2015-03-01 Tim Ruehsen <tim.ruehsen@gmx.de>
added Coverity Scan Status
2015-02-28 Tim Ruehsen <tim.ruehsen@gmx.de>
fix strndup() compat function
2015-02-27 Tim Rühsen <tim.ruehsen@gmx.de>
replace logger vsprintf, Solaris *printf can't handle NULL arguments
2015-02-27 Tim Rühsen <tim.ruehsen@gmx.de>
add comment regarding Solaris sprintf behaviour
2015-02-27 Tim Rühsen <tim.ruehsen@gmx.de>
add link to Solaris (p)thread docs
2015-02-26 Tim Rühsen <tim.ruehsen@gmx.de>
check for Solaris encoding '646'
2015-02-26 Tim Rühsen <tim.ruehsen@gmx.de>
convert pid to int
2015-02-26 Tim Rühsen <tim.ruehsen@gmx.de>
added %c to mget_buffer_vprintf_append2
2015-02-26 Tim Rühsen <tim.ruehsen@gmx.de>
add -pthread compiler option
2015-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
use mget_buffer_vprintf2 in logger
2015-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
make %s work with NULL values in mget_buffer_printf2()-like functions
2015-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
added libmget/net.h to Makefile.am
2015-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
fixed memleak in mget_http_parse_challenge()
2015-02-24 Tim Rühsen <tim.ruehsen@gmx.de>
fixed Mget return value for HTTPS failures
2015-02-22 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed tests/Makefile.am
2015-02-22 Tim Ruehsen <tim.ruehsen@gmx.de>
updated tests/certs (old certs expired on 11.2.2015)
2015-02-20 Tim Rühsen <tim.ruehsen@gmx.de>
added ALPN for TLS sessions
2015-02-06 Tim Ruehsen <tim.ruehsen@gmx.de>
added missing files to src/Makefile.am
2015-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
add @LTLIBICONV@ @LTLIBINTL@ to tests
2015-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
add LTLIBICONV and LTLIBINTL to LDADD for Solaris
2015-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
check for FNM_CASEFOLD
2015-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
include alloca.h
2015-02-06 Tim Rühsen <tim.ruehsen@gmx.de>
check for libsocket and libnsl on Solaris
2015-02-05 Tim Rühsen <tim.ruehsen@gmx.de>
fix compiler warnings
2015-02-05 Tim Rühsen <tim.ruehsen@gmx.de>
include libintl.h before redefinition of gettext functions
2015-02-04 Tim Rühsen <tim.ruehsen@gmx.de>
added Resources in comment of libmget/ssl_gnutls.c
2015-01-30 Tim Rühsen <tim.ruehsen@gmx.de>
include alloca.h if available
2015-01-30 Tim Rühsen <tim.ruehsen@gmx.de>
require gettext 0.18.1
2015-01-30 Tim Rühsen <tim.ruehsen@gmx.de>
fix configure and doc stuff
2015-01-30 Tim Rühsen <tim.ruehsen@gmx.de>
fix compilation with older GnuTLS (without OCSP)
2015-01-29 Tim Rühsen <tim.ruehsen@gmx.de>
added full cert chain OCSP check
2015-01-22 Tim Rühsen <tim.ruehsen@gmx.de>
fix building man pages
2015-01-22 Tim Rühsen <tim.ruehsen@gmx.de>
fix conditional HAVE_PO in configure.ac
2015-01-16 Tim Rühsen <tim.ruehsen@gmx.de>
OCSP check the whole certificate chain
2015-01-15 Tim Rühsen <tim.ruehsen@gmx.de>
added OCSP fix from GnuTLS project
https://gitorious.org/gnutls/gnutls/commit/11eebe14b232ec198d1446a3720e6ed78d118c4b
2015-01-14 Tim Ruehsen <tim.ruehsen@gmx.de>
fix mget_tcp_set_tcp_fastopen()
2015-01-14 Tim Ruehsen <tim.ruehsen@gmx.de>
removed two indentations in configure.ac
2015-01-13 Tim Rühsen <tim.ruehsen@gmx.de>
added --tcp-fastopen to enable/disable TCP Fast Open
2015-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
removed --load-hsts and --save-hsts
2015-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
add creation time to OCSP entries
2015-01-09 Tim Rühsen <tim.ruehsen@gmx.de>
fix loading/saving OCSP cache
2015-01-08 Tim Rühsen <tim.ruehsen@gmx.de>
added OCSP response caching
2015-01-07 Tim Rühsen <tim.ruehsen@gmx.de>
OCSP code tuning
2015-01-07 Tim Rühsen <tim.ruehsen@gmx.de>
added linefeed in --help text
2015-01-05 Tim Rühsen <tim.ruehsen@gmx.de>
mention autopoint as build requisite
2015-01-05 Tim Rühsen <tim.ruehsen@gmx.de>
Skip po directory if GETTEXT not available
2014-12-31 Tim Rühsen <tim.ruehsen@gmx.de>
fix OCSP request condition
2014-12-30 Tim Rühsen <tim.ruehsen@gmx.de>
list pkg-config in Requirements
2014-12-21 Tim Ruehsen <tim.ruehsen@gmx.de>
added more tests for parsing challenges
2014-12-18 Tim Ruehsen <tim.ruehsen@gmx.de>
added test for WWW-Authenticate challenge parsing
2014-12-18 Tim Rühsen <tim.ruehsen@gmx.de>
new options --ocsp and --ocsp-stapling
2014-12-15 Tim Ruehsen <tim.ruehsen@gmx.de>
Check for gnutls/ocsp.h to compile on older systems
2014-12-14 Tim Ruehsen <tim.ruehsen@gmx.de>
First experimental commit with OCSP (stapling+non-stapling) support
2014-12-09 Tim Rühsen <tim.ruehsen@gmx.de>
tail match instead of full match for --domains/-D/--exclude-domains
2014-12-09 Tim Rühsen <tim.ruehsen@gmx.de>
Add wildcard support for -D/--domains and --exclude-domains
2014-11-23 Tim Ruehsen <tim.ruehsen@gmx.de>
add +/-psl to --version output
2014-11-14 Tim Rühsen <tim.ruehsen@gmx.de>
added pkg-config support for library searching
2014-11-12 Tim Rühsen <tim.ruehsen@gmx.de>
check GnuTLS version for OCSP functionality
2014-11-12 Tim Rühsen <tim.ruehsen@gmx.de>
fix compilation error, add OCSP stapling status report
2014-11-12 Tim Rühsen <tim.ruehsen@gmx.de>
Cert messages slightly amended
2014-11-10 Tim Rühsen <tim.ruehsen@gmx.de>
check for qsort_r()
2014-10-24 Tim Ruehsen <tim.ruehsen@gmx.de>
added --crl-file for CRL certificates
2014-10-18 Tim Ruehsen <tim.ruehsen@gmx.de>
moved basic progress bar routines to libmget
2014-10-13 Tim Rühsen <tim.ruehsen@gmx.de>
fixed race condition when having a filename / directory clash
2014-10-10 Tim Rühsen <tim.ruehsen@gmx.de>
added port to Referer: HTTP header
2014-10-10 Tim Rühsen <tim.ruehsen@gmx.de>
changed valgrind testing
2014-10-10 Tim Rühsen <tim.ruehsen@gmx.de>
better result code compatibility with Wget
2014-10-10 Tim Rühsen <tim.ruehsen@gmx.de>
more pedantic scheme check for IRI parsing
2014-10-07 Tim Ruehsen <tim.ruehsen@gmx.de>
removed css_tokenizer.c from po/POTFILES.in
2014-10-07 Tim Rühsen <tim.ruehsen@gmx.de>
use AM_TESTS_ENVIRONMENT for valgrind testing
2014-10-07 Tim Rühsen <tim.ruehsen@gmx.de>
suppress lex warnings
2014-10-07 Tim Rühsen <tim.ruehsen@gmx.de>
building docs with distcheck -jn randomly failed, now using .NOTPARALLEL
2014-10-07 Tim Rühsen <tim.ruehsen@gmx.de>
tuned makefiles
2014-09-23 Tim Rühsen <tim.ruehsen@gmx.de>
use ASCII-only string case comparison
2014-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
added --post-data and --post-file
2014-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
added --backups
2014-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
removed debugging from test-directory-clash
2014-09-22 Tim Rühsen <tim.ruehsen@gmx.de>
fixed directory clashes and added test-directory-clash
2014-09-18 Tim Rühsen <tim.ruehsen@gmx.de>
added threaded progress bar (--progress=bar)
2014-09-12 Tim Rühsen <tim.ruehsen@gmx.de>
added progrsss bar code
2014-09-09 Tim Rühsen <tim.ruehsen@gmx.de>
added --follow-tags and --ignore-tags
2014-09-07 Tim Ruehsen <tim.ruehsen@gmx.de>
fix for 'unsigned char' architectures
2014-09-05 Tim Rühsen <tim.ruehsen@gmx.de>
fixed clang detections
2014-08-29 Tim Rühsen <tim.ruehsen@gmx.de>
rearranged some metalink code
2014-08-29 Tim Rühsen <tim.ruehsen@gmx.de>
make cross-compilable with MinGW on Linux
2014-08-28 Tim Rühsen <tim.ruehsen@gmx.de>
added some first MinGW compatibility code
2014-08-28 Tim Rühsen <tim.ruehsen@gmx.de>
updated PSL file effective_tld_names.dat
2014-08-27 Tim Rühsen <tim.ruehsen@gmx.de>
amended NEWS
2014-08-27 Tim Rühsen <tim.ruehsen@gmx.de>
prepared for release
2014-08-27 Tim Rühsen <tim.ruehsen@gmx.de>
added -m / --mirror
2014-08-27 Tim Rühsen <tim.ruehsen@gmx.de>
added link to Wikipedia comparison of file systems
2014-08-27 Tim Rühsen <tim.ruehsen@gmx.de>
added descriptions of options to --help
2014-08-20 Tim Rühsen <tim.ruehsen@gmx.de>
removed unneeded libpsl reference in src/options.h
2014-08-15 Tim Rühsen <tim.ruehsen@gmx.de>
increased version number in configure.ac
2014-08-15 Tim Rühsen <tim.ruehsen@gmx.de>
prepared for release
2014-07-17 Tim Rühsen <tim.ruehsen@gmx.de>
added -k/--convert-links and -K/--backup-converted
2014-07-14 Tim Rühsen <tim.ruehsen@gmx.de>
fix tests for when not having libpsl support
2014-07-11 Tim Rühsen <tim.ruehsen@gmx.de>
use libpsl for cookie checking against Public Suffix List
2014-07-09 Tim Rühsen <tim.ruehsen@gmx.de>
update PSL data
2014-07-09 Tim Rühsen <tim.ruehsen@gmx.de>
more cleanups to configure.ac
2014-07-08 Tim Rühsen <tim.ruehsen@gmx.de>
cleaned up configure.ac
2014-07-03 Tim Rühsen <tim.ruehsen@gmx.de>
added new test test--accept.c
2014-07-03 Tim Rühsen <tim.ruehsen@gmx.de>
added --accept, --reject, --ignore-case
2014-06-29 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed race-condition on 'known_urls' variable
2014-06-25 Tim Ruehsen <tim.ruehsen@gmx.de>
make distcheck without -j4
2014-06-25 Tim Ruehsen <tim.ruehsen@gmx.de>
check for HTTP/HTTPS in add_url()
2014-06-24 Tim Ruehsen <tim.ruehsen@gmx.de>
removed two lines of debugging output
2014-06-24 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed HTML parsing of uppercase attributes (fixes issue #21)
2014-05-27 Tim Ruehsen <tim.ruehsen@gmx.de>
do not keep tmpfiles in test--page-requisites.c
2014-05-27 Tim Ruehsen <tim.ruehsen@gmx.de>
added test--page-requisites and fixed -p/--page-requisites
2014-04-04 Tim Ruehsen <tim.ruehsen@gmx.de>
fix some clang warnings
2014-03-21 Tim Ruehsen <tim.ruehsen@gmx.de>
removed psl.c from examples
2014-03-20 Tim Ruehsen <tim.ruehsen@gmx.de>
changes on psl.c
2014-03-19 Tim Ruehsen <tim.ruehsen@gmx.de>
make cookies and tests working with new PSL
2014-03-19 Tim Ruehsen <tim.ruehsen@gmx.de>
working on example/psl.c
2014-03-19 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed up cookie code
2014-03-19 Tim Ruehsen <tim.ruehsen@gmx.de>
added experimental PSL code
2014-03-19 Tim Ruehsen <tim.ruehsen@gmx.de>
updated public suffixes list
2014-03-08 Tim Ruehsen <tim.ruehsen@gmx.de>
fix sigfault in cookie functions
2014-03-02 Tim Ruehsen <tim.ruehsen@gmx.de>
added --gnutls-options to NEWS file
2014-03-02 Tim Ruehsen <tim.ruehsen@gmx.de>
added --gnutls-otpions to directly set a GnuTLS priority string
2014-03-02 Tim Ruehsen <tim.ruehsen@gmx.de>
added error messages if requested CAs or keys are not found
2014-02-26 Tim Ruehsen <tim.ruehsen@gmx.de>
improved cookie API
2014-02-20 Tim Ruehsen <tim.ruehsen@gmx.de>
tuned HSTS API
2014-02-19 Tim Ruehsen <tim.ruehsen@gmx.de>
added support for RFC 6266 Content-Disposition
2014-02-17 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed two threading race-conditions
2014-02-16 Tim Ruehsen <tim.ruehsen@gmx.de>
make HTTPS tests work with GnuTLS 2.12
2014-02-14 Tim Ruehsen <tim.ruehsen@gmx.de>
fix system ca_directory for GnuTLS < 3
2014-02-14 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed HTTPS testing to succeed distcheck
2014-02-12 Tim Ruehsen <tim.ruehsen@gmx.de>
added HTTPS server code for the test suite
2014-02-11 Tim Ruehsen <tim.ruehsen@gmx.de>
added i/o helper routines to documentation
2014-02-08 Tim Ruehsen <tim.ruehsen@gmx.de>
added make distcheck to .travis.yml
2014-02-08 Tim Ruehsen <tim.ruehsen@gmx.de>
fix docs/libmget/Makefile.am again
2014-02-07 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed man page generation and make distcheck
2014-02-06 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed generating man pages, added some documentation
2014-02-05 Tim Ruehsen <tim.ruehsen@gmx.de>
small docs changes
2014-02-05 Tim Ruehsen <tim.ruehsen@gmx.de>
added plg-config, brushed up configure.ac and Makefiles
2014-02-05 Tim Ruehsen <tim.ruehsen@gmx.de>
fix type naming to mget type naming convention
2014-02-03 Tim Ruehsen <tim.ruehsen@gmx.de>
updated gettext
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed minor clang warnings
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed some minor warnings
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
added Travis CI .travis.yml
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed minor clang warnings
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed some minor warnings
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
extended .travis.yml
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fix .travis.yml, typo in configure.ac string
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fix .travis.yml
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fix .travis.yml
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fix .travis.yml
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
added Travis CI .travis.yml
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
added test routine for HSTS feature
2014-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fix possible endless loop in http_parse_param()
2014-02-01 Tim Ruehsen <tim.ruehsen@gmx.de>
added support for RFC 6797 HTTP Strict Transport Security (HSTS)
2014-02-01 Tim Ruehsen <tim.ruehsen@gmx.de>
Do not download robots.txt twice for HTTP and HTTPS if --protocol-directories is not given
2014-01-31 Tim Ruehsen <tim.ruehsen@gmx.de>
working on RFC 6797 HSTS (HTTP Strict Transport Security)
2014-01-24 Tim Ruehsen <tim.ruehsen@gmx.de>
removed failing tests of not yet implemented options
2014-01-24 Tim Ruehsen <tim.ruehsen@gmx.de>
compile check for available hash functions in libnettle
2014-01-24 Tim Ruehsen <tim.ruehsen@gmx.de>
use libnettle for checksumming if libgnutls not available or too old
2014-01-24 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed check for libunistring
2014-01-24 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed warning in ssl_gnutls.c
2014-01-21 Tim Ruehsen <tim.ruehsen@gmx.de>
gtk-doc optional, project tested on Cygwin
2014-01-17 Tim Ruehsen <tim.ruehsen@gmx.de>
edited AUTHORS and NEWS
2014-01-16 Tim Ruehsen <tim.ruehsen@gmx.de>
brushed up README.md
2014-01-16 Tim Ruehsen <tim.ruehsen@gmx.de>
added Contacts to README.md
2014-01-13 Tim Ruehsen <tim.ruehsen@gmx.de>
put mailing list address into configure.ac
2014-01-12 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed 'make distcheck'
2014-01-11 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed some clang 3.4 warnings
2014-01-03 Tim Ruehsen <tim.ruehsen@gmx.de>
added example print_html_url.c (scanning and printing URLs from HTML files)
2014-01-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fix mailing list address in README.md 2nd
2014-01-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fix mailing list address in README.md
2014-01-02 Tim Ruehsen <tim.ruehsen@gmx.de>
added support for bzip2 Content-Encoding / Accept-Encoding type
2014-01-02 Tim Ruehsen <tim.ruehsen@gmx.de>
added 'lzma' to Content-Encoding
2013-12-31 Tim Ruehsen <tim.ruehsen@gmx.de>
added support for XZ Content-Encoding / Accept-Encoding type
2013-12-30 Tim Ruehsen <tim.ruehsen@gmx.de>
extended --adjust-extension to attach .rss and .atom
2013-12-30 Tim Ruehsen <tim.ruehsen@gmx.de>
added --waitretry, new function mget_millisleep()
2013-12-30 Tim Ruehsen <tim.ruehsen@gmx.de>
added --wait/-w, --random-wait and -tries/-t
2013-12-30 Tim Ruehsen <tim.ruehsen@gmx.de>
allow m, h and d modifiers for timeout options
2013-12-30 Tim Ruehsen <tim.ruehsen@gmx.de>
disable valgrind testing by default, just needed by developers
2013-12-30 Tim Ruehsen <tim.ruehsen@gmx.de>
use valgrind to check invocations of mget in test suite (and not the test suite itself, as before)
2013-12-30 Tim Ruehsen <tim.ruehsen@gmx.de>
add IRI that triggers robots.txt to blacklist, create local filename for --continue-download
2013-12-28 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed test-iri-forced-remote
2013-12-27 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed test-iri-list
2013-12-27 Tim Ruehsen <tim.ruehsen@gmx.de>
added new option --input-encoding
2013-12-25 Tim Ruehsen <tim.ruehsen@gmx.de>
added RSS parsing test
2013-12-21 Tim Ruehsen <tim.ruehsen@gmx.de>
added parsing RSS 2.0 feeds
2013-12-16 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed compilation error in atom_url.c
2013-12-15 Tim Ruehsen <tim.ruehsen@gmx.de>
added parsing Atom 1.0 feeds
2013-12-14 Tim Ruehsen <tim.ruehsen@gmx.de>
refactored basic sitemap parsing into libmget
2013-11-30 Tim Ruehsen <tim.ruehsen@gmx.de>
new option --force-sitemap to scan URLs from a local Sitemap XML file
2013-11-30 Tim Ruehsen <tim.ruehsen@gmx.de>
fix: added query twice if query contained slash(es)
2013-11-25 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed two more tests
2013-11-25 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed proxy destruction
2013-11-24 Tim Ruehsen <tim.ruehsen@gmx.de>
added sitemap parsing
2013-11-03 Tim Ruehsen <tim.ruehsen@gmx.de>
fix some compiler warnings
2013-11-02 Tim Ruehsen <tim.ruehsen@gmx.de>
Support arbitrary number of proxies for parallel downloads
2013-11-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed some warnings of clang 3.4
2013-10-31 Tim Ruehsen <tim.ruehsen@gmx.de>
added --chunk-size to allow multithreaded downloads of single files
2013-10-27 Tim Ruehsen <tim.ruehsen@gmx.de>
added --(no-)check-hostname to disable certificate hostname checking only
2013-10-22 Tim Ruehsen <tim.ruehsen@gmx.de>
fix po/POTFILES.in
2013-10-22 Tim Ruehsen <tim.ruehsen@gmx.de>
update po/POTFILES.in
2013-10-22 magemore <alex@magemore.com>
fix help: wget replaced with mget
2013-10-22 Tim Ruehsen <tim.ruehsen@gmx.de>
mention package name zlibg1 in README.md
2013-10-07 Tim Ruehsen <tim.ruehsen@gmx.de>
updated README.md
2013-10-06 Tim Ruehsen <tim.ruehsen@gmx.de>
small cleanups regarding use of buffer functions
2013-10-05 Tim Ruehsen <tim.ruehsen@gmx.de>
check for NULL iri in add_url()
2013-10-04 Tim Ruehsen <tim.ruehsen@gmx.de>
pull in libunistring if using libidn2
2013-10-04 Tim Ruehsen <tim.ruehsen@gmx.de>
removed including stringprep.h from examples
2013-10-04 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed clang 3.4 analyzer issues
2013-10-03 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed double free in mget.c
2013-10-03 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed memory leak in hashmap_put_noalloc
2013-10-02 Tim Ruehsen <tim.ruehsen@gmx.de>
Use Etag in spider mode to prevent double downloading
2013-10-02 Tim Ruehsen <tim.ruehsen@gmx.de>
use HEAD request in spider mode
2013-10-02 Tim Ruehsen <tim.ruehsen@gmx.de>
added support for IDNA2008 using Libidn2
2013-10-01 Tim Ruehsen <tim.ruehsen@gmx.de>
started libidn2 usage
2013-10-01 Tim Ruehsen <tim.ruehsen@gmx.de>
convert / to %2F instead of %2f
2013-10-01 Tim Ruehsen <tim.ruehsen@gmx.de>
check if url needs utf-8 encoding
2013-10-01 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed --restrict-file-names=uppercase
2013-09-30 Tim Ruehsen <tim.ruehsen@gmx.de>
added --restrict-file-names
2013-09-28 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed crash on non-valid cookie names
2013-09-28 Tim Ruehsen <tim.ruehsen@gmx.de>
new file host.c, refactored from mget.c
2013-09-28 Tim Ruehsen <tim.ruehsen@gmx.de>
moved robots routines to new file robots.c
2013-09-27 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed up ROBOTS/META
2013-09-25 Tim Ruehsen <tim.ruehsen@gmx.de>
fine tuning on some library functions
2013-09-24 Tim Ruehsen <tim.ruehsen@gmx.de>
added --trust-server-names and --restrict-file-names
2013-09-24 Tim Ruehsen <tim.ruehsen@gmx.de>
preparing for utf-16 support
2013-09-23 Tim Ruehsen <tim.ruehsen@gmx.de>
recognize 'none' keyword in META/ROBOTS
2013-09-23 Tim Ruehsen <tim.ruehsen@gmx.de>
added support for name=ROBOTS in META tag
2013-09-23 Tim Ruehsen <tim.ruehsen@gmx.de>
added src/host.h
2013-09-22 Tim Ruehsen <tim.ruehsen@gmx.de>
added support for robots.txt Robots Exclusion Standard
2013-09-20 Tim Ruehsen <tim.ruehsen@gmx.de>
added option --(no-)parent
2013-09-19 Tim Ruehsen <tim.ruehsen@gmx.de>
more work on the test suite
2013-09-17 Tim Ruehsen <tim.ruehsen@gmx.de>
added --https-only
2013-09-17 Tim Ruehsen <tim.ruehsen@gmx.de>
added -e/--execute
2013-09-16 Tim Ruehsen <tim.ruehsen@gmx.de>
test code tweaking
2013-09-16 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed test suite issues
2013-09-16 Tim Ruehsen <tim.ruehsen@gmx.de>
some tweaks on encoding
2013-09-15 Tim Ruehsen <tim.ruehsen@gmx.de>
better handling of non-ASCII URLs and filenames
2013-09-14 Tim Ruehsen <tim.ruehsen@gmx.de>
adjust README/README.md
2013-09-13 Tim Ruehsen <tim.ruehsen@gmx.de>
prepared for listing/scanning directories
2013-09-13 Tim Ruehsen <tim.ruehsen@gmx.de>
fix memleak in cookie handling
2013-09-12 Tim Ruehsen <tim.ruehsen@gmx.de>
more work done
2013-09-10 Tim Ruehsen <tim.ruehsen@gmx.de>
moved metalink stuff to library code
2013-09-09 Tim Ruehsen <tim.ruehsen@gmx.de>
reenabled metalink3
2013-09-09 Tim Ruehsen <tim.ruehsen@gmx.de>
threading model reimplemented to put more load onto the workers
2013-08-18 Tim Ruehsen <tim.ruehsen@gmx.de>
tune xml.c
2013-08-16 Tim Ruehsen <tim.ruehsen@gmx.de>
mention --secure-protocol=SECURE in help text
2013-08-16 Tim Ruehsen <tim.ruehsen@gmx.de>
xml parser rewritten to output len and pos of values
2013-08-13 Tim Ruehsen <tim.ruehsen@gmx.de>
simplified some calls to mget_buffer_init() using C99
2013-08-13 Tim Ruehsen <tim.ruehsen@gmx.de>
fix GnuTLS crash on handshake errors
2013-08-13 Tim Ruehsen <tim.ruehsen@gmx.de>
added --secure-protocol=secure to force Perfect Forward Secrecy
2013-08-02 Tim Ruehsen <tim.ruehsen@gmx.de>
small corrections in ssl_gnutls.c
2013-07-30 Tim Ruehsen <tim.ruehsen@gmx.de>
prefer Digest over Basic authentication if server offers both
2013-07-30 Tim Ruehsen <tim.ruehsen@gmx.de>
add -fPIC to CFLAGS, remove private path from tests
2013-07-28 Tim Ruehsen <tim.ruehsen@gmx.de>
added test-auth-basic.c
2013-07-27 Tim Ruehsen <tim.ruehsen@gmx.de>
more tests
2013-05-12 Tim Ruehsen <tim.ruehsen@gmx.de>
use TCP Fastopen if available
2013-05-02 Tim Ruehsen <tim.ruehsen@gmx.de>
fix bug in hashmap.c
2013-04-24 Tim Ruehsen <tim.ruehsen@gmx.de>
highlevel improvement
2013-04-24 Tim Ruehsen <tim.ruehsen@gmx.de>
escape / in query for filename generation
2013-04-21 Tim Ruehsen <tim.ruehsen@gmx.de>
tuned getstream.c example
2013-04-16 Tim Ruehsen <tim.ruehsen@gmx.de>
added support for metalink3
2013-04-13 Tim Ruehsen <tim.ruehsen@gmx.de>
updated Requirements in README.rst
2013-04-13 Tim Ruehsen <tim.ruehsen@gmx.de>
handle metalink mirror redirections
2013-04-13 Tim Ruehsen <tim.ruehsen@gmx.de>
changed part download message
2013-04-12 Tim Ruehsen <tim.ruehsen@gmx.de>
renamed option --base-url to --base
2013-04-09 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed stringmap/hashmap usage in mget.c and blacklist.c
2013-04-07 Tim Ruehsen <tim.ruehsen@gmx.de>
getstream.c example now handles Shoutcast metainfo
2013-03-29 Tim Ruehsen <tim.ruehsen@gmx.de>
cleaned up hashmap/stringmap API
2013-03-28 Tim Ruehsen <tim.ruehsen@gmx.de>
let HTTP test server understand Range headers
2013-03-21 Tim Ruehsen <tim.ruehsen@gmx.de>
converted more tests from Perl to C IV
2013-03-21 Tim Ruehsen <tim.ruehsen@gmx.de>
converted more tests from Perl to C III
2013-03-19 Tim Ruehsen <tim.ruehsen@gmx.de>
converted more tests from Perl to C II
2013-03-17 Tim Ruehsen <tim.ruehsen@gmx.de>
converted more tests from Perl to C
2013-03-13 Tim Ruehsen <tim.ruehsen@gmx.de>
work on test suite
2013-03-12 Tim Ruehsen <tim.ruehsen@gmx.de>
added --content-disposition
2013-03-10 Tim Ruehsen <tim.ruehsen@gmx.de>
new C testsuite
2013-03-03 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed double free in blacklist.c
2013-03-03 Tim Ruehsen <tim.ruehsen@gmx.de>
added option -p and -l
2013-02-06 Benoit Goudreault-Emond <bgoudreault@webmd.net>
Ensure the m4 directory is created, or builds won't work out of the box.
2013-02-03 Tim Ruehsen <tim.ruehsen@gmx.de>
new example getting a stream from a .m3u URL
2013-02-02 Tim Ruehsen <tim.ruehsen@gmx.de>
new abstract thread functions
2013-01-30 Benoit Goudreault-Emond <bgoudreault@webmd.net>
Fix errors in potfile.in that made makefile fail
2013-01-29 Tim Ruehsen <tim.ruehsen@gmx.de>
put work into high level example http_get.c
2013-01-21 Tim Ruehsen <tim.ruehsen@gmx.de>
added libmget/md5.c
2013-01-18 Tim Ruehsen <tim.ruehsen@gmx.de>
Updated README.rst
2013-01-18 Tim Ruehsen <tim.ruehsen@gmx.de>
moved http.c and md5.c into library
2013-01-18 rockdaboot <tim.ruehsen@gmx.de>
Update README.rst
2013-01-18 rockdaboot <tim.ruehsen@gmx.de>
Update README.rst
2013-01-17 Tim Ruehsen <tim.ruehsen@gmx.de>
fix more stuff
2013-01-16 Tim Ruehsen <tim.ruehsen@gmx.de>
more basic work on libmget
2013-01-15 Tim Ruehsen <tim.ruehsen@gmx.de>
new examples folder
2013-01-13 Tim Ruehsen <tim.ruehsen@gmx.de>
fix make distcheck
2013-01-11 Tim Ruehsen <tim.ruehsen@gmx.de>
more stuff moved into libmget
2013-01-10 Tim Ruehsen <tim.ruehsen@gmx.de>
more stuff moved into libmget
2013-01-07 Tim Ruehsen <tim.ruehsen@gmx.de>
added two doc files to git
2013-01-04 Tim Ruehsen <tim.ruehsen@gmx.de>
more documentation stuff
2013-01-03 Tim Ruehsen <tim.ruehsen@gmx.de>
started gtk-docs
2013-01-03 Tim Ruehsen <tim.ruehsen@gmx.de>
updated README.rst
2013-01-03 Tim Ruehsen <tim.ruehsen@gmx.de>
more auto* stuff
2012-12-31 Tim Ruehsen <tim.ruehsen@gmx.de>
use LGPL for libmget
2012-12-28 Tim Ruehsen <tim.ruehsen@gmx.de>
step forward to libmget
2012-12-26 Tim Ruehsen <tim.ruehsen@gmx.de>
HTTP basic/digest authentication, send Referer HTTP header
2012-12-21 Tim Ruehsen <tim.ruehsen@gmx.de>
started Authentication
2012-12-20 Tim Ruehsen <tim.ruehsen@gmx.de>
use gcc -Wsign-compare option
2012-12-20 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed --secure-protocol=SSLv2/SSLv3
2012-12-17 Tim Ruehsen <tim.ruehsen@gmx.de>
added -D/--domains and --exclude-domains
2012-12-17 Tim Ruehsen <tim.ruehsen@gmx.de>
added 'deflate' Content-Encoding
2012-12-14 Tim Ruehsen <tim.ruehsen@gmx.de>
IDN / international domain support finished
2012-12-11 Tim Ruehsen <tim.ruehsen@gmx.de>
removed an URI test that had no host host part
2012-12-10 Tim Ruehsen <tim.ruehsen@gmx.de>
added IDN conversion for locally provided URIs
2012-12-09 Tim Ruehsen <tim.ruehsen@gmx.de>
started with IDN / URI encoding
2012-12-08 Tim Ruehsen <tim.ruehsen@gmx.de>
added --bind-address, fixed parsing IPv6 numeric addresses
2012-12-03 Tim Ruehsen <tim.ruehsen@gmx.de>
added -Q/--quota, added configure script
2012-11-30 Tim Ruehsen <tim.ruehsen@gmx.de>
started with -Q
2012-11-30 Tim Ruehsen <tim.ruehsen@gmx.de>
added -i, -F, -B, --force-css
2012-11-28 Tim Ruehsen <tim.ruehsen@gmx.de>
added --default_page
2012-11-28 Tim Ruehsen <tim.ruehsen@gmx.de>
added -E/--adjust-extension/--html-extension, C89 NONNULL macro
2012-11-28 Tim Ruehsen <tim.ruehsen@gmx.de>
removed variadic macros
2012-11-24 Tim Ruehsen <tim.ruehsen@gmx.de>
updated README.rst
2012-11-24 Tim Ruehsen <tim.ruehsen@gmx.de>
using autotools
2012-11-21 Tim Ruehsen <tim.ruehsen@gmx.de>
directory structure changes
2012-11-21 Tim Ruehsen <tim.ruehsen@gmx.de>
some hashmap optimization
2012-11-20 Tim Ruehsen <tim.ruehsen@gmx.de>
fixed double free in hashmap_put_noalloc for key/value identity
2012-11-19 Tim Ruehsen <tim.ruehsen@gmx.de>
added --referer
2012-11-18 Tim Ruehsen <tim.ruehsen@gmx.de>
added --save-headers
2012-11-18 Tim Ruehsen <tim.ruehsen@gmx.de>
check for gnutls version number when using *ECDH* stuff
2012-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
updated BSD compatibility
2012-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
added --clobber / -nc
2012-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
added --cache to enable/disable server cache
2012-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
added --inet4-only, --inet6-only, --prefer-family
2012-11-15 Tim Ruehsen <tim.ruehsen@gmx.de>
added --delete-after
2012-11-15 Tim Ruehsen <tim.ruehsen@gmx.de>
added -n options
2012-11-15 Tim Ruehsen <tim.ruehsen@gmx.de>
added --strict-comments as dummy option
2012-11-15 Tim Ruehsen <tim.ruehsen@gmx.de>
added directory options and timestamping
2012-11-12 Tim Ruehsen <tim.ruehsen@gmx.de>
added --continue / -c
2012-11-12 Tim Ruehsen <tim.ruehsen@gmx.de>
added --server-response / -S
2012-11-12 Tim Ruehsen <tim.ruehsen@gmx.de>
added proxy support
2012-11-09 Tim Ruehsen <tim.ruehsen@gmx.de>
added blacklist.(c|h) and stringmap.(c|h)
2012-11-08 Tim Ruehsen <tim.ruehsen@gmx.de>
added hashmap functions
2012-11-06 Tim Ruehsen <tim.ruehsen@gmx.de>
cookie support incl. Mozilla Public Suffix List
2012-10-05 Tim Ruehsen <tim.ruehsen@gmx.de>
url escaping
2012-09-27 Tim Ruehsen <tim.ruehsen@gmx.de>
buffer_printf routines
2012-09-27 Tim Ruehsen <tim.ruehsen@gmx.de>
more internal work
2012-08-29 Tim Ruehsen <tim.ruehsen@gmx.de>
more gnutls debugging output
2012-08-27 Tim Ruehsen <tim.ruehsen@gmx.de>
HTTPS options to achieve wget compatibility
2012-08-24 Tim Ruehsen <tim.ruehsen@gmx.de>
more test functions
2012-08-22 Tim Ruehsen <tim.ruehsen@gmx.de>
added buffer functions
2012-08-21 Tim Ruehsen <tim.ruehsen@gmx.de>
more tests, some fixes
2012-08-17 Tim Ruehsen <tim.ruehsen@gmx.de>
added options -o and -a
2012-08-16 Tim Ruehsen <tim.ruehsen@gmx.de>
added option -q
2012-08-15 Tim Ruehsen <tim.ruehsen@gmx.de>
fix gnutls
2012-08-14 Tim Ruehsen <tim.ruehsen@gmx.de>
* fixed vector.c / vec_insert_sorted_noalloc()
* added test for vec_insert_sorted_noalloc()
* fixed css.c / css_parse_file()
2012-08-14 Tim Ruehsen <tim.ruehsen@gmx.de>
implemented DNS lookup cache, --dns-cache=on|off
2012-08-13 Ant Bryan <anthonybryan@gmail.com>
README.rst typos
2012-08-10 Tim Ruehsen <tim.ruehsen@gmx.de>
some refactoring, handle relative Location:
2012-08-10 Tim Ruehsen <tim.ruehsen@gmx.de>
updated README.rst
2012-08-10 Tim Ruehsen <tim.ruehsen@gmx.de>
updated README.rst
2012-08-10 Tim Ruehsen <tim.ruehsen@gmx.de>
new README.rst
2012-08-10 Tim Ruehsen <tim.ruehsen@gmx.de>
* HTTPS via gnutls
* Many bug fixes and enhancements
2012-08-03 Tim Ruehsen <tim.ruehsen@gmx.de>
Updated README
2012-08-03 Tim Ruehsen <tim.ruehsen@gmx.de>
Repository created
|