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
|
2009-07-28 Ludovic Rousseau
* [r4349] ChangeLog, configure.in: release 1.5.5
* [r4344] src/atrhandler.c: remove empty last list
2009-07-21 Ludovic Rousseau
* [r4334] src/winscard_svc.c: MSGFunctionDemarshall(): correctly
check for buffer overflow in case of SCardControl()
Bug introduced in revision 4208 included in pcsc-lite 1.5.4
* [r4333] src/winscard_clnt.c: SCardConnect(): document
SCARD_SHARE_DIRECT access mode
* [r4332] src/winscard.c: SCardConnect() and SCardReconnect(): set
pdwActiveProtocol to SCARD_PROTOCOL_UNDEFINED if
SCARD_SHARE_DIRECT is used (conform to MSDN)
* [r4331] UnitaryTests/SCardConnect_DIRECT.py: Unitary test for
SCardConnect in DIRECT mode
2009-07-20 Ludovic Rousseau
* [r4328] src/testpcsc.c: support SCARD_PROTOCOL_RAW
* [r4327] src/testpcsc.c: use test_rv() to check SCardTransmit()
result
* [r4326] src/winscard.c: SCardTransmit(): if the lower level call
fails then return the error code instead of always
SCARD_E_NOT_TRANSACTED
For example SCARD_E_UNSUPPORTED_FEATURE is returned if
SCARD_PROTOCOL_RAW is not supported
2009-07-17 Ludovic Rousseau
* [r4321] src/pcsc-wirecheck-gen.c, src/winscard_clnt.c,
src/winscard_msg.h, src/winscard_svc.c: remove the p in the
structure field names pioSendPciProtocol, pioSendPciLength,
pioRecvPciProtocol and pioRecvPciLength since they are not
pointers
* [r4320] src/pcsc-wirecheck-gen.c, src/winscard_clnt.c,
src/winscard_msg.h, src/winscard_svc.c: remove the p in the
structure field names pdwActiveProtocol, pdwState, pdwProtocol,
pdwBytesReturned since they are not pointers
* [r4319] src/pcsc-wirecheck-gen.c, src/winscard_clnt.c,
src/winscard_msg.h, src/winscard_svc.c: rename structure fields
phCard and phContext into hCard and hContext since they are not
pointers
2009-07-16 Ludovic Rousseau
* [r4316] src/PCSC/pcsclite.h.in: #define SCARD_P_SHUTDOWN
2009-07-03 Ludovic Rousseau
* [r4299] UnitaryTests/SCardCancel.py: do not raise an exception if
the return code is the expected SCARD_E_CANCELLED
* [r4298] src/pcscdaemon.c: clean_temp_files(): give some time to
clients to remove their event files before removing the event
directory
* [r4297] src/hotplug_libhal.c, src/readerfactory.c: do not try to
open a device using the libusb scheme if opening it with the
libhal scheme returns IFD_NO_SUCH_DEVICE
The device may be composite and the interface found is not CCID
(HID for example). Just skip this interface and try the next one.
* [r4296] src/hotplug_libhal.c: HPAddDevice(): add the reader
interface name if provided by the device
* [r4294] src/tokenparser.l: LTPBundleFindValueWithKey(): do not
log an error if no more values are found
* [r4293] src/tokenparser.l: use '\0' instead of 0
2009-07-01 Ludovic Rousseau
* [r4291] src/atrhandler.h: use int instead of DWORD for Length and
HistoryLength in _ATR structure to gain 12 bytes on _ATR (and 16
bytes on _SMARTCARD_EXTENSION). Thanks to pahole(1)
* [r4290] src/atrhandler.h: reorder fields in the _ATR structure of
_SMARTCARD_EXTENSION Structure is now 8 bytes shorter on 64-bits
CPU Thanks to pahole(1)
* [r4289] src/readerfactory.h: reorder ReaderContext fields to
avoid padding holes in the strucutre Structure size is now 8
bytes smaller on 64-bits CPU
2009-06-26 Ludovic Rousseau
* [r4283] UnitaryTests/MCT_ReaderDirect.py: test secoder support
(using FEATURE_MCT_READERDIRECT)
2009-06-24 Ludovic Rousseau
* [r4272] ChangeLog, configure.in: release 1.5.4
2009-06-23 Ludovic Rousseau
* [r4271] src/winscard_clnt.c: SCardGetStatusChange(): fix in
revision r4269 was not correct.
Thanks (again) to Toon Claes for the bug report
* [r4270] src/winscard_clnt.c: SCardGetStatusChange(): add debug to
know why the function returns
2009-06-22 Ludovic Rousseau
* [r4269] src/winscard_clnt.c: SCardGetStatusChange(): only check
the event counter if current state is not SCARD_STATE_EMPTY
Closes [#311772] "SCardGetStatusChange only works the first time
after starting pcscd"
2009-06-11 Ludovic Rousseau
* [r4252] UnitaryTests/Makefile: add a clean rule
2009-06-05 Ludovic Rousseau
* [r4249] src/hotplug.h, src/hotplug_libhal.c: give a higher
priority to a specific driver over the CCID Class driver
* [r4248] src/parser.h, src/tokenparser.l: add
LTPBundleFindOptionalValueWithKey() to look for an optional key
No error is logged if the key is not found
2009-06-02 Ludovic Rousseau
* [r4241] src/debuglog.c: log APDU and SW (--apdu) even if --debug
is not used
* [r4240] src/hotplug_libhal.c: HPAddDevice(): use NULL instead of
an libhal error field since we do not use the error value
* [r4239] src/hotplug_libhal.c: if RFAddReader() fails with the
libhal scheme then we try with the (old) libusb scheme.
This patch should allow proprietary drivers to work even if
pcsc-lite is compiled with libhal support.
* [r4238] src/winscard_clnt.c: WaitForPcscdEvent(): check mkfifo(3)
succeeds
Thanks to Steve Grubb for the bug report
2009-06-01 Ludovic Rousseau
* [r4237] src/pcscdaemon.c: main(): create the PCSCLITE_EVENTS_DIR
directory with the sticky bit so only root or the owner of the
file can remove it
Thanks to Tomas Mraz for the bug report
* [r4236] src/utils.c: StatSynchronizeContext(): do not call
mkfifo(3) since the fifo file is already created by another
thread.
2009-05-28 Ludovic Rousseau
* [r4234] src/winscard_clnt.c, src/winscard_msg.h,
src/winscard_svc.c: use a union to avoid "warning: dereferencing
pointer 'veStr' does break strict-aliasing rules" warnings with
gcc 4.4
Thanks to Stanislav Brabec for the patch
* [r4233] src/testpcsc.c: use a union of fields with different
types instead of casts to avoid testpcsc.c:313: warning:
dereferencing type-punned pointer will break strict-aliasing
rules testpcsc.c:323: warning: dereferencing type-punned pointer
will break strict-aliasing rules
Thanks to Stanislav Brabec for the patch
* [r4232] NEWS: fix musclecard URL
Thanks to Stanislav Brabec for the patch
2009-05-25 Ludovic Rousseau
* [r4223] Makefile.am, configure.in: generate a .bz2 archive only
2009-05-22 Ludovic Rousseau
* [r4222] src/ifdwrapper.c: IFDControl(): use %LX instead of %Lx in
a log format
2009-05-19 Ludovic Rousseau
* [r4213] src/pcscdaemon.c: main(): force access rights on
/var/run/pcscd to be sure it can be used by a libpcsclite client
without privileges
Thanks to Sébastien Lorquet for the bug report
2009-05-15 Ludovic Rousseau
* [r4211] UnitaryTests/BufferOverflow.c, UnitaryTests/Makefile,
UnitaryTests/SCardBeginTransaction.c: port to Mac OS X
2009-05-14 Ludovic Rousseau
* [r4210] src/PCSC/reader.h.in: add Doxygen documentation
* [r4209] UnitaryTests/BufferOverflow.c, UnitaryTests/Makefile,
UnitaryTests/SCardBeginTransaction.c: new files
* [r4208] src/winscard_svc.c: MSGFunctionDemarshall(): detect
buffer overflows
Thanks to Sebastian Krahmer for the bug report
* [r4207] src/winscard_clnt.c: SCardGetAttrib() & SCardSetAttrib():
debug Doxygen examples
2009-05-13 Ludovic Rousseau
* [r4206] src/pcscdaemon.c: main(): wrong mode file comment
2009-05-12 Ludovic Rousseau
* [r4201] src/utils/formaticc.c: cppcheck: (error) Resource leak:
fp
* [r4200] src/utils/formaticc.c: cppcheck: (error) Resource leak:
fp
2009-05-08 Ludovic Rousseau
* [r3499] src/winscard_clnt.c: SCardEstablishContext(): Doxygen:
each thread of an application shall use its own SCARDCONTEXT.
2009-04-29 Ludovic Rousseau
* [r3470] ChangeLog, configure.in: release 1.5.3
2009-04-27 Ludovic Rousseau
* [r3469] UnitaryTests/SCardBeginTransaction_Disconnect.py: A bug
has been corrected in revision 3467 The problem occurs if
SCardBeginTransaction() are made without corresponding
SCardEndTransaction(). OpenSC "pkcs11-tool -I" exhibits such a
behavior.
* [r3467] src/winscard.c: CardDisconnect(): call
RFUnlockAllSharing() instead of RFUnlockSharing() to release all
nested locks. The problem occurs if SCardBeginTransaction() are
made without corresponding SCardEndTransaction(). OpenSC
"pkcs11-tool -I" exhibits such a behavior.
Thanks to Marc Rios Valles for the bug report
* [r3466] src/readerfactory.c, src/readerfactory.h: add
RFUnlockAllSharing()
* [r3465] src/debuglog.c: change default log level from
PCSC_LOG_INFO to PCSC_LOG_ERROR to limit syslog pollution
2009-04-17 Ludovic Rousseau
* [r3457] UnitaryTests/SCardCancel.py: use SCARD_S_SUCCESS instead
of 0
2009-04-14 Ludovic Rousseau
* [r3450] src/utils.c: StatSynchronize(): remove event fifo files
only if they are 60 seconds old. The normal case is for the
client to remove its one event file after use. The daemon sould
only remove files from dead clients.
* [r3449] src/utils.c: StatSynchronize(): use S_ISFIFO() macro
* [r3448] UnitaryTests/SCardCancel.py: DeprecationWarning: raising
a string exception is deprecated
* [r3447] UnitaryTests/SCardCancel.py,
UnitaryTests/SCardGetStatusChange/SCardGetStatusChange.py,
UnitaryTests/SCardGetStatusChange/SCardGetStatusChange_PnP.py:
add license information
* [r3446] src/winscard_clnt.c: WaitForPcscdEvent(): avoid a
possible crash due to a race condition
Thanks to Matheus Ribeiro for the patch
* [r3445] src/readerfactory.c: #include "utils.h"
* [r3444] src/readerfactory.c: RFRemoveReader(): call
StatSynchronize() after a reader removal to signal the event to
clients
2009-04-07 Ludovic Rousseau
* [r3412] src/Makefile.am, src/powermgt_generic.c,
src/powermgt_macosx.c: remove powermgt_macosx.c since it is using
APSL version 1.1 instead of the BSD-like licence like the other
files
Thanks to Stanislav Brabec for the bug report
2009-03-21 Ludovic Rousseau
* [r3355] src/PCSC/reader.h.in: add PIN_PROPERTIES_STRUCTURE
structure and FEATURE_IFD_PIN_PROPERTIES
Thanks to Martin Paljak for the patch
2009-03-20 Ludovic Rousseau
* [r3352] src/PCSC/pcsclite.h.in: add URL of the error code
reference (MSDN)
2009-03-02 Ludovic Rousseau
* [r3334] src/PCSC/pcsclite.h.in, src/PCSC/wintypes.h, src/debug.c,
src/debuglog.c, src/thread_generic.h: remove support of WIN32
* [r3333] src/PCSC/pcsclite.h.in: add URL of error codes origines
(MSDN)
2009-03-01 Ludovic Rousseau
* [r3332] src/PCSC/pcsclite.h.in: do not use /* inside a comment
* [r3331] src/PCSC/pcsclite.h.in: add missing defines according to
http://msdn.microsoft.com/en-us/library/aa924526.aspx
2009-02-09 Ludovic Rousseau
* [r3314] src/winscard_clnt.c: Comment revision 3313 patch
* [r3313] src/winscard_clnt.c: SCardEstablishContextTH(): check we
do not reuse an already allocated hContext
Thanks to Daniel Nobs for the bug report and patch Closes:
[#311455] Error in SCardEstablishContext
2009-02-06 Ludovic Rousseau
* [r3306] ChangeLog, configure.in: release 1.5.2
* [r3305] src/eventhandler.c: EHStatusHandlerThread(): call
StatSynchronize() before exiting the thread. Without this
SCardGetStatusChange() may not return.
Thanks to Roberto Rizza for the bug report and patch.
* [r3304] src/hotplug_libhal.c, src/pcsc-wirecheck-gen.c,
src/pcsc-wirecheck-main.c, src/pcscdaemon.c, src/readerfactory.c,
src/testpcsc.c, src/winscard.c, src/winscard_clnt.c: use
(void)param; for unused function parameters to avoid compiler
warnings
2009-02-05 Ludovic Rousseau
* [r3303] src/readerfactory.c: reformat comments
2009-02-04 Ludovic Rousseau
* [r3298] TODO: do not open the reader USB device if no client is
using the reader
2009-01-29 Ludovic Rousseau
* [r3295] src/readerfactory.c: RFLockSharing() & RFUnlockSharing():
add a mutex to avoid a race condition
Closes: [#311377] Race condition in SCardBeginTransaction
2009-01-28 Ludovic Rousseau
* [r3294] src/ifdwrapper.c: log TxBuffer and RxBuffer if the
SCardControl() command failed.
Closes: [#311376] PCSC_LOG_VERBOSE via -dd; print details of
"Card not transacted"
2009-01-24 Ludovic Rousseau
* [r3291] src/utils.c: StatSynchronizeContext() is used for a
specific client. Correct the comment.
2009-01-22 Ludovic Rousseau
* [r3290] doc/ifdhandler-3.tex: mark IFD_GENERATE_HOTPLUG as
deprecated. HAL now solves the hotplug problem for us.
2009-01-20 Ludovic Rousseau
* [r3288] src/winscard_clnt.c: SCardCancel(): use
StatSynchronizeContext() to send an event to the waiting/blocked
thread
Closes: [#311342] SCardCancel does not cancel an outstanding
SCardGetStatusChange
* [r3287] src/utils.c, src/utils.h: add StatSynchronizeContext() to
send an asynchronous event to a specific context This function
can be used from libpcsclite. Using StatSynchronize() does not
work since the directory pcscd.events/ is not readable by group
and other for security reasons
* [r3286] src/winscard_clnt.c: WaitForPcscdEvent(): use hContext
instead of a random to name the event file
* [r3285] UnitaryTests/SCardCancel.py: improved version
2009-01-13 Ludovic Rousseau
* [r3279] UnitaryTests/SCardCancel.py: SCardCancel sample
* [r3278] src/winscard_clnt.c: SCardGetStatusChange(): return if
the state of the reader changed since the previous call.
Thanks to Thomas Harning for the patch Closes: [#311341]
SCardGetStatusChange does not return CHANGED+EMPTY and
CHANGED+PRESENT sequence for remove-insert between calls
2009-01-12 Ludovic Rousseau
* [r3277] UnitaryTests/SCardGetStatusChange,
UnitaryTests/SCardGetStatusChange/SCardGetStatusChange.py,
UnitaryTests/SCardGetStatusChange/SCardGetStatusChange_PnP.py:
test SCardGetStatusChange
* [r3276] UnitaryTests: directory to store Unitary Tests
2009-01-09 Ludovic Rousseau
* [r3274] src/winscard_clnt.c: rename variable fd in profile_fd to
avoid winscard_clnt.c:1717: attention : declaration of ‘fd’
shadows a global declaration
2009-01-07 Ludovic Rousseau
* [r3273] ChangeLog, configure.in: release 1.5.1
2009-01-05 Ludovic Rousseau
* [r3267] src/winscard_svc.c: use
offsetof(transmit_struct_extended, data) instead of
sizeof(*treStr) since from revision 2146 the data[] array has one
element to be compilable by Sun Studio 11
The side effect is that extended APDU were corrupted by 4 zero
bytes between the two consecutive blocks
* [r3266] src/readerfactory.c: use snprintf() to avoid a possible
buffer overflow
* [r3265] src/hotplug_libhal.c: avoid a memory leak in case of DBus
error
* [r3264] splint.sh: script to call splint
* [r3263] src/pcscdaemon.c: explicitly cast result in void when not
used (reported by the splint tool)
* [r3262] src/utils/formaticc.c: free mszReaders before returning
* [r3261] src/utils/formaticc.c: do not cast malloc()
2009-01-02 Ludovic Rousseau
* [r3260] src/PCSC/winscard.h, src/atrhandler.h, src/configfile.h,
src/dyn_generic.h, src/ifdwrapper.c, src/ifdwrapper.h,
src/parser.h, src/readerfactory.h, src/sys_generic.h,
src/winscard_clnt.c, src/winscard_msg.h, src/winscard_msg_srv.c:
tag output parameters with /*@out@*/
* [r3259] src/PCSC/winscard.h, src/eventhandler.h,
src/hotplug_libhal.c, src/sys_unix.c, src/thread_generic.h,
src/utils.h: tag potentially NULL paramater or returned value as
/*@null@*/
* [r3258] src/pcscdaemon.c: declare functions static where possible
* [r3257] src/pcscdaemon.c: remove unused SVCClientCleanup()
function
* [r3256] src/pcscdaemon.c: mark unused parameter as /*@unused@*/
(reported by splint tool)
* [r3255] src/pcscdaemon.c: no need to #include <syslog.h>
* [r3254] src/atrhandler.c: not need to #include <syslog.h>
* [r3253] src/eventhandler.c, src/testpcsc.c, src/winscard_svc.c:
declare functions static where possible
* [r3252] src/hotplug_libhal.c, src/pcsc-wirecheck-gen.c,
src/pcsc-wirecheck-main.c, src/readerfactory.c, src/testpcsc.c,
src/utils/formaticc.c, src/utils/installifd.c, src/winscard.c,
src/winscard_clnt.c: mark unused parameter as /*@unused@*/
(reported by splint tool)
* [r3251] src/pcscdaemon.c, src/winscard_msg.h,
src/winscard_msg_srv.c, src/winscard_svc.c: remove blocktime
parameter from SHMProcessEventsContext() and
SHMProcessEventsServer() since this parameter is not used
* [r3250] src/winscard_msg.c: correct return types of
SHMMessageSend() and SHMMessageReceive() to match declaration in
winscard_msg.h (reported by splint tool)
* [r3249] src/winscard_msg_srv.c: SHMInitializeCommonSegment(): use
correct return type as defined in winscard_msg.h (reported by
splint tool)
* [r3248] src/readerfactory.c: reformat
* [r3247] src/configfile.l, src/debug.c, src/dyn_unix.c,
src/error.c, src/eventhandler.c, src/hotplug_libhal.c,
src/ifdwrapper.c, src/readerfactory.c, src/sys_unix.c,
src/testpcsc.c, src/thread_unix.c, src/tokenparser.l,
src/utils.c, src/utils/formaticc.c, src/utils/installifd.c,
src/winscard.c, src/winscard_clnt.c, src/winscard_msg.c,
src/winscard_msg_srv.c, src/winscard_svc.c: explicitly cast
result in void when not used (reported by the splint tool)
* [r3246] c.sh: CFLAGS is now defined in ~/.bash_profile
* [r3245] src/sys_unix.c: SYS_RandomInt(): replace a cast to
(float) by an explicit conversion using +0.0
2008-12-19 Ludovic Rousseau
* [r3244] src/winscard_clnt.c: SCardGetAttrib(): avoid a possible
memory leak (detected by the cppcheck tool)
2008-12-18 Ludovic Rousseau
* [r3241] src/winscard_clnt.c: typo in a comment
2008-12-17 Ludovic Rousseau
* [r3239] src/lassert.h, src/pcsc-wirecheck-gen.c,
src/pcsc-wirecheck-main.c: add some log to pcsc-wirecheck
2008-12-13 Ludovic Rousseau
* [r3235] doc/example/pcsc_demo.c: update FSF address
2008-11-18 Ludovic Rousseau
* [r3216] ChangeLog: typo
* [r3212] doc/ifdhandler-3.tex: document libhal scheme
* [r3211] doc/ifdhandler-3.tex: document libhal scheme
* [r3209] ChangeLog, configure.in: release 1.5.0
2008-11-10 Ludovic Rousseau
* [r3200] src/readerfactory.c: RFRemoveReader(): symplify a test
* [r3197] src/hotplug_libusb.c: HPAddHotPluggable(): correctly
handle bogus reader with corrupted iSerialNumber.
Thanks to Ludovic LANGE for the patch. Closes: [#311215] Fix for
libusb hotplug garbage when serial number is empty
2008-10-31 Ludovic Rousseau
* [r3190] src/winscard_clnt.c: SCardGetStatusChange(): use |=
instead of = to set SCARD_STATE_CHANGED bit in case (dwState &
SCARD_UNKNOWN)
2008-10-28 Ludovic Rousseau
* [r3184] Makefile.am: add --reparagraph to svn2cl arguments
2008-10-27 Ludovic Rousseau
* [r3180] src/winscard_clnt.c: move definition of time_sub() before
its first use
2008-10-24 Ludovic Rousseau
* [r3179] src/ifdwrapper.c: reformat lock/unlock comments
2008-10-23 Ludovic Rousseau
* [r3178] src/ifdwrapper.c, src/winscard.c: move locking from
IFDSetPTS() to 2 levels above in SCardConnect() and
SCardReconnect(). The value of
rContext->readerState->cardProtocol is then checked and modified
in an atomic transaction
This avoids to renegociate the protocol and confuse the card if
two applications perform a SCardConnect() at the same time (after
they are both blocked by SCardGetStatusChange() and a card is
inserted for example)
Error returned by CCID driver is: CCID_Receive Procedure byte
conflict
2008-10-16 Ludovic Rousseau
* [r3171] src/winscard.c: #include "utils.h"
winscard.c:497: attention : implicit declaration of function
‘StatSynchronize’
2008-10-10 Ludovic Rousseau
* [r3160] src/utils.c: SendHotplugSignal(): wait for 1 second after
send the signal to avoid a busy loop if the device died by HAL
did not noticed
* [r3159] c.sh: remove --disable-libhal
* [r3158] src/eventhandler.c: EHStatusHandlerThread(): remove
commented and never used code to restart a reader after 10
IFDStatusICC() errors
2008-10-07 Ludovic Rousseau
* [r3157] src/hotplug_libhal.c, src/hotplug_libusb.c: call
CheckForOpenCT() if RFAddReader() fails.
The first cause of pcsc-lite failure is that OpenCT is installed
and running and has already claimed the USB device. In that case
RFAddReader() fails and I get a user support request
* [r3156] src/utils.c, src/utils.h: add CheckForOpenCT()
2008-09-24 Ludovic Rousseau
* [r3146] src/ifdwrapper.c: IFDCloseIFD(): give up to 500 ms to the
mutex to be free if the lock failed. Maybe a polling thread is
still using the device on another slot.
* [r3145] src/utils.c: StatSynchronize(): log and return if
opendir() fails
Avoids a crash when started without root privileges
2008-09-21 Ludovic Rousseau
* [r3142] src/hotplug_libhal.c: HPAddDevice(): remove a debug
printf()
2008-09-11 Ludovic Rousseau
* [r3125] src/winscard_clnt.c: SCardStatus(): allow NULL for
pcchReaderLen and pcbAtrLen
You can then use SCardStatus(hCard, pcReaders, &dwReaderLen,
NULL, NULL, NULL, NULL) to only get the reader name or
SCardStatus(hCard, NULL, NULL, NULL, NULL, pbAtr, &dwAtrLen) to
only get the card ATR or even SCardStatus(hCard, NULL, NULL,
NULL, NULL, NULL, NULL) to get nothing except SCARD_S_SUCCESS
* [r3124] src/winscard_clnt.c: SCardStatus(), SCardGetAttrib(),
SCardListReaders(), SCardListReaderGroups(): check that the
pointer argument used to store the allocated memory in case of
SCARD_AUTOALLOCATE is not NULL.
return SCARD_E_INVALID_PARAMETER instead of crashing
2008-09-10 Ludovic Rousseau
* [r3123] src/winscard_clnt.c: Doxygen: reformat a line
* [r3121] c.sh: expand a tab
2008-09-09 Ludovic Rousseau
* [r3120] src/winscard.c, src/winscard_clnt.c: SCardTransmit():
correctly pass the pioRecvPci parameter
Thanks to David L. Markowitz for the bug report
* [r3119] src/utils.c: StatSynchronize(): log with level DEBUG
instead of ERROR if errno is ENXIO "No such device or address"
since it is a normal error if the client is no more listening the
pipe
* [r3118] src/winscard_clnt.c: SCardGetStatusChange(): move "Event
Loop End" log after the end label so the log is displayed
* [r3117] src/winscard_clnt.c: WaitForPcscdEvent(): remove the
waiting for event file after use
* [r3116] src/hotplug_libhal.c: HPAddDevice(): the device serial is
"usb.serial" instead of "usb_device.serial" and it is a C-string
instead of an int
2008-09-05 Ludovic Rousseau
* [r3112] src/winscard_clnt.c: Doxygen: move SCardSetTimeout (back)
in the API group so the detailed documentation does not appear in
the winscard.h page
* [r3111] src/PCSC/pcsclite.h.in: Doxygen: document
SCARD_IO_REQUEST structure
* [r3110] src/PCSC/pcsclite.h.in: remove useless struct
_SCARD_IO_REQUEST name
* [r3109] src/winscard_clnt.c: Doxygen: SCardTransmit() can use
SCARD_PCI_RAW for pioSendPci
* [r3108] src/winscard_clnt.c: Doxygen: document g_rgSCard*Pci
values
* [r3107] src/winscard_clnt.c: move WaitForPcscdEvent() before
doxygen doc of SCardGetStatusChange()
2008-08-28 Ludovic Rousseau
* [r3104] src/winscard_msg_srv.c: SHMProcessEventsContext(): do not
timeout every 1 second on Linux.
We do timeout only on *BSD like in SHMProcessEventsServer()
2008-08-26 Ludovic Rousseau
* [r3103] src/eventhandler.c, src/winscard.c, src/winscard_clnt.c:
use asynchronous events instead of polling for
SCardGetStatusChange()
on client side use WaitForPcscdEvent() instead of
SYS_USleep(PCSCLITE_STATUS_WAIT)
on server side use StatSynchronize() instead of
SYS_MMapSynchronize()
* [r3102] src/winscard_clnt.c: SCardGetStatusChange(): use k
instead of i warning: declaration of 'i' shadows a previous local
* [r3101] src/winscard_clnt.c: move time_sub() outside of #ifdef
DO_PROFILE
* [r3100] src/pcscd.h.in: define PCSCLITE_EVENTS_DIR
* [r3099] src/pcscdaemon.c: main(): create PCSCLITE_EVENTS_DIR
directory clean_temp_files(): purge & remove PCSCLITE_EVENTS_DIR
directory
* [r3098] src/utils.c, src/utils.h: add StatSynchronize() "Sends an
asynchronous event to any waiting client"
2008-08-12 Ludovic Rousseau
* [r3088] src/winscard_msg_srv.c: SHMProcessEventsContext(): also
log the received command not just the client ID
2008-08-11 Ludovic Rousseau
* [r3087] src/pcscdaemon.c, src/winscard_msg.c,
src/winscard_msg_srv.c: use SYS_RemoveFile() instead of
SYS_Unlink()
* [r3086] src/sys_generic.h, src/sys_unix.c: remove SYS_Unlink()
since it duplicates SYS_RemoveFile()
2008-08-07 Ludovic Rousseau
* [r3083] src/eventhandler.c: reorder two lines
* [r3082] src/eventhandler.c, src/pcscdaemon.c: call SYS_Chmod()
for PCSCLITE_RUN_PID and PCSCLITE_PUBSHM_FILE to force the file
access mode in case umask is too restrictive
2008-08-06 Ludovic Rousseau
* [r3081] src/readerfactory.h: #include "pcscd.h" to get
definitions MAX_LIBNAME, MAX_DEVICENAME,
PCSCLITE_MAX_READER_CONTEXT_CHANNELS
* [r3080] src/pcscdaemon.c: main(): call SYS_OpenFile() with the
modes used by SYS_Chmod() and remove useless SYS_Chmod() call
* [r3079] src/eventhandler.c: EHInitializeEventStructures(): call
SYS_OpenFile() with the modes used by SYS_Chmod() and remove
useless SYS_Chmod() call
* [r3078] src/eventhandler.c: EHInitializeEventStructures(): use
POSIX instead of Unix V7 permissions names
2008-07-30 Ludovic Rousseau
* [r3077] src/winscard_clnt.c: Doxygen: typo
* [r3076] src/winscard_clnt.c: Doxygen: document the use of
SCARD_AUTOALLOCATE with SCardGetAttrib()
* [r3075] src/PCSC/debuglog.h, src/debug.h, src/error.c,
src/winscard_clnt.c: Doxygen: do not create a useless @test group
* [r3074] src/winscard_clnt.c: Doxygen: document use of
SCARD_AUTOALLOCATE for SCardStatus()
* [r3073] src/PCSC/winscard.h: SCardStatus(): rename parameter
mszReaderNames -> mszReaderName
* [r3072] src/winscard_clnt.c: Doxygen: remove SCardSetTimeout()
from the API doc since it is deprecated
* [r3071] src/winscard_clnt.c: SCardStatus(): factorize code using
goto end;
* [r3070] src/winscard_clnt.c: SCardStatus(): rename parameter
mszReaderNames in mszReaderName since it is the name of one
reader only
* [r3069] src/testpcsc.c: test SCARD_AUTOALLOCATE in SCardStatus()
* [r3068] src/winscard_clnt.c: SCardStatus(): add support of
SCARD_AUTOALLOCATE for pcchReaderLen and pcbAtrLen
* [r3067] src/testpcsc.c: use buf[] and dwBufLen for an temporary
buffer instead of pbAtr[] and dwAtrLen
2008-07-29 Ludovic Rousseau
* [r3062] src/winscard_clnt.c: SCardStatus(): set *pdwState and
*pdwProtocol to 0 before checking pcchReaderLen and pcbAtrLen
Should avoid the use of SUN libregression.c for some buggy
applications
2008-07-07 Ludovic Rousseau
* [r3058] src/winscard_clnt.c: SCardGetStatusChange(): Doxygen
document the use of "\\?PnP?\Notification"
* [r3057] src/winscard_clnt.c: Doxygen document the use of
SCARD_AUTOALLOCATE for SCardListReaders() and
SCardListReaderGroups()
* [r3056] src/error.c, src/winscard_clnt.c: improve Doxygen
documentation
* [r3055] doc/doxygen.conf.in: exclude src/winscard_scf.c since it
is a duplicate of winscard_clnt.c and causes some Doxygen links
to be wrong
* [r3054] src/winscard_clnt.c: typos in Doxygen comments
2008-07-04 Ludovic Rousseau
* [r3053] src/testpcsc.c: when the reader is disconnected during
SCardGetStatusChange() SCARD_STATE_UNKNOWN bit is set in
.dwEventState
* [r3052] src/testpcsc.c: test SCardGetStatusChange() with reader
name \\?PnP?\Notification to detect new reader
* [r3051] src/winscard_clnt.c: SCardGetStatusChange(): if a reader
disappear also set SCARD_STATE_UNAVAILABLE in dwEventState (more
conform to Windows XP)
* [r3050] src/winscard_clnt.c: SCardGetStatusChange(): add support
of reader name \\?PnP?\Notification to detect reader
insertion/removal (conform to Windows XP)o
Closes: [#310780] Support for undocumented \\?PnP?\Notification
'virtual' reader
Using a cReaders == 0 is now deprecated
* [r3049] src/winscard_clnt.c: SCardGetStatusChange(): simplify
SCARD_SWALLOWED check
* [r3048] src/winscard_clnt.c: SCardGetStatusChange(): reformat
comments
* [r3047] src/winscard_clnt.c: SCardGetStatusChange(): simplify bad
state check
* [r3046] src/winscard_clnt.c: SCardGetStatusChange(): simplify
unknown reader case
* [r3045] src/winscard_clnt.c: SCardGetStatusChange(): factorize
exit code using goto end;
* [r3044] src/winscard_clnt.c: SCardGetStatusChange(): return
SCARD_E_TIMEOUT instead of SCARD_S_SUCCESS if dwTimeout == 0
(conform to Windows XP)
* [r3043] src/winscard_clnt.c: SCardGetStatusChange(): move check
for break conditions code
* [r3042] src/winscard_clnt.c: SCardGetStatusChange(): move and
simplify the check the integrity of the reader states structures
routine
* [r3041] src/winscard_clnt.c: SCardGetStatusChange(): return if
all readers are SCARD_STATE_IGNORE
* [r3040] src/winscard_clnt.c: SCardGetStatusChange(): do not even
change dwEventState for SCARD_STATE_IGNORE readers
* [r3039] src/winscard_clnt.c: SCardGetStatusChange(): simplify the
Clear the event state for all readers loop
* [r3038] src/winscard_clnt.c: SCardGetStatusChange(): maximal
value for cReaders is PCSCLITE_MAX_READERS_CONTEXTS not
PCSCLITE_MAX_READERS_CONTEXTS-1
* [r3037] src/winscard_clnt.c: SCardGetStatusChange(): move check
for cReaders >= PCSCLITE_MAX_READERS_CONTEXTS
2008-06-27 Ludovic Rousseau
* [r3032] ChangeLog, configure.in: release 1.4.102
* [r3031] src/winscard_svc.c: ContextsInitialize(): use a long
instead of int winscard_svc.c:100: warning: cast to pointer from
integer of different size
2008-06-26 Ludovic Rousseau
* [r3030] src/eventhandler.c: EHDestroyEventHandler(): kill the
polling thread only if the driver supports it (declared using
TAG_IFD_POLLING_THREAD_KILLABLE)
libusb 1.0 does not support it so it is disabled in the ccid
driver
* [r3029] src/PCSC/ifdhandler.h: #define
TAG_IFD_POLLING_THREAD_KILLABLE
* [r3028] src/eventhandler.c: EHStatusHandlerThread(): lower the
log level when the polling thread is dying
2008-06-24 Ludovic Rousseau
* [r3021] src/testpcsc.c: test SCardGetAttrib() with
SCARD_AUTOALLOCATE
* [r3020] src/winscard_clnt.c: SCardGetAttrib(): add support of
SCARD_AUTOALLOCATE
* [r3019] src/winscard_clnt.c: SCardListReaders(): always set the
pcchReaders even if SCARD_E_INSUFFICIENT_BUFFER is returned
* [r3018] src/winscard_clnt.c: SCardListReaderGroups(): check for
SCARD_E_INSUFFICIENT_BUFFER only if mszGroups is non-null
* [r3017] src/testpcsc.c: test SCardListReaderGroups() with
USE_AUTOALLOCATE
* [r3016] src/winscard_clnt.c: SCardListReaderGroups(): add support
of SCARD_AUTOALLOCATE
2008-06-23 Ludovic Rousseau
* [r3015] src/testpcsc.c: use NULL instead of 0 for mszGroups
argument of SCardListReaderGroups()
2008-06-19 Ludovic Rousseau
* [r3014] src/testpcsc.c: test SCardListReaders(..
SCARD_AUTOALLOCATE ..)
* [r3013] src/PCSC/pcsclite.h.in, src/PCSC/winscard.h,
src/winscard_clnt.c: add support of SCARD_AUTOALLOCATE for
SCardListReaders() add SCardFreeMemory()
* [r3012] src/testpcsc.c: use NULL instead of 0 for mszReaders
argument of SCardListReaders()
* [r3011] src/winscard_clnt.c: SCardListReaders(): correctly return
SCARD_E_INSUFFICIENT_BUFFER if *pcchReaders is too small
2008-06-07 Ludovic Rousseau
* [r2980] m4/acx_pthread.m4: update (correct a problem under
Solaris)
Thanks to David L. Markowitz for the bug report
2008-05-29 Ludovic Rousseau
* [r2975] src/readerfactory.c: RFAddReader(): try to use the reader
polling thread also for the other slots on a multi-slots reader
2008-05-23 Ludovic Rousseau
* [r2967] doc/pcsc-lite.tex: add spaces around =
2008-05-16 Ludovic Rousseau
* [r2963] src/winscard_clnt.c: SCardReconnect(), SCardDisconnect(),
SCardBeginTransaction(), SCardEndTransaction(),
SCardCancelTransaction(), SCardStatus(), SCardControl(),
SCardGetSetAttrib(), SCardTransmit(): check that the card handle
is still valid after we (should) hold the lock
The context may have been closed by another thread using
SCardReleaseContext() on the same context
[#300849] problems in multithreading environment (segmentation
faults, SCardCancel does not work)
* [r2962] src/thread_unix.c: SYS_Mutex*(): check that the mMutex
parameter is non NULL to avoid a crash
related to [#300849] problems in multithreading environment
(segmentation faults, SCardCancel does not work)
* [r2961] src/eventhandler.c, src/pcsc-wirecheck-gen.c,
src/winscard_clnt.c, src/winscard_msg.c, src/winscard_msg_srv.c,
src/winscard_svc.c: remove spaces at end of lines
* [r2960] src/winscard_clnt.c: SCardReleaseContext(),
SCardConnect(), SCardGetStatusChange(), SCardListReaders() and
SCardListReaderGroups: check that the context is still opened
after we (should) hold the lock
The context may have been closed by another thread using
SCardReleaseContext() on the same context
[#300849] problems in multithreading environment (segmentation
faults, SCardCancel does not work)
* [r2959] src/winscard.c: remove an empty line
* [r2958] Makefile.am, configure.in, win32: do not include the
(useless) win32 directory any more
2008-05-15 Ludovic Rousseau
* [r2957] src/winscard.c: SCardConnect(), SCardReconnect(): do not
check the parameter dwPreferredProtocols if dwShareMode ==
SCARD_SHARE_DIRECT
This is used on contactless readers to talk to the reader without
any card and "random" value of dwPreferredProtocols
Thanks to Philippe BOURGAULT for reporting the bug
* [r2956] src/winscard_clnt.c: SCardEstablishContextTH(),
SCardConnect(), SCardReconnect(), SCardDisconnect(),
SCardEndTransaction(): do not check parameters for
SCARD_E_INVALID_VALUE since these tests are also done on the
server side. Do not duplicate code
* [r2955] src/pcscdaemon.c: SVCServiceRunLoop(): return if
HPSearchHotPluggables() fails
* [r2954] src/pcscdaemon.c: SVCServiceRunLoop(): return if
HPRegisterForHotplugEvents() fails
* [r2953] src/winscard_svc.c: CreateContextThread(): update to the
new SYS_ThreadCreate() API
2008-05-13 Ludovic Rousseau
* [r2952] src/eventhandler.c: EHDestroyEventHandler(): log the
error message of SYS_ThreadJoin() and SYS_ThreadCreate() if any
* [r2951] src/eventhandler.c: EHSpawnEventHandler(): do not create
the card polling thread using THREAD_ATTR_DETACHED since that
will prevent SYS_ThreadJoin() from working
* [r2950] src/eventhandler.c: EHStatusHandlerThread(): do not call
SYS_ThreadDetach() since that will prevent SYS_ThreadJoin() from
working.
* [r2949] src/thread_unix.c: update copyright date
* [r2948] src/thread_unix.c: forward the return value from the low
level thread library and not just FALSE or TRUE The upper layer
can then use strerror()
* [r2947] src/Makefile.am, src/dyn_win32.c, src/thread_win32.c: do
not distribute win32 files anymore. win32 is not a supported
platform
* [r2946] configure.in, src/pcscdaemon.c: pcscd -v now displays the
enabled features
Thanks to Alon Bar-Lev for the suggestion
* [r2945] src/pcscdaemon.c: update email for bug reports
2008-05-12 Ludovic Rousseau
* [r2944] src/ifdwrapper.c: IFDCloseIFD(): use SYS_MutexTryLock()
instead of SYS_MutexLock() since the mutex may be hold by a now
dead polling thread
* [r2943] src/thread_generic.h, src/thread_unix.c: add
SYS_MutexTryLock()
* [r2942] src/readerfactory.c: typo in comment
2008-05-11 Ludovic Rousseau
* [r2941] Makefile.am: add AUTOMAKE_OPTIONS = dist-bzip2 so that
make dist alsa generates a .tar.bz2 archive
2008-05-09 Ludovic Rousseau
* [r2939] src/readerfactory.c: RFAddReader(): in case of error call
RFRemoveReader() to free all resources instead of duplicating
part of the needed code.
* [r2938] src/readerfactory.c: RFAddReader(): call RFRemoveReader()
to free resources if EHSpawnEventHandler() fails
2008-05-06 Ludovic Rousseau
* [r2928] INSTALL: do not store in subversion since it is installed
by autoconf
2008-04-30 Ludovic Rousseau
* [r2927] src/winscard_clnt.c: doxygen: SCardCancelTransaction()
add return values SCARD_W_REMOVED_CARD and SCARD_W_RESET_CARD
* [r2926] ChangeLog, configure.in: release 1.4.101
* [r2918] src/hotplug_libusb.c, src/winscard_msg_srv.c: Add support
for DragonFly BSD
Thanks to Hasso Tepper for the patch
2008-04-29 Ludovic Rousseau
* [r2917] src/eventhandler.c: EHStatusHandlerThread(): do not set
card state to SCARD_RESET when a card is inserted. Keep the state
to SCARD_REMOVED
See
http://www.opensc-project.org/pipermail/opensc-devel/2008-April/011121.html
2008-04-28 Ludovic Rousseau
* [r2915] src/winscard_clnt.c: return the returned value of
SCardCheckDaemonAvailability() instead of always
SCARD_E_NO_SERVICE in case of error (may also be
SCARD_E_INVALID_HANDLE)
* [r2914] src/winscard_clnt.c: SCardCheckDaemonAvailability():
return SCARD_E_INVALID_HANDLE instead of SCARD_E_NO_SERVICE is
pcscd has been restarted
Thanks to Alon Bar-Lev for the patch
2008-04-25 Ludovic Rousseau
* [r2913] src/winscard_clnt.c: SCardEstablishContext(): correcly
handle a call from a forked child (do not fail)
Thanks to Alon Bar-Lev for bug report
2008-04-24 Ludovic Rousseau
* [r2910] src/winscard_clnt.c: SCardCheckDaemonAvailability():
invalidate all handles if the application has forked and we are
in the child. The child must call SCardEstablishContext() to get
his own handle.
Thanks to Alon Bar-Lev for the bug report and the patch
* [r2909] src/testpcsc.c: better management of corner cases
* [r2908] src/winscard_clnt.c: doxygen: use /**< instead of /** to
correctly identify identify fields
* [r2907] src/winscard_svc.c: ContextThread(): call
SHMClientCloseSession() instead of SYS_CloseFile() to respect
namespace
* [r2906] src/winscard_svc.c: typo in comment
2008-04-22 Ludovic Rousseau
* [r2905] doc/doxygen.conf.in: doxygen: WARN_NO_PARAMDOC = YES
* [r2904] doc/doxygen.conf.in: doxygen: update conf from version
1.4.2 to 1.5.5 file using doxygen -u
* [r2903] doc/doxygen.conf.in: ENUM_VALUES_PER_LINE = 1 (instead of
4)
* [r2902] src/winscard_clnt.c: doxygen: remove two unused </ul>
* [r2901] src/winscard_clnt.c: doxygen: add SCardReleaseContext()
and SCardEndTransaction() in API group even if they are
deprecated
* [r2900] src/readerfactory.h, src/winscard_msg.h: doxygen: add
comments
* [r2899] src/winscard_svc.c: ContextThread(): check the return
value of MSGFunctionDemarshall() and correctly exists in case of
error. This happens when MSGCheckHandleAssociation() fails
Thanks to Alon Bar-Lev for the bug report
* [r2898] src/winscard_msg.h, src/winscard_msg_srv.c,
src/winscard_svc.c: SHMProcessEventsContext(): use uint32_t
dwClientID parameter instead of uint32_t *pdwClientID since we do
not need the address of the value but the value itself
* [r2897] src/hotplug_libusb.c: doxygen: convert C comments in
doxygen comments
* [r2896] src/debuglog.c, src/hotplug_libhal.c,
src/hotplug_linux.c, src/ifdwrapper.c, src/pcscdaemon.c,
src/powermgt_generic.h, src/prothandler.c, src/winscard_scf.c,
src/winscard_svc.c: doxygen: convert C comments in doxygen
comments
2008-04-21 Ludovic Rousseau
* [r2895] src/debug.c: declare log_init() static to avoid the
prototype declaration
* [r2894] src/debug.c: correct LogLevel comment to be accurate
* [r2893] src/debug.c: doxygen: convert C comments in doxygen
comments
* [r2892] src/PCSC/ifdhandler.h: doxygen: convert C comments in
doxygen comments
* [r2891] src/atrhandler.c, src/atrhandler.h: removed unused TO and
T1 struct from CardCapabilities struct
* [r2890] src/atrhandler.h: removed unused PtsData struct from
CardCapabilities struct
* [r2889] src/readerfactory.h: doxygen: convert C comments in
doxygen comments
* [r2888] src/readerfactory.h: remove unused RdrCapabilities and
ProtOptions structures
* [r2887] src/readerfactory.h: doxygen: document struct
SerialReader fields
* [r2886] src/winscard_clnt.c: doxygen: wrap long lines
* [r2885] src/error.c, src/winscard_clnt.c: doxygen: create an API
group
* [r2884] src/winscard.c, src/winscard_clnt.c: doxygen: use -
instead of <li>
* [r2883] src/winscard_msg.h: doxygen: document SCARD_* commands
and \ref them from struct doc
* [r2882] src/readerfactory.c: RFAddReader(): log if we are using
pcscd or reader polling thread
2008-04-20 Ludovic Rousseau
* [r2881] TODO: remove "use a callback from IFD handler to pcscd
instead of polling to get the card status" since this feature is
now available using TAG_IFD_POLLING_THREAD when the driver is
collaborating
* [r2880] src/testpcsc.c: improve colorization
* [r2879] TODO: start pcscd as an normal user daemon
2008-04-10 Ludovic Rousseau
* [r2878] src/hotplug_libhal.c: HPRegisterForHotplugEvents():
correctly check if no bundle files in pcsc drivers directory
* [r2877] c.sh: expand a tab
2008-04-07 Ludovic Rousseau
* [r2868] c.sh: revert previous patch
* [r2867] TODO, c.sh: start pcscd only when a reader is connected.
2008-04-04 Ludovic Rousseau
* [r2866] c.sh: add --sysconfdir=/etc
* [r2865] etc/pcscd.init.in: update Should-Start: and Should-Stop:
(see Debian bug #474238)
2008-03-23 Ludovic Rousseau
* [r2852] ChangeLog, configure.in: release 1.4.100
2008-03-14 Ludovic Rousseau
* [r2851] etc/pcscd.init.in: typo pscsd -> pcscd
* [r2850] src/winscard_clnt.c: SCardCheckDaemonAvailability():
lower the priority of the log message in case of "PCSC restarted"
so that nothing is logged by default. PCSCLITE_DEBUG can be
defined to see the message.
See also revision 2731
2008-03-04 Ludovic Rousseau
* [r2845] src/winscard_clnt.c: SCardReleaseContext(): remove the
local context at the end like before revision 2833 (since we use
the psContextMap[dwContextIndex].mMutex) or if
SCardCheckDaemonAvailability() fails
2008-02-21 Ludovic Rousseau
* [r2839] src/winscard_clnt.c: SCardReleaseContext(): revert
revision 2834 since we need to get the value of dwContextIndex
* [r2838] src/pcscdaemon.c: pcscdaemon.c:394:34: warning: "/*"
within comment
2008-02-19 Ludovic Rousseau
* [r2835] src/winscard_clnt.c: reformat
* [r2834] src/winscard_clnt.c: SCardReleaseContext(): do not call
SCardGetContextIndice() since SCardRemoveContext() will call it
internally
* [r2833] src/winscard_clnt.c: SCardReleaseContext(): release the
local resource even if the daemon does not respond
Thanks to Eric Walter for the bug report
2008-02-16 Ludovic Rousseau
* [r2830] src/pcscdaemon.c: do not create the PCSCLITE_IPC_DIR
(/var/run/pcscd) directory with the sticky bit
* [r2829] src/pcscdaemon.c: change a comment from /tmp/pcsc to
/var/run/pcscd/
* [r2828] src/pcscdaemon.c: update comments /var/run/ is now
/var/run/pcscd/ by default
2008-02-14 Ludovic Rousseau
* [r2817] src/hotplug_libhal.c: set svn:keywords Id
* [r2816] c.sh: add --enable-twinserial
* [r2814] src/PCSC/wintypes.h: move types unused by pcsc-lite at
the end
2008-02-09 Ludovic Rousseau
* [r2812] configure.in: display sysconfdir_exp instead of
sysconfdir
* [r2811] configure.in: set default value of confdir
2008-02-04 Ludovic Rousseau
* [r2787] src/readerfactory.c: RFAddReader(): also check returned
value of dwGetSize
* [r2785] configure.in: improve configuration display
* [r2784] c.sh: add set -x
2008-02-01 Ludovic Rousseau
* [r2780] src/eventhandler.c, src/eventhandler.h,
src/readerfactory.c, src/readerfactory.h: add support of
TAG_IFD_POLLING_THREAD to use an asynchronous card movements
detection instead of an active polling
* [r2779] src/PCSC/ifdhandler.h: add TAG_IFD_POLLING_THREAD
* [r2778] src/sys_unix.c: SYS_GetPageSize(): cache the result of
getpagesize() to improve performances
2008-01-30 Ludovic Rousseau
* [r2775] src/winscard_clnt.c: SCardCheckDaemonAvailability(): log
the system error message in case PCSC Not Running
2008-01-29 Ludovic Rousseau
* [r2770] src/winscard_clnt.c: SCardListReaders(): returns
SCARD_E_NO_READERS_AVAILABLE when no reader are available.
Thanks to Thomas Harning for the bug report
* [r2769] src/error.c: pcsc_stringify_error(): add support of
SCARD_E_NO_READERS_AVAILABLE
* [r2768] src/winscard_clnt.c: SCardListReaders(): factorize code
2008-01-24 Ludovic Rousseau
* [r2767] src/winscard.c: SCardConnect(), SCardReconnect(),
SCardDisconnect(): replace SYS_USleep(PCSCLITE_STATUS_POLL_RATE +
10) by SYS_MMapSynchronize() calls to gain performances.
Thanks to Sean Wykes for the patch
* [r2766] src/hotplug_libhal.c: use $Id$
* [r2765] src/hotplug_libhal.c: HPAddDevice(): remove the device
from readerTracker[] if RFAddReader() fails
* [r2761] configure.in: document what do do if pkg module hal is
not found
2008-01-22 Ludovic Rousseau
* [r2760] configure.in: revert libhal -> LIBHAL
* [r2759] configure.in: rename LIBHAL -> libhal
2008-01-21 Ludovic Rousseau
* [r2750] src/thread_generic.h, src/thread_unix.c: first argument
of SYS_ThreadJoin() is now a PCSCLITE_THREAD_T instead of
PCSCLITE_THREAD_T *
* [r2749] src/thread_generic.h, src/thread_unix.c: add
SYS_ThreadSetCancelType()
* [r2748] configure.in, src/Makefile.am, src/hotplug_generic.c,
src/hotplug_libhal.c, src/hotplug_linux.c: add libhal support to
avoid polling the USB bus. libusb is still supported but libhal
is now the default
* [r2747] src/hotplug_libusb.c: Patch in revision 2743 was wrong.
We need to hold the lock before traversing the reader list
2008-01-17 Ludovic Rousseau
* [r2745] src/debuglog.c: do not display dela times of more than
100 seconds to avoid overflows. The magic value 99999999 is used
instead
* [r2744] doc/ifdhandler-3.tex: more details about deviceName
argument of IFDHCreateChannelByName()
2008-01-15 Ludovic Rousseau
* [r2743] src/hotplug_libusb.c: HPAddHotPluggable(): lock the mutex
_after_ every possible return. (May cause a deadlock)
* [r2742] src/ifdwrapper.c: #include "utils.h" instead of
"hotplug.h"
* [r2741] src/utils.h: #include <sys/types.h>
* [r2740] src/utils.h: revert previous patch
* [r2739] src/utils.h: remove wrong comment
* [r2738] src/hotplug.h, src/pcscdaemon.c, src/utils.c,
src/utils.h: move SendHotplugSignal() from pcscdaemon.c to
utils.c
* [r2737] src/hotplug_libusb.c: HPRescanUsbBus() and
HPEstablishUSBNotifications() are static functions
* [r2736] src/hotplug_linux.c: add a prototype for
HPEstablishUSBNotifications() and make it static
* [r2735] src/hotplug_libusb.c, src/hotplug_linux.c: declare local
functions as static
2008-01-14 Ludovic Rousseau
* [r2733] src/dyn_macosx.c: DYN_LoadLibrary(): log an error message
in case of failure
2008-01-12 Ludovic Rousseau
* [r2732] src/debug.c: default log level is PCSC_LOG_CRITICAL+1 so
that NO log is sent to stderr by default. You need to explicitely
set PCSCLITE_DEBUG to have logs. (in a library stderr(2) can be
any file opened with fd=2 so should not be used)
2008-01-11 Ludovic Rousseau
* [r2731] src/winscard_clnt.c: CardCheckDaemonAvailability(): lower
the priority of the log message in case of "PCSC Not Running" so
that nothing is logged by default. PCSCLITE_DEBUG can be defined
to see the message.
Programs linked with libpcsclite will not display anything if
pcscd is not running. Solves Red Hat bug 428299.
* [r2730] src/pcscdaemon.c: add a \n after the pid number in
PCSCLITE_RUN_PID so that cat(1) works correctly
* [r2729] src/winscard_msg.c: Log the socket name in case of error
* [r2728] src/winscard_clnt.c: SCardEstablishContextTH(): also
display the system error message if a system call fails (can't
open PCSCLITE_PUBSHM_FILE)
2008-01-09 Ludovic Rousseau
* [r2726] ChangeLog: release 1.4.99
2008-01-03 Ludovic Rousseau
* [r2721] src/libpcsclite.pc.in: more @PTHREAD_LIBS@ from Libs: to
Libs.private:
* [r2720] src/pcscdaemon.c: add type for ExitValue
* [r2719] src/pcscdaemon.c: return EXIT_SUCCESS (instead of
EXIT_SUCCESS) if parsing /etc/reader.conf fails.
Closes Debian bug #457665
* [r2718] src/configfile.l: improve detection of wrong format in
reader.conf file
2007-12-13 Ludovic Rousseau
* [r2714] src/eventhandler.c: EHStatusHandlerThread(): remove an
unneeded SYS_USleep() before powering a card when its presence is
detected.
Thanks to Sean Michael Wykes for the patch
2007-11-23 Ludovic Rousseau
* [r2710] doc/doxygen.conf.in: include call graphs
* [r2709] src/PCSC/pcsclite.h.in, src/PCSC/reader.h.in,
src/winscard_clnt.c: add missing Doxygen comments
2007-11-22 Ludovic Rousseau
* [r2708] src/winscard_clnt.c: improve Doxygen documentation
2007-11-17 Ludovic Rousseau
* [r2707] src/winscard_msg.h: use uint32_t instead of int32_t for
rv type
* [r2706] src/testpcsc.c: use LONG instead of int for rv in
test_rv() The type was wrong on amd64 since the sign was extended
* [r2705] src/testpcsc.c: only display the result of SCardControl()
if it succeeded
2007-11-09 Ludovic Rousseau
* [r2681] src/winscard_msg.c: typo
2007-11-08 Ludovic Rousseau
* [r2680] src/pcscdaemon.c: 2 typos
2007-11-01 Ludovic Rousseau
* [r2678] src/pcscdaemon.c: main(): create PCSCLITE_IPC_DIR
_before_ writing PCSCLITE_RUN_PID
2007-10-18 Ludovic Rousseau
* [r2663] src/pcscdaemon.c: main(): do not create the
PCSCLITE_IPC_DIR directory with write permission for group and
other
* [r2662] c.sh: check more prototypes
* [r2661] src/winscard.c: winscard.c:660: warning: declaration of
'dwAtrLen' shadows a previous local
* [r2660] src/PCSC/ifdhandler.h, src/ifdwrapper.c: use (void)
instead of () for function declaration
* [r2659] src/PCSC/pcsclite.h.in, src/error.c:
pcsc_stringify_error(): argument is const
* [r2658] src: ignore pcsc-wirecheck, pcsc-wirecheck-dist.c,
pcsc-wirecheck-gen and tags
* [r2657] c.sh: call ./configure with nice arguments
2007-10-16 Ludovic Rousseau
* [r2654] src/thread_generic.h, src/thread_unix.c:
SYS_ThreadCancel() arg is a PCSCLITE_THREAD_T instead of a
PCSCLITE_THREAD_T *
2007-10-11 Ludovic Rousseau
* [r2647] TODO: the SCardReconnect performance problem has been
(partly) solved in revision 2385
* [r2646] TODO: update date
* [r2645] TODO, configure.in: bug #303790 is now solved
* [r2644] doc/pcscd.8.in: use @ipcdir@ instead of @runpid@
* [r2643] configure.in: remove --enable-runpid=FILE option since it
was not supported to NOT use a runpid file
* [r2642] src/pcscdaemon.c, src/utils.c: use PCSCLITE_RUN_PID
instead of USE_RUN_PID
* [r2641] src/pcscd.h.in: define PCSCLITE_RUN_PID as
PCSCLITE_IPC_DIR "/pcscd.pid"
* [r2640] configure.in: default ipcdir is /var/run/pcscd instead of
/var/run so the directory can be shared locally between 32/64
bits systems on chroots
* [r2639] src/eventhandler.h: iREADER_STATE: remove the unused
dummy field
* [r2638] src/testpcsc.c: increase readername len from 50 to 100
since we now support longer reader names
* [r2637] src/PCSC/pcsclite.h.in: increase MAX_READERNAME from 52
to 100
Closes bug [#304481] increase MAX_READERNAME from 52 to 100
* [r2636] src/readerfactory.c: RFAddReader(): also count the length
of " 00 00" in the reader name when rejectecting reader names too
long
2007-10-09 Ludovic Rousseau
* [r2635] src/Makefile.am, src/eventhandler.c, src/eventhandler.h,
src/lassert.h, src/pcsc-wirecheck-gen.c,
src/pcsc-wirecheck-main.c, src/pcscdaemon.c, src/readerfactory.c,
src/winscard.c, src/winscard_clnt.c, src/winscard_msg.c,
src/winscard_msg.h, src/winscard_msg_srv.c, src/winscard_svc.c,
src/winscard_svc.h: add support of mix 32/64 bits platforms.
Closes bug [#303790] pcscd protocol depends on word size; breaks
32-bit clients with 64-bit server
Thanks to Jacob Berkman for the big patch
* [r2634] src/testpcsc.c: remove an extra space
2007-10-03 Ludovic Rousseau
* [r2633] src/debuglog.c: display time delta between two lines of
logs when printed to stderr
2007-09-17 Ludovic Rousseau
* [r2625] src/testpcsc.c: use NULL instead of 0 for a char *
2007-08-26 Ludovic Rousseau
* [r2623] .: rename ChangeLog.cvs in ChangeLog.svn
* [r2622] src/PCSC: ignore reader.h
* [r2621] src: ignore pcscd.h
* [r2620] doc: ignore doxygen.conf, api & update-reader.conf.8
2007-08-22 Ludovic Rousseau
* [r2618] src/readerfactory.c: RFLoadReader(): change the log
message from a scary "Warning" to a more informative one
2007-08-20 Ludovic Rousseau
* [r2615] src/thread_unix.c: SYS_ThreadCreate(): call
pthread_attr_destroy() to free memory allocated by
pthread_attr_init()
Thanks to Paul Klissner for the bug report
2007-08-14 Ludovic Rousseau
* [r2614] ChangeLog, configure.in: release 1.4.4
2007-08-13 Ludovic Rousseau
* [r2613] src/atrhandler.c, src/eventhandler.c, src/winscard.c: use
SCARD_PROTOCOL_UNDEFINED instead of SCARD_PROTOCOL_UNSET
* [r2612] src/PCSC/pcsclite.h.in: rename SCARD_PROTOCOL_UNSET to
SCARD_PROTOCOL_UNDEFINED to reflect the Windows winscard API
SCARD_PROTOCOL_UNSET is still defined for backward compatibility
2007-08-08 Ludovic Rousseau
* [r2611] src/hotplug_libusb.c: HPEstablishUSBNotifications(): make
the log message more explicit when the driver does not support
IFD_GENERATE_HOTPLUG (it is not an error)
2007-08-02 Ludovic Rousseau
* [r2601] doc/ifdhandler-3.tex: update IFDHPowerICC() documentation
2007-07-05 Ludovic Rousseau
* [r2598] src/hotplug_libusb.c, src/pcscdaemon.c: do not call a Log
function in a signal handler and do hotplug synchronously. See
Debian bug #430492
Thanks to Russell Stuart for the bug report and patch
2007-07-03 Ludovic Rousseau
* [r2595] ChangeLog: correct version number for 1.4.3
2007-07-02 Ludovic Rousseau
* [r2594] doc/example/pcsc_demo.c: use PCSC_ERROR() also for the
second SCardListReaders()
* [r2589] doc/example/pcsc_demo.c: update version
* [r2588] doc/example/pcsc_demo.c: use PCSC_ERROR() for
SCardListReaders() call
* [r2587] doc/example/pcsc_demo.c: update copyright date
* [r2586] doc/example/pcsc_demo.c: do not free unallocated
resources
2007-06-25 Ludovic Rousseau
* [r2580] etc/pcscd.init.in: Add LSB comment block See
http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html
Thanks to Ville Skyttä for the patch
2007-06-23 Ludovic Rousseau
* [r2578] configure.in, doc/update-reader.conf.8.in: dynamically
generate update-reader.conf.8 by ./configure
Thanks to Klaus Heinz. Closes: [#304518] update-reader.conf.8
should be created from update-reader.conf.8.in
* [r2577] doc/Makefile.am: distribute update-reader.conf.8.in
instead of update-reader.conf.8
* [r2576] doc/update-reader.conf.8, doc/update-reader.conf.8.in:
rename doc/update-reader.conf.8 in doc/update-reader.conf.8.in
since ./configure with generate doc/update-reader.conf.8
* [r2575] configure.in: remove 3 unused
AC_PATH_PROG(TEST_MINUS_S_SH, *) lines
Thanks to Klaus Heinz. Closes: [#304517] Check for bash/ksh/sh
and variable TEST_MINUS_S_SH not necessary anymore
2007-06-21 Ludovic Rousseau
* [r2574] src/utils/formaticc.c: replace 0 by NULL
* [r2573] configure.in: add AM_PROG_CC_C_O as requested by:
doc/example/Makefile.am:4: compiling `pcsc_demo.c' with
per-target flags requires `AM_PROG_CC_C_O' in `configure.in'
2007-06-20 Ludovic Rousseau
* [r2572] src/PCSC/reader.h.in: Solaris, like Max OS X, does not
support pack(push, 1). Use pack(1) instead
Thanks to David Markowitz
2007-06-19 Ludovic Rousseau
* [r2570] ChangeLog, configure.in: release 1.4.3
* [r2569] src/winscard_clnt.c: move definitions of
SCardLockThread() and SCardUnlockThread() at the beginning of
file and remove their declarations
* [r2568] src/pcscdaemon.c: SVCServiceRunLoop(): do not exit is
CreateContextThread() fails. Avoids a denial of service.
Thanks to Joshua J. Drake
2007-06-18 Ludovic Rousseau
* [r2567] src/winscard.c: SCardStatus(): check for hCard == 0
Thanks to Joshua J. Drake for the bug report
2007-06-17 Ludovic Rousseau
* [r2565] src/winscard_msg.c: replace PCSCLITE_MAX_MESSAGE_SIZE by
sizeof(msgStruct.data)
* [r2564] src/winscard_msg.c: patch in revision 2535 was not
correct for exteneded APDU. It generated a buffer overflow.
* [r2563] doc/example/pcsc_demo.c: use EXIT_FAILURE instead of 1
* [r2562] doc/pcsc-lite.tex: typo
2007-06-13 Ludovic Rousseau
* [r2561] src/hotplug_libusb.c, src/pcscdaemon.c,
src/readerfactory.c: use NULL instead of 0 for pointers (detected
by sparse)
* [r2560] src/winscard_clnt.c: do not use inline for
SCardLockThread() and SCardUnlockThread() declaration but only
for definition (detected by parse)
* [r2559] src/thread_generic.h: add a missing #include <wintypes.h>
(detected by sparse)
* [r2558] src/eventhandler.c: EHStatusHandlerThread(): use
SYS_ThreadExit(NULL) instead of SYS_ThreadExit(0) (detected by
sparse)
2007-06-05 Ludovic Rousseau
* [r2556] src/readerfactory.c: RFLoadReader(): use INFO instead of
ERROR log level is the same driver library is use twice. It is
not an error.
Thanks to Nils Larsch for the patch
2007-05-30 Ludovic Rousseau
* [r2555] src/debuglog.c: declare prototypes of debug_msg() and
debug_xxd() to avoid debuglog.c:265: warning: no previous
prototype for ‘debug_msg’
* [r2554] src/hotplug_libusb.c: HPRemoveHotPluggable(): rename
index to reader_index to avoid warning: declaration of ‘index’
shadows a global declaration /usr/include/string.h:304: warning:
shadowed declaration is here
* [r2553] src/winscard_clnt.c: change prototype of SCardAddHandle()
to remove an explicit cast
* [r2552] src/winscard_clnt.c: SCardEstablishContextTH(): remove a
local declaration of msgStruct to avoid warning: declaration of
'msgStruct' shadows a previous local
2007-05-29 Ludovic Rousseau
* [r2551] src/pcscdaemon.c: set the permission on USE_RUN_PID so
that the file is world readable. The file is used by libpcsclite
to check the availability of pcscd
* [r2550] src/utils.c, src/utils.h: move definition of
PID_ASCII_SIZE from utils.c to utils.h
2007-05-24 Ludovic Rousseau
* [r2549] src/readerfactory.c: RFSetReaderEventState(): unlock the
card on removal. This will unlock any waiting SCardConnect() and
SCardReconnect()
* [r2548] src/winscard.c: SCardConnect()/SCardDisconnect(): the
reader may be removed while we are waiting after a lock. fix a
crash of pcscd
2007-05-23 Ludovic Rousseau
* [r2546] ChangeLog, configure.in: release 1.4.2
* [r2545] src/winscard.c: SCardDisconnect(): do not block if
dwDisposition == SCARD_LEAVE_CARD.
We block only for SCARD_UNPOWER_CARD, SCARD_RESET_CARD and
SCARD_EJECT_CARD since that would impact other running
transactions
* [r2544] src/eventhandler.c, src/eventhandler.h,
src/readerfactory.c: lockState field of READER_STATE was not
used. Remove it and the associated dead code
* [r2543] src/readerfactory.c, src/readerfactory.h: add a Lock
counter so that SCardBeginTransaction/SCardEndTransaction can be
nested
* [r2542] src/winscard_clnt.c: SCardTransmit(): adjust size of data
to send to pcscd. Avoid a valgrind warnings.
* [r2541] src/testpcsc.c: no need to initialise pioRecvPci. It is a
out only variable
* [r2540] src/winscard_clnt.c: SCardTransmit(): we do not need to
correctly initialize scTransmitStruct.pioRecvPci since it is only
a out variable
* [r2539] src/winscard_msg.c: #include "utils.h" since we use
SCardCheckDaemonAvailability()
* [r2538] src/utils.h, src/winscard_clnt.c: move declaration of
SCardCheckDaemonAvailability() from winscard_clnt.c to utils.h
2007-05-22 Ludovic Rousseau
* [r2537] src/PCSC/wintypes.h: LPTSTR and LPCTSTR types are no more
deprecated since they are found in many applications. And using
them is not a problem.
* [r2536] src/testpcsc.c: initialise pioRecvPci before using it
* [r2535] src/winscard_clnt.c, src/winscard_msg.c: Initialize
memory to avoid valgrind warnings: Syscall param write(buf)
points to uninitialised byte(s)
* [r2534] src/winscard.c: use sizeof() instead of a constant
2007-05-16 Ludovic Rousseau
* [r2530] ChangeLog: typo
* [r2529] ChangeLog, configure.in: release 1.4.1
2007-05-15 Ludovic Rousseau
* [r2528] src/winscard_msg.c: SHMMessageReceive(): on the client
side, if the daemon does not respond after 2 minutes
(PCSCLITE_CLIENT_ATTEMPTS) we call SCardCheckDaemonAvailability()
to be sure the daemon is still there and continue waiting.
Thanks to Harsh Sangal for the bug report
* [r2527] src/winscard_clnt.c: export
SCardCheckDaemonAvailability()
2007-05-10 Ludovic Rousseau
* [r2525] doc/Makefile.am: do not build and include the pdf
documentation files in the archive. The html online versions
should be enough.
2007-05-07 Ludovic Rousseau
* [r2513] TODO: "poll the reader only if an application is using
this reader"
* [r2512] TODO: "do not use an active polling in hotplug_libusb.c"
solved using IFD_GENERATE_HOTPLUG
2007-04-21 Ludovic Rousseau
* [r2507] src/pcscd.h.in: USE_IPCDIR is always defined. The default
value is set by ./configure
* [r2506] configure.in: use $ipcdir/pcscd.pid as the default value
for so that the use of --enable-runpid=FILE is not mandatory
2007-04-12 Ludovic Rousseau
* [r2505] src/pcscdaemon.c: update copyright dates
2007-04-04 Ludovic Rousseau
* [r2504] configure.in, src/pcscdaemon.c: use of
--enable-runpid=FILE is now mandatory
* [r2503] src/testpcsc.c: add a prototype for test_rv() to avoir a
compiler warning: no previous prototype for ‘test_rv’
* [r2502] src/Makefile.am: client and server use utils.c
* [r2501] src/winscard_clnt.c: SCardCheckDaemonAvailability(): when
the _first_ reader is connected _after_ pcscd has started the
ctime of PCSCLITE_PUBSHM_FILE changes (no idea why)
So to be sure a new pcscd is running we also check the pcscd pid
available from USE_RUN_PID
* [r2500] src/pcscdaemon.c, src/utils.c, src/utils.h: move
GetDaemonPid() in utils.c so we can also use it elsewhere
2007-03-29 Ludovic Rousseau
* [r2499] src/winscard_clnt.c: SCardGetStatusChange(): do not
release the mutex if it does not exist anymore after a pcscd
restart
2007-03-28 Ludovic Rousseau
* [r2497] src/winscard_clnt.c: SCardGetStatusChange(): do not check
for SCARD_STATE_ATRMATCH, SCARD_STATE_EXCLUSIVE or
SCARD_STATE_INUSE bits when the card is not present.
Thanks to Matheus Ribeiro for the bug report
* [r2496] src/eventhandler.c, src/winscard_clnt.c:
SCardGetStatusChange(): add a counter in the upper word of
dwEventState so it is possible to detect a card movement betweeen
two calls to SCardGetStatusChange()
Thanks to Matheus Ribeiro for the patch
2007-03-27 Ludovic Rousseau
* [r2495] src/hotplug_linux.c: use pcscd.h
* [r2494] src/hotplug_macosx.c, src/powermgt_macosx.c: use pcscd.h
when needed.
Thanks to Yziquel Guillaume for the bug report
2007-03-22 Ludovic Rousseau
* [r2490] doc/pcsc-lite.tex: typo
2007-03-18 Ludovic Rousseau
* [r2486] doc/example/pcsc_demo.c: print sent & received APDU
2007-03-15 Ludovic Rousseau
* [r2482] src/winscard_msg.c: WrapSHMWrite(): clean the data buffer
for SCardTransmit() to clean the APDU buffer to remove any
possible PIN or secret value
Thanks to Nils Larsch for the patch
* [r2481] src/misc.h, src/winscard_clnt.c: move definition of min()
from winscard_clnt.c to misc.h
2007-03-13 Ludovic Rousseau
* [r2479] src/winscard_clnt.c: profiling: more explicit warning in
case of thread
* [r2478] src/winscard_clnt.c: profiling: the mechanism does not
work correctly when threads are used. Display warnings in that
case.
* [r2477] src/winscard_clnt.c: profiling: detect missing
PROFILE_END calls
* [r2476] src/winscard_clnt.c: profiling: display the return value
if different from SCARD_S_SUCCESS
* [r2475] src/winscard_clnt.c: SCardReconnect(): block instead of
returning SCARD_E_SHARING_VIOLATION
2007-03-12 Ludovic Rousseau
* [r2474] src/PCSC/ifdhandler.h: define RESPONSECODE type only if
RESPONSECODE_DEFINED_IN_WINTYPES_H is not defined (needed to
compile the driver with an old pcsc-lite)
2007-03-06 Ludovic Rousseau
* [r2467] src/winscard_svc.c: CreateContextThread(): avoid a buffer
overflow if no more context available
thanks to Petr Gajdos for the patch
* [r2466] src/winscard.c: improve Doxygen
* [r2465] src/testpcsc.c: when we are waiting for a card insertion
a reader may be connected/disconnected so SCardGetStatusChange()
will return but a card is not inserted
* [r2464] src/winscard_clnt.c: SCardCheckDaemonAvailability(): if
the daemon is restarted we invalidate all the existing handles so
SCard functions returns SCARD_E_INVALID_HANDLE
* [r2463] src/winscard_clnt.c: add prototype for SCardUnload()
* [r2462] src/winscard_clnt.c: move code from SCardRemoveContext()
to a new function SCardCleanContext() and call it from
SCardRemoveContext()
* [r2461] src/winscard_clnt.c: move call to
SCardCheckDaemonAvailability() from SCardEstablishContextTH() to
SCardEstablishContext() to move it oustide of
SCardLockThread()/SCardUnlockThread() since
SCardCheckDaemonAvailability() may also lock (and then deadlock)
* [r2460] src/pcscd.h: Oops. pcscd.h.in is already in SVN
* [r2459] src/pcscd.h: new file
2007-03-05 Ludovic Rousseau
* [r2458] src/winscard_clnt.c: SCardIsValidContext(): return
SCARD_E_INVALID_HANDLE if the daemon has been restarted
* [r2457] src/winscard_clnt.c: SCardCheckDaemonAvailability():
detects if pcscd has been restarted and returns
SCARD_E_NO_SERVICE in that case
2007-02-26 Ludovic Rousseau
* [r2449] src/winscard_clnt.c: SCardEstablishContextTH(): call
fcntl(mapAddr, F_SETFD, FD_CLOEXEC); to close on exec the file
descriptor on /var/run/pcscd.pub so that child processes do not
inherits it. The child process will call SCardEstablishContext()
if needed.
2007-02-25 Ludovic Rousseau
* [r2447] src/PCSC/wintypes.h: the comment about LPTSTR was wrong
2007-02-21 Ludovic Rousseau
* [r2419] src/hotplug_libusb.c: reformat
* [r2418] src/hotplug_libusb.c: HPReadBundleValues(): ignore driver
with readerName == NULL (non-ASCII readerName in Info.plist for
example)
2007-02-19 Ludovic Rousseau
* [r2403] src/sys_unix.c: SYS_USleep(): use select() instead of
usleep() if nanosleep() can't be used. usleep() is not thread
safe on some old Solaris systems.
Thanks to Nils Larsch for the patch
2007-02-17 Ludovic Rousseau
* [r2401] doc/Makefile.am: support --docdir=... to install
documentation files
Thanks to Alon Bar-Lev for the patch
* [r2400] src/debuglog.c: add a log_line() function and use it form
log_msg() and log_xxd() to also have colors in log_xxd()
2007-02-13 Ludovic Rousseau
* [r2397] ChangeLog, configure.in: release 1.4.0
* [r2394] configure.in: only check for foo.h file when HAVE_FOO_H
is really used in the code
2007-02-05 Ludovic Rousseau
* [r2388] src/utils/formaticc.c: use SCARD_SCOPE_USER instead of
the pcsc-lite specific SCARD_SCOPE_GLOBAL
* [r2386] Makefile.am: ChangeLog.svn: use svn2cl instead of
svn2cl.sh
* [r2385] src/winscard.c: SCardReconnect(): call SYS_USleep() to
"allow the status thread to convey information" only if the
application requests SCARD_RESET_CARD or SCARD_UNPOWER_CARD. We
do not wait if the application requests SCARD_LEAVE_CARD.
* [r2384] src/winscard.c: SCardDisconnect(): call SYS_USleep() to
"allow the status thread to convey information" only if the
application requests SCARD_RESET_CARD or SCARD_UNPOWER_CARD. We
do not wait if the application requests SCARD_LEAVE_CARD.
* [r2383] doc/example/pcsc_demo.c: use unsigned int i; instead of
int i; to avoid a compiler warning
* [r2382] doc/example/pcsc_demo.c: add SCardBeginTransaction() &
SCardEndTransaction
* [r2381] doc/example/pcsc_demo.c: use SCARD_SHARE_SHARED instead
of SCARD_SHARE_EXCLUSIVE
* [r2380] src/Makefile.am: add pcscd.h and pcscd.h.in to
pcscd_SOURCES:
* [r2379] src/winscard.c: SCardBeginTransaction(): document the
SYS_USleep() call
* [r2378] src/pcscd.h.in, src/winscard.c: define and use
PCSCLITE_LOCK_POLL_RATE as SYS_USleep() argument when waiting
after a lock
* [r2377] src/configfile.l, src/eventhandler.c,
src/hotplug_libusb.c, src/ifdwrapper.c, src/pcscdaemon.c,
src/prothandler.c, src/readerfactory.c, src/winscard.c,
src/winscard_clnt.c, src/winscard_msg.c, src/winscard_msg_srv.c,
src/winscard_svc.c: use pcscd.h instead of pcsclite.h
* [r2376] configure.in: generate src/pcscd.h from src/pcscd.h.in
* [r2375] src/PCSC/pcsclite.h.in, src/pcscd.h.in: move pcscd
internal constants from pcsclite.h to pcscd.h so they are no more
available in /usr/include/pcsclite.h
* [r2374] src/winscard.c, src/winscard_clnt.c:
SCardBeginTransaction() client and server side: call SYS_USleep()
on the server side insead of client side and only if needed.
SCardBeginTransaction() will be much faster
* [r2373] src/winscard_clnt.c: profile_end(): call fflush() to sync
the profile file
* [r2372] src/winscard.c: SCardBeginTransaction(),
SCardEndTransaction() and SCardCancelTransaction(): display PC/SC
return value in hex instead of decimal
* [r2371] src/winscard_clnt.c: profile_start(): use a different
profile file name for each user so two users can use profiling at
the same time
2007-01-31 Ludovic Rousseau
* [r2370] src/hotplug_libusb.c: HPEstablishUSBNotifications(): do
not overwrite the value specified with --force-reader-polling=val
* [r2369] src/hotplug_libusb.c: HPEstablishUSBNotifications(): USB
polling was not active even if a driver does not support
IFD_GENERATE_HOTPLUG
* [r2368] src/winscard.c: add profiling framework on the server
side
* [r2367] src/readerfactory.c: RFInitializeReader(): add debug logs
2007-01-23 Ludovic Rousseau
* [r2354] doc/Makefile.am: do not install formaticc.1 manpage since
the binary is no more installed
* [r2353] src/sys_unix.c: SYS_USleep(): also work for a duration
greater than 1 sec
* [r2352] src/pcscdaemon.c, src/winscard_msg_srv.c: FreeBSD needs
to timeout in select() to get the Ctrl-C signal Revert revision
2148 and 2149 for *BSD
Thanks to Tilman Linneweh for the bug report
2007-01-20 Ludovic Rousseau
* [r2350] src/eventhandler.c: EHStatusHandlerThread(): also display
the hexa value of the return code if power up fails
* [r2349] src/winscard.c: SCardConnect(): return
SCARD_W_UNPOWERED_CARD if the card is mute instead of returning
SCARD_E_PROTO_MISMATCH because the requested protocol is not
supported by the (mute) card
* [r2348] src/PCSC/ifdhandler.h, src/PCSC/wintypes.h: move
RESPONSECODE definition from wintypes.h to ifdhandler.h since it
should only be used as return type of IFDHandler functions
* [r2347] src/ifdwrapper.c: use IFD_SUCCESS instead of 0 as initial
value
2007-01-19 Ludovic Rousseau
* [r2343] ChangeLog: release 1.3.3
* [r2341] doc/Makefile.am: use the default Doxygen CSS file instead
of a (bad) local one
2007-01-18 Ludovic Rousseau
* [r2340] doc/pcscd.8.in: do not reference formaticc since this
tool is deprecated and no more installed
* [r2339] doc/pcscd.8.in: document --hotplug option
2007-01-11 Ludovic Rousseau
* [r2335] src/pcscdaemon.c: document --force-reader-polling in the
online help
* [r2334] src/hotplug_libusb.c, src/pcscdaemon.c: add
--force-reader-polling command line option to force the bus
polling even if the drivers says they support
IFD_GENERATE_HOTPLUG
Thanks to Alon Bar-Lev for the suggestion
* [r2333] src/pcscdaemon.c: define OPT_STRING to avoid duplicating
the getopt option string
* [r2332] src/pcscdaemon.c: newReaderConfig is a char * so use NULL
instead of 0
* [r2331] src/configfile.h, src/configfile.l: DBGetReaderList()
prototype: use const char *readerconf instead of char *
* [r2330] src/readerfactory.c, src/readerfactory.h:
RFStartSerialReaders(): use const char * instead of char *
2007-01-10 Ludovic Rousseau
* [r2327] src/pcscdaemon.c: log "pcscd was not configured with
--enable-runpid=FILE" if pcscd --hotplug is called but can't be
used because no pidfile is available.
Thanks to Alon Bar-Lev for the idea.
* [r2325] doc/example/pcsc_demo.c: improve code to be able to also
use T=1 cards
* [r2324] doc/ifdhandler-3.tex: add IFD_GENERATE_HOTPLUG
documentation
* [r2323] doc/pcsc-lite.tex: add SCardIsValidContext()
documentation
2007-01-09 Ludovic Rousseau
* [r2321] src/winscard_msg.c: Doxygen: correct parameter names
* [r2320] src/testpcsc.c: test for SCardIsValidContext()
* [r2319] src/PCSC/winscard.h, src/winscard_clnt.c: implement
SCardIsValidContext()
2007-01-06 Ludovic Rousseau
* [r2310] src/hotplug.h, src/hotplug_libusb.c: add support for
IFD_GENERATE_HOTPLUG bit in driver Info.plist ifdCapabilities
* [r2309] src/tokenparser.l: correct a warning: assignment discards
qualifiers from pointer target type
* [r2308] src/winscard_msg.c, src/winscard_msg.h: change prototype
of SHMCleanupSharedSegment() from (..., char *pcFilePath) to
(..., const char *pcFilePath) to avoid: warning: passing argument
2 of 'SHMCleanupSharedSegment' discards qualifiers from pointer
target type
* [r2307] src/readerfactory.c: use f1 instead of f to avoid:
warning: declaration of ‘f’ shadows a previous local
* [r2306] src/pcscdaemon.c: define GetDaemonPid() prototype
* [r2305] src/hotplug_libusb.c: define prototypes for
HPRescanUsbBus() and HPEstablishUSBNotifications()
* [r2304] src/tokenparser.l: tpevalToken(): use unsigned int to
avoid: tokenparser.l:74: warning: comparison between signed and
unsigned tokenparser.l:90: warning: comparison between signed and
unsigned
* [r2303] src/parser.h, src/tokenparser.l: change prototype of
LTPBundleFindValueWithKey() from "char *fileName, char *tokenKey,
..." to "const char *fileName, const char *tokenKey, ..."
* [r2302] src/debuglog.c: DebugLogSetLogType(): use unsigned int to
avoid: debuglog.c:182: warning: comparison between signed and
unsigned
* [r2301] src/configfile.l: evaluatetoken(): use unsigned int to
avoid the warning: configfile.l:80: warning: comparison between
signed and unsigned
* [r2300] src/debug.c, src/hotplug_libusb.c: use unsigned int to
solve the warning: debug.c:60: warning: comparison between signed
and unsigned
2006-12-25 Ludovic Rousseau
* [r2286] doc/ifdhandler-3.tex: IOCTL_SMARTCARD_VENDOR_VERIFY_PIN
is deprecated. Use CM_IOCTL_GET_FEATURE_REQUEST instead
* [r2284] src/ifdwrapper.c: IFDStatusICC(): correctly set card
status to SCARD_UNKNOWN. patch in revision 2283 was bogus
* [r2283] src/ifdwrapper.c: IFDStatusICC(): if IFDHICCPresence()
set card status to SCARD_UNKNOWN instead of an uninitialised
value
* [r2282] src/readerfactory.c: RFAddReader(): fails if
RFSetReaderName() fails (too many readers for the same driver for
example)
* [r2281] src/readerfactory.c: RFSetReaderName(): fails if the
number of readers exceeds the number of supported readers by the
driver.
If the driver does not implement TAG_IFD_SIMULTANEOUS_ACCESS it
is assumed to only support 1 reader.
* [r2279] src/pcscdaemon.c: signal_reload(): disable hotplug when
shutdown is on going
2006-12-12 Ludovic Rousseau
* [r2274] src/winscard.c: SCardGetAttrib()/SCardSetAttrib(): if the
driver returns IFD_ERROR_TAG we return
SCARD_E_UNSUPPORTED_FEATURE instead of the generic error code
SCARD_E_NOT_TRANSACTED
2006-12-11 Ludovic Rousseau
* [r2272] configure.in: add PKG_PROG_PKG_CONFIG
2006-12-05 Ludovic Rousseau
* [r2267] src/winscard_clnt.c: SCardStatus(): move an
initialization outside of a for() loop (improve speed)
* [r2266] src/winscard_clnt.c: SCardGetIndicesFromHandle(): check
that hCard is non null (used as marker for unused entry)
2006-12-03 Ludovic Rousseau
* [r2265] src/dyn_generic.h, src/dyn_hpux.c, src/dyn_macosx.c,
src/dyn_unix.c, src/dyn_win32.c: pcFunction argument of
DYN_GetAddress is "const char *" instead of "char *"
* [r2264] src/sys_generic.h, src/sys_unix.c: use "const char *"
instead of "char *" when needed
* [r2263] src/debug.c: warning: no previous prototype for
'log_init'
2006-12-02 Ludovic Rousseau
* [r2262] src/strlcat.c: #include "strlcpycat.h"
* [r2261] src/powermgt_generic.c: #include "powermgt_generic.h"
* [r2259] src/strlcpy.c: #include "strlcpycat.h"
2006-11-30 Ludovic Rousseau
* [r2250] src/winscard_clnt.c, src/winscard_msg.c,
src/winscard_msg.h, src/winscard_svc.c: add support of "extended"
SCardControl()
* [r2249] src/winscard_clnt.c: SCardEstablishContextTH(): return
the error code if the connection to the server fails (wrong
protocol version for example)
* [r2248] src/winscard_svc.c: ContextThread(): check that the
client protocol version is not newer than the protocol version of
the server or returns SCARD_E_NO_SERVICE otherwise.
* [r2247] src/winscard_msg.c: use "char *" variables instead of
"void *" when arithmetic is done (typically ptr+offset).
Avoids: warning: pointer of type 'void *' used in arithmetic
* [r2246] src/sys_unix.c: warning: C++ style comments are not
allowed in ISO C90
* [r2245] src/winscard_clnt.c: warning: C++ style comments are not
allowed in ISO C90
* [r2244] src/winscard.c: SCardControl(): do not limit cbSendLength
to MAX_BUFFER_SIZE bytes since we now transparently support up to
MAX_BUFFER_SIZE_EXTENDED bytes.
Thanks to Martin Führlinger for the bug report
2006-11-29 Ludovic Rousseau
* [r2243] src/pcscdaemon.c: do not define GetDaemonPid if
USE_RUN_PID is NOT defined
* [r2242] src/pcscdaemon.c: SendHotplugSignal() does nothing if
USE_RUN_PID is NOT defined
* [r2241] src/hotplug_libusb.c: HPRescanUsbBus(): replace .driver
by .fullName also for *BSD systems
2006-11-23 Ludovic Rousseau
* [r2236] TODO: Allow connection from a 32-bits and 64-bits client
to the same pcscd server. This is part of the Apple patches and
improvements. see Alioth bug #303790
2006-11-21 Ludovic Rousseau
* [r2233] src/atrhandler.c: Doxygen ATRDecodeAtr()
* [r2232] src/hotplug_libusb.c: remove the driver field from struct
readerTracker use the fullName field to check if the reader entry
is valid or not
* [r2231] src/pcscdaemon.c: signal_reload(): log the End reload
serial configuration
* [r2230] src/hotplug_libusb.c: HPRescanUsbBus(): setenv
USB_DEVFS_PATH to /proc/bus/usb
libusb default is /dev/bus/usb but the devices are not yet
visible there when a hotplug is requeste
* [r2229] src/winscard.c, src/winscard_clnt.c: add Doxygen
cross-references to #define values
* [r2228] src/PCSC/pcsclite.h.in: reorder SCARD_E_* codes in
increasing order
* [r2227] src/PCSC/pcsclite.h.in: add Doxygen documentation for
SCARD_E_* error codes (text reused from MSDN)
* [r2226] src/PCSC/pcsclite.h.in: add SCARD_E_NO_READERS_AVAILABLE
2006-11-15 Ludovic Rousseau
* [r2209] configure.in: version 1.3.3
* [r2204] src/ifdwrapper.c: if a driver command returns
IFD_NO_SUCH_DEVICE we call SendHotplugSignal() to rescan the
USB/serial/etc. readers and purge the removed readers from the
reader list
* [r2203] src/hotplug.h: add SendHotplugSignal() prototype
* [r2202] src/pcscdaemon.c: reorganise code to create
GetDaemonPid() and SendHotplugSignal() functions
* [r2201] src/PCSC/ifdhandler.h: add IFD_NO_SUCH_DEVICE return
value
* [r2200] src/testpcsc.c: use fgets() instead of scanf() to also
consume the carriage return
* [r2199] src/testpcsc.c: use tabulations for alignment instead of
spaces
* [r2198] src/testpcsc.c: test for SCARD_ATTR_MAXINPUT (only
supported by my CCID driver for now)
2006-11-10 Ludovic Rousseau
* [r2196] configure.in, src/Makefile.am: do not include src/utils/
since the tools installifd and formaticc are now completly
outdated and should not be used anymore.
2006-10-31 Ludovic Rousseau
* [r2194] src/PCSC/winscard.h: remove SCardUnload() since it is not
in the PC/SC API
2006-10-29 Ludovic Rousseau
* [r2193] src/hotplug_libusb.c, src/pcscdaemon.c: check for rescan
ongoing in pcscdaemon.c:signal_reload() instead of
hotplug_libusb.c:HPReCheckSerialReaders() since the code is not
specific to libusb
2006-10-23 Ludovic Rousseau
* [r2192] src/hotplug_libusb.c: move code of
HPEstablishUSBNotifications() into a new function
HPRescanUsbBus()
HPRescanUsbBus() is called: - periodically from
HPEstablishUSBNotifications() if USB_POLLING is defined - by
HPReCheckSerialReaders() when a SIGUSR1 signal is received so we
can use udev hotplug events to rescan the USB bus instead of
polling
* [r2191] src/pcscdaemon.c: removed unused external reference to
ReCheckSerialReaders
* [r2190] src/pcscdaemon.c, src/winscard_msg_srv.c:
SHMProcessEventsServer(): returns -2 in case of syscall
interrupted (EINTR) and -1 for other errors.
SVCServiceRunLoop(): do not log an error message in case of -2
since it happens when SIGUSR1 (reload) or SIGINT (Ctrl-C) is
received. We just try again
* [r2189] src/pcscdaemon.c: main(): fail if hotplug is requested
but no pcscd is running
2006-10-19 Ludovic Rousseau
* [r2188] src/misc.h: do not use visibility("default") for gcc
versions <= 3.3
Thanks to Hemanth Kumar for the bug report and Karsten Ohme for
the patch
* [r2187] src/pcscdaemon.c: main(): do not use USE_RUN_PID in a Log
message if it is not defined
2006-10-11 Ludovic Rousseau
* [r2185] src/winscard.c: SCardConnect(): add some debug output in
the "waiting for release of lock"
* [r2184] src/winscard.c: SCardDisconnect(): wait for the lock to
be released only if it held by someone else (and not just by
ourself).
* [r2183] src/winscard_svc.c: MSGRemoveContext(): do not reset the
card if it is locked by by someone else but simulate a card
removal instead
* [r2182] src/readerfactory.c: RFUnlockSharing(): small rewrite
2006-10-05 Ludovic Rousseau
* [r2181] doc/Makefile.am, doc/update-reader.conf.8: add
update-reader.conf.8 manpage.
Thanks to Florian Schmaus for the bug report
2006-09-27 Ludovic Rousseau
* [r2180] src/winscard_svc.c: MSGRemoveContext(): Unlock the
sharing so we do not get blocked in SCardDisconnect() waiting
forever
* [r2179] src/winscard.c: SCardConnect()/SCardDisconnect(): use a
loop of 0.1 second instead of 0.1 millisecond to wait until the
sharing is over
2006-09-26 Ludovic Rousseau
* [r2178] src/winscard.c: SCardConnect() & SCardDisconnect(): wait
until any transaction finishes before going on. This avoids the
possibility to reset a card in the middle of a transaction
Thanks to Martin Paljak for the bug report
* [r2177] src/testpcsc.c: factor the return value test code and add
some color
2006-09-20 Ludovic Rousseau
* [r2169] src/testpcsc.c: test SCARD_ATTR_VENDOR_NAME tag for
SCardGetAttrib
* [r2167] src/testpcsc.c: add a test for SCardGetAttrib(...
SCARD_ATTR_VENDOR_IFD_VERSION...)
* [r2164] src/error.c: pcsc_stringify_error(): correct a off-by-one
buffer overflow. Closes #303836 "pcsc-lite-1.3.2: array subscript
out of range"
Thanks to David Binderman for the bug report and patch.
2006-09-13 Ludovic Rousseau
* [r2160] src/winscard_clnt.c: change dwContextIndex type from
DWORD to LONG since we compare it to -1
Thanks to -Wextra for the potential bug report
* [r2159] src/testpcsc.c: correct some variable types to avoid
compiler warning: comparison between signed and unsigned
* [r2158] src/winscard_clnt.c: reformat
* [r2157] src/pcscdaemon.c: add -H --hotplug argument to ask the
daemon to rescan the avaiable readers
2006-09-06 Ludovic Rousseau
* [r2151] COPYING, ChangeLog, HELP, NEWS, README, SECURITY,
bootstrap, doc/README.DAEMON, doc/doxygen.conf.in,
doc/doxygen.css, doc/formaticc.1, doc/ifdhandler-3.tex,
doc/pcscd.8.in, doc/reader.conf.5.in, src/PCSC/debuglog.h,
src/PCSC/ifdhandler.h, src/README_INTERNALS.txt,
src/atrhandler.c, src/atrhandler.h, src/configfile.l,
src/debug.c, src/debuglog.c, src/dyn_macosx.c, src/dyn_win32.c,
src/error.c, src/eventhandler.c, src/eventhandler.h,
src/hotplug_libusb.c, src/hotplug_macosx.c, src/ifdwrapper.c,
src/ifdwrapper.h, src/libpcsclite.pc.in, src/misc.h,
src/pcscdaemon.c, src/powermgt_generic.h, src/powermgt_macosx.c,
src/prothandler.c, src/readerfactory.c, src/readerfactory.h,
src/strlcat.c, src/strlcpy.c, src/sys_unix.c, src/testpcsc.c,
src/thread_unix.c, src/utils/formaticc.c, src/utils/installifd.c,
src/winscard.c, src/winscard_clnt.c, src/winscard_msg.c,
src/winscard_msg.h, src/winscard_msg_srv.c, src/winscard_scf.c,
src/winscard_svc.c, win32/pthread.h, win32/sched.h: remove
trailing spaces at end of lines
2006-09-05 Ludovic Rousseau
* [r2149] src/pcscdaemon.c: SVCServiceRunLoop():
SHMProcessEventsServer() will not timeout anymore so remove the
managenemt code (which did nothing)
* [r2148] src/winscard_msg_srv.c: SHMProcessEventsServer(): do not
use a 1 second timeout in select() to catch Ctrl-C since SIGINT
will cause select() to return with EINTR
See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=205182
for the bug report
* [r2147] TODO: add "do not use an active polling in
hotplug_libusb.c"
2006-08-31 Ludovic Rousseau
* [r2146] src/winscard_msg.h: struct transmit_struct_extended: use
BYTE data[1]; instead of BYTE data[0]; since Sun Studio 11 does
not like 0-sized arrays.
Thanks to Iain MacDonnell for the bug report
* [r2145] src/readerfactory.h: struct ReaderContext: use int32_t
instead of DWORD for dwContexts since we also use negative values
(SCARD_EXCLUSIVE_CONTEXT defined as -1)
Thanks to -Wextra for the bug report
* [r2144] src/winscard.c: SCardStatus(): do not check for negative
value of rContext->readerState->cardAtrLength since it is a DWORD
(unsigned)
Thanks to -Wextra for the bug report
* [r2143] src/winscard_msg.c: SHMClientSetupSession(): store the
returned value of socket() in an int instead of a DWORD
(unsigned) so we can check for negative values
Thanks to -Wextra for the bug report
* [r2142] src/winscard_clnt.c: SCardGetStatusChange(): do not test
for (cReaders < 0) since cReaders is a DWORD and a DWORD is
unsigned.
Thanks to -Wextra for the bug report
2006-08-15 Ludovic Rousseau
* [r2141] TODO: add manage power suspend/resume
2006-08-13 Ludovic Rousseau
* [r2139] src/sys_generic.h, src/sys_unix.c: remove unused
functions. SYS_Mknod() could not be compiled using tcc
2006-08-11 Ludovic Rousseau
* [r2138] ChangeLog, configure.in: release 1.3.2
* [r2137] doc/Makefile.am: do not fail to remove api when the
directory is not there
2006-08-09 Ludovic Rousseau
* [r2129] src/hotplug_libusb.c: Revert patch in revision 2127. The
problematic to try a second driver start if the first one fails
has to be in the driver itself, not in pcscd.
2006-08-08 Ludovic Rousseau
* [r2128] src/winscard_svc.c: CreateContextThread(): log an error
message in case of failuer since the pcscd daemon will die
shortly after that
* [r2127] src/hotplug_libusb.c: HPAddHotPluggable(): if a reader
fails to start we try to start it a second time
2006-08-07 Ludovic Rousseau
* [r2126] doc/pcsc-lite.tex: in SCardStatus subsection, the
argument is pdwProtocol and not dwPreferredProtocols
* [r2125] src/PCSC/reader.h.in: Transform C comments into Doxygen
comments
* [r2124] src/PCSC/pcsclite.h.in: Transform C comments into Doxygen
comments
2006-07-31 Ludovic Rousseau
* [r2115] src/strlcat.c, src/strlcpy.c: #include "config.h" and
define strlcpy/strlcat only if they are not already provided by
the OS (test HAVE_STRLCPY)
* [r2114] src/configfile.l, src/readerfactory.c, src/testpcsc.c,
src/winscard_clnt.c: do not cast malloc() return value
* [r2113] src/PCSC/reader.h.in: document that the 4 bytes field
value in PCSC_TLV_STRUCTURE is always in big endian as documented
in PCSC v2 part 10 ch 2.2 page 2. You can use ntohl() to convert
the value.
Thanks to Ulrich Vogl for the bug report
2006-07-10 Ludovic Rousseau
* [r2102] src/winscard_clnt.c: SCardCheckDaemonAvailability(): test
the presence of PCSCLITE_PUBSHM_FILE (/var/run/pcscd.pub) instead
of PCSCLITE_IPC_DIR (/var/run) to detect the presence of pcscd
Thanks to Geoff Elgey for the bug report
2006-06-15 Ludovic Rousseau
* [r2080] src/testpcsc.c: revert the last change. It was a
manipulation error.
* [r2079] src/error.c, src/testpcsc.c: This file is dual licenced:
- BSD-like, see the COPYING file - GNU Lesser General Licence 2.1
or (at your option) any later version.
2006-06-07 Ludovic Rousseau
* [r2077] src/winscard_clnt.c: SCardUnload(): use
SYS_PublicMemoryUnmap() to free the memory mapped segment.
Thanks to Stefan Schuermans for the bug report and patch
* [r2076] src/sys_generic.h, src/sys_unix.c: implement
SYS_PublicMemoryUnmap()
Thanks to Stefan Schuermans for the patch
* [r2075] src/sys_unix.c: SYS_PublicMemoryMap(): check the value
returned by mmap() to detect a memory exhaustion
2006-06-06 Ludovic Rousseau
* [r2074] src/winscard_msg.c: document the parameters changes for
SHMMessageSend() and SHMMessageReceive() for Doxygen
* [r2073] doc/pcsc-lite.tex, src/readerfactory.c,
src/winscard_clnt.c: do not cast malloc() return value.
* [r2072] doc/example/pcsc_demo.c, doc/pcsc-lite.tex,
src/PCSC/ifdhandler.h, src/PCSC/winscard.h, src/eventhandler.c,
src/ifdwrapper.c, src/readerfactory.c, src/readerfactory.h,
src/utils/formaticc.c, src/winscard.c, src/winscard_clnt.c,
src/winscard_scf.c: replace LPTSTR and LPCTSTR by LPSTR and
LPCSTR
* [r2071] src/PCSC/wintypes.h: use LPCSTR and LPSTR instead of
LPCTSTR and LPTSTR.
LPCTSTR is either LPCSTR or LPCWSTR depending on the value of
UNICODE under Windows. So this type name should not be used
directly.
See
http://archives.neohapsis.com/archives/dev/muscle/2006-q2/0149.html
2006-05-26 Ludovic Rousseau
* [r2068] src/PCSC/pcsclite.h.in: define MAX_BUFFER_SIZE_EXTENDED
to contain up to 64KB of data instead of just 32KB
* [r2067] src/winscard_svc.c: MSGFunctionDemarshall(): remove two
debug messages
2006-05-25 Ludovic Rousseau
* [r2066] TODO: remove "allow the use of extended APDU without
breaking libpcsclite ABI" since it is implemented now
* [r2065] README: do not document --enable-extendedapdu any more
* [r2064] configure.in: remove --enable-extendedapdu since it is
useless now
* [r2063] src/winscard_clnt.c, src/winscard_msg.c,
src/winscard_svc.c: add support of extended APDU as a new command
so we do not need to compile pcsc-lite with or without extended
APDU
* [r2062] src/winscard.c: SCardTransmit(): do not check if
cbSendLength or dwRxLength are > MAX_BUFFER_SIZE since this is
done by the client already
* [r2061] src/winscard_clnt.c, src/winscard_msg.c,
src/winscard_msg_srv.c, src/winscard_svc.c: use new
SHMMessageReceive/SHMMessageSend API
* [r2060] src/winscard_msg.c, src/winscard_msg.h: SHMMessageSend()
and SHMMessageReceive() use "void *buffer, size_t buffer_size"
instead of psharedSegmentMsg msgStruct with a fixed size
* [r2059] src/winscard_msg.h: add SCARD_TRANSMIT_EXTENDED in
pcsc_msg_commands and transmit_struct_extended structure
* [r2058] src/winscard_msg.h: PROTOCOL_VERSION_MINOR changed from 0
to 1
* [r2057] src/PCSC/pcsclite.h.in: #define MAX_BUFFER_SIZE_EXTENDED
and remove the @extended_apdu@ management
* [r2056] src/winscard_svc.c: MSGFunctionDemarshall(): log an error
if pcscd receives an unknown command
* [r2054] src/debug.c: log_init(): remove a "pouet" printf() debug
message
2006-05-24 Ludovic Rousseau
* [r2053] src/Makefile.am: move the .h file in the *_SOURCES
targets so that "make ctags" include them
2006-05-23 Ludovic Rousseau
* [r2052] src/README_INTERNALS.txt: correct typos
* [r2051] src/README_INTERNALS.txt: update the list of source
filesfor pcscd and libpcsclite.la
2006-05-20 Ludovic Rousseau
* [r2050] src/debuglog.c: log_xxd(): replace strlen(c) by 3 since
the string length is constant (gain a few CPU cycles)
* [r2049] src/debuglog.c: log_xxd(): if the buffer is too small
then end it with "..."
2006-05-12 Ludovic Rousseau
* [r2042] src/debug.c, src/debuglog.c: improve the @brief comment
to differentiate between debug for pcsclite and debug for pcscd
2006-05-09 Ludovic Rousseau
* [r2040] src/readerfactory.c: RFInitializeReader(): display the
name of the driver used in addition to the name of the reader
2006-05-02 Ludovic Rousseau
* [r2030] src/strlcat.c, src/strlcpy.3, src/strlcpy.c: update to
the latest version available from OpenBSD (2005/08/06)
* [r2029] src/eventhandler.c: EHInitializeEventStructures(): check
against MAP_FAILED instead of 0 for the returned value of
SYS_MemoryMap().
Thanks to Davide Rizzo for the bug report and patch
* [r2028] src/sys_generic.h: #include <sys/mman.h> so that
MAP_FAILED is defined (value returned by SYS_MemoryMap() in case
of error)
* [r2027] src/sys_unix.c: SYS_MemoryMap(): document in Doxygen that
the function returns MAP_FAILED in case of error
2006-04-22 Ludovic Rousseau
* [r2025] ChangeLog, configure.in: release 1.3.1
* [r2024] src/readerfactory.c: RFLoadReader(): change the way
DYN_GetAddress() is used to have a simpler code and avoid a
warning: dereferencing type-punned pointer will break
strict-aliasing rules
2006-04-20 Ludovic Rousseau
* [r2018] src/PCSC/ifdhandler.h: do not use EXTERNAL to export the
symbols (revert the previous patch)
2006-04-19 Ludovic Rousseau
* [r2015] README: Add a comment regarding the use of
LDFLAGS="-lpthread"
2006-04-18 Ludovic Rousseau
* [r2010] doc/ifdhandler-3.tex, src/parser.h: do not export
LTPBundleFindValueWithKey() to the drivers anymore
* [r2009] src/PCSC/ifdhandler.h: tag the functions of the API as
EXTERNAL. This can be used to export only those symbols from the
driver library.
* [r2008] src/misc.h: EXTERNAL is a synonym for PCSC_API but more
anonymous
2006-04-11 Ludovic Rousseau
* [r1998] src/winscard_svc.c: CreateContextThread(): do not use a
pointer to the argument but the argument itself to avoid using
the same value for two consecutive threads
Thanks to Fabien Merlet for the bug report. See
http://archives.neohapsis.com/archives/dev/muscle/2006-q2/0038.html
2006-03-31 Ludovic Rousseau
* [r1991] doc/ifdhandler-3.tex: use \texttt{} instead of \file{}
(it works with latex2html but not with pdflatex)
* [r1990] src/misc.h: use __misc_h__ instead of __local_h__ since
the file name is misc.h
* [r1989] doc/ifdhandler-3.tex: log_msg: document that you should
use the macros defined in <debuglog.h>
2006-03-30 Ludovic Rousseau
* [r1988] doc/pcsc-lite.tex: log_msg and log_xxd are only available
for pcscd drivers. These functions are no more provided by
libpcsclite
2006-03-27 Ludovic Rousseau
* [r1980] configure.in: use use_libusb="${use_libusb-yes}" so that
use_libusb is defined to yes only if it was not previously
defined
libusb is not used by default on Mac OS X and use_libusb=no is
already used in that case a few lines above in the script
* [r1979] src/hotplug_macosx.c: compile only on Apple and if libusb
is not used
* [r1978] src/Makefile.am: add $(LIBUSB_CFLAGS) to pcscd_CFLAGS
* [r1975] doc/pcsc-lite.tex: SCardConnect(): the paramater name is
dwShareMode instead of dwScope
2006-03-23 Ludovic Rousseau
* [r1970] src/hotplug_libusb.c: HPAddHotPluggable(): add the USB
serial number only if ADD_SERIAL_NUMBER is defined (default).
just #undef the macro if you do not like the serial number
addition.
2006-03-21 Ludovic Rousseau
* [r1964] src/Makefile.am: add -DLIBPCSCLITE to
libpcsclite_la_CFLAGS (used in debug.c)
* [r1963] src/Makefile.am: add debug.c to libpcsclite_la_SOURCES
* [r1962] src/debug.c: provice log_msg() and log_xxd()
implementation for the client side
* [r1961] src/debug.h: use log_msg() instead of fprintf() for
Logx() macro used in libpcsclite so we can manage priority and
color
* [r1960] src/tokenparser.l: use debug.h instead of debuglog.h
* [r1959] src/Makefile.am: do not use libpcsclite-core anymore
since the same source code generates two different object files
(depending on the presence of -DPCSCD)
* [r1958] src/winscard_clnt.c: do not use MUSCLECARD_DEBUG
environment variable anymore to activate the logs
* [r1957] src/dyn_hpux.c, src/dyn_macosx.c, src/dyn_unix.c,
src/dyn_win32.c, src/sys_unix.c, src/winscard_msg.c,
src/winscard_scf.c: #include "debug.h" instead of "debuglog.h" to
use fprintf() or syslog() depending if the file is used for pcscd
(if PCSCD is defined) or for libpcsclite
* [r1956] src/debug.h: define Logx() functions for use in
libpcsclite (just a fprintf(stderr, ...))
* [r1955] src/PCSC/debuglog.h: do not declare
pcsc_stringify_error() here since it is already declared in
PCSC/pcsclite.h
* [r1954] src/readerfactory.c: do not use pcsc_stringify_error()
since I don't want this code in the daemon just for _one_
function
* [r1953] src/debuglog.c, src/error.c: move pcsc_stringify_error()
in its own file
* [r1952] src/PCSC/debuglog.h: remove duplicate Log3() definition
2006-03-20 Ludovic Rousseau
* [r1948] doc/pcsc-lite.tex: document log_msg and log_xxd
* [r1947] doc/pcsc-lite.bib, doc/pcsc-lite.tex: document VERIFY_PIN
and MODIFY_PIN commands using PCSCv2 part 10 instead of the
"proprietary" mechanism now unsupported
* [r1946] doc/pcsc-lite.tex: upgrade sample code for
IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE
2006-03-17 Ludovic Rousseau
* [r1937] doc/ifdhandler-3.tex: add IFD_NOT_SUPPORTED in the
possible return values for IFDHSetProtocolParameters()
* [r1936] doc/ifdhandler-3.tex: document the possible values for
Protocol argument in IFDHSetProtocolParameters()
Closes bug [ #303238 ] IFDHSetProtocolParameters is called with
Protocol=1 even though debug log says T=0
2006-03-16 Ludovic Rousseau
* [r1935] src/misc.h: do not use #define INTERNAL __hidden on
Solaris since the linker can't use symbol declared __hidden in
the file it is declared.
See
http://archives.neohapsis.com/archives/dev/muscle/2006-q1/0144.html
Thanks to Iain MacDonnell for the bug report
2006-03-15 Ludovic Rousseau
* [r1933] configure.in: document --disable-libusb instead of
--enable-libusb since libusb is used by default.
Thanks to Shawn Willden for the bug report
2006-03-08 Ludovic Rousseau
* [r1931] configure.in: Add support of Solaris
2006-03-07 Ludovic Rousseau
* [r1929] README: remove documentation on
--enable-muscledropdir=DIR since this option moved to
libmusclecard now
Thanks to Ville Skyttä for the patch
* [r1928] configure.in: remove a useless AC_SUBST(muscledropdir)
2006-03-03 Ludovic Rousseau
* [r1906] ChangeLog, configure.in: release 1.3.0
2006-02-28 Ludovic Rousseau
* [r1902] README: the correct path is /usr/local/lib instead of
/usr/local/pcsc/lib
* [r1894] Makefile.am: ChangeLog.svn rule: search and replace
David Corcoran before corcoran
* [r1893] Makefile.am: remove libmusclecard directory
* [r1892] configure.in: remove libmusclecard code
* [r1885] libmusclecard: move PCSC/libmusclecard in its own package
2006-02-27 Ludovic Rousseau
* [r1884] src/testpcsc.c: add a call to SCardTransmit()
2006-02-24 Ludovic Rousseau
* [r1882] src/winscard_clnt.c: automatically call SCardUnload()
when the libpcsclite library is unloaded
Thanks to Najam Siddiqui. See
http://archives.neohapsis.com/archives/dev/muscle/2006-q1/0177.html
* [r1881] src/winscard.c: SCardTransmit(): use 0x%08lX instead of
%ld since the return codes are defined in hex in PCSC/pcsclite.h
2006-02-23 Ludovic Rousseau
* [r1880] configure.in: correctly detect the use of --enable-libusb
(--enable-libusb has the same effect as --disable-libusb)
Thanks to Iain MacDonnell for the bug report
2006-02-22 Ludovic Rousseau
* [r1879] src/winscard_clnt.c: SCardReleaseContext(): do not check
that the thread releasing the context is the one that established
it. This check is not performed on Windows and creates
portability problems
See
http://archives.neohapsis.com/archives/dev/muscle/2006-q1/0134.html
* [r1878] libmusclecard/src/musclecard.c, src/misc.h: We can't use
a # inside a #define so it is not possible to use #define
CONSTRUCTOR_DECLARATION(x) #pragma init (x)
The #pragma is used directly where needed
* [r1877] README: update the available ./configure options
Thanks to Shawn Willden for the bug report
2006-02-21 Ludovic Rousseau
* [r1871] Makefile.am: correct the Perl regexp in ChangeLog.svn
rule
* [r1868] Makefile.am: add subversion revision in ChangeLog.svn
2006-02-03 Ludovic Rousseau
* [r1852] src/Makefile.am: remove $(LIBUSB_LIBS) from
libpcsclite_la_LIBADD
* [r1851] ChangeLog, configure.in: release 1.2.9-beta10
* [r1850] Makefile.am: use ChangeLog.svn instead of ChangeLog.cvs
2006-01-31 Ludovic Rousseau
* [r1849] src/hotplug_libusb.c: if the USB reader defines a serial
number then include it in the reader name (between parenthesis)
Thanks to Achraf Karray for the patch
2006-01-30 Ludovic Rousseau
* [r1848] libmusclecard/src/Makefile.am: use libmusclecard.la
instead of $(top_builddir)/libmusclecard/src/libmusclecard.la so
that "make -j2" works. Closes bug "[ #302971 ] 'make -j2' fails"
* [r1847] src/Makefile.am: add $(LIBUSB_CFLAGS) and $(LIBUSB_LIBS)
where needed
* [r1844] configure.in: use xyes instead of xtrue in x$use_libusb
test
* [r1843] configure.in: reuse libusb detection code from my CCID
driver
2006-01-25 Ludovic Rousseau
* [r1838] libmusclecard/src/musclecard.c: MSCEstablishConnection():
avoids a segfault
Thanks to Shawn Willden for the patch
http://archives.neohapsis.com/archives/dev/muscle/2006-q1/0057.html
* [r1837] libmusclecard/src/Makefile.am, src/Makefile.am: use
$(SYMBOL_VISIBILITY) instead of -fvisibility=hidden
* [r1836] configure.in: check if the compiler supports
-fvisibility=hidden and define SYMBOL_VISIBILITY accordingly
Only GCC 4.0 support it AFAIK
* [r1835] src/PCSC/debuglog.h: #define PCSC_API as no-op if not
already defined (needed when included by a driver)
2006-01-24 Ludovic Rousseau
* [r1830] libmusclecard/src/Makefile.am, src/Makefile.am: Compile
with -fvisibility=hidden to hide all symbols by default. The
export of symbol must now be explicit. That only works for the
ELF format.
* [r1829] src/readerfactory.c: #include "misc.h to get the
definition of PCSC_API
* [r1828] src/winscard_clnt.c: export variables g_rgSCardT0Pci,
g_rgSCardT1Pci and g_rgSCardRawPci
* [r1827] libmusclecard/src/musclecard.c,
libmusclecard/src/tokenfactory.c, src/atrhandler.c,
src/configfile.l, src/debuglog.c, src/dyn_macosx.c,
src/dyn_unix.c, src/eventhandler.c, src/hotplug_libusb.c,
src/hotplug_linux.c, src/hotplug_macosx.c, src/ifdwrapper.c,
src/pcscdaemon.c, src/powermgt_macosx.c, src/prothandler.c,
src/sys_unix.c, src/thread_generic.h, src/tokenparser.l,
src/winscard_msg.c, src/winscard_msg_srv.c: #include "misc.h to
get the definition of PCSC_API
* [r1826] src/PCSC/debuglog.h: declare log_msg(), log_xxd(),
DebugLogSetLevel() and pcsc_stringify_error() as exported symbols
since they are used by libmusclecard or some applications
* [r1825] src/PCSC/winscard.h: declare the symbols as exported
using PCSC_API macro
* [r1824] src/parser.h: declare LTPBundleFindValueWithKey as an
exported symbol (used by the pcscd drivers)
* [r1823] src/misc.h: define PCSC_API as a way to export a symbol
* [r1822] src/misc.h: use __GNUC__ instead of __GCC__
see
http://gcc.gnu.org/onlinedocs/gcc-3.3.5/cpp/Common-Predefined-Macros.html
* [r1821] win32/PCSC.h: reformat comment
2006-01-18 Ludovic Rousseau
* [r1817] src/winscard_clnt.c: add speed profiling code
* [r1816] src/winscard_clnt.c: SCardTransmit(): code simplification
* [r1813] src/Makefile.am: explicitely add $(PTHREAD_CFLAGS)
$(PTHREAD_LIBS) to libpcsclite_la_LIBADD and pcscd_LDADD
* [r1812] src/Makefile.am: use $(FOO) instead of @FOO@ to not
replace the values but the variables
* [r1811] configure.in: do not globaly add $PTHREAD_* to LIBS and
CFLAGS
2006-01-03 Ludovic Rousseau
* [r1786] src/hotplug_generic.c: Add missing ReCheckSerialReaders
and HPReCheckSerialReaders() so pcsc-lite can compile on FreeBSD
and others
2005-12-15 Ludovic Rousseau
* [r1783] TODO: allow to have pcscd and libpcsclite on two
different machines.
2005-12-12 Ludovic Rousseau
* [r1781] configure.in: use $prefix/pcsc/services instead of
$prefix/services when --prefix= is used but
--enable-muscledropdir= is not. Same code as for
--enable-usbdropdir=
2005-12-01 Ludovic Rousseau
* [r1777] src/winscard.c: remove a duplicated comment line
2005-11-29 Ludovic Rousseau
* [r1772] TODO: typo corrected
2005-11-27 Ludovic Rousseau
* [r1757] ChangeLog: release 1.2.9-beta9
2005-11-25 Ludovic Rousseau
* [r1756] libmusclecard/src/Makefile.am: libmusclecard needs
tokenparser.l but I do not want to provide it through libpcsclite
so libmusclecard uses it directly
2005-11-24 Ludovic Rousseau
* [r1753] configure.in: version 1.2.9-beta9
* [r1748] src/PCSC/reader.h.in: Apple gcc does not support #pragma
pack(push, 1) but only #pragma pack(1)
powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple
Computer, Inc. build 4061)
* [r1744] src/winscard.c: SCardConnect(): do not print an error
""Active Protocol: unknown 0" when we are connecting in direct
mode. The card is not supposed to be used at this time.
* [r1741] src/PCSC/reader.h.in: use uint8_t instead of int8_t since
the fields are defined as BYTE, USHORT and ULONG in PC/SC v2 part
10 specification
This avoids a "warning: overflow in implicit constant conversion"
when using values bigger than 127
* [r1736] src/Makefile.am: tokenparser.l is used by pcscd only and
not by libpcsclite
* [r1732] configure.in, src/Makefile.am: we need to provide
LTPBundleFindValueWithKey for all plateforms. This function is
NOT provided by Mac OS X. The bug I wanted to correct yesterday
is in the CCID driver instead. patch reverted.
* [r1731] doc/doxygen.css: do not use smaller fonts for functions
names so it looks nice with Safari
2005-11-21 Ludovic Rousseau
* [r1728] configure.in: replace dnl by # for comments
* [r1727] configure.in, src/Makefile.am: we need tokenparser.l
(LTPBundleFindValueWithKey) only on non Mac OS X plateforms. So
we avoid linking with tokenparser.o and a possible "multiple
definitions of symbol _LTPBundleFindValueWithKey" ldd error
* [r1726] src/hotplug_macosx.c: HPSearchHotPluggables(): fill a
"usb:%04x/%04x" string as deviceName[] so it is possible to
differentiate two non-identical readers
* [r1725] src/powermgt_macosx.c: PMRegisterForPowerEvents(): use
(PCSCLITE_THREAD_FUNCTION( )) instead of (LPVOID) to cast the
function pointer passed to SYS_ThreadCreate()
* [r1724] src/powermgt_macosx.c: PMRegisterForPowerEvents(): use
THREAD_ATTR_DEFAULT instead of NULL in SYS_ThreadCreate()
* [r1723] src/powermgt_macosx.c: PMPowerRegistrationThread(): use 0
instead of NULL since IORegisterForSystemPower() returns a number
and not a pointer
* [r1722] src/readerfactory.c, src/winscard.c, src/winscard_clnt.c,
src/winscard_scf.c: use NULL instead of 0 for pointers
* [r1721] src/readerfactory.c: RFAddReader(): initialize the
pdwMutex field of a new reader. The bug resulted in a crash on
pcscd exit on Mac OS X
* [r1720] src/debuglog.c: DebugLogSetLogType(): add support for
"xterm-color" used by Mac OS X Terminal
2005-11-16 Ludovic Rousseau
* [r1719] Makefile.am: remove "PCSC/" from filenames in the
generated ChangeLog.cvs
* [r1718] configure.in: do not use `pkg-config libpcsclite
--variable=libdir` since we _are_ installing libpcsclite. This
code was ok when libmusclecard was separate from libpcsclite.
2005-10-29 Ludovic Rousseau
* [r1698] doc/Makefile.am, doc/doxygen.css: use a customized CSS
file for Doxygen
* [r1697] doc/Makefile.am: add a rule to generate Doxygen
documentation
* [r1696] configure.in, doc/Makefile.am, doc/doxygen.conf.in: add
doc/doxygen.conf.in and generation of doxygen.conf
* [r1695] src/tokenparser.l, src/winscard_clnt.c,
src/winscard_msg.c, src/winscard_msg.h, src/winscard_msg_srv.c,
src/winscard_svc.c: correct some Doxygen warnings
* [r1694] TODO: todo list
2005-10-21 Ludovic Rousseau
* [r1693] src/sys_unix.c: SYS_Daemon(): manually detatch from
terminal on Solaris in case daemon(3) does not exist
2005-10-18 Ludovic Rousseau
* [r1690] configure.in: do not try to find yywrap() since we use
%option noyywrap now
pcsc-lite can now be compiled without (f)lex installed.
* [r1689] src/Makefile.am: do not link pcscd with @LIBFL@
* [r1688] src/configfile.l, src/tokenparser.l: use %option noyywrap
so we do not use yywrap() and do have to link with flex lib See
http://www.gnu.org/software/flex/manual/html_node/flex_17.html
Thanks to Toni Andjelkovic for the patch
* [r1687] src/winscard_scf.c: PCSC_SCF_Initialize(): use
PCSC_Initialized instead of PCSC_SCF_Initialized (typo)
thanks to Najam Siddiqui for the patch
2005-10-12 Ludovic Rousseau
* [r1684] src/winscard_scf.c: EventCallback() &
PCSC_SCF_Initialize(): Fix issue where SCardGetStatusChange()
returns incorrect status when it is called right after
SCardEstablishContext() the first time after the libpcsclite.so
is loaded in memory, the fix is to make PCSC_Initialize() wait
till OCF has been initialized and the internal states are
consistent.
Thanks to Najam Siddiqui for the patch
* [r1683] src/winscard_scf.c: add function isActiveContextPresent()
missing from my previous commit
* [r1682] src/winscard_scf.c: SCardUnload(): add cleanup code
Thanks to Najam Siddiqui for the patch
* [r1681] src/winscard_scf.c: SCardGetStatusChange(): Context index
was being used instead of Reader index, it worked only when there
was just one context.
Thanks to Najam Siddiqui for the bug report
2005-09-28 Ludovic Rousseau
* [r1680] src/eventhandler.c: EHStatusHandlerThread(): Solaris 10
IFDhandler expect to have CardAtrLength set to a sensible value.
So add an initialisation before calling IFDPowerICC()
Thanks to Douglas E. Engert for the patch
* [r1679] src/prothandler.c: PHSetProtocol(): Solaris 10 IFDhandler
returns IFD_PROTOCOL_NOT_SUPPORTED if the protocol is not
supported
Thanks to Douglas E. Engert for the patch
* [r1678] src/eventhandler.c: EHStatusHandlerThread(): log the
error code in case of "Error powering up card."
Thanks to Douglas E. Engert for the patch
2005-09-26 Ludovic Rousseau
* [r1673] src/winscard_clnt.c: SCardGetStatusChange(): exists if
the list of readers changed (one reader added) so that the
application can update its list of readers
Thanks to Najam Siddiqui for a preliminary patch.
2005-09-19 Ludovic Rousseau
* [r1664] libmusclecard/src/musclecard.c: use
CONSTRUCTOR_DECLARATION() and DESTRUCTOR_DECLARATION() to support
SUN C compiler
* [r1663] src/misc.h: add support of SUN C compiler (using
__SUNPRO_C)
Thanks to Heiko Nardmann for the info
* [r1662] src/debuglog.c: add rxvt-unicode to the terminals with
color support
* [r1661] src/PCSC/reader.h.in: use #pragma pack instead of GCC
specific __attribute__
Thanks to Heiko Nardmann for the bug report
* [r1660] libmusclecard/src/musclecard.c: use CONSTRUCTOR &
DESTRUCTOR macros instead of GCC specific __attribute__ ...
* [r1659] src/misc.h: define CONSTRUCTOR and DESTRUCTOR
* [r1658] src/misc.h: use __attribute__ ... only for GCC
2005-09-15 Ludovic Rousseau
* [r1656] configure.in, src/PCSC/reader.h.in: define
HOST_TO_CCID_16() and HOST_TO_CCID_32 instead of just
HOST_TO_CCID()
* [r1655] doc/Makefile.am: muscle-api-1.3.0.pdf is already present
in libmusclecard/doc/
* [r1654] doc/muscle-api-1.3.0.pdf: this document is already
present in libmusclecard/doc/
* [r1653] src/Makefile.am: install PCSC/reader.h and
PCSC/pcsclite.h but do not distribute them
* [r1652] Makefile.am: add --stdout argument to svn2cl.sh so we
don't have to patch the svn2cl.sh anymore. The feature is now
included in svn2cl v0.3
* [r1651] src/Makefile.am, src/PCSC/dyn_generic.h,
src/PCSC/parser.h, src/PCSC/sys_generic.h,
src/PCSC/thread_generic.h, src/dyn_generic.h, src/parser.h,
src/sys_generic.h, src/thread_generic.h: move some header files
from src/PCSC to src and do not distribute them in
/usr/include/PCSC
2005-09-14 Ludovic Rousseau
* [r1650] doc/example/Makefile.am, libmusclecard/src/Makefile.am,
libmusclecard/utils/bundleTool/Makefile.am, src/Makefile.am,
src/utils/Makefile.am: add -I$(top_builddir)/src/PCSC to find the
generated files (pcsclite.h)
* [r1649] src/Makefile.am: do not include PCSC/pcsclite.h in the
tar.gz since it is generated from PCSC/pcsclite.h.in
* [r1648] doc/Makefile.am: include muscle-api-1.3.0.pdf
* [r1647] doc/muscle-api-1.3.0.pdf: copy from rel-1_2_9-beta7
2005-09-08 Ludovic Rousseau
* [r1646] Makefile.am: do not fail if svn2cl fails (command not
installed for example)
* [r1645] doc/Makefile.am: do not fail if $(PDFLATEX) fails
(command not installed for example)
2005-09-07 Ludovic Rousseau
* [r1644] Makefile.am: svn2cl --group-by-day
2005-09-06 Ludovic Rousseau
* [r1642] ChangeLog: release 1.2.9-beta8
2005-09-01 Ludovic Rousseau
* [r1637] src/winscard_clnt.c: use [...].mMutex = NULL; instead of
[...].mMutex = 0; since it is a pointer
* [r1636] src/winscard_clnt.c: SCardCancel(): do not synchronise
using .mMutex since it may be hold by another thread blocked for
a very long time in SCardGetStatusChange()
Thanks to Roland van Rijswijk for a preliminary patch
* [r1629] src/readerfactory.c: RFAddReader(): correct max length
tests for reader, library and device I was too pessimistic
2005-08-31 Ludovic Rousseau
* [r1628] src/readerfactory.c: RFAddReader(): do not silently
truncate the reader, library or device name if they are too long
Thanks to Ribamar Santarosa de Sousa for the bug report
* [r1627] src/readerfactory.c: RFAddReader(): return in error if
lpcDevice == NULL
2005-08-23 Ludovic Rousseau
* [r1624] Makefile.am: use svn2cl instead of rcs2log
* [r1623] src/winscard_clnt.c: SCardEstablishContextTH() and
SCardReleaseContext(): initialize rv field of
scEstablishStruct/scReleaseStruct structures to avoid a valgrind
warning
2005-08-17 Ludovic Rousseau
* [r1621] src/PCSC/reader.h.in: Pack the complete structures
instead of just the 16-bits fields This syntax is more readable
* [r1620] src/PCSC/reader.h.in: use __attribute__ ((__packed__))
for 16-bits fields since they are not aligned on word boundaries
2005-08-16 Ludovic Rousseau
* [r1619] .cvsignore, doc/.cvsignore, doc/example/.cvsignore,
etc/.cvsignore, libmusclecard/.cvsignore,
libmusclecard/doc/.cvsignore, libmusclecard/src/.cvsignore,
libmusclecard/utils/.cvsignore,
libmusclecard/utils/bundleTool/.cvsignore, m4/.cvsignore,
src/.cvsignore, src/PCSC/.cvsignore, src/utils/.cvsignore,
win32/.cvsignore: removed since we use SVN and not CVS anymore
Thanks to Martin Paljak for the idea
2005-08-15 Ludovic Rousseau
* [r1615] doc/formaticc.1, doc/pcscd.8.in, doc/reader.conf.5.in:
update
2005-08-08 Ludovic Rousseau
* [r1607] configure.in: remove AM_CONDITIONAL(PCSC_USE_LIBUSB...)
since it is not used anymore
* [r1606] configure.in: disable libusb on Darwin (MacOS X) since
native usb layer is preferred
* [r1605] src/Makefile.am: use libtool's "-export-dynamic" instead
of gcc's "-rdynamic"
see http://www.gnu.org/software/libtool/manual.html#Link-mode
2005-08-04 Ludovic Rousseau
* [r1603] src/PCSC/reader.h.in: include definitions of: -
HOST_TO_CCID() macro - PIN_VERIFY_STRUCTURE structure -
PIN_MODIFY_STRUCTURE structure
* [r1602] src/PCSC/reader.h.in: use inttypes.h instead of stdint.h
(stdint.h does not exist on Solaris)
* [r1601] configure.in: check is the plateform is big or little
endian and generate the corresponding HOST_TO_CCID() macro in
PCSC/reader.h
2005-08-03 Ludovic Rousseau
* [r1599] src/hotplug_libusb.c: HPAddHotPluggable(): off by 1
buffer overflow. The last character of a string is
"sizeof(string) -1" and not "sizeof(string)".
Thanks to Amira Solomovici for the bug report. A crash occured on
Fedora Core 4.
* [r1598] src/hotplug_libusb.c: HPAddHotPluggable(): use sizeof()
instead of BUS_DEVICE_STRSIZE to be less error prone
2005-08-02 Ludovic Rousseau
* [r1597] src/hotplug_libusb.c: HPSearchHotPluggables(): start the
HPEstablishUSBNotifications thread only if HPReadBundleValues()
returns TRUE (some USB drivers are found)
* [r1596] src/hotplug_libusb.c: HPReadBundleValues(): return TRUE
only if some USB drivers are found
* [r1595] src/hotplug_libusb.c: HPEstablishUSBNotifications(): free
data allocated for driverTracker[] on exit
2005-08-01 Ludovic Rousseau
* [r1582] src/winscard.c: SCardReconnect(): remove duplicate
checking code
2005-07-27 Ludovic Rousseau
* [r1580] src/hotplug_libusb.c: HPReadBundleValues(): clean the
newly allocated entries when driverTracker[] is enlarged
* [r1578] src/winscard_clnt.c: SCardCancelTransaction(): Doxygen
documented deprecation
* [r1576] src/winscard_clnt.c: move the Doxygen for SCardCancel()
to the correct function (it was attached to
SCardCancelTransaction())
* [r1574] src/winscard_clnt.c: typos in doxygen documentation
* [r1573] src/sys_unix.c, src/winscard.c: typos in doxygen
documentation
2005-07-06 Ludovic Rousseau
* [r1572] src/PCSC/reader.h.in: use ISO C99 integer types in
PCSC_TLV_STRUCTURE instead of __int*
2005-07-04 Ludovic Rousseau
* [r1571] src/PCSC/reader.h.in: add PCSC_TLV_STRUCTURE structure
2005-06-27 Ludovic Rousseau
* [r1565] src/pcscdaemon.c: add option -e -C so that systems
without getopt_long() can use them. remove code to parse the long
options.
Solaris does not have getopt_long(). Thanks to Heiko Nardmann for
the bug report.
2005-06-16 Ludovic Rousseau
* [r1564] src/configfile.l: DBGetReaderList(): *caller_reader_list
= NULL by default
2005-06-15 Ludovic Rousseau
* [r1554] src/hotplug_libusb.c: HPRegisterForHotplugEvents(): void
function so remove return 0;
* [r1553] src/winscard.c: SCardTransmit(): initialise
sSendPci.Protocol to T=0 by default (avoids a compiler warning)
* [r1552] src/readerfactory.c: #include "configfile.h" to define
DBGetReaderList()
* [r1551] src/configfile.l: #include "configfile.h" to check the
function prototype
* [r1550] src/configfile.h: correct function prototype according to
configfile.l new version
2005-06-04 Ludovic Rousseau
* [r1549] src/hotplug_linux.c: HPReadBundleValues(): use >= instead
of > to check if too many readers are declared in the previous
patch
* [r1548] src/hotplug_linux.c: HPReadBundleValues(): exit early if
too many readers are declared since the array to store them is
static (PCSCLITE_MAX_READERS_CONTEXTS)
2005-05-26 Ludovic Rousseau
* [r1544] configure.in: 1.2.9-beta8
* [r1543] src/hotplug_macosx.c: HPRegisterForHotplugEvents(): use
THREAD_ATTR_DEFAULT instead of NULL and
(PCSCLITE_THREAD_FUNCTION( )) instead of (LPVOID)
* [r1542] src/hotplug_macosx.c: replace NULL by 0 in the 4th
argument of IORegistryEntryCreateCFProperty()
* [r1541] src/hotplug_macosx.c: define char ReCheckSerialReaders
and HPReCheckSerialReaders()
* [r1540] src/hotplug_linux.c: define an empty
HPReCheckSerialReaders()
* [r1539] src/hotplug_linux.c: define char ReCheckSerialReaders
used by pcscdaemon.c and winscard_msg_srv.c
* [r1538] src/hotplug.h: add HPReCheckSerialReaders()
* [r1537] src/winscard_msg.h: do not declare
SHMProcessCommonChannelRequest() since it is a static function in
winscard_msg_srv.c never used elsewhere
* [r1536] src/pcscdaemon.c, src/winscard_msg_srv.c: do not log an
error if select() is interrupted because of a manual hotplug
signal (SIGUSR1)
* [r1535] src/pcscdaemon.c: call signal_reload() when a SIGUSR1
signal is received
This provides a manual serial hotplug
* [r1534] src/pcscdaemon.c: call RFStartSerialReaders() instead of
DBUpdateReaders()
* [r1533] src/hotplug_libusb.c: implement HPReCheckSerialReaders()
to set ReCheckSerialReaders flag if ReCheckSerialReaders flag is
set we call RFReCheckReaderConf()
This code has nothing to do with libusb or USB but is a serial
hotplug so should be in a hotplug loop
* [r1532] src/readerfactory.c: implement RFStartSerialReaders() to
start (serial) readers described in the configuration file
(/etc/reader.conf)
implement RFReCheckReaderConf() to stop or start readers
described in the configuration file. This allows a serial
hotplug.
* [r1531] src/configfile.h, src/configfile.l: rename
DBUpdateReaders() in DBGetReaderList() The function now just
returns a list of readers described in the configuration file
(/etc/reader.conf by default)
* [r1530] src/readerfactory.h: add struct SerialReader,
RFStartSerialReaders() and RFReCheckReaderConf() declarations
* [r1529] src/winscard.c: remove #include "configfile.h"
2005-05-25 Ludovic Rousseau
* [r1528] src/debuglog.c: DebugLogSetLevel(): do not print anything
if the level is critical or error in order to not "pollute" logs
in normal cases.
* [r1527] src/pcscdaemon.c, src/winscard_msg_srv.c: Do not log a
critical or error debug message if pcscd is stopped using Ctrl-C
or SIGQUIT Closes Debian bug 306061
* [r1526] src/Makefile.am: link pcscd with winscard_msg_srv.c
* [r1525] src/winscard_msg.c, src/winscard_msg_srv.c: move the
functions only use by the server part from winscard_msg.c to
winscard_msg_srv.c
* [r1524] src/debuglog.c: check if we should use color logs in
DebugLogSetLogType() and not only the first time in log_msg()
2005-05-18 Ludovic Rousseau
* [r1519] src/testpcsc.c: #include "reader.h" to use
SCARD_CTL_CODE() macro
* [r1518] src/Makefile.am: distribute PCSC/reader.h
* [r1517] src/PCSC/pcsclite.h.in, src/PCSC/reader.h.in: reader.h
now contains the #defines shared between the driver and the
application
* [r1516] src/PCSC/pcsclite.h.in: #define SCARD_CTL_CODE(code) and
some TeleTrust Class 2 reader tags
Thanks to Martin Paljak for the patch
* [r1515] src/winscard_clnt.c: SCardControl(): a 0 byte long
pbSendBuffer is no more rejected since the command is in
dwControlCode
Thanks to Martin Paljak for the patch
2005-05-03 Ludovic Rousseau
* [r1502] src/winscard_clnt.c: add @endcode in
SCardGetStatusChange() doxygen doc
* [r1501] src/winscard.c: minor corrections in doxygen doc
* [r1500] src/winscard.c: reformat doxygen pargraphs to 79 colunms
* [r1499] src/eventhandler.h: remove @typedef. It is useless and
makes doxygen crash
2005-05-02 Ludovic Rousseau
* [r1498] src/Makefile.am: do not build pcscd if SCF is used since
the library talks directly to ocfserv and pcscd is not used.
Thanks to Jeffrey Hutzelman for the patch.
* [r1497] src/winscard_scf.c: add SCardGetAttrib()/SCardSetAttrib()
even if they return SCARD_E_NOT_TRANSACTED for now. testpcsc can
now link when SCF is used.
Thanks to Jeffrey Hutzelman for the patch.
2005-04-27 Ludovic Rousseau
* [r1466] Makefile.am: add libmusclecard in SUBDIRS
* [r1465] configure.in: add --enable-muscledropdir=DIR and
--enable-musclecarddebug for libmusclecard support
* [r1464] libmusclecard, libmusclecard/.cvsignore,
libmusclecard/src, libmusclecard/src/.cvsignore: update the files
to ignore
* [r1463] libmusclecard/utils/bundleTool/Makefile.am: use the
headers from pcsclite in $(top_srcdir)/src/PCSC
* [r1462] libmusclecard/src/Makefile.am: use the header and sources
files from pcsclite (in $(top_srcdir)/src/)
* [r1461] libmusclecard/Makefile.am: new file
* [r1457] src/PCSC/wintypes.h: only use "__attribute__
((deprecated))" if __GNUC__ is defined. Otherwise it does not
compile with Solaris C compiler.
Thanks to Jeffrey Hutzelman for the patch
* [r1456] src/winscard_scf.c: SCardControl(): use the new API (with
DWORD dwControlCode added)
Thanks to Jeffrey Hutzelman for the patch
* [r1455] src/sys_unix.c: SYS_Daemon(): add the missing priority
argument to Log2()
Thanks to Jeffrey Hutzelman for the patch
2005-04-21 Ludovic Rousseau
* [r1432] libmusclecard/src/musclecard.c: release the context when
the library is unloaded.
Thanks to Karsten Ohme for the patch
* [r1431] libmusclecard/src/Makefile.am: also distribute misc.h,
dyn_hpux.c, dyn_macosx.c, dyn_unix.c, dyn_win32.c
* [r1430] libmusclecard/src/musclecard.c: do not perform a windows
specific treatment for PCSC_MCARD_mutex
declaration/initialisation
Thanks to Karsten Ohme for the patch
* [r1429] libmusclecard/src/tokenfactory.c: add a missing \ in
"%s\\%s\Contents\\Win32\\%s"
Thanks to Karsten Ohme for the patch
* [r1428] libmusclecard/src/PCSC/musclecard.h: add some #define
Thanks to Karsten Ohme
2005-04-13 Ludovic Rousseau
* [r1424] src/debuglog.c: use "signed char" instead of "char" for
LogDoColor since we use the value -1 and on some platforms (like
PowerPC) char is unsigned bu default.
2005-04-12 Ludovic Rousseau
* [r1423] src/Makefile.am: add misc.h in libpcsclite_la_SOURCES
* [r1421] src/PCSC/debuglog.h, src/PCSC/dyn_generic.h,
src/PCSC/ifdhandler.h, src/PCSC/parser.h, src/PCSC/pcsclite.h.in,
src/PCSC/sys_generic.h, src/PCSC/thread_generic.h,
src/PCSC/winscard.h, src/PCSC/wintypes.h, src/atrhandler.c,
src/atrhandler.h, src/debuglog.c, src/dyn_hpux.c,
src/dyn_macosx.c, src/dyn_unix.c, src/dyn_win32.c,
src/eventhandler.c, src/eventhandler.h, src/hotplug.h,
src/hotplug_generic.c, src/hotplug_libusb.c, src/hotplug_linux.c,
src/hotplug_macosx.c, src/ifdwrapper.c, src/ifdwrapper.h,
src/pcscdaemon.c, src/powermgt_generic.c, src/powermgt_generic.h,
src/prothandler.c, src/prothandler.h, src/readerfactory.c,
src/readerfactory.h, src/strlcpycat.h, src/sys_unix.c,
src/testpcsc.c, src/thread_unix.c, src/thread_win32.c,
src/utils/formaticc.c, src/utils/installifd.c, src/winscard.c,
src/winscard_clnt.c, src/winscard_msg.c, src/winscard_msg.h,
src/winscard_scf.c, src/winscard_svc.c, src/winscard_svc.h: add
(some) Doxygen documentation
Thanks to Luiz Reuter Silva Torro for the patch
* [r1420] src/debuglog.c: DebugLogSuppress(), debug_msg() and
debug_xxd are defined only for pcscd and not for libpcsclite.so
* [r1419] src/debuglog.c, src/dyn_unix.c, src/strlcat.c,
src/strlcpy.c, src/sys_unix.c, src/thread_unix.c,
src/winscard_msg.c: define some/most functions as INTERNAL (see
misc.h) so the function symbols are not visible in libpcsclite.so
This will prevent function names collision with homonym functions
defined in a library or program linked with libpcsclite.so
* [r1418] src/Makefile.am: remove debuglog.c from
libpcsclite_core_la_SOURCES so the same source file can be
compiled with different -D arguments for libpcsclite_la_SOURCES
and pcscd_SOURCES
* [r1417] src/misc.h: #define INTERNAL
2005-04-06 Ludovic Rousseau
* [r1416] libmusclecard/src/musclecard.c: MSCReleaseConnection():
call SCardReleaseContext()
Thanks to Karsten Ohme for the patch
2005-03-22 Ludovic Rousseau
* [r1415] src/pcscdaemon.c: main(): print usage and exit if a
unknown parameter is passed
2005-03-21 Ludovic Rousseau
* [r1414] doc/pcscd.8.in: remove libmusclecard documentation since
it is now in a separate package
* [r1413] doc/pcscd.8.in: update documentation of --debug, --info,
--error, --critical and --foreground
* [r1412] doc/Makefile.am: DISTCLEANFILES = ifdhandler-3.pdf
pcsc-lite.pdf The two PDF files are only removed by "make
distclean" so normal users will not have to (re)build them after
a "make clean"
2005-03-17 Ludovic Rousseau
* [r1403] src/debuglog.c: add colorization of the logs when sent to
stderr. The color depends on the priority level: - critical:
bright red - error: magenta - info: blue - debug: black
A correct implementation should use ncurses to be portable but I
don't want to add a dependency on pcscd.
The code and idea is greatly inspired from OpenSC.
* [r1402] src/debuglog.c: change global variable names to use a
capital first letter
2005-03-02 Ludovic Rousseau
* [r1389] ChangeLog: release 1.2.9-beta7
* [r1388] src/readerfactory.c: RFAddReader(): revert the previous
patch.
The wait delay is moved to SCardGetStatusChange()/winscard_clnt.c
* [r1387] src/winscard_clnt.c: SCardEstablishContextTH(): if
MUSCLECARD_DEBUG environment variable is defined we use the more
verbose debug level
* [r1386] src/winscard_clnt.c: SCardGetStatusChange(): if the card
is present but not yet powered up we give some time to the status
thread to do his job
2005-03-01 Ludovic Rousseau
* [r1385] src/readerfactory.c: RFAddReader(): give some time to
EHStatusHandlerThread() to asynchronously power the card.
The problem was that the reader was initialised but the card in
the reader was not powered up immediately. So if you are fast
enough to call SCardConnect() it would fail with a wrong protocol
(since the card ATR is not yet known).
* [r1384] src/winscard.c: SCardConnect(): use "Attempting Connect
to %s using protocol: %d" instead of "Attempting Connect to %s
%d"
* [r1383] src/atrhandler.c: use Logx() instead of debug_msg()
* [r1382] src/PCSC/debuglog.h: add Log9()
* [r1381] src/PCSC/debuglog.h: add () after the function name
2005-02-28 Ludovic Rousseau
* [r1380] src/PCSC/debuglog.h: #define Log0()
* [r1379] src/debuglog.c: typo: "Reader/s" -> "Reader"
* [r1378] src/winscard.c: SCardControl(): rContext was used before
initialisation (segmentation fault)
* [r1377] src/debuglog.c: DebugLogSetLogType(): do not modify
dbgtype argument since it is "const"
* [r1376] doc/example/Makefile.am: use pcsc_demo_CFLAGS instead of
AM_CPPFLAGS
* [r1375] doc/example/pcsc_demo.c: use "%lX" instead of "%X" for
rgReaderStates[0].dwEventState field
* [r1374] doc/pcsc-lite.tex: improve SCardGetStatusChange()
documentation
* [r1373] doc/example/pcsc_demo.c: add SCardGetStatusChange() code
sample
* [r1372] src/debuglog.c: update copyright
* [r1371] src/debuglog.c: simplify the debug output switch
* [r1370] src/debuglog.c: DebugLogSetLogType(): check the log type
argument value
* [r1369] src/debuglog.c: DebugLogSetLevel(): display the unknown
level value
* [r1366] configure.in: remove --enable-threadsafe since it is now
useless
* [r1365] src/winscard_scf.c: code cleanup
* [r1364] src/winscard_scf.c: code reindentation
* [r1363] src/winscard_scf.c: remove #ifdef USE_THREAD_SAFETY since
it _must_ be defined for the file to compile
* [r1362] configure.in: remove --enable-debug since it is not used
anymore (log level is no dynamic at execution time)
2005-02-27 Antti Tapaninen
* [r1357] pbx/config.h, pcsc.pbproj/project.pbxproj: - Upgrade
Xcode project related files a bit, compiles yet untested
otherwise.
2005-02-24 Ludovic Rousseau
* [r1348] src/winscard.c: SCardControl(): check if the pbSendBuffer
is NULL or no bytes are sent for API v2 only. With API v3 we can
use dwControlCode as the only data to send.
2005-02-23 Ludovic Rousseau
* [r1347] configure.in, src/Makefile.am, src/strlcat.c,
src/strlcpy.c: simplify the detection and use of strlcpy and
strlcat
* [r1345] src/PCSC/debuglog.h, src/debuglog.c: remove
DEBUGLOG_STDOUT_DEBUG case since it is never used
* [r1344] src/debuglog.c: use "const int" instead of "int" for
priority
* [r1340] src/PCSC/debuglog.h: update copyright date
* [r1339] src/PCSC/debuglog.h: document Log1() instead of
DebugLogA() in comments
* [r1338] src/PCSC/debuglog.h: use "const int" instead of "int" for
priority
* [r1337] doc/ifdhandler-3.tex: document log_msg() and log_xxd()
2005-02-22 Ludovic Rousseau
* [r1336] doc/ifdhandler-3.tex: add a complete Info.plist
configuration file
* [r1335] libmusclecard/src/musclecard.c,
libmusclecard/src/tokenfactory.c: use dynamic debug level: LogX()
instead of DebugLogX()
* [r1334] src/atrhandler.c, src/configfile.l, src/dyn_hpux.c,
src/dyn_macosx.c, src/dyn_unix.c, src/dyn_win32.c,
src/eventhandler.c, src/hotplug_libusb.c, src/hotplug_linux.c,
src/hotplug_macosx.c, src/ifdwrapper.c, src/powermgt_macosx.c,
src/prothandler.c, src/readerfactory.c, src/sys_unix.c,
src/tokenparser.l, src/winscard.c, src/winscard_clnt.c,
src/winscard_msg.c, src/winscard_svc.c: Use dynamic level logging
using LogX() instead of DebugLogX()
* [r1333] src/pcscdaemon.c: Implement the dynamic level logging
The new command line options are: -d, --debug display lower level
debug messages --info display info level debug messages (default
level) --error display error level debug messages --critical
display critical only level debug messages
* [r1332] src/debuglog.c: implement log with priority level.
debug_msg() is still provided for backward object code
compatibility
* [r1331] src/PCSC/debuglog.h: use Log1(priority, fmt) instead of
DebugLogA(fmt) to add a priority level so that pcscd log
verbosity is dynamic
We define DebugLogA(a) as Log1(PCSC_LOG_INFO, a) for backward
source code compatibility
2005-01-16 Ludovic Rousseau
* [r1315] Makefile.am, bootstrap, configure.in: move *.m4 files
from aclocal/ to m4/
2005-01-11 Ludovic Rousseau
* [r1308] bootstrap: add autotools version used
* [r1307] src/readerfactory.c, src/winscard.c, src/winscard_clnt.c,
src/winscard_scf.c: use SYS_RandomInt() instead of SYS_Random()
to improve performances.
Thanks to Philipp Marek for the patch
* [r1306] src/PCSC/sys_generic.h, src/sys_unix.c: convert
SYS_Random() into SYS_RandomInt() to improve performances.
Thanks to Philipp Marek for the patch
* [r1305] src/winscard_msg.c: WrapSHMWrite(): eliminate a
valgrind/memcheck-warning
Thanks to Philipp Marek for the patch
* [r1304] src/winscard_clnt.c: SCardEstablishContextTH(): eliminate
a valgrind/memcheck-warning
Thanks to Philipp Marek for the patch
* [r1303] src/sys_unix.c: SYS_Random(): improve performances
Thanks to Philipp Marek for the patch
2004-12-02 Ludovic Rousseau
* [r1296] src/winscard_clnt.c: CardGetStatusChange(): do not sleep
at each reader check but only once per cycle. Before the change
the total sleep time was cReaders * PCSCLITE_STATUS_WAIT
Thanks to Oivind H. Danielsen for the three patches
* [r1295] src/winscard_clnt.c: SCardGetStatusChange(): move timeout
check after other checks so we do not exit with timeout if the
timeout is less than 200 ms (PCSCLITE_STATUS_WAIT)
* [r1294] src/winscard_clnt.c: SCardGetStatusChange(): do not sleep
if dwCurrentState = SCARD_STATE_UNAWARE
2004-11-23 Ludovic Rousseau
* [r1293] doc/pcsc-lite.tex: SCardStatus: document that pcbAtrLen
will contain the necessary size if it is too small
2004-10-20 Ludovic Rousseau
* [r1291] src/debuglog.c: pcsc_stringify_error(): differentiate the
error messages for SCARD_F_INTERNAL_ERROR and
SCARD_F_UNKNOWN_ERROR
2004-10-06 Ludovic Rousseau
* [r1274] libmusclecard/doc/Makefile.am,
libmusclecard/src/Makefile.am, libmusclecard/utils/Makefile.am,
libmusclecard/utils/bundleTool/Makefile.am: new build
infrastructure. Patch from Toni Andjelkovic
* [r1273] libmusclecard/src/libmusclecard.pc.in: do not force the
libpcsclite version to use since the two packages are now
independents
* [r1272] libmusclecard/src/musclecard.c,
libmusclecard/src/tokenfactory.c: use < > instead of " " for the
include files provided by pcsc-lite (and already installed in the
system)
* [r1271] libmusclecard/src/tokenfactory.c: use MSC_ARCH instead of
PCSC_ARCH
* [r1270] libmusclecard, libmusclecard/.cvsignore,
libmusclecard/doc, libmusclecard/doc/.cvsignore,
libmusclecard/src, libmusclecard/src/.cvsignore,
libmusclecard/utils, libmusclecard/utils/.cvsignore,
libmusclecard/utils/bundleTool,
libmusclecard/utils/bundleTool/.cvsignore: list of files to
ignore
* [r1269] libmusclecard/src/musclecard.c,
libmusclecard/src/muscletest.c,
libmusclecard/utils/bundleTool/bundleTool.c: patch from Toni
Andjelkovic for the pcsc-lite/libmusclecard separation
* [r1268] configure.in: 1.2.9-beta7
* [r1267] etc/Makefile.am: install reader.conf in reader.conf.d/
instead of just creating an empty directory
2004-10-04 Ludovic Rousseau
* [r1266] configure.in, doc/Makefile.am, src/Makefile.am,
src/utils/Makefile.am: move libmusclecard from pcsc-lite to its
own archive/package
2004-10-03 Ludovic Rousseau
* [r1264] doc/example/pcsc_demo.c, src/testpcsc.c: add "THIS
PROGRAM IS NOT DESIGNED AS A TESTING TOOL FOR END USERS!"
2004-09-29 Ludovic Rousseau
* [r1255] libmusclecard/src/tokenfactory.c:
TPSearchBundlesForAtr(): revert the previous patch.
Thanks to Toni Andjelkovic for his patch patch :-)
* [r1250] libmusclecard/src/tokenfactory.c:
TPSearchBundlesForAtr(): initialise tokenInfo so that it contains
safe default values when no pcsc/services/ directory is found.
Thanks to Toni Andjelkovic for the patch
2004-09-22 Ludovic Rousseau
* [r1249] src/testpcsc.c: fflush(stdout) so that "Please insert a
working reader : " is displayed
2004-09-21 Ludovic Rousseau
* [r1248] src/configfile.l, src/tokenparser.l: use "%option
nounput" to avoid the "warning: `yyunput' defined but not used"
2004-09-17 David Corcoran
* [r1242] libmusclecard/src/musclecard.c: rewrite of
mscreadallocateobject
* [r1241] libmusclecard/src/musclecard.c: initialized more vars in
ListTokens
2004-09-14 Ludovic Rousseau
* [r1239] src/ifdwrapper.c, src/winscard.c: add "Card not
transacted" error messages. Thanks to Bruce Barnett for the
patch.
* [r1238] src/tokenparser.l: LTPBundleFindValueWithKey():
sizeof(tokenValue) is not what we want since tokenValue is a char
* and not a char []
* [r1237] src/tokenparser.l: use strlcpy and simplify the code
* [r1236] src/configfile.l: remove PCSC/ from the #include path
* [r1235] src/winscard_clnt.c: SCardListReaders(): simplify the
code
* [r1234] src/winscard_clnt.c: SCardListReaders(): simplify the
multi-string creation
* [r1233] src/readerfactory.c: comment out unsused function
RFListReaders()
* [r1232] libmusclecard/src/tokenfactory.c, src/eventhandler.c,
src/readerfactory.c: use strlcpy() instead of strcpy()
* [r1231] libmusclecard/src/muscletest.c: use strlcpy() insted of
strcpy()
2004-09-11 Ludovic Rousseau
* [r1230] src/eventhandler.c: EHDestroyEventHandler(): do not try
to stop a not started thread (for a reader that failed
initialisation and never started)
* [r1229] src/readerfactory.c: RFAddReader(): stop if
EHSpawnEventHandler() returns an error. This occurs if the
initial reader check (IFDStatusICC) fails.
2004-09-07 Ludovic Rousseau
* [r1224] libmusclecard/src/musclecard.c: convert
MSC_INCORRECT_P1/P2 to the corresponding text error message
(instead of "Unknown SW").
Thanks to Bruce Barnett for the patch.
* [r1223] src/debuglog.c: use strlcpy/strlcat instead of
strncpy/strncat
* [r1222] src/Makefile.am: use internal strlcpy.c and strlcat.c if
these functions are not provided by the OS
* [r1221] configure.in: check if strlcpy/strlcat are provided by
the OS (OpenBSD and some others)
* [r1220] src/strlcpycat.h: prototypes of strlcpy/strlcat
* [r1219] src/strlcat.c, src/strlcpy.3, src/strlcpy.c: imported
from ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/
* [r1218] src/testpcsc.c: update copyright: add my name
* [r1217] src/testpcsc.c: add a test for SCardReconnect()
* [r1216] src/eventhandler.c: EHStatusHandlerThread(): remove
comment from call to RFSetReaderEventState(rContext,
SCARD_RESET); The comment is present from the initial CVS
version. I don't know why is was ever needed.
This is needed so that SCardReconnect() works after a card
movement. Otherwise SCardReconnect() returns "Card was removed"
even if the new card is reseted.
Note: the comment was present from the initial CVS version
(2002/03/30). I don't know why is was ever needed.
2004-09-03 Ludovic Rousseau
* [r1215] src/winscard.c: SCardConnect()/SCardReconnect(): do not
set rContext->readerState->cardProtocol if PHSetProtocol()
returns an error.
This will avoid having a protocol set to -2
(SET_PROTOCOL_PPS_FAILED)
* [r1214] src/prothandler.c: PHSetProtocol(): add the error code
returned by the driver in case of PTS failure in the debug
message
2004-09-01 Ludovic Rousseau
* [r1211] configure.in: use $prefix value instead of /usr/local/ in
usbdropdir and muscledropdir
* [r1210] src/testpcsc.c: test SCardGetAttrib() with a NULL pbAttr
paraleter
* [r1209] src/winscard_clnt.c: add support of SCardGetAttrib() with
a NULL pbAttr parameter to only get the needed lenth in
pcbAttrLen
2004-08-24 Ludovic Rousseau
* [r1207] doc, doc/.cvsignore: ignore ifdhandler-3,
ifdhandler-3.bbl and ifdhandler-3.blg
* [r1206] src/PCSC/pcsclite.h.in: always use @confdir_exp@ instead
of #ifndef USE_READER_CONF ...
* [r1205] configure.in: do not define USE_READER_CONF but expand
$confdir in confdir_exp
* [r1204] configure.in: generate etc/update-reader.conf from
etc/update-reader.conf.in
* [r1203] etc/pcscd.init.in: call update-reader.conf to update
/etc/reader.conf before starting the daemon
* [r1202] etc/Makefile.am: use $(mkinstalldirs) instead of
$(mkdir_p)
* [r1201] etc/Makefile.am: - distribute update-reader.conf - create
/etc/reader.conf.d/ during installation
* [r1200] etc, etc/.cvsignore: ignore update-reader.conf
* [r1199] etc/update-reader.conf.in: use update-reader.conf to
regenerate /etc/reader.conf from files in /etc/reader.conf.d/
(thanks to Ville Skytt�)
* [r1198] src/tokenparser.l: LTPBundleFindValueWithKey(): also
print the configuration filename if the key is not found
* [r1197] src/winscard_clnt.c: SCardStatus(): pdwState and
pdwProtocol parameters may be NULL (mimic Windows)
2004-08-23 Ludovic Rousseau
* [r1192] src/PCSC/pcsclite.h.in: add SCARD_STATE_UNPOWERED.
This #define is not (yet) used by pcsc-lite but is defined by
Windows PC/SC and may be used by Windows applications
2004-08-18 Ludovic Rousseau
* [r1191] src/winscard.c, src/winscard_clnt.c: define and use an
internal SCARD_PROTOCOL_ANY_OLD for backward compatibility for
applications compiled with the old SCARD_PROTOCOL_ANY definition.
* [r1190] src/PCSC/pcsclite.h.in: correctly define
SCARD_PROTOCOL_ANY as (SCARD_PROTOCOL_T0|SCARD_PROTOCOL_T1)
2004-08-16 Ludovic Rousseau
* [r1188] src/ifdwrapper.c: forgot to remove 4 DebugLogA("POUET");
debug statements. Thanks Damien Sauveron for noticing :-)
2004-08-15 Ludovic Rousseau
* [r1181] ChangeLog: release 1.2.9-beta6 (real one)
2004-08-13 Ludovic Rousseau
* [r1180] doc/formaticc.1: libpcsclite0 -> libpcsclite1
* [r1179] src/readerfactory.c, src/readerfactory.h: remove unused
fields in FctMap_V1 structure
* [r1178] src/ifdwrapper.c, src/readerfactory.c: use the new
psFunctions C union
* [r1177] src/readerfactory.h: psFunctions field is now a C union
with three structures for the 3 API. - each structure has
complete functions prototypes - only the needed functions are in
each structure (some bytes saved :-)
* [r1176] src/atrhandler.c: remove #define SCARD_PROTOCOL_UNSET
0x00 since it is already defined in PCSC/pcsclite.h.in. Thanks to
Toni Andjelkovic
2004-08-10 Ludovic Rousseau
* [r1175] doc/pcscd.8.in: replace an empty line by @HAVE_RUNPID@ to
avoid having two empty lines when --enable-runpid is not used
* [r1174] etc/Makefile.am: do not distribute pcscd.init since it
will be generated from pcscd.init.in
* [r1173] src/utils/installifd.c: remove a call to free() of a
pointer that was not malloc()ed and caused a segmentation fault
* [r1172] src/utils/installifd.c: define DEVICENAME as /dev/null
instead of GEN_SMART_RDR
* [r1171] configure.in, doc/pcscd.8.in: document runpid file
depending on the ./configue options
* [r1170] doc/reader.conf.5.in: typos
* [r1169] configure.in: generate etc/pcscd.init with the correct
paths
* [r1168] m4/Makefile.am: distribute as-ac-expand.m4
* [r1167] etc, etc/.cvsignore, etc/Makefile.am, etc/pcscd.init.in,
etc/pcscd.startup: pcscd.startup is replaced by pcscd.init
generated from pcscd.init.in
* [r1166] m4/as-ac-expand.m4: provides a AC_SUBST-like macro
(AS_AC_EXPAND) but using expanded variables. From the autostars
project (http://sf.net/projects/autostars/)
* [r1164] ChangeLog: release 1.2.9-beta6
* [r1163] configure.in: 1.2.9-beta6
* [r1162] etc/pcscd.startup: updated to reflect the RPM version
from Ville Skytt� & Fritz Elfert
* [r1161] doc/example/GPL-2, doc/example/Makefile.am: add and
distribute the full text of the GNU General Public License used
by pcsc_demo.c
2004-08-06 Ludovic Rousseau
* [r1159] doc/example/Makefile.am, src/Makefile.am,
src/utils/Makefile.am: use AM_CPPFLAGS = -I$(top_srcdir)/src/PCSC
to find the header files
* [r1158] libmusclecard/src/PCSC/mscdefines.h,
libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c, libmusclecard/src/muscletest.c,
libmusclecard/src/tokenfactory.c,
libmusclecard/src/tokenfactory.h, src/PCSC/ifdhandler.h,
src/PCSC/pcsclite.h.in, src/PCSC/winscard.h, src/atrhandler.c,
src/debuglog.c, src/dyn_hpux.c, src/dyn_macosx.c, src/dyn_unix.c,
src/eventhandler.c, src/hotplug_generic.c, src/hotplug_libusb.c,
src/hotplug_linux.c, src/hotplug_macosx.c, src/ifdwrapper.c,
src/pcscdaemon.c, src/powermgt_generic.c, src/powermgt_macosx.c,
src/prothandler.c, src/readerfactory.c, src/sys_unix.c,
src/testpcsc.c, src/thread_unix.c, src/utils/formaticc.c,
src/winscard.c, src/winscard_clnt.c, src/winscard_msg.c,
src/winscard_scf.c, src/winscard_svc.c: remove PCSC/ from the
header files path since the path is given by pkg-config --cflags
libpcsclite or the correct -I directive
2004-08-03 Ludovic Rousseau
* [r1137] src/winscard_svc.c: MSGCleanupClient(): always reset all
the fields. Thanks to Michael Gold for the patch. Closes: [
#300863 ] Clear dwClientID in MSGCleanupClient
2004-08-02 Ludovic Rousseau
* [r1136] src/eventhandler.c, src/hotplug_libusb.c,
src/hotplug_linux.c: use THREAD_ATTR_DETACHED in
SYS_ThreadCreate() to automatically deallocate resources
allocated by the thread when the thread exits (because the thread
is not joined with SYS_ThreadJoin())
* [r1135] doc/example/pcsc_demo.c: remove useless call to
undocumented function SCardUnload()
* [r1134] libmusclecard/src/musclecard.c: use THREAD_ATTR_DEFAULT
argument in SYS_ThreadCreate()
* [r1133] src/winscard_svc.c: CreateContextThread(): use
THREAD_ATTR_DETACHED in SYS_ThreadCreate() so that the resources
allocated by pcscd are deallocated when the client die.
Closes [ #300862 ] Don't create threads as joinable
* [r1132] src/eventhandler.c, src/hotplug_libusb.c,
src/hotplug_linux.c: use THREAD_ATTR_DEFAULT argument in
SYS_ThreadCreate()
* [r1131] src/thread_win32.c: update SYS_ThreadCreate() API but do
not modify the code
* [r1130] src/thread_unix.c: SYS_ThreadCreate(): set the thread
state: joinable or detached default is joinable
* [r1129] src/PCSC/thread_generic.h: the second argument of
SYS_ThreadCreate if no more LPVOID pthAttr but int attributes so
that attributes can be passed in a portable way.
/* thread attributes */ #define THREAD_ATTR_DEFAULT 0 #define
THREAD_ATTR_DETACHED 1
* [r1128] src/testpcsc.c: use "%ld bytes" instead of "%lx" for ATR
Size
* [r1127] src/testpcsc.c: use "T=%ld" instead of "%lx" for Reader
Protocol
* [r1126] src/testpcsc.c: use "0x%.4lx" instead of "%lx" for Reader
State
* [r1125] doc/example/pcsc_demo.c: add SCardTransmit() code sample
* [r1124] src/winscard.c: perform a PPS (PHSetProtocol()) only if
the current protocol is SCARD_PROTOCOL_UNSET otherwise only check
that the requested protocol is available.
This will avoid generating a PPS request that would not be just
after a power up. The previous code worked only when the card was
reseted at SCardDisconnect() but not when SCARD_LEAVE_CARD was
used.
* [r1123] src/winscard.c: ...->cardProtocol = SCARD_PROTOCOL_UNSET;
after a power up so that the next SCardConnect() with perform a
PPS with the desired protocol
* [r1122] src/winscard.c: ...->cardProtocol = SCARD_PROTOCOL_UNSET;
after a power up so that the next SCardConnect() with perform a
PPS with the desired protocol
* [r1121] src/winscard.c: set ..->cardProtocol = SCARD_PROTOCOL_RAW
instead of -1
* [r1120] src/eventhandler.c: ...->cardProtocol =
SCARD_PROTOCOL_UNSET; after a power up so that the next
SCardConnect() with perform a PPS with the desired protocol
* [r1119] src/eventhandler.c: use ..->cardProtocol =
SCARD_PROTOCOL_UNSET instead of ..->cardProtocol = 0
* [r1118] src/PCSC/pcsclite.h.in: #define SCARD_PROTOCOL_UNSET
0x0000 /* protocol not set */
2004-08-01 Ludovic Rousseau
* [r1117] src/configfile.l: if the file referenced by DEVICENAME
can't be use (because it is not a correct filename) we now
display: You should use 'DEVICENAME /dev/null' if your driver
does not use this field
* [r1116] src/readerfactory.c: initialise dwSlot field for the new
reader slot
* [r1115] src/readerfactory.c: initialise the lpcDevice field of
the new slot and not of the main reader
* [r1114] src/readerfactory.c: typo in comment (empty spot -> empty
slot)
2004-07-29 Ludovic Rousseau
* [r1113] libmusclecard/src/musclecard.c,
libmusclecard/src/tokenfactory.c: replace #ifdef MSC_DEBUG by
#ifndef NO_MSC_DEBUG
* [r1112] configure.in: define NO_PCSC_DEBUG and NO_MSC_DEBUG if
debug is set to NO instead of defining PCSC_DEBUG and MSC_DEBUG
when debug is selected. The debug messages are now displayed by
default.
* [r1111] src/PCSC/debuglog.h: use NO_PCSC_DEBUG instead of
PCSC_DEBUG.
The debug messages are now displayed by default (no need to
#include "config.h" in PCSC/debuglog.h)
2004-07-28 Ludovic Rousseau
* [r1110] doc/ifdhandler-3.tex: typo: verions -> versions
* [r1109] doc/ifdhandler-3.tex: add documentation for
IFDHGetCapabilities(..., TAG_IFD_THREAD_SAFE, ...),
IFDHGetCapabilities(..., TAG_IFD_SLOT_THREAD_SAFE, ...) and
IFDHSetCapabilities(..., TAG_IFD_SLOTNUM, ...)
* [r1108] doc/pcsc-lite.tex: the function SCardSetTimeout() is
deprecated and does nothing
2004-07-24 Ludovic Rousseau
* [r1100] src/testpcsc.c: add a "(don't panic)" after a
"Transaction failed." if it is not a critical failure.
2004-07-22 Ludovic Rousseau
* [r1099] src/readerfactory.c: RFBindFunctions(): replace the code
replication by macros definition and use (FctMap' fields were
renamed for this to be easy)
* [r1098] src/ifdwrapper.c: use new FctMap' fields names
* [r1097] src/readerfactory.h: rename some FctMap' fields so the
field name is the same as in the function name of V3.0 IFDHandler
API
2004-07-16 Ludovic Rousseau
* [r1081] ChangeLog: release 1.2.9-beta5
* [r1080] configure.in: 1.2.9-beta5
2004-07-08 Ludovic Rousseau
* [r1041] libmusclecard/src/tokenfactory.c:
TPSearchBundlesForAtr(): use "%s/%s" insead of "%s%s" when
generating the MuscleCard bundle name on MacOSX
2004-07-06 Ludovic Rousseau
* [r1040] src/PCSC/wintypes.h: add type LPSTR (again) so that "old"
drivers and applications can compile but mark it deprecated.
See
http://gcc.gnu.org/onlinedocs/gcc-3.1/gcc/Type-Attributes.html
* [r1039] doc/Makefile.am: 'make clean' also removes the LaTeX
temporary files
* [r1038] doc/ifdhandler-3.tex: IFDHGetCapabilities(): document the
flags SCARD_ATTR_ATR_STRING and IOCTL_SMARTCARD_VENDOR_VERIFY_PIN
* [r1037] src/winscard.c: SCardControl() (new API) can now be used
with a IFDHandler v2.0 or v3.0. The previous code was broken and
only worked with an IFDHandler v3.0 (crashed with a v2.0).
* [r1036] src/PCSC/ifdhandler.h: IFDHControl(): use PUCHAR instead
of LPCVOID and LPVOID so the driver can use TxBuffer[x] without
needing a cast.
* [r1035] src/PCSC/ifdhandler.h: it is now possible to compile a
IFDHandler v2.0 with this include file. Just #define IFDHANDLERv2
in your source code before #include <ifdhandler.h>
By default it is setup for for most recent version of the API
(V3.0)
* [r1034] src/ifdwrapper.c: IFDControl_v2() is supported by
IFD_HVERSION_2_0 drivers (not IFD_HVERSION_1_0)
* [r1033] doc/pcsc-lite.bib: add an entry from pcsc-lite
documentation
2004-07-04 Damien Sauveron
* [r1032] doc/pcsc-lite.tex: IFDHControl(): correct the types of
pbSendBuffer and pbRecvBuffer.
2004-07-03 Ludovic Rousseau
* [r1031] doc/ifdhandler-3.tex: IFDHControl(): RxLength is a DWORD
not a PDWORD
* [r1029] configure.in: 1.2.9-beta4
* [r1028] ChangeLog: release 1.2.9-beta4
* [r1027] src/libpcsclite.pc.in: add @PTHREAD_CFLAGS@ to Cflags:
and @PTHREAD_LIBS@ to Libs: so that the compiler and linker do
the "right" thing. Thanks to Ville Skytt� for the patch.
* [r1026] libmusclecard/src/libmusclecard.pc.in: use "Requires:
libpcsclite = @VERSION@" instead of just "-lpcsclite" Thanks to
Ville Skytt� for the patch
* [r1025] src/libpcsclite.pc.in: add /PCSC to includedir instead of
Cflags:
* [r1024] libmusclecard/src/libmusclecard.pc.in: includedir is now
@includedir@/PCSC
2004-06-30 Ludovic Rousseau
* [r983] ChangeLog: release 1.2.9-beta3
2004-06-29 Ludovic Rousseau
* [r982] src/libpcsclite.pc.in: the include directory is now
${includedir}/PCSC.
If your application Makefile uses CFLAGS=`pkg-config libpcsclite
--cflags` you have nothing to change and the migration of the
include files in /usr/include/PCSC/ will be painless.
* [r981] src/ifdwrapper.c: IFDControl_v2(): if the driver version
is != IFD_HVERSION_1_0 we _return_ SCARD_E_UNSUPPORTED_FEATURE
(not just set the return value)
IFDControl(): if the driver version is < IFD_HVERSION_3_0 we
_return_ SCARD_E_UNSUPPORTED_FEATURE (not just set the return
value)
* [r980] src/winscard.c: SCardReconnect(): if the reset fails it
may be either because: - the card is unresponsive
(SCARD_W_UNRESPONSIVE_CARD) or - no card is present
(SCARD_E_NO_SMARTCARD) and the SCardConnect() was successfull
with SCARD_SHARE_DIRECT (no need for a card)
* [r979] src/winscard.c: in SCardConnect() and SCardReconnect(),
returns SCARD_W_UNRESPONSIVE_CARD if PHSetProtocol() fails with
SET_PROTOCOL_PPS_FAILED
* [r978] src/prothandler.h: define the constant
SET_PROTOCOL_WRONG_ARGUMENT and SET_PROTOCOL_PPS_FAILED
* [r977] src/prothandler.c: PHSetProtocol(): returns
SET_PROTOCOL_PPS_FAILED if IFDSetPTS() is supported but fails:
ISO 7816-3:1997 ch. 7.2 PPS protocol page 14 - If the PPS
exchange is unsuccessful, then the interface device shall either
reset or reject the card.
2004-06-25 Ludovic Rousseau
* [r976] src/atrhandler.c: do not #undef ATR_DEBUG since it may be
defined in config.h with ./configure --enable-debugatr
2004-06-23 Ludovic Rousseau
* [r974] src/PCSC/pcsclite.h.in: add definition of
SCARD_PROTOCOL_T15
* [r973] src/atrhandler.c: - set SCARD_PROTOCOL_T15 in
CardCapabilities.AvailableProtocols if T=15 is defined (not yet
used) - in specific mode CardCapabilities.AvailableProtocols
shall also be set the the specified protocol
2004-06-22 Ludovic Rousseau
* [r968] src/winscard_clnt.c: remove the hack introduced in version
1.28. It is no more needed since the changes in version 1.32 of
winscard.c
* [r967] src/prothandler.c: PHSetProtocol(): only try to use
protocols that are available
2004-06-21 Ludovic Rousseau
* [r963] src/atrhandler.c, src/dyn_hpux.c, src/dyn_unix.c,
src/ifdwrapper.c, src/readerfactory.c, src/winscard.c,
src/winscard_clnt.c: local variables reorganisations: - remove
unused variables - remove useless initialisations - move
declaration in the inner block the variable is used
2004-06-18 Ludovic Rousseau
* [r962] src/winscard.c: rewrite the parts managing the protocol in
SCardConnect() and SCardReconnect() to use the new
PHSetProtocol() prototype and simplify the code
* [r961] src/prothandler.c, src/prothandler.h: PHSetProtocol(): -
add a ucDefault argument as the default protocol to use -
completely redesign the function so that IFDSetPTS() is always
called to tell the driver which protocol to use and to initialise
its internal state
* [r960] src/winscard.c: the protocol number in the "Send
Protocol:" debug message was wrong
* [r959] src/eventhandler.c, src/prothandler.c,
src/readerfactory.c, src/winscard.c: update the code to use the
new READER_CONTEXT structure with the struct pubReaderStatesList
*readerState field
* [r958] src/readerfactory.h: in the structure READER_CONTEXT
remove: UCHAR ucAtr[MAX_ATR_SIZE]; DWORD dwAtrLen; DWORD
dwProtocol; DWORD dwStatus; DWORD dwPublicID; and replace them by
a link to the reader structure: struct pubReaderStatesList
*readerState;
The fields (ATR, procotol, state) were duplicated in both
structures PREADER_STATE and READER_CONTEXT. It was useless and
misleading.
It was uneasy to change the ATR or the card protocol after the
card was powered on. A protocol change may occur if the card
supports both T=0 and T=1 and the SCardConnect() does not select
the default protocol.
* [r957] src/ifdwrapper.c, src/ifdwrapper.h: in IFDStatusICC() the
argument pdwProtocol was set as: *pdwProtocol =
rContext->dwProtocol; and rContext was an input argument.
So IFDStatusICC() had _no_ action on pdwProtocol expect make a
copy form an IN parameter to an OUT parameter. This was useless
and misleading. PDWORD pdwProtocol is now removed.
* [r956] src/README_INTERNALS.txt: add a chapter "Memory
structures"
2004-06-17 Ludovic Rousseau
* [r955] src/eventhandler.h: put back the structure name
* [r954] src/pcscdaemon.c, src/readerfactory.c,
src/readerfactory.h: do not use a dwAllocNum argument in
RFAllocateReaderSpace() since the number of contexts is _fixed_
by the declaration of sReadersContexts[].
It may be interpreted as a (false) possibility of dynamicity and
will then cause a buffer overflow if dwAllocNum >
PCSCLITE_MAX_READERS_CONTEXTS
* [r953] src/ifdwrapper.c, src/readerfactory.c: psFunctions.pvf*
fields are function pointers so NULL is more appropriate than 0
* [r952] src/readerfactory.c: correct a bug introduced in version
1.47 that occurs if a reader is muti-slot and no more
sReadersContexts[] entries are available: RFRemoveReader() was
called with a NULL lpcReader
* [r951] src/readerfactory.c: move declaration of dwContextB in the
block it is used
* [r950] src/readerfactory.c: move the lpcStripReader[] declaration
in the block it is used.
* [r949] src/eventhandler.c, src/eventhandler.h,
src/winscard_clnt.c, src/winscard_scf.c: rename the structure
READER_STATES in READER_STATE (singular) since the structure
stores only the state of ONE reader
* [r948] src/PCSC/sys_generic.h, src/PCSC/thread_generic.h,
src/eventhandler.c, src/eventhandler.h, src/hotplug_libusb.c,
src/hotplug_linux.c, src/pcscdaemon.c, src/powermgt_generic.c,
src/powermgt_generic.h, src/sys_unix.c, src/thread_unix.c,
src/tokenparser.l, src/winscard_msg.h, src/winscard_scf.c,
src/winscard_svc.c, src/winscard_svc.h: correct foobar();
prototypes in foobar(void);
* [r947] src/readerfactory.c, src/readerfactory.h: complete the
prototypes of RFSuspendAllReaders() and RFAwakeAllReaders()
* [r946] src/readerfactory.h: psCapabilites and psProtOptions
fields are not used in struct ReaderContext so "#if 0" them
2004-06-16 Ludovic Rousseau
* [r945] src/prothandler.c: PHSetProtocol() correctly return the
selected protocol
* [r944] src/winscard.c: print the Send Protocol in T=? format
instead of internal representation value.
2004-06-15 Ludovic Rousseau
* [r943] src/winscard.c: improve my previous patch: correctly print
an unknown Active Protocol if it happens
* [r942] ., .cvsignore: add ChangeLog.cvs
* [r941] src/winscard.c: print the "real" active protocol in the
format T=? instead of the internal representation of that value
(T=0 is coded as 1)
2004-06-11 Ludovic Rousseau
* [r939] configure.in: 1.2.9-beta3
* [r938] Makefile.am: ChangeLog.cvs is not a .PHONY target but a
real file
* [r937] doc/ifdhandler-3.tex: - add documentation for
LTPBundleFindValueWithKey, debug_msg and debug_xxd - ifdhandler.h
moved in PCSC/ifdhandler.h
2004-06-10 Ludovic Rousseau
* [r936] m4/acx_pthread.m4: version 1.9 to add support of GNU Pth
(http://www.gnu.org/software/pth/)
* [r935] src, src/.cvsignore, src/PCSC, src/PCSC/.cvsignore:
pcsclite.h moved from src/ to src/PCSC/
* [r934] libmusclecard/src/PCSC/mscdefines.h,
libmusclecard/src/PCSC/musclecard.h, src/PCSC/pcsclite.h.in,
src/PCSC/winscard.h: simplify: #if defined(__APPLE__) #include
<PCSC/wintypes.h> #else #include <wintypes.h> #endif since we now
use PCSC/ for all Unix platforms
* [r933] src/PCSC/ifdhandler.h: include PCSC/pcsclite.h instead of
pcsclite.h
* [r932] configure.in, src/Makefile.am: src/pcsclite.h moved in
src/PCSC/pcsclite.h
* [r931] doc/example/pcsc_demo.c, libmusclecard/src/musclecard.c,
libmusclecard/src/muscletest.c, libmusclecard/src/tokenfactory.c,
libmusclecard/src/tokenfactory.h,
libmusclecard/utils/bundleTool/bundleTool.c, src/atrhandler.c,
src/configfile.l, src/debuglog.c, src/dyn_hpux.c,
src/dyn_macosx.c, src/dyn_unix.c, src/eventhandler.c,
src/hotplug_generic.c, src/hotplug_libusb.c, src/hotplug_linux.c,
src/hotplug_macosx.c, src/ifdwrapper.c, src/pcscdaemon.c,
src/powermgt_generic.c, src/powermgt_macosx.c, src/prothandler.c,
src/readerfactory.c, src/sys_unix.c, src/testpcsc.c,
src/thread_unix.c, src/tokenparser.l, src/utils/formaticc.c,
src/utils/installifd.c, src/winscard.c, src/winscard_clnt.c,
src/winscard_msg.c, src/winscard_scf.c, src/winscard_svc.c: use
the new PCSC/ location for header files
* [r930] src/Makefile.am: install the exported header files in
../include/PCSC/ to avoid name polution in ../include/ also
install parser.h
* [r929] src/PCSC/pcsclite.h.in: use /* */ instead of // for
comments
* [r928] src/readerfactory.c: rework RFSetReaderName() to simply
the code and always start with the lowest number available (like
in previous pcsc-lite version)
2004-06-09 Ludovic Rousseau
* [r926] src/hotplug_libusb.c: use a dynamic array for available
USB drivers: - avoid a buffer overflow (argh!) - allow to use
more than 16 drivers/supported readers
* [r925] doc/example/pcsc_demo.c: replace SCARD_PROTOCOL_ANY by
SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1 since SCARD_PROTOCOL_ANY is
_not_ defined by Microsoft PC/SC and is not equals to
SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1
SCARD_PROTOCOL_ANY is deprecated and should not be used!
* [r924] src/prothandler.c: improve debug messages and comments
* [r923] src/winscard.c: remove useless ' ' at the end of some
lines
* [r922] src/atrhandler.c: - add support of specific mode by the
presence of TA2 (protocol not negociable) - improve debug
messages
* [r921] src/atrhandler.c: code reindentation and remove useless
blank and { } lines
* [r920] src/atrhandler.c: make debug messages work when ATR_DEBUG
is set
2004-06-08 Ludovic Rousseau
* [r919] src/PCSC/ifdhandler.h: add #include <pcsclite.h>
2004-06-07 Ludovic Rousseau
* [r918] src/thread_unix.c: remove two unused #define
* [r917] configure.in: a lexer library (lex or flex) is mandatory
to parse /etc/reader.conf so exit ./configure if none is found
* [r916] configure.in, src/Makefile.am: the libpcsclite library
does not compile and work without a thread library even with
--disable-threadsafe
2004-06-05 Damien Sauveron
* [r915] src/utils/formaticc.c: Change the names of the types
LPCSTR to LPCTSTR and LPSTR to LPTSTR to be compliant with the
Microsoft SCard API
* [r914] src/tokenparser.l: Add the include needed <errno.h>
* [r913] src/winscard_scf.c: Add a note about 2 unused functions in
the SCF part.
* [r912] doc/example/pcsc_demo.c, doc/pcsc-lite.tex,
src/PCSC/ifdhandler.h, src/PCSC/winscard.h, src/PCSC/wintypes.h,
src/eventhandler.c, src/ifdwrapper.c, src/readerfactory.c,
src/readerfactory.h, src/winscard.c, src/winscard_clnt.c,
src/winscard_scf.c: Change the names of the types LPCSTR to
LPCTSTR and LPSTR to LPTSTR to be compliant with the Microsoft
SCard API
* [r911] src/winscard_clnt.c: Add the two inline in the
declarations to avoid warning
2004-05-30 Ludovic Rousseau
* [r909] src/tokenparser.l: display the error message (errno) if
the bundle file cannot be opened
2004-05-26 Ludovic Rousseau
* [r908] src/winscard_clnt.c: declare internal only function as
"static" (and two one-line functions as "inline")
* [r907] src/PCSC/thread_generic.h, src/eventhandler.c,
src/hotplug_libusb.c, src/winscard_svc.c: add a ' ' argument in
PCSCLITE_THREAD_FUNCTION( ) so that old gcc (gcc-2.95) does not
comply with "macro `PCSCLITE_THREAD_FUNCTION' used without args"
any more.
* [r902] doc/pcsc-lite.tex: add "Some SCardControl commands"
section (IFD_EXCHANGE and VERIFY_PIN)
* [r901] doc/pcsc-lite.bib: add CCID spec reference
2004-05-25 Ludovic Rousseau
* [r899] doc/example/pcsc_demo.c: signedness issue detected by gcc
-pedantic
* [r898] src/thread_unix.c: remove useless { } and simplify the
code
* [r897] libmusclecard/src/muscletest.c, src/PCSC/debuglog.h,
src/PCSC/thread_generic.h, src/debuglog.c, src/dyn_macosx.c,
src/eventhandler.c, src/hotplug_libusb.c, src/hotplug_linux.c,
src/hotplug_macosx.c, src/powermgt_macosx.c, src/testpcsc.c,
src/thread_unix.c, src/utils/formaticc.c, src/winscard_msg.c,
src/winscard_svc.c: recompile using -pedantic and correct lots of
cast "problems"
2004-05-24 Ludovic Rousseau
* [r884] src/configfile.l: - allow ':' in DEVICENAME - use ':' to
indicate a non-real device (do not test for its existence as a
file). You can use this in something like "net://1.2.3.4/foobar"
to indicate a reader on a remote machine like an X11 terminal.
2004-05-19 Ludovic Rousseau
* [r883] doc/pcsc-lite.tex: for SCardConnect() -
dwPreferredProtocols is a bit mask of acceptable protocols -
SCARD_SHARE_DIRECT can be used to talk to the reader without a
card inserted
2004-05-13 Ludovic Rousseau
* [r870] doc/example/Makefile.am: do not install pcsc_demo since it
is just a sample code for developpers that is not supposed (the
code) to do anything useful
* [r869] ., .cvsignore: ignore autom4te.cache directory
* [r868] src, src/.cvsignore: ignore pcsclite.h since it is
generated from pcsclite.h.in
* [r867] ChangeLog, DRIVERS, README, SECURITY, doc/formaticc.1,
doc/pcsc-lite.tex, doc/pcscd.8.in, doc/reader.conf.5.in,
etc/SmartcardServices, etc/StartupParameters.plist,
etc/pcscd.startup, src/README_INTERNALS.txt: Typos. thanks to
Ville Skytt� for the patches
* [r866] src/Makefile.am: install ifdhandler.h so drivers can use
it for compilation. Patch by Ville Skytt�
2004-05-12 Ludovic Rousseau
* [r865] etc/Makefile.am: remove reader.conf from EXTRA_DIST since
it is already in sysconf_DATA
* [r864] etc/reader.conf.in: comment the configuration lines since
they are not valid and will prevent the start of pcscd if they
are not modified
* [r859] configure.in: use the modern form for AC_INIT() instead of
the deprecated one.
* [r858] src/PCSC/pcsclite.h.in: use @VERSION@ for
PCSCLITE_VERSION_NUMBER instead of a manual value. Thanks to
Damien Sauveron for the idea.
* [r857] src/utils/Makefile.am: install bundleTool and installifd
in ../sbin/ instead of ../bin/
2004-05-11 Ludovic Rousseau
* [r855] ChangeLog: release 1.2.9-beta2
* [r854] configure.in, src/PCSC/pcsclite.h.in: beta2 version
* [r853] src/Makefile.am: change libmusclecard current version to 1
so that old libmusclecard0 and new libmusclecard1 can cohabitate
on the same system and will not break existing programs during
upgrades.
This is because libmusclecard is provided in the same
distrib/package as libpcsclite. If we want two libpcsclite to
cohabitate we must also ensure that the two libmusclecard can
also cohabitate.
* [r852] doc/Makefile.am: generate local icons for the latex2html
generated pages
* [r851] DRIVERS: add a / at the end of URLs and directory names
* [r850] src/pcscdaemon.c: print pcsc-lite version number during
startup
2004-05-10 Ludovic Rousseau
* [r849] src/Makefile.am: install pcsclite.h instead of
pcsclite.h.in
* [r848] doc/pcsc-lite.tex: add the chapter "Multithreading and
contexts"
* [r847] doc, doc/.cvsignore: ignore ifdhandler-3 temporary files
* [r846] doc/pcscd.8.in: some rewrite
* [r845] doc/formaticc.1: caracters -> characters
* [r844] libmusclecard/utils/bundleTool/bundleTool.8.in,
libmusclecard/utils/bundleTool/bundleTool.c: approprate ->
appropriate
* [r843] ChangeLog, HELP, NEWS, README, configure.in,
doc/formaticc.1, doc/pcsc-lite.tex, doc/pcscd.8.in,
etc/SmartcardServices, etc/StartupParameters.plist,
libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/muscletest.c,
libmusclecard/utils/bundleTool/bundleTool.8.in, src/debuglog.c,
src/utils/formaticc.c: smartcard -> smart card, musclecard ->
MuscleCard
* [r842] doc/Makefile.am: add ifdhandler-3.tex ifdhandler-3.pdf
* [r841] doc/ifdhandler-3.tex: IFD Handler API in LaTeX format
* [r839] src/winscard.c: in SCardReconnect(), SCardDisconnect() and
SCardEndTransaction() SCARD_UNPOWER_CARD is "Power down the card
and reset it (Cold Reset)" so we really power down _and_ then
power up the card.
2004-05-07 Ludovic Rousseau
* [r838] configure.in: the comment for --enable-extendedapdu was
wrong. The maximum APDU size is 32KB and not 128KB. Thanks to
Damien Sauveron.
2004-05-06 Ludovic Rousseau
* [r834] ChangeLog: release 1.2.9-beta1
* [r833] configure.in, src/PCSC/pcsclite.h.in: version 1.2.9-beta1
* [r832] src/ifdwrapper.c: in IFDControl_v2 and IFDControl test the
ifd handler version and possibly return before the critical
section (mutex)
* [r831] src/ifdwrapper.c: in IFDControl_v2() and IFDControl(), do
not return between SYS_MutexLock and SYS_MutexUnLock but set rv
to the correct value. Otherwise the daemon is dead locked.
* [r830] src/hotplug_generic.c, src/hotplug_macosx.c: add an empty
HPStopHotPluggables() function
* [r829] libmusclecard/src/muscletest.c: use the local pcsclite.h
instead of the (old) one already installed
This was problematic for MacOSX since winscard.h wanted to
include <PCSC/pcsclite.h> which is the old and incompatible one.
* [r828] configure.in, src/Makefile.am, src/PCSC/pcsclite.h.in: add
support of --enable-extendedapdu argument to allow the use of big
APDUs (up to 128 KBytes)
* [r827] src/winscard_msg.c: minor reindentations
* [r826] src/winscard_svc.c: in SCardSetAttrib() the cbAttrLen is a
DWORD and not a LPDWORD so use gsStr->cbAttrLen instead of
&gsStr->cbAttrLen. Bad cut-n-paste here!
2004-05-03 Ludovic Rousseau
* [r823] src/readerfactory.c: - rename dwFeeds and dwMutex to
pdwFeeds and pdwMutex since they are pointers - add a check to
avoid removing an aleady removed driver (closes bug [ #300684 ]
pcscd segfaults on 'if (*sContext->dwMutex == 1)')
* [r822] src/readerfactory.h: rename dwFeeds and dwMutex to
pdwFeeds and pdwMutex since they are pointers
2004-04-27 Ludovic Rousseau
* [r821] doc/pcsc-lite.tex: patch from Damien Sauveron to rectify
the source code examples.
2004-04-21 Ludovic Rousseau
* [r820] doc/Makefile.am: do not stop if pcsc-lite does not exist
and is removed
* [r819] doc/Makefile.am: distribute pcsc-lite.tex
* [r818] doc/pcsc-lite.tex: - SCardControl new API - add
SCardGetAttrib()/SCardSetAttrib()
* [r817] libmusclecard/src/tokenfactory.c, src/dyn_hpux.c,
src/dyn_macosx.c, src/dyn_unix.c, src/eventhandler.c,
src/pcscdaemon.c, src/powermgt_macosx.c, src/prothandler.c,
src/readerfactory.c, src/sys_unix.c, src/winscard.c,
src/winscard_clnt.c, src/winscard_msg.c, src/winscard_svc.c:
remove the function names from the debug messages
* [r816] src/PCSC/debuglog.h: add __FUNCTION__ in the debug
messages
2004-04-19 Damien Sauveron
* [r815] src/pcscdaemon.c: Typo in email address.
2004-04-19 Ludovic Rousseau
* [r814] src/pcscdaemon.c: update copyright date
* [r813] src/PCSC/pcsclite.h.in: add SCARD_ATTR_* tags for
SCardGetAttrib()
* [r812] src/ifdwrapper.c: RxBuffer argument of IFDControl is
LPVOID and not LPCVOID
* [r811] src/PCSC/ifdhandler.h: FDHControl() argument lpInBuffer
and lpOutBuffer are LPCVOID and LPVOID and not PUCHAR
* [r810] src/testpcsc.c: add test for SCardSetAttrib()
* [r809] src/PCSC/winscard.h, src/winscard.c, src/winscard_clnt.c,
src/winscard_msg.h, src/winscard_svc.c: add support for
SCardGetAttrib() and SCardSetAttrib()
* [r803] src/testpcsc.c: do not ask for reader number if only one
reader is present
* [r802] src/testpcsc.c: remove useless REPEAT_TEST conditional
code
* [r801] src/testpcsc.c: test SCardGetAttrib()
* [r800] src/ifdwrapper.h: lpOutBuffer argument is LPVOID not
LPCVOID in IFDControl
2004-04-16 Ludovic Rousseau
* [r799] src/testpcsc.c: do not SCardReleaseContext() in case of
error in SCardControl test
* [r798] src/PCSC/winscard.h, src/ifdwrapper.c, src/ifdwrapper.h,
src/winscard.c, src/winscard_clnt.c, src/winscard_msg.h,
src/winscard_svc.c: add support of the new IFDHControl() API
* [r797] src/testpcsc.c: add a test for SCardControl()
* [r796] src/PCSC/ifdhandler.h: rename IFDHControl() to
IFDHControl_v2() and add a new IFDHControl() with the new API
2004-04-15 Ludovic Rousseau
* [r793] src/ifdwrapper.c: remove implicit/useless { }
* [r792] src/README_INTERNALS.txt: document the SCardControl
migration
* [r791] src/winscard_clnt.c, src/winscard_msg.h,
src/winscard_svc.c: pcscd and libpcsclite now exchange a protocol
version to know what API to use
* [r790] src/Makefile.am: change library version to 1:0:0 since the
interface changed
* [r789] doc, doc/.cvsignore: ignore LaTeX temporary files
* [r788] doc/pcsc-lite.bib: bibliography in BibTeX format
* [r787] doc/Makefile.am: - generate .pdf from .tex - distribute
the generated pcsc-lite.pdf
* [r786] doc/pcsc-lite-0.8.7.pdf, doc/pcsc-lite.tex: the pcsc-lite
pdf documentation is now generated from a LaTeX document
2004-04-14 Ludovic Rousseau
* [r785] src/pcscdaemon.c: document in the help text that
'--foreground' imply '--debug stderr'
* [r784] src/winscard_msg.h: add a dummy field (to replace
request_id) in sharedSegmentMsg to have the same structure size
as in previous pcsc-lite versions so that a new pcscd can talk to
an old libpcsclite and vice-versa.
* [r783] src/debuglog.c: add a default case in
pcsc_stringify_error()
2004-04-13 Ludovic Rousseau
* [r782] src/testpcsc.c: test SCardListReaderGroups()
2004-04-06 Ludovic Rousseau
* [r767] src/winscard.c: remove the code to map SCARD_UNPOWER_CARD
on IFD_RESET. SCARD_UNPOWER_CARD is power down and power up (cold
reset) => IFD_POWER_DOWN SCARD_RESET_CARD is just power up (warm
reset) => IFD_RESET
2004-04-05 Ludovic Rousseau
* [r765] doc/example/pcsc_demo.c: initialize readers to NULL to
avoid a "`readers' might be used uninitialized" compilation
warning
2004-04-02 Ludovic Rousseau
* [r761] configure.in, doc/Makefile.am: add support for
doc/reader.conf.5
* [r760] doc/reader.conf.5.in: new manpage
* [r759] libmusclecard/utils/bundleTool/bundleTool.8.in: typos
* [r758] doc/example/pcsc_demo.c: add two missing free()
2004-04-01 Ludovic Rousseau
* [r757] src/hotplug_libusb.c: do not try to restart a USB driver
if the first execution fails (because of a bug in the driver or
whatever) since the next execution of the driver will, with a
great probability, also fail. The user has to unplug/replug the
reader to restart the driver. This prevents to fill the system
logs with an error message every 1 second.
* [r756] doc/example/pcsc_demo.c: remove a useless occurence of
PCSCLITE_MAX_READERS_CONTEXTS
2004-03-31 Ludovic Rousseau
* [r754] src/readerfactory.c: use sizeof(lpcStripReader) instead of
MAX_READERNAME
* [r753] libmusclecard/src/muscletest.c: also print tokenType field
as a number and string
* [r752] libmusclecard/src/musclecard.c: Initialize
currentToken->tokenType in MSCListTokens(). Closes "[ #300607 ]
MSCListTokens should set tokenType to know state before OR
operation"
* [r751] libmusclecard/src/musclecard.c: replace some 0 bu NULL for
pointers
* [r750] libmusclecard/src/muscletest.c: - replace 0 by NULL -
remove some { } for one line blocks
* [r749] doc/example/pcsc_demo.c: recode the readers enumeration to
avoid the use of PCSCLITE_MAX_READERS_CONTEXTS
* [r748] libmusclecard/src/PCSC/mscdefines.h: use SCARDCONTEXT and
SCARDHANDLE instead of MSCLong32
* [r747] src/PCSC/winscard.h: use SCARDCONTEXT, DWORD,
LPSCARDHANDLE, etc. instead of long, unsigned long, long *, etc.
to be more Windows PC/SC compliant
* [r746] src/winscard_clnt.c: remove two "by najam" comments
* [r745] src/PCSC/pcsclite.h.in: use MAX_ATR_SIZE instead of 33 in
the declaration of SCARD_READERSTATE_A
* [r744] src/PCSC/pcsclite.h.in: proposed patch: define
PCSCLITE_MAX_READERS with a deprecated attribute
2004-03-30 Ludovic Rousseau
* [r743] src/pcscdaemon.c: remove the warning if no
/etc/reader.conf is found. It is normal to not have an
/etc/reader.conf for USB readers only.
* [r742] src/configfile.l: print a warning if the LIBPATH contains
".bundle". USB drivers SHOULD NOT be declared in reader.conf
* [r741] src/configfile.l: add strerror(errno) in the error
message.
* [r740] src/configfile.l: use NULL instead of 0
* [r739] src/configfile.l: code reindentation
* [r735] etc, etc/.cvsignore: remove etc/ from filename
* [r734] ., .cvsignore: remove PCSC/ from filenames
* [r733] ., .cvsignore: files to ignore by CVS
2004-03-28 Ludovic Rousseau
* [r732] src/readerfactory.c: simplify a bit an hex->decimal
conversion
* [r731] src/readerfactory.c: left shift one bloc of code that was
in a isolated { }
* [r730] src/readerfactory.c: remove { } for one instruction if ()
blocs
* [r729] src/readerfactory.c: use a direct "DWORD
dwNumReadersContexts" instead of an indirect "DWORD
*dwNumReadersContexts". This will remove bugs like the one at
line 90: "if (dwNumReadersContexts != 0)" is not "if
(*dwNumReadersContexts != 0)"
2004-03-24 Ludovic Rousseau
* [r728] libmusclecard/src/tokenfactory.c: correct atrString[]
buffer size. The ATR is in ASCII so it must be MAX_ATR_SIZE*2 +1
2004-03-23 Ludovic Rousseau
* [r727] src/hotplug_libusb.c: add void argument in
HPStopHotPluggables()
* [r726] src/readerfactory.c: initialize vHandle field to NULL in
RFAllocateReaderSpace() (caused a crash under MacOS X)
* [r725] src/pcscdaemon.c: add the errno text message if specified
reader.conf file is not found
* [r724] src/pcscdaemon.c: use PCSCLITE_READER_CONFIG instead of
reader.conf in debug message
2004-03-20 Ludovic Rousseau
* [r721] src/hotplug_linux.c: add support for HPStopHotPluggables()
2004-03-19 Ludovic Rousseau
* [r720] doc, doc/.cvsignore, doc/example, doc/example/.cvsignore,
etc, etc/.cvsignore, m4, m4/.cvsignore, src, src/.cvsignore,
src/utils, src/utils/.cvsignore, win32, win32/.cvsignore: new
files to ignore files not in CVS
* [r719] src/winscard.c: really reset the card when asked to in
SCardReconnect()
* [r718] src/winscard_clnt.c: This is hack to allow a change of ATR
at Reconnect without physically changing the card. This should
not happen in real life so should not be problematic and so is
active by default (ATR_CHANGE_AT_RECONNECT).
* [r717] src/winscard_clnt.c: remove duplicated SYS_MutexUnLock()
in SCardStatus()
2004-03-18 Ludovic Rousseau
* [r715] src/pcscdaemon.c: call HPStopHotPluggables() before
stopping the drivers to avoid a new reader detection/start by
hotplug when we want to stop everything
* [r714] src/hotplug.h, src/hotplug_libusb.c: add
HPStopHotPluggables() to exit the hotplug thread
* [r713] src/pcscdaemon.c: set AraKiri to TRUE instead of 1
* [r712] doc/example/pcsc_demo.c: - add SCardReconnect() sample
code - allow to select the reader number instead of selecting
always the first one
2004-03-11 Ludovic Rousseau
* [r711] src/PCSC/pcsclite.h.in: version 1.2.1
2004-03-02 Ludovic Rousseau
* [r710] configure.in: version 1.2.1
2004-02-23 Ludovic Rousseau
* [r705] src/hotplug_libusb.c: use deviceName defined as
usb:idVendor/idProduct:libusb:busname:filename in
HPAddHotPluggable(). This should avoid wrong USB enumeration when
used in IFDHCreateChannelByName()
2004-02-11 Ludovic Rousseau
* [r684] ChangeLog: merge 1.2.0 final branch
2004-02-04 Ludovic Rousseau
* [r675] src/hotplug_linux.c: DIR in --enable-usbdropdir=DIR may
not finish by / in (deprecated) hotplug_linux.c
2004-01-24 Ludovic Rousseau
* [r646] etc/reader.conf.in: use "DEVICENAME
/dev/ttySx_not_configured" to make it (more) clear it should be
configured.
* [r645] etc/reader.conf.in: reader.conf may also be needed for
PCMCIA readers and not olny serial.
2004-01-23 Ludovic Rousseau
* [r644] etc/reader.conf.in: add a note: "This file has to be
configured for serial readers only."
* [r643] src/winscard_clnt.c: check that
psContextMap[dwContextIndex].psChannelMap[dwChannelIndex].readerName
is non NULL before accessing it in strcmp()
2004-01-22 Antti Tapaninen
* [r642] src/winscard_clnt.c, src/winscard_svc.c: - Simplify the
psContext/psContextMap declarations to fix build conflicts
against some operating systems headers.
2004-01-21 David Corcoran
* [r639] src/debuglog.c: Changed unsigned char * to char * and did
some typecasting to get rid of warnings when building in 64bit
mode ...
2004-01-21 Damien Sauveron
* [r638] src/thread_unix.c: Remove an useless include
2004-01-20 Ludovic Rousseau
* [r637] src/hotplug_linux.c, src/hotplug_macosx.c: correct comment
about empty deviceName argument
2004-01-19 Damien Sauveron
* [r636] src/ifdwrapper.c: Use the device name to create channel
only if defined.
* [r635] src/hotplug_linux.c, src/hotplug_macosx.c: Add an empty
parameter for deviceName to allow the compilation.
* [r634] src/winscard_msg.c: Remove the useless include of
sys/mman.h
2004-01-18 Damien Sauveron
* [r633] src/debuglog.c: Remove unused function.
2004-01-16 Damien Sauveron
* [r632] src/PCSC/ifdhandler.h, src/PCSC/thread_generic.h,
src/configfile.l, src/hotplug_libusb.c, src/ifdwrapper.c,
src/ifdwrapper.h, src/readerfactory.c, src/thread_unix.c,
src/winscard_clnt.c, src/winscard_msg.c, src/winscard_msg.h,
src/winscard_svc.c, src/winscard_svc.h: Update the copyright.
* [r631] src/pcscdaemon.c: Add my name, my email and the copyright.
* [r630] src/winscard_clnt.c: Remove the useless PID information
field. Also remove the WrapSHMWrite argument related to PID
information.
* [r629] src/winscard_msg.c: Remove an useless information field of
the messages sent by the client to the server. Also remove in the
prototype of WrapSHMWrite the parameter related to the deleted
field.
* [r628] src/winscard_msg.h: Remove a useless information field of
the messages sent by the client to the server. Also remove in the
prototype of WrapSHMWrite the parameter related to the deleted
field.
* [r627] src/readerfactory.c: Correct the indentation of some lines
and add debug information.
* [r626] src/winscard_svc.c: Cleanup the code.
* [r625] src/powermgt_macosx.c: Modify the output of the debug
message.
2004-01-15 David Corcoran
* [r624] src/utils/sample.in: Changed Co to C(ZERO) instead. The Oh
caused big problems with formaticc
* [r623] src/testpcsc.c: Needed to define dwAtrLen so it would not
just pick up garbage for SCardStatus.
* [r622] src/winscard_clnt.c: In SCardStatus some of the memcopy's
and strcpy's were occurring before bounds checking.
* [r621] src/winscard_clnt.c: Changed error return from
SYS_OpenFile of PCSCLITE_PUBSHM_FILE from UNKNOWN to
SCARD_E_NO_SERVICE. Sorry for no diffs, I'll put them in next
time ...
2004-01-14 Ludovic Rousseau
* [r605] AUTHORS: reformat and add Damien Sauveron and Antti
Tapaninen
2004-01-14 Damien Sauveron
* [r604] src/ifdwrapper.c, src/readerfactory.c: Add the support of
IFDHandler interface v3
* [r603] src/ifdwrapper.h: Modify the prototype of IFDOpenIFD.
* [r602] src/readerfactory.h: Add the function's pointer for the
new function introduced in IFDHandler interface v3
* [r601] src/PCSC/pcsclite.h.in: Define the length maximum of a
device name.
* [r600] src/hotplug_libusb.c: Get the device name of the USB
device and give it to RFAddReader.
* [r599] src/configfile.l: Give the device name to RFAddReader
* [r598] src/readerfactory.h: Add a new parameter to the prototype
of RFAddReader according to the changes in readerfactory.c
* [r597] src/readerfactory.c: Add a new parameter to RFAddReader to
get the device name
* [r596] src/readerfactory.h: Add the device name
* [r595] src/PCSC/ifdhandler.h: Add the prototype of the new
function introduced in the IFDHandler interface v3
* [r594] src/configfile.l: Remove a line commited by error. Sorry.
* [r593] src/configfile.l: Check that DEVICENAME and LIBPATH files
exist and if an error occurs during the parsing the reader is not
added.
2004-01-13 Ludovic Rousseau
* [r592] src/hotplug_macosx.c: small code reorganisation for an
easier reading
* [r591] src/configfile.l: use macro DebugLogB() instead of
debug_msg()
2004-01-13 Damien Sauveron
* [r590] src/ifdwrapper.c, src/readerfactory.c: Modify tests in
order to be homogeneous with those for next IFDHandlers versions
2004-01-13 Ludovic Rousseau
* [r589] Makefile.am: simplify the perl expression in ChangeLog.cvs
rule
* [r588] make-dirs/README: reformat to 72 columns
2004-01-12 David Corcoran
* [r587] make-dirs/Makefile.solaris, make-dirs/README,
make-dirs/config.h: Added README for Makefile directory and
sample config.h
* [r586] make-dirs, make-dirs/Makefile.solaris: C Adding make-dirs
plus Makefiles for certain configurations when people don't want
to try and fix autoconf
VS:
----------------------------------------------------------------------
2004-01-12 Ludovic Rousseau
* [r585] src/hotplug_libusb.c: correct the file header. It was a
cut-n-paste from hotplug_linux.c
2004-01-08 Ludovic Rousseau
* [r583] src/hotplug_macosx.c: buffer overflow: the driver list was
not terminated and caused crashes.
* [r582] src/pcscdaemon.c: correct my email address
2003-12-16 Ludovic Rousseau
* [r577] src/winscard_svc.c: code reordering to make it a bit more
clear
2003-12-16 Damien Sauveron
* [r576] src/winscard_msg.h, src/winscard_svc.h: Remove the old
functions and add the new functions
* [r575] src/winscard_msg.c: Set up the new functions needed by the
thread handling the client connection/disconnection and needed by
the thread handling the requests in a context
* [r574] src/winscard_svc.c: Design to handle all the requests in
the context
* [r573] src/pcscdaemon.c: Change the design of pcscdaemon. It gets
the connection/disconnection from the client to the server
(create/destroy a context), creates a new thread and then this
thread will manage all the requests for this context
* [r572] src/winscard_clnt.c: Add mutex for each context and remove
the global mutex except for some operations
* [r571] src/PCSC/thread_generic.h, src/thread_unix.c: Add
functions for identify and compare threads
2003-12-11 David Corcoran
* [r567] src/winscard_scf.c: Index: winscard_scf.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/winscard_scf.c,v retrieving
revision 1.8 diff -r1.8 winscard_scf.c 52c52 < BYTE bufferLength;
--- > LONG bufferLength;
The byte buffer length would break any APDU over 255 bytes.
2003-12-08 Ludovic Rousseau
* [r566] etc/pcscd.startup: use /etc/sysconfig/pscsd and correct
some typos
2003-11-20 Ludovic Rousseau
* [r562] m4/acx_pthread.m4: new upstream version to avoid checking
for pthread.h which does not exist on *BSD
2003-11-18 Ludovic Rousseau
* [r561] src/dyn_win32.c: revert test of return value from
FreeLibrary. Thanks to Peter Williams for the patch.
http://archives.neohapsis.com/archives/dev/muscle/2003-q4/0136.html
2003-11-09 Antti Tapaninen
* [r560] pbx/config.h, pcsc.pbproj/project.pbxproj: - Upgrade MacOS
X project build files for XCode
* [r559] doc/example/pcsc_demo.c: - Build fix
* [r558] src/PCSC/pcsclite.h.in: - Cleanups
* [r557] libmusclecard/utils/bundleTool/bundleTool.c,
src/PCSC/pcsclite.h.in: - Allow regular pcsclite.h to be used
under win32 platform
2003-11-05 Ludovic Rousseau
* [r555] libmusclecard/src/libmusclecard.pc.in,
src/libpcsclite.pc.in: add muscledropdir (in libmusclecard) and
usbdropdir (in libpcsclite) so we can use `pkg-config libpcsclite
--variable=usbdropdir` to find the directory to use. Should be
used by drivers and plugins installation. Thanks to Ville Skytt�
for the patch.
2003-11-02 Ludovic Rousseau
* [r546] libmusclecard/utils/bundleTool/bundleTool.c: port under
Win32 (patch from Peter Williams) and some code cleanup
2003-10-30 Ludovic Rousseau
* [r540] src/PCSC/pcsclite.h.in: changed back
PCSCLITE_MAX_READERS_CONTEXTS from 256 to 16. 16 readers is
clearly enough for most users. The correct solution is to use a
list instead of an array.
* [r539] src/PCSC/pcsclite.h.in: remove definition of
PCSCLITE_MAX_COMSIZE (Maximum arg size) now useless
* [r538] src/pcscdaemon.c: - send debug to syslog by default - send
debug to stderr if --foreground|-f is used (no need to add
--debug stderr anymore) - use strcmp() instead of strncmp() in
--debug parsing since one argument has a fixed size anyway -
define and use TRUE/FALSE constants
* [r537] src/PCSC/debuglog.h, src/debuglog.c: remove log to a file
service since it was not used.
2003-10-29 Damien Sauveron
* [r527] src/pcscdaemon.c: Add the option [-a] to the usage of
pcscd
* [r526] etc/pcscd.startup: Solve a problem of recognizition by
serviceconf (patch from Tommaso Cucinotta)
2003-10-23 Damien Sauveron
* [r519] src/winscard_svc.c: Sorry I have done an error in the name
that I want! Now it is the good name for this structure
* [r518] src/winscard_svc.c: Change the name of a structure to
better explain its usage
2003-10-22 Damien Sauveron
* [r517] src/winscard_msg.c: Add a debug message when a client
disappears
* [r516] src/pcscdaemon.c: Move a debug message in an other file to
have the good client number when it disappears
2003-10-21 Antti Tapaninen
* [r515] src/PCSC/pcsclite.h.in, src/winscard_scf.c: - Potential
security fixes to SCF client
* [r514] src/hotplug_libusb.c, src/hotplug_linux.c,
src/hotplug_macosx.c: - More merging between the hotplug
implementations - Get rid of some internal limitation defines,
there seems to be more than enough of these things in pcsclite.h
already
* [r513] libmusclecard/src/tokenfactory.c, src/PCSC/parser.h,
src/hotplug.h, src/hotplug_libusb.c, src/hotplug_linux.c,
src/hotplug_macosx.c: - Move all common hotplug defines into
hotplug.h - Remove extra LTPBundleFindValueWithKey declarations
* [r512] src/pcscdaemon.c, src/readerfactory.c: - errno.h cleanups
* [r511] win32/PCSC.dsp: - Forgot to commit
* [r510] win32/Makefile.am, win32/win32_pcsclite.h: - Remove
win32_pcsclite.h, it's out of sync anyway and the one who wishes
to use pcsc-lite under win32 platform in any situation should
probably patch src/pcsclite.h and renew win32/config.h.
2003-10-20 Damien Sauveron
* [r509] src/PCSC/pcsclite.h.in: Increase the max readers contexts
value
* [r508] src/readerfactory.c: Support of 255 readers max
* [r507] src/winscard_svc.c: Correct a bug introduce by me. Sorry.
It will be good in the future to improve this part
* [r506] src/hotplug_libusb.c, src/hotplug_linux.c: Correct with
the goods concepts constants
* [r505] src/readerfactory.c: Change variables names
* [r504] src/winscard_clnt.c: Correct with the goods concepts
constants, correct some comments and variable name
* [r503] src/winscard_svc.c: Correct with the goods concepts
constants
* [r502] src/eventhandler.c, src/pcscdaemon.c, src/readerfactory.c,
src/readerfactory.h: Correct with the goods concepts constants
* [r501] doc/example/pcsc_demo.c: Correct with the good concept
* [r500] src/PCSC/pcsclite.h.in: Introduce the limitations about
the concepts
* [r499] src/README_INTERNALS.txt: A clean up.
* [r498] src/README_INTERNALS.txt: Add a description of PC/SC Lite
Concepts.
2003-10-18 Ludovic Rousseau
* [r497] doc/example/pcsc_demo.c: put back the GNU GPL license
since it is not protected by the BSD license used by the other
files.
2003-10-18 Antti Tapaninen
* [r496] src/configfile.l, src/tokenparser.l: - Unify the
copyright/description header part for most of the files
* [r495] doc/example/pcsc_demo.c,
libmusclecard/src/PCSC/mscdefines.h,
libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c, libmusclecard/src/muscletest.c,
libmusclecard/src/tokenfactory.c,
libmusclecard/src/tokenfactory.h,
libmusclecard/utils/bundleTool/bundleTool.c, src/PCSC/debuglog.h,
src/PCSC/dyn_generic.h, src/PCSC/ifdhandler.h, src/PCSC/parser.h,
src/PCSC/pcsclite.h.in, src/PCSC/sys_generic.h,
src/PCSC/thread_generic.h, src/PCSC/winscard.h,
src/PCSC/wintypes.h, src/atrhandler.c, src/atrhandler.h,
src/configfile.h, src/debuglog.c, src/dyn_hpux.c,
src/dyn_macosx.c, src/dyn_unix.c, src/dyn_win32.c,
src/eventhandler.c, src/eventhandler.h, src/hotplug.h,
src/hotplug_generic.c, src/hotplug_libusb.c, src/hotplug_linux.c,
src/hotplug_macosx.c, src/ifdwrapper.c, src/ifdwrapper.h,
src/pcscdaemon.c, src/powermgt_generic.c, src/powermgt_generic.h,
src/prothandler.c, src/prothandler.h, src/readerfactory.c,
src/readerfactory.h, src/sys_unix.c, src/testpcsc.c,
src/thread_unix.c, src/thread_win32.c, src/utils/formaticc.c,
src/utils/installifd.c, src/winscard.c, src/winscard_clnt.c,
src/winscard_msg.c, src/winscard_msg.h, src/winscard_scf.c,
src/winscard_svc.c, src/winscard_svc.h, win32/win32_pcsclite.h: -
Unify the copyright/description header part for most of the files
* [r494] src/hotplug_libusb.c, src/hotplug_linux.c: - Remove USB
bundle platform (Linux) hardcoding and replace it with PCSC_ARCH.
2003-10-15 Ludovic Rousseau
* [r491] ChangeLog: the release number was wrong :-)
* [r490] ChangeLog: release 1.2.0-rc3
* [r489] Makefile.am: Antti Tapaninen and Damien Sauveron have now
their names in ChangeLog.cvs
* [r488] libmusclecard/src/tokenfactory.c: correct a typo
* [r487] src/winscard_msg.c: perform a round-robbin among clients
to avoid starvation under heavy load. Patch from Bettina
Martelli.
2003-10-15 Damien Sauveron
* [r486] src/winscard_clnt.c: Verify the availabilty of the daemon
before to try a connection.
2003-10-13 Damien Sauveron
* [r485] src/winscard_svc.c: Add a verification before to release a
context.
2003-10-04 Damien Sauveron
* [r484] doc/pcscd.8.in: correct the typo
2003-09-30 Ludovic Rousseau
* [r483] src/winscard_clnt.c: SCardEstablishContextTH: print the
shared file name if open fails
* [r482] src/winscard_clnt.c: send debug to stdout only if the
environment variable MUSCLECARD_DEBUG is defined
* [r481] libmusclecard/src/tokenfactory.c: having a trailing / in
MSC_SVC_DROPDIR (--enable-muscledropdir) is no more mandatory
* [r480] libmusclecard/src/tokenfactory.c: print the directory name
with the error message if opendir failed
2003-09-29 Damien Sauveron
* [r479] src/readerfactory.c: Clean up 2 memory leaks
* [r478] src/readerfactory.c: Clean up the mutex when a reader is
removed if needed. This is a memory leak
* [r477] src/readerfactory.h: Add a field needed for clean up the
mutex when a reader is removed. This is needed since the support
of simultaneous access to slots of a multi-slot reader or
identical reader using the same ifdhandler
* [r476] src/readerfactory.c: Correct a bug introduced by me and
add a copyright.
2003-09-27 Ludovic Rousseau
* [r474] configure.in, libmusclecard/src/libmusclecard.pc.in,
src/Makefile.am: add a new pkg-config file for application using
libmusclecard. Closes "[ #300102 ] Should the pkgconfig file of
1.2.0-rc2 have -lmusclecard?"
2003-09-24 Damien Sauveron
* [r473] src/winscard_msg.c: Some clean up on the debug message and
indentation.
* [r472] src/winscard_svc.c: Move some code to a better position.
2003-09-23 Damien Sauveron
* [r471] src/winscard_msg.c: Some cleanups.
2003-09-23 Ludovic Rousseau
* [r470] configure.in: --enable-libusb was not working correctly is
the lib is not installed in /usr or /usr/local
2003-09-23 Damien Sauveron
* [r469] src/winscard_scf.c: Solve the problem of never exiting the
loop when a smartcard is already inserted in the reader, thus
blocking the application.
2003-09-22 Ludovic Rousseau
* [r458] src/readerfactory.c: initialize valueLength just before
the call to IFDGetCapabilities().
* [r457] src/readerfactory.c: initialize dwGetSize to the size of
the value buffer before calling IFDGetCapabilities().
* [r456] src/debuglog.c: use a local output buffer instead of a
global one to be thread safe
2003-09-19 Ludovic Rousseau
* [r454] configure.in: use AC_HELP_STRING() for a pretty look of
`configure --help'
2003-09-18 Damien Sauveron
* [r452] src/readerfactory.c: Add the support of simultaneous
access on different slots of a reader if the handling is thread
safe.
* [r451] src/PCSC/ifdhandler.h: Add the tag
TAG_IFD_SLOT_THREAD_SAFE for testing if the handling of the slots
is thread safe.
2003-09-17 Damien Sauveron
* [r450] src/readerfactory.c: Add a full clean up when there is no
space for adding all the slots of a multi-slots reader.
* [r449] src/readerfactory.c: Clean up in the RFRemoveReader.
2003-09-16 Antti Tapaninen
* [r447] src/Makefile.am: Put back -rdynamic to pcscd linking
because of some IFD drivers. IMHO this is wrong, but what can you
do.
* [r446] configure.in: Put back AC_PROG_CPP, it has nothing to do
with C++.
2003-09-16 Ludovic Rousseau
* [r442] configure.in: remove useless AC_PROG_CPP (no C++ code in
pcsc-lite)
* [r440] configure.in, src/PCSC/pcsclite.h.in: -rc3 version
(configure.in and src/pcsclite.h _shall_ be in sync)
* [r439] configure.in, src/PCSC/pcsclite.h.in,
src/hotplug_libusb.c: remove / at the end of usbdropdir,
muscledropdir and ipcdir to be more homogeneous
2003-09-15 Damien Sauveron
* [r435] src/readerfactory.c: Add the support of simultaneous
access on the thread safe IFD.
* [r434] src/PCSC/ifdhandler.h: Add the tag TAG_IFD_THREAD_SAFE for
testing if the IFD is thread safe.
2003-09-15 Antti Tapaninen
* [r433] README: Updates to requirements and tested platforms
2003-09-11 Damien Sauveron
* [r432] src/ifdwrapper.c: Better explanation of a comment.
* [r431] src/readerfactory.c: Cleanup a condition unused and undo
some of my previous changes.
2003-09-11 Antti Tapaninen
* [r430] m4, m4/Makefile.am, m4/acx_pthread.m4, win32/Makefile.am:
Add new files needed by the new bootstrap
* [r429] build: Remove build/ directory
* [r428] Makefile.am, bootstrap, configure.in, reconf: - Simplify
the bootstrapping mechanism - Remove reconf
* [r427] config.h.in: Remove config.h.in, doesn't belong to the
repository
* [r426] win32/PCSC.dsp, win32/config.h, win32/win32_config.h:
Rename win32_config.h to config.h
2003-09-10 Damien Sauveron
* [r419] src/readerfactory.c: Cleanup about variables already
initialized and indent of some comments
* [r416] src/PCSC/debuglog.h: Add a comment about the usage of
DebugLogC
2003-09-08 Antti Tapaninen
* [r401] src/hotplug_macosx.c: Warning fix for PCSCLITE_HP_DROPDIR
being already defined
* [r400] src/dyn_unix.c: HP-UX build fix, add sanity checks to not
to use dlfcn if there's native dynamic loading interface
available, like HP-UX and MacOS X does.
The other option would be just to merge all dynamic loading
routines into one file, a lot simpler solution.
* [r399] config.h.in: Bootstrap update
* [r398] configure.in: Finish SCF build support, add sanity checks
* [r397] src/Makefile.am: Add winscard_scf.c to EXTRA_DIST
* [r396] src/winscard_scf.c: Build fixes, add dummy SCardUnload()
* [r395] config.h.in: Bootstrap update
* [r394] configure.in, src/Makefile.am: - Make hotpluging / power
management to compile again - Add MacOS X build fixes
* [r393] src/hotplug_generic.c, src/hotplug_libusb.c,
src/hotplug_linux.c, src/hotplug_macosx.c,
src/powermgt_generic.c: Add necessary ifdef's
* [r392] src/powermgt_macosx.c: Include hotplug.h to avoid warning
message
* [r391] doc/example/pcsc_demo.c,
libmusclecard/utils/bundleTool/bundleTool.c,
src/utils/formaticc.c, src/utils/installifd.c: Build fix for
MacOS X, don't bother including from <PCSC/..>, use standard
header locations.
* [r390] src/winscard_msg.c: Back out socklen_t change that I made
* [r389] src/pcscdaemon.c: Very minor cleanups
* [r388] src/thread_win32.c: Add missing config.h
* [r387] configure.in: - Remove --with-common-dir and overly
complex libsocket, libresolv etc. probes that I added. Probe only
for socket() in libsocket. - Reorder --disable-threadsafe code,
needed to get over some libtool issues for various platforms.
* [r386] src/Makefile.am: Fix --disable-threadsafe issues
* [r385] README: Don't mention -lposix4 for Solaris, AFAIK it's not
needed anymore.
* [r384] libmusclecard/src/musclecard.c: Fix compiler warning when
compiling with --disable-threadsafe
* [r383] libmusclecard/src/tokenfactory.c, src/debuglog.c,
src/dyn_win32.c, src/hotplug_libusb.c, src/hotplug_linux.c,
src/ifdwrapper.c, src/pcscdaemon.c, src/testpcsc.c,
src/utils/formaticc.c, src/winscard.c, src/winscard_clnt.c,
src/winscard_msg.c, src/winscard_scf.c: AIX build fix, convert //
comments into /* */ blocks.
2003-09-07 Ludovic Rousseau
* [r382] libmusclecard/src/musclecard.c,
libmusclecard/src/tokenfactory.c: remove useless \n in debug
message strings
2003-09-07 Antti Tapaninen
* [r381] Makefile.am, configure.in, src/Makefile.am,
src/debuglog.c, src/dyn_hpux.c, src/dyn_macosx.c, src/dyn_unix.c,
src/dyn_win32.c, src/powermgt_generic.c, src/powermgt_macosx.c,
src/sys_unix.c, src/winscard_msg.c: Build fixes. The first
version that actually compiles for Linux, Solaris, Tru64 and AIX
after src/Makefile.am and configure.in modifications.
- Untested - No hotplug/power management support - Untested for
*BSD, MacOS X and HP-UX, there's other things to do before even
trying to compile.
* [r380] libmusclecard/src/PCSC/mscdefines.h,
libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c, libmusclecard/src/muscletest.c,
libmusclecard/src/tokenfactory.c,
libmusclecard/utils/bundleTool/bundleTool.c,
src/PCSC/pcsclite.h.in, src/PCSC/thread_generic.h,
src/PCSC/winscard.h, src/PCSC/wintypes.h, src/atrhandler.c,
src/atrhandler.h, src/debuglog.c, src/dyn_hpux.c,
src/dyn_macosx.c, src/dyn_unix.c, src/dyn_win32.c,
src/eventhandler.c, src/hotplug_generic.c, src/hotplug_libusb.c,
src/hotplug_linux.c, src/hotplug_macosx.c, src/powermgt_macosx.c,
src/prothandler.c, src/readerfactory.c, src/sys_unix.c,
src/testpcsc.c, src/thread_unix.c, src/tokenparser.l,
src/utils/formaticc.c, src/utils/installifd.c, src/winscard.c,
src/winscard_clnt.c, src/winscard_msg.c, src/winscard_scf.c,
src/winscard_svc.c: - Cleanups for #include logic and ordering,
it's better to include config.h first.
* [r379] config.h.in, configure.in: Checkpoint commit + bootstrap
update
* [r378] Makefile.am, doc/Makefile.am, doc/example/Makefile.am,
etc/Makefile.am, src/Makefile.am, src/utils/Makefile.am: - Polish
and unify Makefiles a bit - More work towards working
src/Makefile.am
* [r377] config.h.in, configure.in, etc/Makefile.am,
libmusclecard/src/tokenfactory.c, pbx/config.h, src/Makefile.am,
src/hotplug_libusb.c, src/pcscdaemon.c, src/winscard_msg.c,
win32/win32_config.h: - Remove MSC/PCSC_TARGET_XYZ defines and
the massive use of unflexible automake conditionals. The main
reason why pcsc-lite requires "too much" work when porting to
another OS. Introduced define PCSC_ARCH, which uses 'uname' as an
input. Except Darwin->MacOS. - Removed --enable-usb - Preliminary
rewrite of src/Makefile.am, doesn't work yet. - Use gcc specific
compiler options only if gcc detected.
* [r376] build/acx_pthread.m4: Merged some changes from OpenSC
* [r375] src/Makefile.am, src/PCSC/sys_generic.h,
src/PCSC/thread_generic.h, src/dyn_bsd.c, src/dyn_unix.c,
src/dyn_win32.c, src/pcscdaemon.c, src/sys_hpux.c,
src/sys_solaris.c, src/sys_unix.c, src/thread_macosx.c,
src/thread_unix.c, src/thread_win32.c: - Removed most of the
duplicated code, replaced with the usage of config.h's defines
for portability issues: - Merged dyn_{bsd,unix}.c, left as
dyn_unix.c - Merged thread_{macosx,unix}.c, left as thread_unix.c
- Merged sys_{hpux,solaris,unix}.c, left as sys_unix.c - Removed
MSC_ thread API from generic / win32, they're not used.
Starting from now, the source tree might be broken for a few
hours or even days. Sorry about that.
2003-09-05 Ludovic Rousseau
* [r374] src/debuglog.c: add #include <unistd.h> to avoid an
"implicit declaration of function `getpid'"
2003-09-04 Ludovic Rousseau
* [r372] ChangeLog, configure.in, src/PCSC/pcsclite.h.in: release
1.2.0-rc2
* [r371] src/Makefile.am: add thread_win32.c in the distribution
* [r370] configure.in, src/Makefile.am: remove a _stupid_ bug that
linked libpcsclite with libusb. Also generate libmusclecard and
remove musclecard code from libpcsclite.
* [r369] src/configfile.c, src/tokenparser.c: removed since they
have nothing to do in CVS. They are generated from .l files
* [r368] libmusclecard/src/muscletest.c: add #include <string.h>
* [r367] src/PCSC/winscard.h: add prototype for SCardUnload()
2003-09-03 Ludovic Rousseau
* [r358] doc/example/pcsc_demo.c: add a call to SCardUnload(). This
is not mandatory, just cleaner.
* [r357] src/winscard_clnt.c: add SCardUnload() function to free
allocated resources. It is mandatory only if you use
dlopen/dlclose to often load/unload the library. Otherwise you
will exhaust the ressources available and get a crash. Thanks to
Guy Moreillon for the patch.
2003-09-02 Ludovic Rousseau
* [r356] src/PCSC/debuglog.h: remove reference to USE_SYSLOG since
it is replaced by --debug command line argument
2003-08-31 Ludovic Rousseau
* [r355] README: remove documentation about --enable-syslog since
it is not used anymore by ./configure
* [r354] NEWS: refer to ChangeLog instead of containing the version
number
2003-08-29 David Corcoran
* [r353] COPYING: Removed advertising clause
2003-08-28 Ludovic Rousseau
* [r349] libmusclecard/src/muscletest.c: use CAPITAL hex, use
default PIN "Muscle00" when none is given, allow to use more than
one readers instead of using only the first one.
* [r348] libmusclecard/src/musclecard.c: print SW (status word) in
hex instead of decimal
* [r347] src/Makefile.am: add rules to build muscletest. testpcsc
is no more executed by make distcheck
* [r346] doc/Makefile.am: do not distribute pcscd.8 bundleTool.8
since they are generated from the .in versions by ./configure
* [r345] configure.in: to not set use_libusb=false in case the
argument is "" | "yes" | "YES"
* [r344] Makefile.am: move ChangeLog.cvs to DISTCLEANFILES to avoid
an error with 'make distcheck'
2003-08-26 Ludovic Rousseau
* [r337] ChangeLog: release 1.2.0-rc1
* [r336] configure.in: move addition of -lusb since it is selected
by default.
* [r334] src/hotplug_libusb.c: disable USB debug by default
* [r333] README: add a note about deprecation of --enable-usb
* [r332] configure.in: --enable-usb is deprecated and off by
default. Use --enable-libusb instead.
* [r331] doc/Makefile.am: add example subdirectory
* [r330] src/hotplug_libusb.c: complete redesign to support up to
PCSCLITE_MAX_READERS readers whatever the driver they use
(correct bug [ #300067 ] More than 4 Hotplug Readers in the same
time on Linux)
* [r329] src/PCSC/pcsclite.h.in: define PCSCLITE_MAX_READERS as the
maximum number of readers
2003-08-25 Ludovic Rousseau
* [r325] src/winscard.c: correct bug #300063: PCSCd reports card is
present when there is no card in the reader.
* [r324] libmusclecard/src/musclecard.c: reindentation
* [r323] libmusclecard/src/musclecard.c: free(evlist->tokenArray),
avoid a memory leak (Toni Andjelkovic)
2003-08-22 Ludovic Rousseau
* [r320] doc/example, doc/example/Makefile.am,
doc/example/pcsc_demo.c: demo of a C program using the pcsc-lite
API
2003-08-21 Ludovic Rousseau
* [r315] src/hotplug_libusb.c, src/hotplug_linux.c: typo in
comments
2003-08-20 Ludovic Rousseau
* [r313] src/winscard_svc.c: Sometimes unknown APDUs were being
transmitted when 'SCardStatus' function was invoked (close
#300061)
* [r312] src/winscard.c: return SCARD_E_INVALID_PARAMETER for APDU
of less than 4 bytes (close #300062)
* [r311] libmusclecard/src/musclecard.c: initialise
pConnection->shareMode as early as possible (close #300064,
thanks to Wan-Teh Chang)
* [r310] src/PCSC/wintypes.h: correct and remove unused types
(close bug #300071)
* [r298] src/hotplug_macosx.c: Add support of reader aliases using
<array></array>
* [r297] src/hotplug_libusb.c: add empty
HPRegisterForHotplugEvents() function
2003-08-19 Ludovic Rousseau
* [r296] src/hotplug.h, src/hotplug_generic.c, src/hotplug_linux.c,
src/hotplug_macosx.c, src/pcscdaemon.c, src/powermgt_macosx.c:
Add support of PCMCIA for MacOS X and major redesign of the
hotplug support (thanks to Stephen M. Webb for the patch)
* [r295] src/eventhandler.c: use <errno.h> instead of <sys/errno.h>
2003-08-18 Ludovic Rousseau
* [r294] src/hotplug_libusb.c: use #ifdef DEBUG_USB_HOTPLUG for USB
debug messages
* [r293] src/pcscdaemon.c: remove unneeded \n in debug messages
* [r292] src/PCSC/pcsclite.h.in: #include <wintypes.h> even on
MacOS X
* [r291] src/PCSC/winscard.h: do not look for PCSC/pcsclite.h but
pcsclite.h even on MacOS X
* [r290] src/debuglog.c: add #include <sys/types.h> for FreeBSD
(thanks Toni Andjelkovic)
2003-08-15 Ludovic Rousseau
* [r289] libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c: add void argument to the
MSCCallbackCancelEvent() prototype definition (thanks to Toni
Andjelkovic)
* [r288] configure.in: use *linux* instead of linux-gnu (patch from
Toni Andjelkovic)
* [r287] src/hotplug_libusb.c: conditionnaly print hotplug debug
messages. look for DEBUG_USB_HOTPLUG at the begining of the file.
* [r286] src/hotplug_linux.c: use FILENAME_MAX instead of manually
defined values. Use snprintf() instead of sprintf() to fill
filenames.
2003-08-14 Ludovic Rousseau
* [r285] Makefile.am: add s/corcoran-guest /David Corcoran /;
* [r284] config.h.in: new generated version
* [r283] bootstrap: do not remove build/aclocal.m4 anymore
* [r282] src/Makefile.am: add parser.h in pcscd_SOURCES
* [r281] src/utils/installifd.c: cast sizeof() with (int) to avoid
a warning under MacOS X
* [r280] src/pcscdaemon.c: add "Copyright (C) 2001-2003 by Ludovic
Rousseau" for the version (-v) output.
2003-08-11 Ludovic Rousseau
* [r267] src/tokenparser.c: regenerated but should not be in CVS
* [r266] src/tokenparser.l: change filename in comment
* [r265] src/PCSC/parser.h: add LTPBundleFindValueWithKey()
function prototype
* [r264] src/PCSC/parser.h: use a size of 200 bytes instead of 256
otherwise it will break every drivers using the pcscd tokenparser
(buffer overflow in the driver).
2003-08-10 Ludovic Rousseau
* [r263] README, configure.in, src/Makefile.am,
src/hotplug_libusb.c: add support of libusb
* [r262] src/PCSC/parser.h, src/tokenparser.l: define maximum
buffer lengths and avoid possible buffer overflows
2003-08-08 Ludovic Rousseau
* [r261] doc/formaticc.1: pcscd is in section 8 not 1
2003-07-04 Ludovic Rousseau
* [r260] src/Makefile.am: Installation of the pkgconfig file did
not honor libdir. Thanks to Ville Skytt� for the patch (alioth
patch #300045)
2003-06-25 Ludovic Rousseau
* [r259] src/configfile.c, src/tokenparser.c: #include stdint.h
only if HAVE_STDINT_H is defined since some platforms do not have
stdint.h (Windows, FreeBSD, etc.)
2003-06-05 David Corcoran
* [r257] src/PCSC/thread_generic.h, src/thread_win32.c: fixed
MSC_Mutex functions to point to the SYS_Mutex functions
2003-06-04 David Corcoran
* [r256] libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c, libmusclecard/src/tokenfactory.c,
src/PCSC/debuglog.h, src/PCSC/pcsclite.h.in,
src/PCSC/thread_generic.h, src/debuglog.c, src/thread_win32.c,
src/tokenparser.c, win32/PCSC.cpp: Commiting these files
2003-05-30 Ludovic Rousseau
* [r254] ChangeLog: release 1.1.2beta5
* [r253] bootstrap: remove $ac_aux_dir/aclocal.m4 after use to
limit the size of the .tar.gz
* [r252] src/Makefile.am: remove winscard_msg.c from pcscd_SOURCES
since it is already included in libpcsclite_core_la_SOURCES used
by pcscd_LDADD
* [r251] build/install-sh, build/missing, build/mkinstalldirs: new
version from automake 1.7.5
* [r250] doc/Makefile.in: removed since generated from
doc/Makefile.am
* [r249] Makefile.am: the CVS files are now on alioth.debian.org so
change the path to remove to generate the ChangeLog.cvs file
* [r248] src/winscard_clnt.c: SCardStatusTH(): simplify code and
return correct results when buffers are too short or NULL is used
* [r247] src/winscard.c: SCardStatus(): do not return before
filling buffers
* [r246] libmusclecard/src/musclecard.c: small cleanup
* [r245] doc/Makefile.in: removed from CVS since generated from
doc/Makefile.am
* [r244] src/configfile.c, src/tokenparser.c: regenerated but they
should not be in CVS
* [r243] src/tokenparser.l: define ret as int
* [r242] src/Makefile.am: correct arguments order of ylwrap script
* [r241] src/utils/installifd.c: replace gets() by fgets() to avoid
buffer overflow. Use sizeof() instead of constants. do not use
strdup() since it is useless. print error messages when needed.
2003-05-28 Ludovic Rousseau
* [r240] src/libpcsclite.pc.in: used to generated a pkg-config
".pc" file (thanks to Andreas Jellinghaus for the idea and the
patch)
* [r239] Makefile.in, build/aclocal.m4, build/config.guess,
build/config.sub, build/ltmain.sh, configure, etc/Makefile.in,
src/Makefile.in, src/utils/Makefile.in: removed from CVS since
they are (re)generated by ./bootstrap
* [r238] configure.in, src/Makefile.am, src/utils/installifd.c: use
directory names as use by ./configure
2003-05-27 Ludovic Rousseau
* [r237] src/driverparser.c, src/driverparser.l: no more useful
since tokenparser.* does a better job
* [r236] src/tokenparser.l: do not duplicate fclose/return lines
2003-05-25 Ludovic Rousseau
* [r235] etc/reader.conf.in: include configured path appear in the
docs (thanks to Ville Skytt�)
* [r234] doc/pcscd.8.in,
libmusclecard/utils/bundleTool/bundleTool.8.in: correct typos and
include configured path appear in the docs (thanks to Ville
Skytt�)
2003-05-05 Ludovic Rousseau
* [r228] ChangeLog: release 1.1.2beta4
* [r227] src/configfile.c: regenerated from src/configfile.c
* [r226] Makefile.in, configure, doc/Makefile.in, etc/Makefile.in,
src/Makefile.in, src/utils/Makefile.in: regenerated
* [r225] src/tokenparser.c: regeneration from src/tokenparser.l
* [r224] src/tokenparser.l: code reindentation, use
DebugLogB()/DebugLogC with correct number of arguments
* [r223] src/debuglog.c: avoid possible buffer overflow in
pcsc_stringify_error()
* [r222] src/Makefile.am: add -pthread for xBSD, use AM_CFLAGS
instead of CFLAGS, driverparser.c no more exists
* [r221] bootstrap: use automake 1.7.3
* [r220] README: also tested on Debian 3.0 and OpenBSD 3.2
2003-04-07 Ludovic Rousseau
* [r219] src/tokenparser.l: reindent, use DebugLogB instead of
DebugLogC, add indice number in debug message
* [r218] src/hotplug_linux.c: support driver aliases in Info.plist
* [r217] src/hotplug_linux.c: use LTPBundleFindValueWithKey(.., 0)
instead of LCFBundleFindValueWithKey()
* [r216] src/hotplug_linux.c: reindent
* [r215] src/hotplug_linux.c: code simplification
* [r214] src/hotplug_linux.c: add directory name to error message
2003-01-09 Ludovic Rousseau
* [r213] src/debuglog.c: the log output mode (syslog, stdout,
stderr) can't be combined. stderr had precedence (in the code)
over stdout that was _never_ used.
2002-12-08 Ludovic Rousseau
* [r212] src/PCSC/pcsclite.h.in: use pcscd.* instead of pcsc.* to
be unoform with pcscd.pid
2002-12-07 Ludovic Rousseau
* [r211] doc/Makefile.am: remove pcscd.startup since it is now in
etc/
* [r209] ChangeLog: release 1.1.2beta3
* [r208] Makefile.in, config.h.in, configure, doc/Makefile.in,
etc/Makefile.in: regenerated
* [r207] src/Makefile.in, src/utils/Makefile.in: regenarated
* [r206] src/pcscdaemon.c: create PCSCLITE_IPC_DIR if it does not
exist. For example when it is set to /tmp/pcsc/ (default now is
/var/run/)
* [r205] src/PCSC/pcsclite.h.in: use pcsc.comm instead of pcsc.omm
* [r204] doc/pcscd.startup: removed. The startup script is in etc/
* [r203] src/eventhandler.c: small source code reformating
* [r202] libmusclecard/src/musclecard.c,
libmusclecard/src/tokenfactory.c, src/tokenparser.c: use
DebugLogB() for logs with 2 parameters and not DebugLogC()
* [r201] src/PCSC/debuglog.h: DebugLogC() uses 3 parameters not 2
(use DebugLogB() for that)
* [r200] src/eventhandler.c: add filename and error message to
error logs for /var/run/pcsc.pub
* [r199] src/PCSC/pcsclite.h.in, src/pcscdaemon.c: add support of
--enable-ipcdir=DIR
* [r198] src/Makefile.am: reorganise conditionals to to have a
src/Makefile.in file 142 (yes 142) times smaller (33 KB instead
of 4.7 MB)
* [r197] etc/Makefile.am: also distribute etc/pcscd.startup
* [r196] configure.in: update to autoconf 2.56 (lot of changes).
add --enable-ipcdir=DIR option. Default is now /var/run/ instead
of /tmp/pcsc/
* [r195] bootstrap: update for autoconf 2.57 and automake 1.6.3
* [r194] Makefile.am: add win32/ files and some rework
2002-12-06 Ludovic Rousseau
* [r193] src/winscard.c: accept pioRecvPci == NULL in
SCardTransmit()
* [r192] src/winscard_clnt.c: source code reformating
* [r191] src/winscard_clnt.c: correct an overflow in
SCardGetStatusChange() replace "if (cReaders >
PCSCLITE_MAX_CONTEXTS)" by "if (cReaders >=
PCSCLITE_MAX_CONTEXTS)". Thanks to Michael Nidd
* [r190] src/winscard_clnt.c: init g_rgSCard??Pci variable at
compile time
2002-12-04 Ludovic Rousseau
* [r189] ChangeLog: add Dmitry Djachenko pacthes
2002-12-02 David Corcoran
* [r188] Makefile.in, build/aclocal.m4, config.h.in, configure,
configure.in, doc/Makefile.in, libmusclecard/src/musclecard.c,
libmusclecard/utils/bundleTool/bundleTool.c, src/Makefile.am,
src/Makefile.in, src/debuglog.c, src/pcscdaemon.c: Included
changes from Citrix - Support for AIX in configure.in and
Makefile.am - added ifdef for SNPRINTF and VSNPRINTF
2002-11-29 Ludovic Rousseau
* [r187] src/winscard.c: code reformatting
* [r186] src/winscard.c: initialise g_rgSCard??Pci globals at
compile time
* [r185] src/winscard.c: SCardStatus(): set more return values
* [r184] src/winscard.c: Check reader name and ATR size are correct
(no buffer oveflow)
* [r183] src/winscard.c: check pioRecvPci is non NULL before
assignment
* [r182] src/winscard.c: SCardReconnect() returns more interesting
error codes
2002-10-30 Ludovic Rousseau
* [r181] src/prothandler.c, src/prothandler.h: PHSetProtocol()
returns a DWORD and not a UCHAR since rContext->dwProtocol is a
DWORD. Thanks to Oleg Makarenko.
* [r180] src/atrhandler.c, src/eventhandler.c, src/prothandler.c,
src/winscard.c: include some missing .h files. Thanks to Oleg
Makarenko
2002-10-16 David Corcoran
* [r179] etc/SmartcardServices, pbx/config.h: some changes for the
Mac
2002-10-15 David Corcoran
* [r178] ChangeLog, Makefile.in, build/aclocal.m4, config.h.in,
configure, configure.in, doc/Makefile.in, etc/Makefile.in,
src/Makefile.am, src/Makefile.in, src/utils/Makefile.in: Some
changes to make SCF easier to use
2002-10-12 Ludovic Rousseau
* [r176] bootstrap: use autoconf instead of autoreconf to not reuse
an old config
* [r175] Makefile.in, build/aclocal.m4, configure, doc/Makefile.in,
etc/Makefile.in, src/Makefile.in, src/utils/Makefile.in: new
version of autoregenerating files
* [r174] ChangeLog: release 1.1.2beta2
2002-10-08 Ludovic Rousseau
* [r173] src/Makefile.am: do not link with -lpthread under bsd as
it breaks under OpenBSD and FreeBSD
* [r172] configure.in: use "test x${usbdropdir} = xfalse" instead
of "test x${usbdropdir} == xfalse" since it generates an error
under FreeBSD (test: xfalse: unexpected operator). For a strange
reason the bug was not detected earlier.
2002-10-06 Ludovic Rousseau
* [r171] src/Makefile.am: use -rdynamic instead of
-Wl,--export-dynamic since some systems (OpenBSD) did not support
it
* [r170] src/pcscdaemon.c: add --apdu documentation in --help
message support -a argument even when HAVE_GETOPT_LONG not
supported
* [r169] src/utils/formaticc.c: add a (char *) cast to avoid a
compilation warning
2002-10-06 Jean-Luc Giraud
* [r168] etc/SmartcardServices: Added support for
start/stop/restart invocation parameters
* [r167] pbx/config.h: Added #define for support of /var/run/pid.
pid file is /var/run/pcscd.pid
2002-10-06 Ludovic Rousseau
* [r166] Makefile.in, build/aclocal.m4, config.h.in, configure,
doc/Makefile.in, etc/Makefile.in, src/Makefile.in,
src/utils/Makefile.in, stamp-h.in: new version of
autoregenerating files
* [r165] src/Makefile.am: add -DPACKAGE and -DVERSION to
compilation flags. They are no more included in config.h
* [r164] configure.in: change version from 1.1.2beta1 to 1.1.2
* [r163] bootstrap: remove config.h.in to be sure to regenerate it
2002-10-05 Ludovic Rousseau
* [r162] src/PCSC/pcsclite.h.in: change VERSION number from
1.1.2beta1 to 1.1.2
* [r161] ChangeLog: print an error message if the --debug argument
is not known
2002-10-04 David Corcoran
* [r160] src/winscard_scf.c: quick fix
* [r159] src/winscard_scf.c: added scf compatibility
* [r158] src/PCSC/wintypes.h: added helge's fix to WORD
* [r157] src/powermgt_macosx.c: fix for osx deadlock on sleep
2002-10-03 David Corcoran
* [r156] src/hotplug_linux.c: some changes to support multiplle usb
readers
2002-10-03 Ludovic Rousseau
* [r155] src/hotplug_linux.c: close PCSCLITE_HP_DROPDIR
(/usr/local/pcsc/drivers/) after use
2002-10-03 David Corcoran
* [r154] src/winscard.c: added fix by amira
2002-10-02 David Corcoran
* [r153] libmusclecard/src/tokenfactory.c: added default dropdir
* [r152] src/Makefile.in, src/winscard.c: added athena patch for
SCARD_PROTOCOL_ANY in SCardConnect
* [r151] src/eventhandler.c, src/readerfactory.c: Fixed
multi-reader + sleep problem
* [r150] Makefile.in, build/aclocal.m4, config.h.in, configure,
doc/Makefile.in, src/Makefile.in: Re-importing autoconf stuff
2002-10-02 Jean-Luc Giraud
* [r149] pbx/config.h, src/readerfactory.c: Modified version number
from 1.1.0 to 1.1.1
2002-09-07 Ludovic Rousseau
* [r147] src/pcscdaemon.c: Log to stderr by default. Print an error
message if --debug argument is not known.
2002-09-06 Ludovic Rousseau
* [r145] configure.in, src/PCSC/pcsclite.h.in: release 1.1.2beta1
* [r144] ChangeLog: forgot to add support of --enable-muscledropdir
in bundleTool.c
* [r143] libmusclecard/utils/bundleTool/bundleTool.c: add support
for --enable-muscledropdir
* [r142] configure.in, libmusclecard/src/tokenfactory.c: add
support for --enable-muscledropdir
* [r141] build/aclocal.m4, build/config.guess, build/config.sub,
build/install-sh, build/ltmain.sh, build/missing,
build/mkinstalldirs, build/ylwrap: new versions
* [r140] reconf: do not restart ./configure
* [r139] bootstrap: test if a Makfile exists before make distclean
* [r138] README: The licence file is COPYING and not LICENSE
(thanks to Juha Tuomala)
2002-08-18 Ludovic Rousseau
* [r131] doc/Makefile.am, doc/Makefile.in, doc/formaticc.1: add
formaticc.1 from Debian
2002-08-16 Ludovic Rousseau
* [r130] src/pcscdaemon.c: typo (add a space)
2002-08-15 Ludovic Rousseau
* [r129] src/utils/formaticc.c: lots of debug and buffer overflow
removal
* [r128] libmusclecard/utils/bundleTool/bundleTool.c: print usage
in cas of wrong arguments
* [r127] doc/Makefile.am, doc/Makefile.in, doc/bundleTool.1,
libmusclecard/utils/bundleTool/bundleTool.8.in: update and rename
bundleTool.1
2002-08-13 Ludovic Rousseau
* [r126] configure.in, src/PCSC/pcsclite.h.in: switch from version
1.1.1 to 1.1.2 for cvs snapshots
* [r125] src/pcscdaemon.c: add support for --apdu, test if the
pcscd is still running before complaining that /tmp/pcsc is
present
* [r124] src/ifdwrapper.c: add support for --apdu
* [r123] src/eventhandler.c: typo
* [r122] libmusclecard/src/musclecard.c: add a return NULL;
* [r121] src/PCSC/debuglog.h, src/debuglog.c: add support for
--apdu and other same log messages
* [r120] src/readerfactory.c: properly initialise rv
* [r119] src/Makefile.am, src/Makefile.in: add -Wl,--export-dynamic
link option
* [r118] doc/pcscd.8.in: add the -a|--apdu option + some cleaning
* [r117] reconf: make distclean before autoreconf
* [r116] reconf: *** empty log message ***
* [r115] configure.in, src/hotplug_linux.c: set the
PCSCLITE_HP_DROPDIR as a ./configure option
2002-07-30 Ludovic Rousseau
* [r114] libmusclecard/src/musclecard.c: add #ifdef
USE_THREAD_SAFETY otherwise it wont compile with
--disable-threadsafe
2002-07-01 David Corcoran
* [r113] doc/pcscd.startup: readding
* [r112] doc/pcscd.startup, etc/pcscd.startup: moved location
2002-06-27 David Corcoran
* [r111] libmusclecard/src/musclecard.c,
libmusclecard/src/tokenfactory.c, win32/PCSC.dsp: Win32
2002-06-19 David Corcoran
* [r107] src/readerfactory.c: removed printf
2002-06-18 David Corcoran
* [r106] libmusclecard/src/PCSC/musclecard.h: MSCPUChar8 ->
MSCUChar8
2002-06-11 David Corcoran
* [r105] libmusclecard/src/PCSC/musclecard.h: Added more
Initialization parameters ...
2002-06-05 David Corcoran
* [r104] libmusclecard/src/musclecard.c: hello
* [r103] libmusclecard/src/musclecard.c: ;lkj
* [r102] libmusclecard/src/musclecard.c: bad if then
* [r101] libmusclecard/src/musclecard.c: some changes
* [r100] libmusclecard/src/musclecard.c, src/PCSC/thread_generic.h,
src/thread_macosx.c, src/thread_unix.c: Added generic thread
support to musclecard.c and added pthread_join
* [r99] libmusclecard/src/musclecard.c: Added join to
cancelcallback
* [r98] COPYING, ChangeLog, NEWS, README: Fixed problem with
MSC_SHARE_DIRECT connections Added changes to docs Cancel with
join
* [r97] Makefile.in, build/aclocal.m4, configure, configure.in,
doc/Makefile.in, src/Makefile.in, src/PCSC/pcsclite.h.in: Changed
versioning
* [r96] src/winscard_clnt.c: removed unused variable i
* [r95] src/readerfactory.c: Fix for bug which wouldn't work with
multi-slot readers. Slots weren't managing the dwFeeds variable
in the structure so the library was closed prematurely.
2002-06-03 David Corcoran
* [r94] src/readerfactory.h: replaced magic number with constant
16->PCSCLITE_MAX_CONTEXTS
2002-05-31 David Corcoran
* [r93] src/winscard_clnt.c: Removed bug: line 1986
SCardCleanupClient would release the socket too early
2002-05-28 David Corcoran
* [r92] libmusclecard/doc, libmusclecard/doc/muscle-api-1.3.0.pdf:
Added muscle-docs
* [r91] AUTHORS, ChangeLog, Makefile.in, NEWS, README, SECURITY,
build/aclocal.m4, configure, configure.in, doc/Makefile.am,
doc/Makefile.in, doc/pcscd.startup, etc/SmartcardServices,
etc/StartupParameters.plist, src/Makefile.am, src/Makefile.in:
Finalizing for the release
* [r90] src/utils/formaticc.c: Added wintypes.h
* [r89] Makefile.in, build/aclocal.m4, build/ltmain.sh,
doc/Makefile.in, src/Makefile.am, src/Makefile.in: fixes for the
build
2002-05-28 phuang
* [r88] src/dyn_hpux.c: hpux need <errno.h> to compile correctly
2002-05-21 Ludovic Rousseau
* [r87] Makefile.am: patch the generated ChangeLog.cvs to have
correct file and author names
2002-05-10 Ludovic Rousseau
* [r86] src/Makefile.am: added the .h files in the distibution but
they will not be installed by a 'make install' So now 'make test'
and 'make testcheck' should work again. Sorry Dave for my mistake
in v1.3 you corrected in v1.4. I hope it is OK this time.
* [r85] doc/Makefile.am: add pcscd.startup in the distribution
2002-05-07 David Corcoran
* [r84] Makefile.in, build/aclocal.m4, configure, configure.in,
doc/Makefile.in, etc/Makefile.in, src/Makefile.in,
src/utils/Makefile.in: Updated version to 1.1.0
* [r83] Makefile.in, config.h.in, configure, configure.in,
doc/Makefile.in, etc/Makefile.in: Fixing so that
--disable-threadsafe works !!!
* [r82] src/Makefile.am, src/Makefile.in, src/utils/Makefile.in:
Adding Makefile.am with -lpthread for PCSCD_INCLUDE_LIBS
* [r81] src/dyn_win32.c: Added Win32 dynamic lib loading
2002-05-06 David Corcoran
* [r80] libmusclecard/src/musclecard.c: Added real time card
reset/removed checking. Fixed bug which begin/end transaction
would not return this.
* [r79] libmusclecard/src/PCSC/mscdefines.h,
libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c, libmusclecard/src/tokenfactory.c,
src/debuglog.c, src/thread_unix.c, src/tokenparser.c, win32,
win32/PCSC.cpp, win32/PCSC.dsp, win32/PCSC.h, win32/StdAfx.cpp,
win32/StdAfx.h, win32/pthread.h, win32/sched.h,
win32/win32_config.h, win32/win32_pcsclite.h: Added support for
Win32 based platforms for Muscle Framework.
* [r78] pcsc.pbproj/project.pbxproj: Checking in new project file
for project builder
2002-04-27 David Corcoran
* [r74] pcsc.pbproj/project.pbxproj, src/hotplug_macosx.c: Added
versioning to pbxproj file, updated config.h. Fixed
Plugin->PlugIn.h in hotplug
2002-04-26 David Corcoran
* [r73] doc/pcscd.8.in: Updated the man page
2002-04-25 David Corcoran
* [r72] pcsc.pbproj/project.pbxproj: Added bundle header
information for buildit
* [r71] pbx/config.h, src/PCSC/pcsclite.h.in, src/pcscdaemon.c:
Added new version numbering
* [r70] src/eventhandler.c, src/readerfactory.c: removed printf
debugging for release
* [r69] src/hotplug_macosx.c, src/powermgt_macosx.c: Changes to the
power management behavior
2002-04-24 David Corcoran
* [r68] pbx/PCSC.pbproj: Removal
* [r67] pcsc.pbproj, pcsc.pbproj/project.pbxproj,
src/eventhandler.c, src/hotplug_macosx.c, src/powermgt_macosx.c,
src/readerfactory.c, src/readerfactory.h, src/winscard.c: moved
project builderstuff and removed some files
* [r66] libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c, libmusclecard/src/muscletest.c,
pbx/PCSC.pbproj/project.pbxproj, src/powermgt_macosx.c: changes
2002-04-23 David Corcoran
* [r65] pbx/PCSC.pbproj/project.pbxproj, src/eventhandler.c,
src/hotplug_macosx.c, src/pcscdaemon.c, src/powermgt_generic.h,
src/powermgt_macosx.c, src/readerfactory.c, src/readerfactory.h:
No changes, just time/date issues
2002-04-22 David Corcoran
* [r64] libmusclecard/src/PCSC/mscdefines.h,
pbx/PCSC.pbproj/project.pbxproj, pbx/config.h,
src/PCSC/pcsclite.h.in, src/PCSC/sys_generic.h,
src/PCSC/winscard.h, src/sys_hpux.c, src/sys_solaris.c,
src/sys_unix.c, src/winscard_msg.c, src/winscard_svc.c: config.h
-> added cvs to version project.pbx -> modified project builder
attributes pcsclite.h -> __APPLE__ mscdefines.h -> __APPLE__
sys_generic.h, sys_hpux.c sys_solaris.c sys_unix.c int SYS_Exit
to void SYS_Exit winscard_msg.c removed message in CommonSegment
2002-04-21 Carlos Prados
* [r63] configure.in, src/pcscdaemon.c: Added autoconf check for
getopt.h header
2002-04-16 David Corcoran
* [r62] src/pcscdaemon.c: Added #ifdef around #include <getopt.h>
2002-04-14 Carlos Prados
* [r61] configure.in: Added getopt_long() check.
* [r60] src/pcscdaemon.c: Added getopt and getopt_long support for
command line parsing.
2002-04-12 David Corcoran
* [r59] libmusclecard/src/musclecard.c: Added wait for thread
return for the callback
* [r58] libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c: Added BLOCKSTATUS defines and
checks in the Callbacks so that the race condition would go away.
* [r57] libmusclecard/src/PCSC/musclecard.h: Removed MSCCertInfo
2002-04-11 David Corcoran
* [r56] libmusclecard/src/PCSC/mscdefines.h: removed cert function
pointers
* [r55] libmusclecard/src/tokenfactory.c: removed certificate
function pointers
* [r54] libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c: Removed all certificate handling
functions
2002-04-10 David Corcoran
* [r53] src/pcscdaemon.c: Added extern int errno - wouldn't build
on Solaris
* [r52] src/winscard_clnt.c: Removed atexit() put cleanup code in
SCardReleaseContext
* [r51] libmusclecard/src/musclecard.c: some modifications for
tabs.
* [r50] src/ifdwrapper.c: Removed SetCapabilities -> put into 1.0
version for performance reasons
* [r49] libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c: Removed extra Read/Write
functions
2002-04-09 David Corcoran
* [r48] libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c: Added keyPartner to MSCImportKey.
Added keyMapping to MSCKeyInfo structure
2002-04-08 David Corcoran
* [r47] Makefile.in, build/aclocal.m4, configure, src/Makefile.am,
src/Makefile.in, src/PCSC/pcsclite.h.in, src/pcscdaemon.c,
src/readerfactory.c, src/readerfactory.h, src/winscard_clnt.c,
src/winscard_svc.c: Fixed a security vulnerability in
winscard_svc.c. Removed /tmp/pcsc/.pcsctmp and replaced it with a
stat /tmp/pcsc on the client side. Modified Makefile.am to only
install needed include files to /usr/local/include
2002-04-08 Michael Gile
* [r46] src/readerfactory.c: initialized return value to -1 in
RFSetReaderName
2002-04-07 Ludovic Rousseau
* [r45] src/PCSC/pcsclite.h.in, src/pcscdaemon.c,
src/readerfactory.c: Allow pcscd to do bulk transfers for devices
with high speed:
Enhanced messaging has been added to accomodate newer devices
which have more advanced capabilites, such as dedicated secure
co-processors which can stream and encrypt data over USB. In
order to used enhanced messaging you must define
PCSCLITE_ENHANCED_MESSAGING in the framework(library), the
daemon, and your application
Thanks to Michael Gile <mgile@mac.com> for the patch
2002-04-06 Ludovic Rousseau
* [r44] AUTHORS: Added my name as suggested by David
* [r43] src/pcscdaemon.c: using -d1 (debug to stderr) or -d2 (debug
to stdout) also activate the -fg option (foreground). Otherwise
pcscd is started as a daemon (default) and stdout and stderr file
descriptors are closed and then debug is useless since sent to
/dev/null
* [r42] configure.in, src/PCSC/pcsclite.h.in: renamed 1.0.2.beta5
to 1.0.2.cvs
* [r41] Makefile.am: make the ChangeLog.cvs rule .PHONY
* [r40] src/PCSC/sys_generic.h, src/pcscdaemon.c, src/sys_hpux.c,
src/sys_solaris.c, src/sys_unix.c, src/winscard_clnt.c,
src/winscard_msg.c: use SYS_CloseFile() instead of close() use
SYS_OpenFile() instead of open() use SYS_Chdir() instead of
chdir() use SYS_Daemon() instead of daemon() test return values
and print a debug message when necessary
patch provided by Toni Andjelkovic <toni@soth.at>
* [r39] Makefile.am: add a rule to create ChangeLog.cvs
* [r38] libmusclecard/utils/bundleTool/bundleTool.c: #include
<stdlib.h> for malloc() declaration
* [r37] src/pcscdaemon.c: add error code management for
SHMProcessEvents returned value
2002-04-05 Ludovic Rousseau
* [r36] configure.in: correct text alignment
* [r35] doc/Makefile.in, etc/Makefile.in, src/utils/Makefile.in:
removed since generated automatically by automake
* [r34] src/atrhandler.c: USE_SYSLOG is no more used. code rewrote
with debug_msg()
* [r33] src/debuglog.c: debug_xxd(): also use the debug_msg_type
way
* [r32] config.h.in: removed since generated automatically from
configure.in by autoheader
2002-04-04 Ludovic Rousseau
* [r31] Makefile.in, src/Makefile.in: removed since automatically
generated from Makefile.am
* [r30] src/pcscdaemon.c, src/winscard_msg.c: src/winscard_msg.c:
SHMProcessEvents() timeout on the select and go back into
src/pcscdaemon.c: SVCServiceRunLoop() This is used to catch the
Ctrl-C signal (in SVCServiceRunLoop) at some time when nothing
else happens
* [r29] src/dyn_unix.c: removed dlerror() from if tests since it is
not the best way to test for errors
* [r28] src/dyn_bsd.c: DYN_GetAddress() now correctly handles
errors by not using dlerror() to know if an error occured since
the error may have occured in a previous call Also removed
dlerror() from if tests everywhere else
* [r27] src/Makefile.am: add many .h files in include_HEADERS so
that 'make dist' include all the useful files add muscletest.c in
EXTRA_libpcsclite_core_la_SOURCES
2002-04-04 David Corcoran
* [r26] libmusclecard/src/musclecard.c: Some event changes,
begin/end transaction. Added IdentifyToken
2002-04-04 Ludovic Rousseau
* [r25] libmusclecard/utils/bundleTool/bundleTool.c: removed unused
variable char tempString[1024]; add a return 0 for main()
* [r24] libmusclecard/src/PCSC/mscdefines.h,
libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c, libmusclecard/src/muscletest.c,
libmusclecard/src/tokenfactory.c,
libmusclecard/src/tokenfactory.h,
libmusclecard/utils/bundleTool/bundleTool.c, src/PCSC/debuglog.h,
src/PCSC/dyn_generic.h, src/PCSC/ifdhandler.h,
src/PCSC/pcsclite.h.in, src/PCSC/sys_generic.h,
src/PCSC/thread_generic.h, src/PCSC/winscard.h,
src/PCSC/wintypes.h, src/atrhandler.c, src/atrhandler.h,
src/configfile.c, src/configfile.h, src/debuglog.c,
src/driverparser.c, src/dyn_bsd.c, src/dyn_hpux.c,
src/dyn_macosx.c, src/dyn_unix.c, src/eventhandler.c,
src/eventhandler.h, src/hotplug.h, src/hotplug_generic.c,
src/hotplug_linux.c, src/hotplug_macosx.c, src/ifdwrapper.c,
src/ifdwrapper.h, src/pcscdaemon.c, src/powermgt_macosx.c,
src/prothandler.c, src/prothandler.h, src/readerfactory.c,
src/readerfactory.h, src/sys_hpux.c, src/sys_solaris.c,
src/sys_unix.c, src/testpcsc.c, src/thread_macosx.c,
src/thread_unix.c, src/tokenparser.c, src/utils/formaticc.c,
src/utils/installifd.c, src/winscard.c, src/winscard_clnt.c,
src/winscard_msg.c, src/winscard_msg.h, src/winscard_svc.c,
src/winscard_svc.h: complete and automatic reindentation of *.c
and *.h files
* [r23] ChangeLog: test
2002-04-01 Jean-Luc Giraud
* [r22] libmusclecard/src/PCSC/musclecard.h: musclecard: - replaced
PCSC_TARGET_OSX with __APPLE__ in #ifndef for mscdefines.h
inclusion pbproj: - no meaningful modifications
2002-03-31 Jean-Luc Giraud
* [r21] pbx/PCSC.pbproj/project.pbxproj, src/readerfactory.c: Fix 1
issue in readerfactory.c - valueLength=sizeof(tagValue) in
RFSetReaderName to allow IFDHandlers to know how much space is
available
Modified PB project to allow build in proper order and have
testpcsc used the new PCSC framework available in the build
folder.
2002-03-31 David Corcoran
* [r20] src/configfile.c: Added this
* [r19] src/configfile.l: Big Ass Error badError = 1 instead of ==
2002-03-30 David Corcoran
* [r18] src/pcscdaemon.c: removed crap PCSC_DEBUG
* [r17] src/PCSC/wintypes.h, src/readerfactory.c: Fixed
multi-reader bug, also fixed wintypes bug
* [r16] build/aclocal.m4, config.h.in, configure, configure.in,
doc/Makefile.am, doc/Makefile.in, doc/bundleTool.1,
doc/pcscd.8.in, src/pcscdaemon.c, src/utils/Makefile.am,
src/utils/Makefile.in: added the man pages
* [r15] src/Makefile.am, src/configfile.c, src/configfile.l,
src/pcscdaemon.c: Added some command line arguments.
* [r14] src/PCSC/debuglog.h, src/PCSC/pcsclite.h.in,
src/debuglog.c, src/pcscdaemon.c, src/tokenparser.c: Added
command line debug options
* [r11] ., AUTHORS, COPYING, ChangeLog, DRIVERS, HELP, INSTALL,
Makefile.am, Makefile.in, NEWS, README, SECURITY, bootstrap,
build, build/acinclude.m4, build/aclocal.m4,
build/acx_pthread.m4, build/config.guess, build/config.sub,
build/install-sh, build/ltconfig, build/ltmain.sh, build/missing,
build/mkinstalldirs, build/ylwrap, config.h.in, configure,
configure.in, doc, doc/Makefile.am, doc/Makefile.in,
doc/README.DAEMON, doc/bundleTool.1, doc/pcsc-lite-0.8.7.pdf,
doc/pcscd.8.in, doc/pcscd.startup, etc, etc/Makefile.am,
etc/Makefile.in, etc/SmartcardServices,
etc/StartupParameters.plist, etc/reader.conf.in, libmusclecard,
libmusclecard/src, libmusclecard/src/PCSC,
libmusclecard/src/PCSC/mscdefines.h,
libmusclecard/src/PCSC/musclecard.h,
libmusclecard/src/musclecard.c, libmusclecard/src/muscletest.c,
libmusclecard/src/tokenfactory.c,
libmusclecard/src/tokenfactory.h, libmusclecard/utils,
libmusclecard/utils/bundleTool,
libmusclecard/utils/bundleTool/bundleTool.c, pbx,
pbx/PCSC.pbproj, pbx/PCSC.pbproj/project.pbxproj, pbx/config.h,
reconf, src, src/Makefile.am, src/Makefile.in, src/PCSC,
src/PCSC/debuglog.h, src/PCSC/dyn_generic.h,
src/PCSC/ifdhandler.h, src/PCSC/pcsclite.h.in,
src/PCSC/sys_generic.h, src/PCSC/thread_generic.h,
src/PCSC/winscard.h, src/PCSC/wintypes.h,
src/README_INTERNALS.txt, src/atrhandler.c, src/atrhandler.h,
src/configfile.c, src/configfile.h, src/configfile.l,
src/debuglog.c, src/driverparser.c, src/driverparser.l,
src/dyn_bsd.c, src/dyn_hpux.c, src/dyn_macosx.c, src/dyn_unix.c,
src/eventhandler.c, src/eventhandler.h, src/hotplug.h,
src/hotplug_generic.c, src/hotplug_linux.c, src/hotplug_macosx.c,
src/ifdwrapper.c, src/ifdwrapper.h, src/pcscdaemon.c,
src/powermgt_macosx.c, src/prothandler.c, src/prothandler.h,
src/readerfactory.c, src/readerfactory.h, src/sys_hpux.c,
src/sys_solaris.c, src/sys_unix.c, src/testpcsc.c,
src/thread_macosx.c, src/thread_unix.c, src/tokenparser.c,
src/tokenparser.l, src/utils, src/utils/Makefile.am,
src/utils/Makefile.in, src/utils/README, src/utils/formaticc.c,
src/utils/installifd.c, src/utils/sample.ibm,
src/utils/sample.in, src/utils/sample.out, src/winscard.c,
src/winscard_clnt.c, src/winscard_msg.c, src/winscard_msg.h,
src/winscard_svc.c, src/winscard_svc.h, stamp-h.in: Initial
revision
|