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
|
2012-04-07 ludovic.rousseau
* [r515] configure.in: Release 0.6.8
* [r514] src/common/pkcs11_lib.c: Fix typo: writeable -> writable
Reported by Debian lintian tool
* [r513] po/de.po, po/fr.po, po/nl.po, po/pam_pkcs11.pot, po/pl.po,
po/pt_br.po, po/ru.po, po/tr.po: Update
* [r512] src/pam_pkcs11/pam_pkcs11.c: Use a direct string instead
of a variable
Fix compiler error when Debian hardening is used:
pam_pkcs11.c:810:4: error: format not a string literal and no
format
arguments [-Werror=format-security]
* [r511] src/pam_pkcs11/pam_pkcs11.c: Add support of variadic
parameters for pam_prompt()
Systems without pam_prompt() and using our own version of
pam_prompt()
can now use a variable number of parameters as on GNU/Linux.
* [r510] src/pam_pkcs11/pam_pkcs11.c: Use a direct string instead
of variable
Fix compiler errors when Debian hardening is used:
pam_pkcs11.c:198:3: error: format not a string literal and no
format
arguments [-Werror=format-security]
* [r509] src/pam_pkcs11/pam_pkcs11.c: Fix compiler warning
pam_pkcs11.c:154:5: warning: passing argument 2 of `conv->conv'
from
incompatible pointer type [enabled by default]
pam_pkcs11.c:154:5: note: expected `const struct pam_message **'
but
argument is of type `struct pam_message **'
* [r508] src/pam_pkcs11/pam_pkcs11.c: Remove extra spaces
2011-11-08 ludovic.rousseau
* [r507] src/common/uri.c: Check for HAVE_CURL_CURL_H instead of
HAVE_CURL
This define is set by configure.in test
AC_CHECK_HEADERS([curl/curl.h])
Thanks to Hannu Kotipalo for the bug report
2011-10-18 ludovic.rousseau
* [r506] src/common/pkcs11_lib.c: get_private_key(): search for a
specific ID if any
Fixes bug #392 "pam_pkcs11 uses first found private key for
signing, not one matching certificate"
http://www.opensc-project.org/opensc/ticket/392
* [r505] src/common/pkcs11_lib.c: get_private_key(): remove unused
CKA_KEY_TYPE template attribute.
See bug #392 "pam_pkcs11 uses first found private key for
signing, not one matching certificate"
http://www.opensc-project.org/opensc/ticket/392
* [r504] src/common/pkcs11_lib.c: Fix spelling error
* [r503] src/pam_pkcs11/pam_pkcs11.c, src/tools/pkcs11_inspect.c,
src/tools/pklogin_finder.c: Fix spelling error
* [r502] src/tools/pkcs11_inspect.c: Login in all cases, not just
for NSS
Fixes Ticket #393 "pkcs11_inspect does not ask for card PIN"
http://www.opensc-project.org/opensc/ticket/393
2011-08-18 ludovic.rousseau
* [r501] po/pl.po: Update from Jakub Bogusz
2011-08-06 ludovic.rousseau
* [r500] configure.in: Release 0.6.7
* [r499] po/de.po, po/fr.po, po/nl.po, po/pam_pkcs11.pot, po/pl.po,
po/pt_br.po, po/ru.po, po/tr.po: Update
2011-07-17 ludovic.rousseau
* [r498] configure.in, po/tr.po: Add Turkish l18n file
Thanks to Ozan Çağlayan
http://www.opensc-project.org/pipermail/opensc-devel/2011-July/016952.html
2011-06-30 ludovic.rousseau
* [r497] configure.in: silent build by default
2011-06-10 ludovic.rousseau
* [r496] src/mappers/pwent_mapper.c: Remove useless cast
* [r495] src/mappers/pwent_mapper.c: Fix compiler warning
pwent_mapper.c: In function 'pwent_mapper_find_user':
pwent_mapper.c:75: warning: 'str' is used uninitialized in this
function
2011-05-27 ludovic.rousseau
* [r494] etc/pam_pkcs11.conf.example.in: Use "domainname" instead
of "domain"
Fix Ticket #363 "fix ms mapper example"
2011-04-07 ludovic.rousseau
* [r493] doc/pam_pkcs11.xml: Clarify between CA and CA root
certificate
* [r492] doc/pam_pkcs11.xml: Rename make_hash_link into
pkcs11_make_hash_link
2011-03-22 ludovic.rousseau
* [r491] AUTHORS, doc/pam_pkcs11.xml, po/de.po, po/fr.po, po/nl.po,
po/pam_pkcs11.pot, po/pl.po, po/pt_br.po, po/ru.po,
src/common/cert_vfy.c, src/pam_pkcs11/pam_config.c,
src/pam_pkcs11/pam_config.h, src/pam_pkcs11/pam_pkcs11.c:
Improved error messages
Thanks to Dominik Fischer for the patch
" It adds displaying error messages to the user via pam_prompt.
Because in
GDM the messages disappear so quick, I've added a new option
"err_display_time". After a message is shown with pam_prompt, a
"sleep(err_display_time)" is called. This gives the user a chance
to
read the message. Also I prepend every message with an error
number,
because this number is easier to remember, if a user reports a
problem.
The messages can be disabled via the "quiet" option. "
http://www.opensc-project.org/pipermail/opensc-devel/2011-March/016184.html
2011-03-20 ludovic.rousseau
* [r490] src/mappers/pwent_mapper.c: pwent_mapper_find_user(): add
a missing line for the previous patch
Thanks to Dominik Fischer
http://www.opensc-project.org/pipermail/opensc-devel/2011-March/016173.html
* [r489] src/mappers/pwent_mapper.c: pwent_mapper_find_user()
searches through all available passwd db
entries to find an user. This takes a very long time, if you have
many
users (10000). Additionally, if you have nss-ldap configured, it
transfers a large amount of data (which is expensive on mobile
connections...).
Included you find a patch to speed up user finding for the
pwent_mapper.
It first tries to find a user directly by calling getpwnam() with
the
found CN. If this fails, the old mechanism is used. (I think the
second
step could probably even be removed: I can't find a situation
where the
getpwnam() does not work.)
Please have a look at the patch. If it's OK please include it in
further
pam_pkcs11 releases (so I don't have to patch every new
pam_pkcs11
release on my own ;-) ).
Kind regards
Dominik Fischer
http://www.opensc-project.org/pipermail/opensc-devel/2011-March/016167.html
2011-01-22 ludovic.rousseau
* [r488] src/pam_pkcs11/pam_pkcs11.c: Remove useless code
pam_pkcs11.c:281:6: warning: Value stored to 'rv' is never read
rv = pam_get_item(pamh, PAM_USER, &user);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pam_pkcs11.c:269:10: warning: Value stored to 'rv' is never read
rv = pam_get_item(pamh, PAM_SERVICE, &service);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* [r487] src/pam_pkcs11/pam_config.c: Remove useless code
pam_config.c:302:3: warning: Value stored to 'res' is never read
res=sscanf(argv[i],"slot_num=%d",&configuration.slot_num);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* [r486] src/pam_pkcs11/mapper_mgr.c: Fix a clang warning without
changing the code semantic
mapper_mgr.c:201:10: warning: Field access results in a
dereference of a null
pointer (loaded from variable 'last')
last->next= item;
~~~~ ^
* [r485] src/tools/pkcs11_eventmgr.c: Remove usless code
pkcs11_eventmgr.c:268:17: warning: Value stored to 'res' is never
read
res=sscanf(argv[i],"expire_time=%d",&expire_time);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pkcs11_eventmgr.c:264:17: warning: Value stored to 'res' is never
read
res=sscanf(argv[i],"polling_time=%d",&polling_time);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pkcs11_eventmgr.c:595:7: warning: Value stored to 'rv' is never
read
rv = ph->fl->C_Initialize(NULL);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
pkcs11_eventmgr.c:594:7: warning: Value stored to 'rv' is never
read
rv = ph->fl->C_Finalize(NULL);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
pkcs11_eventmgr.c:569:3: warning: Value stored to 'rv' is never
read
rv = ph->fl->C_Initialize(NULL);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
pkcs11_eventmgr.c:568:3: warning: Value stored to 'rv' is never
read
rv = ph->fl->C_Finalize(NULL);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
* [r484] src/tools/card_eventmgr.c: Remove useless code
card_eventmgr.c:231:17: warning: Value stored to 'res' is never
read
res=sscanf(argv[i],"timeout_limit=%d",&timeout_limit);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
card_eventmgr.c:227:17: warning: Value stored to 'res' is never
read
res=sscanf(argv[i],"timeout=%d",&timeout);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
card_eventmgr.c:271:5: warning: Value stored to 'res' is never
read
res=fscanf(fd, "%ld", &temp);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
card_eventmgr.c:301:5: warning: Value stored to 'res' is never
read
res=write(fd, tmp, strlen(tmp));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
* [r483] src/scconf/scconf.c: Remove useless code
scconf.c:195:2: warning: Value stored to 'ret' is never read
ret = scconf_put_str(block, option, !value ? "false" : "true");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scconf.c:585:3: warning: Value stored to 'r' is never read
r = 0;
^ ~
scconf.c:711:3: warning: Value stored to 'r' is never read
r = 0;
^ ~
* [r482] src/mappers/ldap_mapper.c: Remove useless code
ldap_mapper.c:800:13: warning: Although the value stored to 'ret'
is used in the
enclosing expression, the value is never actually read from 'ret'
if ( 0 != (ret = ldap_unbind_s(ldap_connection))) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ldap_mapper.c:668:3: warning: Value stored to 'rv' is never read
rv = ldap_add_uri (uris, uri, &buffer, &buflen);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* [r481] src/common/cert_info.c: BN_append(): remove useless code
cert_info.c:654:2: warning: Value stored to 'res' is never read
res=BN_bn2bin(bn,buff+1);
^ ~~~~~~~~~~~~~~~~~~~~
cert_info.c:649:25: warning: Value stored to 'pt' is never read
res= int_append(pt,0);pt+=res;
^ ~~~
* [r480] src/common/cert_info.c: int_append(): remove useless code
cert_info.c:631:3: warning: Value stored to 'pt' is never read
*pt++= (n&0x000000ff) >>0;
^~~~
* [r479] src/common/uri.c: free_uri(): fix a memory leak
uri.c:175:14: warning: Field access results in a dereference of a
null pointer
(loaded from variable 'uri')
if(!uri->file) free(uri->file->data);
~~~ ^
* [r478] src/common/pkcs11_lib.c: Fix to clang warnings
pkcs11_lib.c:1323:3: warning: Value stored to 'rv' is never read
rv = -1;
^ ~~
pkcs11_lib.c:1346:3: warning: Value stored to 'rv' is never read
rv = -1;
^ ~~
* [r477] src/common/pkcs11_lib.c: close_pkcs11_session():
CKR_FUNCTION_NOT_SUPPORTED is a valid error code
and not an error.
Closes ticket #30 "pam_pkcs11 cert_vfy failed with Feitian card"
2010-11-20 ludovic.rousseau
* [r475] configure.in: release 0.6.6
2010-11-18 ludovic.rousseau
* [r474] src/tools/Makefile.am, src/tools/card_eventmgr.c,
src/tools/pkcs11_eventmgr.c: Use daemon implementation from
daemon.c when needed (for example on
Solaris 10)
See
http://www.opensc-project.org/pipermail/opensc-user/2010-November/004331.html
* [r473] src/tools/daemon.c: Use config.h instead of includes.h
Define _PATH_DEVNULL if needed. It was defined in includes.h in
OpenSSH
* [r472] src/tools/daemon.c: new file from OpenSSH version 5.6p1
openssh-5.6p1/openbsd-compat/daemon.c
The licence is BSD 3-clause so compatible with the LGPL v2+ used
by
pam_pkcs11
2010-10-25 ludovic.rousseau
* [r471] configure.in: Fix the change in revision 470
Thanks (again) to Arfrever Frehtes Taifersar Arahesis
http://www.opensc-project.org/pipermail/opensc-devel/2010-October/015175.html
* [r470] configure.in: Default is to use pcsc-lite. The argument is
--without-pcsclite to
disable pcsc-lite use/support
Thanks to Arfrever Frehtes Taifersar Arahesis for the bug report
http://www.opensc-project.org/pipermail/opensc-devel/2010-October/015172.html
2010-10-23 ludovic.rousseau
* [r469] doc/pam_pkcs11.xml: rename make_hash_link.sh in
pkcs11_make_hash_link
* [r468] configure.in: Display ${libdir} value
* [r467] tools/Makefile.am, tools/make_hash_link.sh,
tools/pkcs11_make_hash_link: rename make_hash_link.sh to
pkcs11_make_hash_link to match the manpage
name
2010-10-19 ludovic.rousseau
* [r465] src/pam_pkcs11/pam_pkcs11.c: Unload the mapper also on
success
Thanks to Andre Zepezauer for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2010-October/015150.html
* [r464] doc/doxygen.conf.in: Update from doxygen version 1.5.6 to
1.7.1
* [r463] configure.in: release 0.6.5
* [r462] po/de.po, po/fr.po, po/nl.po, po/pam_pkcs11.pot, po/pl.po,
po/pt_br.po, po/ru.po: regenerate
* [r461] src/common/Makefile.am: Add the missing strndup.h file
* [r460] src/common/uri.c: get_http(): check if complete message
was transmitted
Thanks to Andre Zepezauer for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2010-October/015137.html
* [r459] src/common/uri.c: get_http(): allocate enough memory to
fit http-request
Thanks to Andre Zepezauer for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2010-October/015137.html
* [r458] src/common/uri.c: get_http(): add missing return statement
Thanks to Andre Zepezauer for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2010-October/015137.html
* [r457] configure.in: If dlopen() is not found in libdl we try to
find it without specifying a
library before exiting in error.
I don't remember why I used this code. Maybe dlopen() is not in
libdl on
some systems.
2010-10-16 ludovic.rousseau
* [r456] po/fr.po: Translate a string
* [r455] po/de.po, po/fr.po, po/nl.po, po/pam_pkcs11.pot, po/pl.po,
po/pt_br.po, po/ru.po: Regenerate
* [r454] src/pam_pkcs11/pam_pkcs11.c: Replace "Found the %s." by
"%s found."
Thanks to Mr Dash Four for the bug report
http://www.opensc-project.org/pipermail/opensc-devel/2010-October/015135.html
2010-10-15 ludovic.rousseau
* [r453] src/common/pkcs11_lib.c: crypto_init(): fix a typo in log
message
2010-09-22 ludovic.rousseau
* [r452] src/common/pkcs11_lib.c: pkcs11_pass_login(): check if the
PIN returned by getpass is NULL
Thanks to Andre Zepezauer for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2010-September/014976.html
* [r451] src/common/pkcs11_lib.c: pkcs11_pass_login(): log an error
if pkcs11_login() fails
Thanks to Andre Zepezauer for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2010-September/014964.html
* [r450] src/common/pkcs11_lib.c: pkcs11_pass_login(): do not clean
a zero length PIN
Thanks to Andre Zepezauer for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2010-September/014964.html
* [r449] src/common/pkcs11_lib.c, src/pam_pkcs11/pam_pkcs11.c: Show
PIN code in debug output only if DEBUG_SHOW_PASSWORD is defined
(not defined by default)
Thanks to Andre Zepezauer for the bug report
http://www.opensc-project.org/pipermail/opensc-devel/2010-September/014964.html
2010-09-21 ludovic.rousseau
* [r448] src/pam_pkcs11/pam_config.c: parse_config_file(): get the
debug value from the configuration file
Thanks to Andre Zepezauer for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2010-September/014949.html
2010-08-25 ludovic.rousseau
* [r447] src/tools/card_eventmgr.c: Do not call
SCardEstablishContext() before daemonize since pcsc-lite
handles are invalid after a fork.
Thanks to Patrik Martinsson for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2010-August/014632.html
2010-08-19 ludovic.rousseau
* [r446] src/tools/card_eventmgr.c: Use SCARD_READERSTATE instead
of SCARD_READERSTATE_A since it was
removed in pcsc-lite >= 1.6.2
2010-08-14 ludovic.rousseau
* [r445] src/mappers/cn_mapper.c, src/mappers/digest_mapper.c,
src/mappers/generic_mapper.c, src/mappers/krb_mapper.c,
src/mappers/ldap_mapper.c, src/mappers/mail_mapper.c,
src/mappers/mapper.c, src/mappers/mapper.h,
src/mappers/ms_mapper.c, src/mappers/null_mapper.c,
src/mappers/opensc_mapper.c, src/mappers/openssh_mapper.c,
src/mappers/pwent_mapper.c, src/mappers/subject_mapper.c,
src/mappers/uid_mapper.c, src/pam_pkcs11/mapper_mgr.c,
src/tools/pklogin_finder.c: Patch for #239 and #240 (handle more
than one cert/pattern matching)
Thanks to Wolf Geldmacher for the patch.
http://www.opensc-project.org/pipermail/opensc-devel/2010-June/014405.html
" Here's a patch to solve the issues I've encountered using
pam_pkcs11.
In regards to #239 (pam_pkcs11 only looks at first certificate on
token):
The fix for this turns out to be somewhat problematic, and I'm
not at
all sure, whether my implementation of the fix is a valid one.
The basic problem (as I understood it from analyzing the code) is
that
finder functions of the mappers return a char*, allowing for a
single
value (NULL) to signalize failure and return the key if no
mapping (i.e.
no value associated with the key) was found (cf. comment for
mapfile_find in src/mappers/mapper.c). Thus a caller (i.e.
find_user in
src/pam_pkcs11/mapper_mgr.c) cannot distinguish between a mapping
or a
key being returned and thus will prematurely terminate on the
first
certificate that passes the other validity tests.
The fix provided changes the finder function interface by
requiring an
additional out parameter that is set to 1, if a real mapping
value was
returned and remains unchanged otherwise. This fix breaks
existing
loadable mappers.
I considered overloading of the value returned (e.g. having a
byte/substring as first character of the value returned to be
able to
distinguish between a value and a key being returned) which would
preserve the interface to the mappers, but refrained from
implementing
it that way as I believe this to be unclean and prone to
difficult to
track errors.
Another solution I considered was the addition of another entry
to the
structure encapsulating the mappers (e.g. a finder2 method), but
as this
is no better in breaking the interface for loadable mappers and
duplicates code I forfeited this solution, too.
If somebody could look into the problem and come up with a
solution that
preserves the interface to external mappers while allowing the
distinction between keys and values, I'd be more than happy to
implement
it.
It might also may make sense to add a new configuration parameter
for
the new behaviour of find_user, allowing existing applications to
continue to work with keys being returned instead of values
(Feedback
anyone? The comment for find_user actually states that a mapping
value
is returned).
In regards to #240 (Allow pattern matching in pam_pkcs11):
I restricted this to only work for mapfiles and the
implementation
turned out to be quite simple - it's essentially an 11 line
change in
src/mappers/mapper.c - and is triggered by the specification of a
fully
anchored (i.e. *must* have initial "^" and *must* end in "$")
pattern as
key in a mapfile.
This now allows syntax like
^.*/serialNumber=xxx-xxx-xxx-xxx$ -> username
in all mapfiles.
The patch attached contains the changes for both issues.
Cheers,
Wolf "
2010-08-13 ludovic.rousseau
* [r444] src/pam_pkcs11/pam_pkcs11.c: Do not use a variadic
parameter for pam_prompt. It is not supported on
FreeBSD.
2010-08-12 ludovic.rousseau
* [r443] src/common/strndup.h, src/tools/pkcs11_setup.c: Add a new
header file to define strndup if needed.
pkcs11_setup.c: In function ‘scconf_replace_str_list’:
pkcs11_setup.c:73: warning: implicit declaration of function
‘strndup’
pkcs11_setup.c:73: warning: incompatible implicit declaration of
built-in function ‘strndup’
* [r441] src/pam_pkcs11/pam_config.c, src/tools/pkcs11_inspect.c,
src/tools/pkcs11_listcerts.c, src/tools/pklogin_finder.c: Revert
changeset 301 parsing arguments in pam_config.c but skip the
first argument in command line tools.
Thanks to halfline for the patch. Closes ticket #29
2010-06-12 ludovic.rousseau
* [r440] configure.in: release 0.6.4
* [r439] po/fr.po: translate a string
* [r438] po/de.po, po/fr.po, po/nl.po, po/pam_pkcs11.pot, po/pl.po,
po/pt_br.po, po/ru.po: regenerate
2010-06-08 ludovic.rousseau
* [r437] src/pam_pkcs11/pam_pkcs11.c: Fixes Ticket #26 "Additional
check for local X11 Display"
* [r436] src/pam_pkcs11/pam_pkcs11.c: Revert revision 422 since
Solaris 10 does not support pam_prompt() with
a variable number of parameters (like printf)
Also remove some cast since Solaris 10 does not have the same
prototype
for pam_* functions
GNU/Linux uses "const" parameters but Solaris does not.
2010-06-07 ludovic.rousseau
* [r435] src/common/pkcs11_lib.c, src/common/pkcs11_lib.h,
src/pam_pkcs11/pam_pkcs11.c: Add support of
CKF_PROTECTED_AUTHENTICATION_PATH for pinpad readers.
If a pinpad is present the PIN/password is not asked by PAM but
by the
pinpad only.
Closes: Ticket #19 "enabled pinpad: confusing keyboard
interaction"
2010-05-30 ludovic.rousseau
* [r434] configure.in, po/nl.po: Add dutch translation
Thanks to Guy Zelck
2010-04-20 ludovic.rousseau
* [r433] configure.in, po/pt_br.po: add Brazilian Portuguese
Translation
Thanks to Anderson Goulart
2010-04-10 ludovic.rousseau
* [r432] src/pam_pkcs11/pam_pkcs11.c: use #ifdef instead of #if
Fix
pam_pkcs11.c:46:5: warning: "ENABLE_NLS" is not defined
* [r431] src/common/uri.h: Use stdlib.h instead of malloc.h (not
present on Mac OS X for example)
* [r430] src/common/pkcs11_lib.c: Closes: Ticket #22
"get_slot_login_required missing from NSS side."
* [r429] src/common/algorithm.c: Fix compiler when used with NSS
algorithm.c:54: error: conflicting types for
‘Alg_get_digest_by_name’
./alg_st.h:50: note: previous declaration of
‘Alg_get_digest_by_name’ was here
* [r428] po/de.po: Closes: Ticket #21 "Update for German
translation"
* [r427] po/de.po, po/fr.po, po/pam_pkcs11.pot, po/pl.po, po/ru.po:
regenerate
* [r425] configure.in: Release 0.6.3
* [r424] src/common/uri.c: Fix
uri.c: In function ‘get_from_uri’:
uri.c:595: warning: enumeration value ‘unknown’ not handled in
switch
* [r423] src/mappers/ldap_mapper.c: Fix a potential bug
ldap_mapper.c: In function ‘ldap_get_certificate’:
ldap_mapper.c:601: warning: ‘rv’ may be used uninitialized in
this function
* [r422] src/pam_pkcs11/pam_pkcs11.c: Directly use pam_prompt() to
format the string instead of sprintf()
Fix
pam_pkcs11.c: In function ‘pam_sm_authenticate’:
pam_pkcs11.c:289: warning: format not a string literal and no
format arguments
pam_pkcs11.c:358: warning: format not a string literal and no
format arguments
pam_pkcs11.c:386: warning: format not a string literal and no
format arguments
pam_pkcs11.c:407: warning: format not a string literal and no
format arguments
pam_pkcs11.c:428: warning: format not a string literal and no
format arguments
* [r421] src/pam_pkcs11/pam_pkcs11.c: Fix compiler warnings
pam_pkcs11.c: In function ‘pam_sm_authenticate’:
pam_pkcs11.c:622: warning: field precision should have type
‘int’, but argument 4 has type ‘long unsigned int’
pam_pkcs11.c:622: warning: field precision should have type
‘int’, but argument 4 has type ‘long unsigned int’
pam_pkcs11.c:639: warning: field precision should have type
‘int’, but argument 4 has type ‘long unsigned int’
pam_pkcs11.c:639: warning: field precision should have type
‘int’, but argument 4 has type ‘long unsigned int’
pam_pkcs11.c:661: warning: field precision should have type
‘int’, but argument 4 has type ‘long unsigned int’
pam_pkcs11.c:661: warning: field precision should have type
‘int’, but argument 4 has type ‘long unsigned int’
* [r420] src/tools/card_eventmgr.c: Fix compiler warning
card_eventmgr.c: In function ‘signal_trap’:
card_eventmgr.c:302: warning: unused parameter ‘sig’
* [r419] src/common/pkcs11_lib.c: Fix compiler warning
pkcs11_lib.c: In function ‘crypto_init’:
pkcs11_lib.c:934: warning: unused parameter ‘policy’
* [r418] src/common/pkcs11_lib.c: Update a cast to fix a compiler
warning
pkcs11_lib.c: In function ‘get_certificate_list’:
pkcs11_lib.c:1520: warning: passing argument 2 of ‘d2i_X509’ from
incompatible pointer type
/usr/include/openssl/x509.h:940: note: expected ‘const unsigned
char **’ but argument is of type ‘CK_BYTE **’
* [r417] src/common/pkcs11_lib.c: Use a cast to fix compilers
warnings
pkcs11_lib.c: In function
‘find_slot_by_slotlabel_and_tokenlabel’:
pkcs11_lib.c:1264: warning: pointer targets in passing argument 1
of ‘strlen’ differ in signedness
/usr/include/string.h:397: note: expected ‘const char *’ but
argument is of type ‘CK_UTF8CHAR *’
pkcs11_lib.c:1264: warning: pointer targets in passing argument 2
of ‘__builtin_strcmp’ differ in signedness
pkcs11_lib.c:1264: note: expected ‘const char *’ but argument is
of type ‘CK_UTF8CHAR *’
pkcs11_lib.c:1264: warning: pointer targets in passing argument 2
of ‘__builtin_strcmp’ differ in signedness
pkcs11_lib.c:1264: note: expected ‘const char *’ but argument is
of type ‘CK_UTF8CHAR *’
pkcs11_lib.c:1264: warning: pointer targets in passing argument 1
of ‘strlen’ differ in signedness
/usr/include/string.h:397: note: expected ‘const char *’ but
argument is of type ‘CK_UTF8CHAR *’
pkcs11_lib.c:1264: warning: pointer targets in passing argument 2
of ‘__builtin_strcmp’ differ in signedness
pkcs11_lib.c:1264: note: expected ‘const char *’ but argument is
of type ‘CK_UTF8CHAR *’
pkcs11_lib.c:1264: warning: pointer targets in passing argument 2
of ‘__builtin_strcmp’ differ in signedness
pkcs11_lib.c:1264: note: expected ‘const char *’ but argument is
of type ‘CK_UTF8CHAR *’
2010-04-08 ludovic.rousseau
* [r416] src/mappers/Makefile.am: Fix typos in comments
2010-04-07 ludovic.rousseau
* [r415] configure.in, etc/Makefile.am, etc/pam.d_login.example,
etc/pam.d_login.example.in, etc/pam_pkcs11.conf.example,
etc/pam_pkcs11.conf.example.in: generate the example files
pam_pkcs11.conf.example and
pam.d_login.example with the correct libdir path
Closes: Ticket #213 "pam-pkcs11: wrong path in
/etc/pam_pkcs11/pam_pkcs11.conf for mappers"
* [r414] src/pam_pkcs11/pam_config.c, src/pam_pkcs11/pam_config.h,
src/pam_pkcs11/pam_pkcs11.c: Add a "quiet" configuration option
Closes: Ticket #25 "Quiet Mode for pam_pkcs11"
* [r413] src/common/cert_vfy.c: Fix
cert_vfy.c: In function ‘download_crl’:
cert_vfy.c:125: warning: passing argument 2 of ‘d2i_X509_CRL’
from incompatible pointer type
cert_vfy.c:131: warning: passing argument 2 of ‘d2i_X509_CRL’
from incompatible pointer type
* [r412] src/common/cert_vfy.c: Fix
cert_vfy.c: In function ‘setup_store’:
cert_vfy.c:347: warning: initialization discards qualifiers from
pointer target type
cert_vfy.c:354: warning: initialization discards qualifiers from
pointer target type
cert_vfy.c:373: warning: initialization discards qualifiers from
pointer target type
cert_vfy.c:380: warning: initialization discards qualifiers from
pointer target type
* [r411] src/common/debug.c: Fix
debug.c: In function ‘debug_print’:
debug.c:63: warning: format not a string literal and no format
arguments
* [r410] src/tools/pkcs11_eventmgr.c: Fix
pkcs11_eventmgr.c: In function ‘parse_args’:
pkcs11_eventmgr.c:231: warning: assignment discards qualifiers
from pointer target type
* [r409] src/tools/card_eventmgr.c: Fix
card_eventmgr.c: In function ‘parse_args’:
card_eventmgr.c:189: warning: assignment discards qualifiers from
pointer target type
* [r408] src/common/pkcs11_lib.c, src/common/pkcs11_lib.h: module
argument of load_pkcs11_module() is now a (const char *)
Fix
pkcs11_inspect.c: In function ‘main’:
pkcs11_inspect.c:70: warning: passing argument 1 of
‘load_pkcs11_module’ discards qualifiers from pointer target type
pkcs11_listcerts.c: In function ‘main’:
pkcs11_listcerts.c:70: warning: passing argument 1 of
‘load_pkcs11_module’ discards qualifiers from pointer target type
pklogin_finder.c: In function ‘main’:
pklogin_finder.c:72: warning: passing argument 1 of
‘load_pkcs11_module’ discards qualifiers from pointer target type
etc.
* [r407] src/common/cert_info.c: Fix
cert_info.c: In function ‘cert_key_alg’:
cert_info.c:815: warning: initialization discards qualifiers from
pointer target type
* [r406] src/common/cert_info.c: Fix
cert_info.c: In function ‘cert_info_sshpuk’:
cert_info.c:694: warning: passing argument 2 of ‘str_append’
discards qualifiers from pointer target type
cert_info.c:708: warning: passing argument 2 of ‘str_append’
discards qualifiers from pointer target type
* [r405] src/common/cert_info.c: cert_info_sshpuk(): use (const
char *) for type to avoid compiler
warning
cert_info.c: In function ‘cert_info_sshpuk’:
cert_info.c:690: warning: assignment discards qualifiers from
pointer target type
cert_info.c:705: warning: assignment discards qualifiers from
pointer target type
* [r404] src/common/alg_st.h, src/common/algorithm.c: Change return
type of Alg_get_digest_by_name() to avoid a compiler
warning
algorithm.c: In function ‘Alg_get_digest_by_name’:
algorithm.c:74: warning: return discards qualifiers from pointer
target type
* [r403] src/common/cert_vfy.h, src/pam_pkcs11/pam_config.h: Use
(const char *) for configuration strings instead of (char *)
* [r402] src/pam_pkcs11/pam_config.c: Do not use sscanf() to not
overwrite the buffers
* [r401] src/pam_pkcs11/pam_config.c: Use DEBUG_CONFIG to trace the
configuration
* [r400] src/pam_pkcs11/pam_pkcs11.c: pam_sm_authenticate(): also
log the module name that failed to load
* [r399] src/common/cert_info.c, src/common/pkcs11_lib.c,
src/common/strings.c, src/common/uri.c,
src/pam_pkcs11/mapper_mgr.c, src/pam_pkcs11/pam_config.c,
src/tools/pkcs11_eventmgr.c: Do not cast malloc return value
2010-04-02 ludovic.rousseau
* [r398] src/common/pkcs11_lib.c: Correctly initialize initArgs and
.pReserved in particular
Fixes Ticket #24 "PKCS#11 Module initialized with incomplete
data."
* [r397] src/pam_pkcs11/pam_pkcs11.c: Do not prompt for a username
if one is already available.
Fixes Ticket #23
2010-02-03 ludovic.rousseau
* [r396] src/mappers/opensc_mapper.c: opensc_mapper_match_certs():
PATH_MAX is not defined (unlimited) on Hurd
The correct solution would be to use a dynamic allocation
* [r395] configure.in: release 0.6.2
2010-01-03 ludovic.rousseau
* [r393] doc/pkcs11_make_hash_link.1: fix hyphen-used-as-minus-sign
See http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html
* [r392] src/mappers/ldap_mapper.c: fix spelling error
* [r391] src/mappers/ldap_mapper.c: fix spelling error
2009-12-17 ludovic.rousseau
* [r390] doc/pkcs11_setup.1: document use_module
* [r389] src/tools/pkcs11_setup.c: use ERR1() instead of DBG1() in
case of error
* [r388] src/tools/pkcs11_listcerts.c: use printf() instead of
DBG1() to display the certificates even if debug
mode is not used
* [r387] doc/pkcs11_make_hash_link.1: add an EXAMPLE section
* [r386] doc/doxygen.conf.in: use @PACKAGE_VERSION@ so that
configure replaces it by the correct value
* [r385] configure.in: generate doc/doxygen.conf
2009-12-16 ludovic.rousseau
* [r384] doc/Makefile.am, doc/pkcs11_listcerts.1,
doc/pkcs11_make_hash_link.1, doc/pkcs11_setup.1: add missing man
pages
* [r383] src/tools/pkcs11_setup.c: add support of "debug" argument
* [r382] configure.in, doc/Makefile.am, doc/card_eventmgr.1,
doc/card_eventmgr.1.in, doc/pkcs11_eventmgr.1,
doc/pkcs11_eventmgr.1.in, doc/pkcs11_inspect.1,
doc/pkcs11_inspect.1.in, doc/pklogin_finder.1,
doc/pklogin_finder.1.in: The manpages do not use #PKGVERSION# any
more. No need to convert them
* [r381] src/common/Makefile.am: link with $(LIBDL)
* [r380] configure.in: add a check for dlopen() in libdl
2009-12-03 ludovic.rousseau
* [r379] src/common/pkcs11_lib.c, src/common/pkcs11_lib.h,
src/pam_pkcs11/pam_pkcs11.c: "pam_pkcs11 doesn't work with cards
with no PIN installed. It tries to
C_Login() whenever PIN is really needed and fails with "C_Login()
failed: 0x00000102".
I've made a patch which corrects this behavior:
* implements get_slot_login_required() function what checks
whether
current slot requires login
* makes pam_pkcs11 ask for PIN only if it is needed"
Thanks to Oleg Smirnov for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-December/012929.html
2009-10-06 ludovic.rousseau
* [r378] src/mappers/Makefile.am, src/pam_pkcs11/Makefile.am: use
-shared to avoid builing the useless static libraries
Thanks to Diego Elio Pettenò for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-October/012598.html
* [r377] configure.in, src/mappers/Makefile.am,
src/pam_pkcs11/Makefile.am, src/tools/Makefile.am: do not define
static library in configure.in but use the .la files in
the Makefile.am
* [r376] src/pam_pkcs11/Makefile.am: Do not use a custom install
override rule
Thanks to Diego Elio Pettenò for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-October/012587.html
* [r375] src/tools/Makefile.am: use ../pam_pkcs11/libfinder.la
instead of directly pointing to .o files
* [r374] src/pam_pkcs11/Makefile.am: create a libfinder.la library
for tools in src/tools/
* [r373] etc/Makefile.am: install examples in doc dir instead of
pkgdata dir.
Thanks to Diego Elio Pettenò for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2009-October/012587.html
2009-09-21 ludovic.rousseau
* [r372] src/scconf/parse.c, src/scconf/scconf.c: sync with scconf
from OpenSC
2009-09-17 ludovic.rousseau
* [r371] src/common/pkcs11_lib.c: find_slot_by_slotlabel(): also
check the slot is present
Thanks to Aro RANAIVONDRAMBOLA for the patch
http://www.opensc-project.org/pipermail/opensc-user/2009-August/003231.html
2009-09-02 ludovic.rousseau
* [r370] src/tools/card_eventmgr.c: card_eventmgr.c:80: warning:
nested extern declaration of ‘environ’
* [r369] src/tools/pkcs11_eventmgr.c: pkcs11_eventmgr.c:118:
warning: nested extern declaration of ‘environ’
* [r368] doc/pkcs11_eventmgr.1.in: use the standard format for NAME
section
W: libpam-pkcs11: manpage-has-bad-whatis-entry
usr/share/man/man1/pkcs11_eventmgr.1.gz
2009-07-06 ludovic.rousseau
* [r367] src/common/cert_info.c: cert_info_sshpuk(): avoid a buffer
overflow followed by a crash
Thanks to Joshua Kinard for the bug report
2009-07-03 ludovic.rousseau
* [r366] README: correct typos and remove spaces at end of lines
2009-06-12 ludovic.rousseau
* [r364] configure.in: release 0.6.1
* [r363] src/common/cert_vfy.h, src/common/debug.h,
src/common/strings.h: update Doxygen comments
* [r362] doc/doxygen.conf.in: updated using doxygen -u
* [r361] po/de.po, po/fr.po, po/pam_pkcs11.pot, po/pl.po, po/ru.po:
update
2008-12-19 ludovic.rousseau
* [r360] src/common/cert_info.c: BN_append(): avoid a possible
memory leak (detected by cppcheck tool)
2008-11-06 ludovic.rousseau
* [r359] src/mappers/ldap_mapper.c: ldap_get_certificate(): in case
NSS is used
- use CERT_NewTempCertificate() to create a certificate
- use CERT_DestroyCertificate() to free a certificate
thanks to Robert Relyea for the idea
http://www.opensc-project.org/pipermail/opensc-devel/2008-November/011418.html
* [r358] src/common/NSPRerrs.h, src/common/SECerrs.h,
src/common/algorithm.c, src/common/base64.h,
src/common/cert_info.c, src/common/cert_info.h,
src/common/cert_vfy.c, src/common/cert_vfy.h, src/common/debug.c,
src/common/debug.h, src/common/error.h, src/common/pkcs11_lib.c,
src/common/pkcs11_lib.h, src/common/rsaref/PKCS11_README,
src/common/rsaref/pkcs11.h, src/common/rsaref/pkcs11f.h,
src/common/rsaref/pkcs11t.h, src/common/secutil.h,
src/common/strings.h, src/common/uri.c, src/mappers/cn_mapper.c,
src/mappers/cn_mapper.h, src/mappers/digest_mapper.c,
src/mappers/digest_mapper.h, src/mappers/generic_mapper.c,
src/mappers/generic_mapper.h, src/mappers/krb_mapper.c,
src/mappers/krb_mapper.h, src/mappers/ldap_mapper.c,
src/mappers/ldap_mapper.h, src/mappers/mail_mapper.c,
src/mappers/mail_mapper.h, src/mappers/mapper.c,
src/mappers/mapper.h, src/mappers/mapperlist.h,
src/mappers/ms_mapper.c, src/mappers/ms_mapper.h,
src/mappers/null_mapper.h, src/mappers/opensc_mapper.c,
src/mappers/opensc_mapper.h, src/mappers/openssh_mapper.c,
src/mappers/openssh_mapper.h, src/mappers/pwent_mapper.c,
src/mappers/pwent_mapper.h, src/mappers/subject_mapper.h,
src/mappers/uid_mapper.c, src/mappers/uid_mapper.h,
src/pam_pkcs11/mapper_mgr.c, src/pam_pkcs11/mapper_mgr.h,
src/pam_pkcs11/pam_config.c, src/pam_pkcs11/pam_pkcs11.c,
src/scconf/README.scconf, src/scconf/parse.c,
src/tools/card_eventmgr.c, src/tools/pkcs11_eventmgr.c,
src/tools/pkcs11_listcerts.c, src/tools/pkcs11_setup.c,
src/tools/pklogin_finder.c: remove trailing tab and space
characters
* [r357] src/mappers/ldap_mapper.c: ldap_get_certificate(): check
the value of ldap_x509[rv] instead of
ldap_x509. The previous test was never true
* [r356] src/mappers/ldap_mapper.c: ldap_get_certificate(): typo in
log message
* [r355] src/mappers/ldap_mapper.c: ldap_get_certificate(): check
returned value of malloc()
2008-11-04 ludovic.rousseau
* [r354] src/common/cert_st.h, src/mappers/ldap_mapper.c: use ==
instead of CERT_CompareCerts() to compare two NSS certificates.
Thanks to Robert Relyea for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2008-October/011406.html
2008-10-24 ludovic.rousseau
* [r353] src/common/cert_st.h, src/mappers/ldap_mapper.c:
common/cert_st.h: define CERT_cmp to be either CERT_CompareCerts
for NSS
or X509_cmp for OpenSSL
mappers/ldap_mapper.c: use CERT_cmp() instead of X509_cmp() the
same
code should work with NSS or OpenSSL
2008-10-16 ludovic.rousseau
* [r352] src/common/pkcs11_lib.c: declare local function
password_passthrough() static
pkcs11_lib.c:169: warning: no previous prototype for
'password_passthrough'
* [r351] src/common/pkcs11_lib.c: find_slot_by_number(): slot_num
is unsigned int so to not check for
slot_num >= 0
pkcs11_lib.c:353: warning: comparison of unsigned expression >= 0
is always true
* [r350] src/mappers/opensc_mapper.c: opensc_mapper_match_certs():
local variables are only used if NSS is not
used
* [r349] src/tools/pkcs11_eventmgr.c: declare two functions static
to avoid no previous prototype warnings
* [r348] src/common/cert_vfy.c, src/common/error.c,
src/mappers/ldap_mapper.c, src/tools/pkcs11_eventmgr.c: include
.h files to avoid implicit declaration warnings
Thanks to Stanislav Brabec for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2008-October/011390.html
* [r347] src/common/pkcs11_lib.c: pkcs11_lib.c:295: error:
conflicting types for 'find_slot_by_number'
pkcs11_lib.h:34: error: previous declaration of
'find_slot_by_number' was here
2008-10-14 ludovic.rousseau
* [r346] src/common/pkcs11_lib.c, src/common/pkcs11_lib.h:
pkcs11_lib.c: In function 'find_slot_by_number':
pkcs11_lib.c:1143: warning: comparison between signed and
unsigned
pkcs11_lib.c:1150: warning: comparison between signed and
unsigned
* [r345] src/common/pkcs11_lib.c: rename index in idx
pkcs11_lib.c:1212: warning: declaration of 'index' shadows a
global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
* [r344] src/common/cert_info.c: cert_info.c:841: warning: pointer
targets in passing argument 1 of
'bin2hex' differ in signedness
* [r343] src/pam_pkcs11/pam_config.c: Passing slot_description= and
token_type= on the command line was not
handled correctly (crash)
* [r342] src/common/pkcs11_lib.c: pkcs11_lib.c:124: warning:
implicit declaration of function 'isspace'
* [r341] etc/pam_pkcs11.conf.example, po/POTFILES.in, po/de.po,
po/fr.po, po/pam_pkcs11.pot, po/pl.po, po/ru.po,
src/pam_pkcs11/pam_config.c, src/pam_pkcs11/pam_config.h,
src/pam_pkcs11/pam_pkcs11.c: Allow to configure the token name in
the different PAM prompts. Default
value is "Smart card". See token_type= configuration in
etc/pam_pkcs11.conf
Thanks to Huie-Ying Lee for the patch.
2008-09-26 ludovic.rousseau
* [r340] src/common/Makefile.am: add missing secutil.h
Thanks to Stanislav Brabec for the patch
* [r339] configure.in: correctly close ] and )
* [r338] src/common/cert_info.c, src/mappers/ms_mapper.c: Patch
from Jacob Berkman improves Microsoft UPN OID support.
Thanks to Stanislav Brabec
http://www.opensc-project.org/pipermail/opensc-devel/2008-September/011336.html
* [r337] etc/pam_pkcs11.conf.example: add NSS (Network Security
Service) config sample
* [r336] src/mappers/ms_mapper.c: Add support of domainnickname.
Thanks to Jacob Berkman for the patch and Stanislav Brabec for
the
forward
* [r335] etc/pam_pkcs11.conf.example: add a missing ; at end of
line
Thanks to Stanislav Brabec for the patch
Closes OpenSC ticket #154
2008-09-25 ludovic.rousseau
* [r334] src/common/pkcs11_lib.c: load_pkcs11_module(): do not
check that the group ownership of
libpkcs11.so is 0. It is 2 on Solaris.
Thanks to Huie-Ying Lee for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2008-September/011334.html
2008-09-16 ludovic.rousseau
* [r333] configure.in, src/tools/pkcs11_eventmgr.c: Use daemon()
only if supported by the platform (it is not available on
Solaris)
Thanks to Huie-Ying Lee for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2008-September/011326.html
2008-09-12 ludovic.rousseau
* [r332] etc/pam_pkcs11.conf.example, src/common/pkcs11_lib.c,
src/common/pkcs11_lib.h, src/pam_pkcs11/pam_config.c,
src/pam_pkcs11/pam_config.h, src/pam_pkcs11/pam_pkcs11.c,
src/tools/pkcs11_inspect.c, src/tools/pkcs11_listcerts.c,
src/tools/pklogin_finder.c: Patch to use identify a token by its
slot description instead of slot number
Thanks to Huie-Ying Lee for the patch
http://www.opensc-project.org/pipermail/opensc-devel/2008-September/011317.html
======================================
Problem
======================================
Currently, the pam_pkcs11 module uses slot_num for the slot/token
selection.
However, this is not safe because there is no guaranteed ordering
of slots
returned from the PKCS#11 C_GetSlotList() function, according to
the RSA
PKCS#11 specification.
On Solaris OS, the libpkcs11 library uses plug-ins to provide the
slots. An
administrator can install or uninstall a plug-in by using a
utility command
called "cryptoadm" on Solaris. Therefore, a particular slot may
be associated
with different slot numbers on different systems or even on the
same system on
different runs.
======================================
Solution
======================================
To address the above issue, our solution is to replace the
"slot_num" entry
with a "slot_description" entry in the "pam_pkcs11.conf"
configuration file for
the slot/token selection as illustrated below.
- pam_pkcs11.conf -
pkcs11_module default {
module = /usr/lib/libpkcs11.so;
description = "Solaris PKCS#11 Cryptographic Framework library";
#
# Which slot to use. The slot is specified by the slot
description.
# For example, slot_description = "Sun Crypto Softtoken".
#
# An administrator can use the "cryotoadm list -v" command to
find
# all the available slots and their slot descriptions. For more
# information, see the libpkcs11(3LIB) and cryptoadm(1m) man
pages.
#
# The default value is "none" which means to use the first slot
with
# an available token.
#
slot_description = "none"
...
}
The slot_description field will be used to specify the slot to be
used. Its
value should be the slot label for the slot, which is basically
the same as the
slotDescription string in the CK_SLOT_INFO structure returned
from the
C_GetSlotInfo() function.
In the original slot_num design, when slot_num is 0, it means to
use the first
slot with an available token. To provide a similar functionality,
an
administrator can specify slot_description to be "none", which
also means to
use the first slot with an available token.
2008-09-09 ludovic.rousseau
* [r331] src/common/pkcs11_lib.c: find_slot_by_number: complete
patch in revision 330
* [r330] src/common/pkcs11_lib.c: find_slot_by_number(): BUG: the
slot index is slot_num and not i
thanks to Huie-Ying Lee for the patch
* [r329] src/pam_pkcs11/pam_config.c: pk_configure(): correct a
typo "slot_nume" -> "slot_num"
Thanks to Huie-Ying Lee for the patch
* [r328] doc/export-wiki.sh: upgrade (copy from OpenSC)
2008-08-27 aj
* [r327] doc/export-wiki.xsl: fix script for wiki export.
2008-08-19 ludovic.rousseau
* [r326] configure.in, src/common/Makefile.am,
src/common/strndup.c: Provide strndup for platforms without this
function (Solaris)
2008-08-12 ludovic.rousseau
* [r325] src/mappers/ldap_mapper.c: do_init(): typo: use
ldapdefport instead of defport
Patch from Huie-Ying Lee
http://www.opensc-project.org/pipermail/opensc-devel/2008-August/011239.html
* [r324] tools/make_hash_link.sh: protect variables with "" before
checking the variable length
Patch from Huie-Ying Lee
http://www.opensc-project.org/pipermail/opensc-devel/2008-August/011239.html
2008-05-30 ludovic.rousseau
* [r323] src/tools/card_eventmgr.c: avoir a double free error when
a reader is disconnected and reconnected.
Thanks to Frédéric Combeau for the patch
2008-03-31 ludovic.rousseau
* [r322] configure.in, doc/card_eventmgr.1, doc/card_eventmgr.1.in,
doc/pam_pkcs11.8, doc/pam_pkcs11.8.in, doc/pkcs11_eventmgr.1,
doc/pkcs11_eventmgr.1.in, doc/pkcs11_inspect.1,
doc/pkcs11_inspect.1.in, doc/pklogin_finder.1,
doc/pklogin_finder.1.in: use confdir instead of the hardcoded
value /etc/pam_pkcs11
* [r321] src/tools/card_eventmgr.c: parse_config_file(): also log
the error message
2008-03-25 ludovic.rousseau
* [r320] src/mappers/openssh_mapper.c, src/pam_pkcs11/pam_config.c,
src/tools/card_eventmgr.c, src/tools/pkcs11_eventmgr.c,
src/tools/pkcs11_setup.c: add support of CONFDIR instead of the
hardcoded "/etc/pam_pkcs11/"
* [r319] configure.in: add --with-confdir=DIR to configure the
directory containing
pam_pkcs11.conf, card_eventmgr.conf and pkcs11_eventmgr.conf
(default
/etc/pam_pkcs11)
2008-03-20 ludovic.rousseau
* [r318] src/common/pkcs11_lib.c: use 0x%08lX instead of %x to
format a PKCS#11 error code
2008-02-25 ludovic.rousseau
* [r317] doc/Makefile.am: doxygen.conf is used by generate-api.sh
so api/index.html target must
depends on it
* [r316] po/remove-potcdate.sin: add po/remove-potcdate.sin
* [r315] aclocal/gettext.m4, aclocal/iconv.m4, aclocal/lib-ld.m4,
aclocal/lib-link.m4, aclocal/lib-prefix.m4, aclocal/nls.m4,
aclocal/po.m4, aclocal/progtest.m4: add gettext M4 macros
* [r314] configure.in: use gettext 0.17 instead of 0.16.1
* [r313] po/remove-potcdate.sed: add po/remove-potcdate.sed
* [r312] po/Makefile.in.in: add po/Makefile.in.in from gettext
0.17-2
* [r311] config.rpath: add config.rpath from gettext 0.17-2
* [r310] src/tools/card_eventmgr.c: add void as parameter for
thats_all_folks() definition
card_eventmgr.c:64: warning: old-style function definition
* [r309] src/tools/pkcs11_eventmgr.c: add void as parameter for
parse_config_file() and get_a_token()
pkcs11_eventmgr.c:193: warning: old-style function definition
pkcs11_eventmgr.c:354: warning: old-style function definition
* [r308] src/tools/card_eventmgr.c: add void as parameter in
parse_config_file() definition
card_eventmgr.c:157: warning: old-style function definition
* [r307] src/mappers/ldap_mapper.c: #define LDAP_DEPRECATED 1 so
that deprecated functions are declared.
The code should be updated to avoid the deprecated functions.
See ticket #18
* [r306] src/pam_pkcs11/pam_pkcs11.c: declare is_spaced_str() as
static
pam_pkcs11.c:62: warning: no previous prototype for
‘is_spaced_str’
* [r305] src/common/debug.c: add void in the declaration of
get_debug_level
debug.c:31: warning: old-style function definition
2007-09-13 ludovic.rousseau
* [r304] configure.in, po/de.po: add German (de) l10n
Thanks to Peter Winterer
* [r303] po/ru.po: update using "make update-po"
2007-09-11 ludovic.rousseau
* [r302] configure.in, po/ru.po: add Russian l10n
Thanks to Sergio
2007-08-13 ludovic.rousseau
* [r301] src/pam_pkcs11/pam_config.c: arguments starts at argv[1]
and not argv[0]
Avoids a warning message: "argument pkcs11_inspect is not
supported
by this module"
2007-06-14 ludovic.rousseau
* [r300] configure.in, po/pl.po: add Polish (.pl) translation
Thanks to Jakub Bogusz
* [r299] Makefile.am: remove a duplicate config.rpath in EXTRA_DIST
2007-06-11 ludovic.rousseau
* [r297] configure.in: release 0.6.0
* [r296] pam_pkcs11.spec: update to version 0.6.0
2007-06-06 ludovic.rousseau
* [r295] src/tools/pkcs11_setup.c: declare pname as unsigned to
avoid:
pkcs11_setup.c:436: warning: comparison between signed and
unsigned
pkcs11_setup.c:454: warning: comparison between signed and
unsigned
* [r294] src/tools/pkcs11_setup.c: declare local functions static
* [r293] src/tools/pkcs11_setup.c: pkcs11_setup.c:44: attention :
duplicate ‘const’
* [r292] src/tools/pkcs11_eventmgr.c: execute_event(): change
parameter type from char * to const char *
* [r291] src/tools/pkcs11_eventmgr.c: remove unused (and duplicate)
global variable expire_count
* [r290] src/tools/pkcs11_eventmgr.c: declare local functions
static
* [r289] src/tools/pklogin_finder.c: pklogin_finder.c:37: attention
: ‘user’ may be used uninitialized in this function
* [r288] src/mappers/opensc_mapper.c: opensc_mapper_match_certs():
#include <openssl/pem.h> to avoid:
opensc_mapper.c:103: warning: implicit declaration of function
'PEM_read_bio_X509'
opensc_mapper.c:103: warning: initialization makes pointer from
integer without
a cast
* [r287] src/mappers/ldap_mapper.c: warning: ISO C90 forbids mixed
declarations and code
* [r286] src/mappers/ldap_mapper.c: ldap_add_uri(): declare the
function static
ldap_mapper.c:549: warning: no previous prototype for
'ldap_add_uri'
* [r285] src/mappers/ldap_mapper.c: do_open(): rename parameter
ssl_on to ssl_on_local to avoid:
ldap_mapper.c:373: warning: declaration of 'ssl_on' shadows a
global
declarationldap_mapper.c:108: warning: shadowed declaration is
here
* [r284] src/mappers/ldap_mapper.c: use C instead of C++ comments
warning: C++ style comments are not allowed in ISO C90
* [r283] src/common/cert_info.c: BN_append(): only free(data) if
data has been allocated
2007-05-22 ludovic.rousseau
* [r282] configure.in, po/fr.po: add french l10n
* [r281] po/pam_pkcs11.pot, src/pam_pkcs11/pam_pkcs11.c: sync two
texts to use the same l10n string
* [r280] aclocal: set svn:ignore property
* [r279] bootstrap: update
* [r278] Makefile.am: distribute config.rpath
* [r277] Makefile.am, configure.in, pam_pkcs11.spec, po,
po/Makevars, po/POTFILES.in, po/pam_pkcs11.pot,
src/pam_pkcs11/pam_pkcs11.c: NSS patch part 3 of 3 from Robert
Relyea: l10n support
* [r276] Makefile.am: generate a distribute ChangeLog.svn
* [r275] doc, src/common, src/mappers, src/pam_pkcs11, src/scconf,
src/tools: update svn:ignore
* [r274] ., doc, etc, src, src/common, src/common/rsaref,
src/mappers, src/pam_pkcs11, src/scconf, src/tools, tools: set
svn:ignore properties
* [r273] src/tools/pkcs11_setup.c: new file from pam_pkcs11 NSS
patch part 2/3
I just forgot to commit it with revision 270
2007-05-21 ludovic.rousseau
* [r272] configure.in, src/pam_pkcs11/pam_pkcs11.c: pam_prompt() is
only available on recent PAM versions.
check if security/pam_ext.h exists and provide our own
pam_prompt()
function if not.
Thanks to Robert Relyea for the patch
* [r271] src/common/cert_info.c, src/common/pkcs11_lib.c: typos in
comments
* [r270] src/common/cert_info.c, src/common/pkcs11_lib.c,
src/common/pkcs11_lib.h, src/common/strings.c,
src/pam_pkcs11/pam_config.c, src/pam_pkcs11/pam_config.h,
src/pam_pkcs11/pam_pkcs11.c, src/tools/Makefile.am,
src/tools/pkcs11_eventmgr.c: pam_pkcs11 NSS patch part 2/3 from
Robert Relyea
http://www.opensc-project.org/pipermail/opensc-devel/2007-April/009751.html
Here's patch installment 2 of 3.
This patch adds some new semantics to allow pam_pkcs11 to play
nice in
both command line and gui applications. The heart of this change
adds
three new configuration options.
card_only:
1. If card only is set, pam_pkcs11 does not prompt for the user
name
if the token is inserted, but gets the user name from the token.
2. If a token is inserted, it must be used to log in with,
failure to
unlock the token, or validate the certs will cause login to fail.
3. If we logged in using a smart card, we must now authenticate
using
that same smart card.
4. card_only is required to activate the remaining 2 options. If
card_only is not set, the current pam_pkcs11 semantics apply
(with the
exception of some prompt name changes and the environment
variables
described below).
wait_for_token:
wait_for_token is only meaningful if card_only is set.
if wait_for_token is set, then pam_pkcs11 will block waiting for
an
appropriate token to be inserted. An appropriate token is:
1) a token that is inserted in the slot specified for login in
the config
file (if no slot is specified a token inserted in any slot).
2) a token which matches the token used to log in initially.
(only applies
if you are logged in and you used a token to do so).
screen_savers:
is a list of screen saver services. This list is only parsed if
card_only is
set. Basically the screen saver will bypass pam_pkcs11 if a token
was not
used to login (The basic idea is you always unlock the screen
saver with
the same mechanism you used to login).
The other major change is the addition of new environment
variables:
PKCS11_LOGIN_TOKEN_NAME - the name of the token used to log into
the system.
PKCS11_LOGIN_CERT_ISSUER - the issuer of the cert used to log in
(rendered as a human readable string).
PKCS11_LOGIN_CERT_SERIAL - the serial number of the cert used to
log in
(rendered as colon separated hex value).
These environment variables are set at initial login.
pam_pkcs11 uses PKCS_LOGIN_TOKEN_NAME to determine whether or not
it
needs to use a specific token to log into.
screen savers use this environment variable to determine
if it needs to kick in on token removal (this allows screen
savers to be
picky about when to kick in -- they don't have to kick in if you
insert or
remove a token that wasn't used to log into).
pam_krb uses the PKCS11_LOGIN_CERT_ISSUER and
PKCS11_LOGIN_CERT_SERIAL to
determine which specific certificate was used to login in
(issuer/serial
number uniquely identifies a certificate).
Typical usage for the patch:
For a normal (card_only) case, your pam line would look like:
auth [success=ok authinfo_unavail=2 ignore=2 default=die]
pam_pkcs11.so
For the case where you want to require the smart card as part of
the
authentication, your pam config line would look like:
auth [success=ok ignore=2 default=die] pam_pkcs11.so
wait_for_card
If you share your pam_config file with all our services, you can
restrict
which services require smart card login with a pam_succeed_if
before your
pam_pkcs11 line:
auth [success=3 default=ignore] pam_succeed_if.so service notin
login:gdm:xdm:kdm:xscreensaver:gnome-screensaver:kscreensaver
quiet use_uid
--------------------------------------------------
The patch itself, file by file:
src/pam_pkcs11/pam_pkcs11.c -
Most of the patch is in here. The implementation of the
environment
variables and new options are in this patch. In addition to the
these,
the patch has the following change:
1) a bug fix for passing the password on in the pam_stack
(required to
pam_krb to successfully implement pkinit).
2) use the pam_syslog() function instead of syslog().
3) use of pam_prompt to allow gui apps to display important
information.
src/pam_pkcs11/pam_config.[ch] -
parse the new options in pam_pkcs11.conf.
src/tools/pkcs11_setup.c -
src/tools/Makefile.am
This is a new tool to allow command line editting of
pam_pkcs11.conf and
pkcs11_eventmgr.conf. It only supports adding insertion/removal
actions and
changing the default token. We don't actually use it any more,
but it
may have utility to others. I think the command may need some
work to be more
general.
It's purpose is to allow perl/python/your favorite scripting
language access
to display and modify portions of the pam_pkcs11.conf file. (Feel
free
to drop it if you like, I've included it for completeness).
src/tools/pkcs11_eventmgr.c -
bug fix for a crash if module loading fails.
src/common/cert_info.c
Add the ability to fetch the certificate serial number when using
the
open ssl library.
src/common/pkcs11_lib.[ch]
Add find_slot_by_number_and_label() which optionally adds the
token name as
part of the slot selection criteria. Used by pam_pkcs11 in the
case we are
authenticating after we have already logged in.
Add wait_for_token() which waits until an approriate token is
inserted. Used
to implement the wait_for_token option.
src/common/strings.c
Fix bug in bin2hex where it would trash the heap if asked to
output a string
for a zero length buffer.
2007-05-15 ludovic.rousseau
* [r269] src/common/pkcs11_lib.c, src/tools/pkcs11_eventmgr.c:
C_Initalize should be called after each fork
The pkcs11_eventmgr first C_Initialize then becomes a daemon...
The
PKCS#11 standard states that after fork the user must call
C_Initialize
again, in order to allow proper library initialization at new
process.
Also, don't quit on major errors... try to reinitialize.
Closes ticket #14. Thanks to Alon Bar-Lev for the patch
2007-05-09 ludovic.rousseau
* [r268] configure.in, doc/pam_pkcs11.xml,
etc/pam_pkcs11.conf.example, src/mappers/ldap_mapper.c:
ldap-patches from Sandro Wefel
http://www.opensc-project.org/pipermail/opensc-devel/2007-April/009764.html
which offers:
- support for more than one LDAP server as fallback system
- support of secure connection (SSL+TLS) because someone may use
simple
authentication with username and password
- multiple certificates per attribute
- LDAP-URI support
- selection of base, one-level or subtree search
- timeout support and a somewhat enhanced documentation.
* [r267] src/pam_pkcs11/pam_pkcs11.c: typo in debug message
* [r266] src/pam_pkcs11/pam_config.c: typo: command line argument
was checked against "pcs11_module=" instead
of "pkcs11_module="
* [r265] src/mappers/mail_mapper.c: typo in a debug message
2007-04-12 ludovic.rousseau
* [r264] src/common/uri.c: #include <stdio.h> de declare sprintf()
and sscanf()
* [r263] src/pam_pkcs11/pam_pkcs11.c: use ERR() instead of DBG() to
log errors so they are displayed (in red)
even if debug is not used
* [r262] src/pam_pkcs11/pam_pkcs11.c: log the error "Remote login
(from %s) is not (yet) supported if DISPLAY
is not local"
* [r261] src/tools/pkcs11_inspect.c: use #ifdef instead of #if to
avoid a
pkcs11_inspect.c:96:5: warning: "HAVE_NSS" is not defined
* [r260] src/tools/card_eventmgr.c: declare local functions as
static
* [r259] src/pam_pkcs11/pam_config.c: display_config() is defined
but its use is commented so also comments its
definition
* [r258] src/pam_pkcs11/pam_config.c: declare display_config() and
parse_config_file() as static
* [r257] src/mappers/generic_mapper.c: get_mapped_entries(): remove
a duplicate variable declaration
generic_mapper.c:75: warning: declaration of 'res' shadows a
previous local
* [r256] src/mappers/digest_mapper.c: digest_mapper_module_init():
initialise a variable
digest_mapper.c:111: warning: 'hash_alg_string' may be used
uninitialized in this function
* [r255] src/common/pkcs11_lib.c: crypto_init(): add a missing
return value
* [r254] src/common/pkcs11_lib.c: remove 3 unused variables
* [r253] src/common/pkcs11_lib.c: load_pkcs11_module(): rename
variable C_GetFunctionList to
C_GetFunctionList_ptr to avoid a compiler warning
pkcs11_lib.c:640: warning: declaration of 'C_GetFunctionList'
shadows a global declaration
rsaref/pkcs11f.h:59: warning: shadowed declaration is here
* [r252] src/common/uri.c: add a const to avoid compiler warnings
* [r251] src/common/debug.c: debug_print(): declare t as (const
char *) to avoid a compiler warning
* [r250] src/common/debug.c: #include <unistd.h>
debug.c:38: warning: implicit declaration of function 'isatty'
* [r249] src/common/cert_info.c: cert_info_upn(): remove two unused
variables
* [r248] src/common/cert_vfy.c: setup_store(): declare the function
static to avoid a compiler warning
cert_vfy.c:321: warning: no previous prototype for 'setup_store'
* [r247] src/common/error.c, src/common/error.h: set_error(): use
const char * to avoid compiler warnings
* [r246] src/common/debug.c, src/common/debug.h: debug_print(): use
const char * for file and format arguments to avoid
compiler warnings
* [r245] src/scconf/sclex.c: buf_eat_till(): change third argument
to const char * instead of char *
to avoid sclex.c:128: warning: passing argument 3 of
'buf_eat_till'
discards qualifiers from pointer target type
* [r244] src/common/Makefile.am, src/common/NSPRerrs.h,
src/common/SECerrs.h, src/common/SSLerrs.h, src/common/alg_st.h,
src/common/algorithm.c, src/common/cert_st.h,
src/common/secutil.h: add missing new files for the NSS patch
included in revision 238
2007-04-11 ludovic.rousseau
* [r243] src/tools/pkcs11_eventmgr.c: #include <nss/secmod.h> to
avoid compiler warnings
* [r242] configure.in: use AC_HELP_STRING() to format the help
message
* [r241] src/tools/pkcs11_eventmgr.c: pkcs11_eventmgr.c:502:
attention : passing argument 2 of
‘load_pkcs11_module’ from incompatible pointer type
use &ph instead of ph
* [r240] src/pam_pkcs11/pam_pkcs11.c: pam_pkcs11.c:393: warning:
label 'auth_failed' defined but not used
* [r239] src/mappers/digest_mapper.c: digest_mapper.c:114: warning:
assignment discards qualifiers from
pointer target type
* [r238] configure.in, src/common/Makefile.am,
src/common/cert_info.c, src/common/cert_info.h,
src/common/cert_vfy.c, src/common/cert_vfy.h, src/common/debug.c,
src/common/error.h, src/common/pkcs11_lib.c,
src/common/pkcs11_lib.h, src/mappers/Makefile.am,
src/mappers/cn_mapper.c, src/mappers/digest_mapper.c,
src/mappers/generic_mapper.c, src/mappers/krb_mapper.c,
src/mappers/ldap_mapper.c, src/mappers/mail_mapper.c,
src/mappers/mapper.h, src/mappers/ms_mapper.c,
src/mappers/null_mapper.c, src/mappers/opensc_mapper.c,
src/mappers/openssh_mapper.c, src/mappers/pwent_mapper.c,
src/mappers/subject_mapper.c, src/mappers/uid_mapper.c,
src/pam_pkcs11/Makefile.am, src/pam_pkcs11/mapper_mgr.c,
src/pam_pkcs11/mapper_mgr.h, src/pam_pkcs11/pam_config.c,
src/pam_pkcs11/pam_pkcs11.c, src/tools/Makefile.am,
src/tools/pkcs11_eventmgr.c, src/tools/pkcs11_inspect.c,
src/tools/pkcs11_listcerts.c, src/tools/pklogin_finder.c: NSS
patch from Robert Relyea
http://www.opensc-project.org/pipermail/opensc-devel/2007-April/009724.html
------------------------------------------------------------------------
Introduction to the pam_pkcs11-nss.patch
This patch adds compile time support for the NSS crypto
libraries. It
optionally replaces the raw PKCS #11 operations and open SSL
certificate
processing with functionsprovided by the NSS crypto libraries.
This change is
controlled by a configure option, '--with-nss' or
'--without-nss'.
--without-nss is the default. This package requires nss 3.10 as a
minimum.
When --with-nss is selected, pam_pkcs11 can support the
following:
1) multiple simultaeous pkcs #11 modules used for authentication.
NSS already
handles multiple smart card handlers running at the same time.
This means you
can configure your box to log in with both CAC and pkcs #12
tokens by loading
both sets of modules. This support must be configured in
pam_pkcs11, otherwise
NSS will only use the user selected pkcs11 module, same as the
current direct
to pkcs #11 support.
2) Optional OCSP support. This support is built into NSS already.
If you
compile --with-nss, you can simply turn it on.
3) with --with-nss, pkcs11_eventmgr automatically uses
C_WaitForSlotEvent for
those tokens that support it, and pull for those that don't. (NSS
has this
support built in).
4) with --with-nss, any cert key type NSS supports will work
correctly (RSA,
DSA, ECDSA, etc).
5) nss automatically supports part of the certificate chain
stored on the smart
card. This allows you to store a single root certificate in the
database and
keep the intermediates on the token itself.
6) src/common/rsaref is not need to build any of pam_pkcs11 (if
--with-nss is
used).
Other differences when --with-nss and --without-nss:
1) The crl policy is ignored. NSS handles crls automatically
already. It
uses standard external tools to keep crls up-to-date.
2) The tools will only display user certs, that is certificates
for which the
token claims to hold the private key for.
The patch itself
The changes in this patch can be categorized in the following
broad categories:
1) build changes.
2) interface changes to make the crypto operations more generic.
3) implement the NSS versions of the base crypto functions.
Changes by file
./configure.in:
1. switch between the nss module and the openssl depending on the
state of
--with-nss. (openssl is the default).
2. added environment variables CRYPO_CFLAGS and CRYPTO_LIBS
3. added the AM conditional HAVE_NSS
./src/common -- This is where most of the NSS specific code
lives. Basically
the following interface changes were made:
./src/common/pkcs11_lib.c ./src/common/pkcs11_lib.h
cert_object_t and pkcs11_handle_t were made opaque handles.
Applications no
longer have direct access to their member functions members are
accessed
through accessor functions. These new accessor functions are:
find_slot_by_number: Takes a pkcs11_handle_t, an input slot
number, and
returns a generic slot number and success for failure. The input
slot number
is the same 'ones' based index into the SlotList. The generic
slot number is
library specific (NSS now returns the slotID, the non-NSS code
returns the
'zero' based index into the SlotList). If the input slot number
is zero, the
first present smart card is returned.
get_slot_label: takes a pkcs11_handle_t and returns the label for
the
currently opened slot.
get_X509_certificate: takes a cert_object_t and returns the X509
Cert. NOTE:
the X509 certificate itself has been made into a generic handle
which could
be either an openssl X509 or an NSS CERTCertificate. see
cert_st.h for more
info.
crypto_init: This function is called to set up the crypto system.
It takes
a pointer to the cert policy to help setup. While not exactly an
accessor
function, it is new.
In addition to these accessors, the following existing functions
have changed:
load_pkcs11_module: now allocates a pkcs11_handle_t and returns
it. Since
pkcs11_handle_t's are opaque, applications no longer know how big
they are,
and therefore can't allocate them from the stack.
get_certificate_list (was get_certificate): returns an array of
pointers to
cert_object_t's. unlike the short-lived get_certificate_list in
the branch,
this function actually operates as an accessor function. The
returned
certificate list is still 'owned' by the pkcs11_handle_t.
Subsequent calls to
get_certificate_list will return the same array as the previous
calls. The
array is freed automatically when the pkcs11_handle_t is closed
(just as it
is in the original base code). This change was necessary because
pkcs11_handle_t is no longer accessible (it no longer holds the
same data in
the different implementations).
get_private_key: takes a handle to a cert_object_t. It looks up
the private
key for that object and returns failure if it can't find it. This
change is
because the patch gets rid of the chosen cert field. Applications
chose the
cert and pass the cert directly into this and the sign function.
sign_value: takes a cert_object_t. If the cert_object_t does not
have a
private key, then sign_value will fail. If get_private_key was
not called on
cert_object_t at some time in the past, sign_value will
automatically call
it. This change was also motivated by the removal of the
chosen_cert field.
Another way of implementing the get_private_key/sign_value is to
create an
new chosen cert accessor function and reverting the
implementation for these
two functions. The new APIs, however, allow for multiple certs to
sign in a
single pkcs11_handle_t context.
./src/common/cert_st.h ./src/common/cert_info.h
./src/common/cert_vfy.h
The only interface changes here are:
1) adding nss_dir and ocsp_policy to cert_policy_st.
2) changing the definition of X509 depending on whether which
cert library
we are using (X509 for openSSL, CERTCertificate or NSS). The use
of a
#define here limitted the extent of the patch in other modules.
3) generic defines for algorithm types.
4) addition of 3 new CERT_Info types. (Issuer, serial number, key
algorithm).
cert_st.h is a new function, which other files can include in
place of
<openssl/x509.h>
./src/common/cert_info.c ./src/common/cert_vfy.c
These basically accepted the new NSS implementations for the
certificate
verify and info functions. These patches are relatively straight
forward.
The original API did not need any tweaking.
./src/common/algorithm.c ./src/common/alg_st.h
These new files provide generic API's to do access the hash
algorithm to
pass to cert_info. If access to actual hashing or crypto were
needed, the new functions could be added here. Like cert_st.h,
alg_st.h
replaces the use of <openssl/evp.h>
./src/common/NSPRerrs.h ./src/common/SECerrs.h
./src/common/secutil.h
./src/common/SSLerrs.h
These new files provide the NSS error message mappings.
Changes in ./src/common make up about 65% of the patch.
./src/mappers/*.c
The mapper functions were changes to use the generic form of
hashing defined
in alg_st.h. (mostly replacing <openssl/x509v3.h> with cert_st.h
and NULL
in cert_info with ALGORITHM_NULL).
exceptions: opensc_mapper.c and oopenssh_mapper.c are not
implemented for
NSS because of the use of BIO directly.
These changes make up less than 10 % of the patch.
./src/pam_pkcs11/pam_config.c
Added support to fetch nss_dir and ocsp_policy.
./src/pam_pkcs11/pam_pkcs11.c
Change to use the new API. These changes include:
1) calling the new crypto_init function instead of the various
openSSL
init functions.
2) pam_pkcs11 now holds a pointer to the pkcs11_handle_t rather
than a static
version. A large number of diffs are simply changing &ph to ph.
3) Use the accessor functions to get the slotnum and the cert
list.
4) chosen_cert is now a local variable rather than a field in
pkcs11_handle_t
5) move pkcs11_login back before the get_certificate_list. Some
tokens need
be to authenticated before we can read the certificates. More
importantly,
the NSS cert code is only returning user certificates
(certificates with the
private keys). Only a small number of tokens know now to identify
user
certificates if you aren't logged in. Since this change is a
reversion of
a previous change in this version of pam_pkcs11, we may need to
do more
to reconcile it. Perhaps putting explicit #ifdef HAVE_NSS around
the early
login, adding a later login with #ifndef HAVE_NSS.
6) the get_private_key call was moved into sign_value, so it's
removed
from pam_pkcs11 itself. It would be easy to revert this change
and continue
to call get_private_key directly.
./src/tools/pkcs11_eventmgr.c
pkcs11_eventmgr is basically 2 implementations of the
pkcs11_eventmgr
stitched together with ifdefs. A reasonable todo would be to
build the
proper generic interfaces to have a 'clean' pkcs11_eventmgr and
hide the
details in src/common/pkcs11_lib.c like we do with all the rest.
The existing
code doesn't even use the generic init calls that already exist.
./src/tools/*.c [the rest]
The same type of generic changes made to pam_pkcs11.c
2007-04-04 ludovic.rousseau
* [r237] src/common/debug.c, src/common/debug.h: svn propset
svn:keywords Id
* [r236] src/common/debug.c, src/common/debug.h: use $Id:$ instead
of $Id$
* [r235] src/tools/pkcs11_inspect.c: use ERR() (instead of DBG())
in case of errors
* [r234] src/common/debug.c, src/common/debug.h: add support for
ERR?() macros
* [r233] Makefile.am, configure.in, doc/mappers_api.xml,
src/common/base64.h, src/common/cert_info.c,
src/common/cert_info.h, src/common/cert_vfy.c,
src/common/cert_vfy.h, src/common/error.c, src/common/error.h,
src/common/pkcs11_lib.c, src/common/pkcs11_lib.h,
src/common/rsaref/pkcs11.h, src/common/strings.c,
src/common/strings.h, src/common/uri.c, src/common/uri.h,
src/mappers/cn_mapper.c, src/mappers/cn_mapper.h,
src/mappers/digest_mapper.c, src/mappers/digest_mapper.h,
src/mappers/generic_mapper.c, src/mappers/generic_mapper.h,
src/mappers/krb_mapper.c, src/mappers/krb_mapper.h,
src/mappers/ldap_mapper.c, src/mappers/ldap_mapper.h,
src/mappers/mail_mapper.c, src/mappers/mail_mapper.h,
src/mappers/mapper.c, src/mappers/mapper.h,
src/mappers/mapperlist.c, src/mappers/mapperlist.h,
src/mappers/ms_mapper.c, src/mappers/ms_mapper.h,
src/mappers/null_mapper.c, src/mappers/null_mapper.h,
src/mappers/opensc_mapper.c, src/mappers/opensc_mapper.h,
src/mappers/openssh_mapper.c, src/mappers/openssh_mapper.h,
src/mappers/pwent_mapper.c, src/mappers/pwent_mapper.h,
src/mappers/subject_mapper.c, src/mappers/subject_mapper.h,
src/mappers/uid_mapper.c, src/mappers/uid_mapper.h,
src/pam_pkcs11/Makefile.am, src/pam_pkcs11/mapper_mgr.c,
src/pam_pkcs11/mapper_mgr.h, src/pam_pkcs11/pam_config.c,
src/pam_pkcs11/pam_config.h, src/pam_pkcs11/pam_pkcs11.c,
src/scconf/internal.h, src/scconf/lex-parse.l,
src/scconf/parse.c, src/scconf/scconf.c, src/scconf/scconf.h,
src/scconf/sclex.c, src/scconf/write.c,
src/tools/card_eventmgr.c, src/tools/pkcs11_inspect.c,
src/tools/pkcs11_listcerts.c, src/tools/pklogin_finder.c,
tools/Makefile.am, tools/make_hash_link.sh: Set svn:keywords Id
property to replace $Id$
* [r232] src/tools/pkcs11_inspect.c: display the lib name in case
of loading error
* [r231] src/mappers/Makefile.am, src/pam_pkcs11/Makefile.am,
src/tools/Makefile.am: use $(FOO) instead of @FOO@
2006-03-16 aj
* [r230] configure.in: simply the revision, drop the m4 code.
it didn't turn out the way I wanted it
(does not contain the _repository_/_branch_ revision).
2006-01-22 aj
* [r229] pam_pkcs11.spec: change to opensc-project till opensc.org
dns is back.
* [r228] doc/README.mappers, doc/export-wiki.sh,
doc/mappers_api.xml, doc/pam_pkcs11.xml: move to opensc-project
till opensc.org dns is back.
2006-01-03 ludovic.rousseau
* [r227] configure.in: substitute Revision keyword
2006-01-02 jonsito
* [r226] configure.in, doc/Makefile.am, doc/doxygen.conf,
doc/doxygen.conf.in: use svn revision based version numbers
2005-12-23 jonsito
* [r225] etc/pam_pkcs11.conf.example, src/common/cert_vfy.c: Add
either file or hashdir support for CACerts and local CRL's
* [r224] src/common/uri.c, src/common/uri.h: Add comodity functions
for pathname checks
2005-12-15 jonsito
* [r223] src/tools/pkcs11_listcerts.c: Make pkcs11_listcerts more
verbose
* [r222] src/common/pkcs11_lib.c, src/common/pkcs11_lib.h,
src/pam_pkcs11/pam_pkcs11.c, src/tools/pkcs11_inspect.c,
src/tools/pkcs11_listcerts.c, src/tools/pklogin_finder.c:
Improved extraction of Certificates and Private Keys
* [r221] src/common/pkcs11_lib.h, src/common/rsaref/pkcs11.h: move
key_object_t, slot_t and pkcs11_handle_t to pkcs11_lib.h as they
are not part of standard RSA headers
2005-12-12 jonsito
* [r220] aclocal, aclocal/acx_pthread.m4,
etc/pam_pkcs11.conf.example, src/common/pkcs11_lib.c,
src/common/pkcs11_lib.h, src/common/rsaref/pkcs11.h,
src/pam_pkcs11/pam_config.c, src/pam_pkcs11/pam_config.h,
src/pam_pkcs11/pam_pkcs11.c, src/tools/pkcs11_inspect.c,
src/tools/pkcs11_listcerts.c, src/tools/pklogin_finder.c: Runtime
config option for non-null C_Initialize() argument
2005-12-12 ludovic.rousseau
* [r219] configure.in, src/common/Makefile.am: do not redefine LIBS
and CFLAGS in configure.in but use PTHREAD_LIBS and
PTHREAD_CFLAGS in Makefile.am when needed instead
* [r218] configure.in: do not use AC_DEFINE(HAVE_PTHREAD, 1, ...)
since it is already done by
ACX_PTHREAD() if its first argument is not defined
2005-12-12 jonsito
* [r217] aclocal, aclocal/acx_pthread.m4, configure.in,
src/common/pkcs11_lib.c: Add native thread support for
C_Initialize
2005-12-10 jonsito
* [r216] src/common/pkcs11_lib.c, src/pam_pkcs11/pam_pkcs11.c,
src/tools/pkcs11_listcerts.c: Bugfixes + make pkcs11_listcerts
behaviour closer to pam module to ease debug
* [r215] src/pam_pkcs11/pam_pkcs11.c: pam module only calls C_Login
when really needed
* [r214] src/tools/pkcs11_listcerts.c: Stupid bug in dbg output at
pkcs11_listcerts
2005-12-09 jonsito
* [r213] src/tools/pkcs11_inspect.c: pkcs11_inspect now uses
get_certificate_list()
* [r212] src/tools/pkcs11_listcerts.c, src/tools/pklogin_finder.c:
pklogin_finder now uses get_certificate_list()
* [r211] src/tools/Makefile.am, src/tools/pkcs11_listcerts.c: Add
pkcs11_listcerts tool to enumerate card certificates
* [r210] src/common/pkcs11_lib.c, src/common/pkcs11_lib.h: Add
get_certificate_list() to common/pkcs11_lib.c
* [r209] src/common/cert_info.c, src/common/cert_info.h,
src/mappers/opensc_mapper.c: Move add_cert() from
mappers/opensc_mapper.c to common/cert_info.c
2005-12-05 jonsito
* [r208] doc/pam_pkcs11.xml: Documentation updates
* [r207] src/common/cert_vfy.c, src/common/cert_vfy.h,
src/pam_pkcs11/pam_config.c, src/pam_pkcs11/pam_config.h,
src/pam_pkcs11/pam_pkcs11.c, src/tools/pkcs11_inspect.c,
src/tools/pklogin_finder.c: Perform/skip CA check acording to
configuration file
* [r206] src/pam_pkcs11/pam_pkcs11.c: Perform/Skip signature check
according configuration file
* [r205] etc/pam.d_login.example, etc/pam_pkcs11.conf.example,
src/common/cert_vfy.h, src/pam_pkcs11/pam_config.c,
src/pam_pkcs11/pam_config.h, src/pam_pkcs11/pam_pkcs11.c,
src/tools/pkcs11_inspect.c, src/tools/pklogin_finder.c: Prepare
for configurable ca,crl,and signature verification
* [r204] src/tools/pkcs11_inspect.c, src/tools/pklogin_finder.c:
Get tools using pkcs11_pass_login()
* [r203] src/common/pkcs11_lib.c, src/common/pkcs11_lib.h: Add
pkcs11_pass_login() method to pkcs11_lib
2005-12-01 jonsito
* [r202] configure.in: Comment libp11 stuff in configure.in
* [r201] src/common/Makefile.am, src/common/pkcs11.c,
src/common/pkcs11_lib.c, src/common/pkcs11_lib.h,
src/pam_pkcs11/pam_pkcs11.c, src/tools/pkcs11_eventmgr.c,
src/tools/pkcs11_inspect.c: Rename pkcs11.c to pkcs11_lib.c and
add hheader file
2005-11-30 jonsito
* [r200] src/common/rsaref/PKCS11_README: Minor change to
rsaref/pkcs11_readme
* [r199] configure.in, src/common/Makefile.am, src/common/pkcs11.c,
src/common/pkcs11.h, src/common/pkcs11f.h, src/common/pkcs11t.h,
src/common/rsaref, src/common/rsaref/Makefile.am,
src/common/rsaref/PKCS11_README, src/common/rsaref/pkcs11.h,
src/common/rsaref/pkcs11f.h, src/common/rsaref/pkcs11t.h,
src/pam_pkcs11/pam_pkcs11.c, src/tools/pkcs11_eventmgr.c,
src/tools/pkcs11_inspect.c, src/tools/pklogin_finder.c: Move
rsaref files to an independent directory
* [r198] configure.in: Add libp11 support to configure.in
2005-11-14 ludovic.rousseau
* [r197] src/common/debug.c: debug_print(): use syslog(3) instead
of printf() when stdout is not a
tty, for example when using gdm.
2005-10-03 ludovic.rousseau
* [r196] doc/pam_pkcs11.xml: rephrase the a "Secure your PAM
configuration" paragraph
2005-09-29 ludovic.rousseau
* [r195] bootstrap: create an empty aclocal directory
* [r194] configure.in: use AC_HELP_STRING
* [r193] Makefile.am, aclocal, configure.in: files in aclocal/ are
not used
* [r192] configure.in: check for OPENSSL before PCSC since the
first PKG_CHECK_MODULES() shall
not be in an if or some variables will not be initialized
* [r191] configure.in: improve detection code for PCSC
* [r190] etc/pam_pkcs11.conf.example, src/mappers/Makefile.am: The
generic_mapper.so is not a external lib anymore (by default) but
is
internal. Update the configuration sample file to reflect that.
Closes ticket #9 "Generic mapper is statically linked by default
-
config not in sync". Thanks to Ville Skyttä for the bug and
patch.
* [r189] etc/digest_mapping.example, etc/mail_mapping.example,
etc/subject_mapping.example: comment out example configuration
lines so the files can be directly
installed by distribution packages.
Closes ticket #10. Thanks to Ville Skyttä for the bug report and
patch
* [r188] doc/mappers_api.html, doc/pam_pkcs11.html: removed since
they are generated from the .xml version and are available
from http://www.opensc.org/doc/pam_pkcs11/pam_pkcs11.html and
http://www.opensc.org/doc/pam_pkcs11/mappers_api.html
* [r187] doc/pkcs11_eventmgr.1: remove a ' ' before ']'
2005-09-27 ludovic.rousseau
* [r186] doc/pam_pkcs11.css: play with colors
* [r185] doc/pam_pkcs11.html: regenerate
* [r184] doc/pam_pkcs11.xml: corrections
2005-09-26 ludovic.rousseau
* [r183] src/tools/card_eventmgr.c: Use LPSTR instead of LPTSTR to
compile with pcsc-lite 1.2.0
Thanks to Ville Skytta for the bug report
2005-09-14 ludovic.rousseau
* [r182] doc/export-wiki.sh: use -nv instead of --non-verbose since
wget 1.10 now uses --no-verbose
instead. Grr!
2005-09-13 ludovic.rousseau
* [r181] configure.in: Do not just use PKG_CHECK_MODULES() to test
the presence of pcsc-lite
but also check for winscard.h and libpcsclite
Some distributions do not provide libpcsclite.pc (like SuSE 9.3)
2005-09-10 jonsito
* [r178] src/common/cert_info.c, src/common/uri.c,
src/mappers/ldap_mapper.c, src/mappers/null_mapper.c,
src/mappers/opensc_mapper.c, src/mappers/openssh_mapper.c,
src/pam_pkcs11/mapper_mgr.c, src/pam_pkcs11/pam_config.c,
src/tools/card_eventmgr.c, src/tools/pkcs11_eventmgr.c: Many
fixes to get 'gcc -Wall -pedantic' friendly
2005-09-08 jonsito
* [r177] Makefile.am, bootstrap, doc/Makefile.am,
src/common/Makefile.am, src/mappers/Makefile.am,
src/pam_pkcs11/Makefile.am, src/tools/Makefile.am: Patches from
AJ to sync to all others OpenSC projects
* [r176] ChangeLog, NEWS, doc/README.mappers: Changelog NEWS and
README's updates
2005-09-07 jonsito
* [r175] AUTHORS: Add Ville Skytta to AUTHORS (original
pam_pkcs11.spec file)
* [r174] pam_pkcs11.spec: More changes to 'pam_pkcs11.spec' from
FC4 team
* [r173] pam_pkcs11.spec: Fix license to be LGPL in pam_pkcs11.spec
file
* [r172] pam_pkcs11.spec: pam_pkcs11.spec: create independent
'pam_pkcs11-ldap' package
* [r171] src/mappers/ldap_mapper.c: Changed 'LDAP_SCOPE_SUB' to
'LDAP_SCOPE_SUBTREE' in ldap_mapper.c
2005-09-07 ludovic.rousseau
* [r170] doc/mappers_api.html: regenerate
* [r169] doc/pam_pkcs11.html: regenerate
2005-09-07 jonsito
* [r168] TODO: More 'TODO' updates
* [r167] ChangeLog: Changelog updates
* [r166] TODO: 'TODO' roadmap updated
* [r165] AUTHORS, src/mappers/ldap_mapper.c: ldap_mapper.c: add
finder() and entries() methods. Update AUTHORS file
* [r164] src/mappers/opensc_mapper.c: opensc_mapper.c: Fixes in
comments and debug output
* [r163] configure.in: configure.in: Add '-lldap' and '-lcurl' to
LIBS when needed
* [r162] doc, docs: rename 'docs' to 'doc'
* [r161] Makefile.am, configure.in, docs/doxygen.conf,
docs/generate-api.sh, pam_pkcs11.spec: Change files to use
directory 'doc' instead of 'docs'
* [r160] src/mappers/ldap_mapper.c: missing #endif in ldap_mapper.c
* [r159] configure.in: Set cURL,LDAP,DocBook as configure options
in configure.in
* [r158] etc/pam_pkcs11.conf.example: Update ldap mapper
configuration data in pam_pkcs11.conf.example
* [r157] src/common/uri.c: Add src/common/uri.c conditional
compilation of cURL and LDAP support
* [r156] src/mappers/ldap_mapper.c: Preliminary version of LDAP
mapper
* [r155] src/mappers/Makefile.am, src/mappers/mapperlist.c: Compile
LDAP mapper only if ldap support is included
* [r154] src/mappers/openssh_mapper.c: Fix
/home/jantonio/.ssh/authorized_keys filename generation
* [r153] src/scconf/Makefile.am: Add header files to
libscconf_la_SOURCES in src/scconf/Makefile.am
2005-09-06 jonsito
* [r152] docs/Makefile.am, docs/README.ldap_mapper: Add
README.ldap_mapper documentation file
* [r151] src/mappers/openssh_mapper.c: OpenSSH mapper: move
auth_keys filename composition out of key parsing routines
* [r150] src/common/cert_info.c: Add email if found to ssh-pubk
output of openssh_mapper::inspect()
2005-09-05 jonsito
* [r149] docs/mappers_api.xml, src/common/base64.c,
src/common/base64.h, src/common/cert_info.c,
src/mappers/openssh_mapper.c, src/pam_pkcs11/mapper_mgr.c:
cert_info.c::cert_info_sshpuk() fixed. OpenSSH mapper written
* [r148] src/common/base64.c, src/common/cert_vfy.c: Remove
redundant base64_to_bin() at cert_vfy.c
2005-09-05 ludovic.rousseau
* [r147] docs/export-wiki.sh, docs/generate-api.sh: make
export-wiki.sh and generate-api.sh executable
2005-09-03 jonsito
* [r146] docs/mappers_api.xml, src/common/Makefile.am,
src/common/base64.c, src/common/base64.h, src/common/uri.c: Add
base64 API encoding functions to properly handle rsa-ssh keys
* [r145] docs/mappers_api.xml, src/common/cert_vfy.c,
src/common/cert_vfy.h, src/mappers/mapper.h: mapper.h
cert_vfy.[ch] doxygen updates. Mapper api doc updates
* [r144] src/common/cert_info.c, src/common/cert_info.h,
src/common/uri.c, src/common/uri.h: Make cert_info.[ch] and
uri.[ch] doxygen aware
* [r143] docs/doxygen.conf, src/common/debug.h, src/common/error.c,
src/common/error.h: Make error.[ch] and debug.[ch] doxygen aware
2005-09-02 jonsito
* [r142] docs/doxygen.conf, src/common/strings.h: Make
src/common/string.h doxygen friendly
* [r141] Makefile.am, docs/Makefile.am, docs/doxygen.conf,
docs/export-wiki.sh, docs/export-wiki.xsl, docs/generate-api.sh:
added doxygen API documentation at 'make dist'
* [r140] Makefile.am, aclocal/Makefile.am, docs/Makefile.am,
etc/Makefile.am, src/Makefile.am, src/common/Makefile.am,
src/mappers/Makefile.am, src/pam_pkcs11/Makefile.am,
src/scconf/Makefile.am, src/tools/Makefile.am, tools/Makefile.am:
Do 'make maintainer-clean' work according OpenSC Team convention
2005-09-01 jonsito
* [r139] pam_pkcs11.spec, src/pam_pkcs11/Makefile.am: Revert
install path of pam_pkcs11.so as broke some 'make distcheck'
* [r138] ChangeLog: ChangeLog updated
* [r137] AUTHORS, src/mappers/opensc_mapper.c: OpenSC mapper
implementation based on AJ's pam_opensc source code
* [r136] src/pam_pkcs11/Makefile.am: Do not install pam_pkcs11.la
and pam_pkcs11.a
* [r135] pam_pkcs11.spec, src/pam_pkcs11/Makefile.am: pam_pkcs11.so
to be installed under /lib/security instead of /usr/lib/security
* [r134] pam_pkcs11.spec: pam_pkcs11.spec updates: create
pam_pkcs11 and pam_pkcs11-pcsc RPM packages
2005-08-31 jonsito
* [r133] docs/pam_pkcs11.html, docs/pam_pkcs11.xml: Updated
pam_pkcs11.xml to reflect changes in mapper API and doc
* [r132] docs/mappers_api.html, etc/pam_pkcs11.conf.example,
src/mappers/Makefile.am, src/mappers/ldap_mapper.c,
src/mappers/pwent_mapper.c: Set to be statically linked those
mappers that no depends on external libraries
* [r131] docs/mappers_api.html, docs/mappers_api.xml: Mapper API
documentation writting finished
* [r130] docs/mappers_api.html, docs/mappers_api.xml: Fixed sample
code in Mapper API doc
* [r129] docs/mappers_api.html, docs/mappers_api.xml: More work in
Mapper API documentation...
* [r128] src/pam_pkcs11/mapper_mgr.c: Assume static mapper with
default settings when no mapper configuration block is provided
* [r127] src/mappers/mapper.h, src/pam_pkcs11/mapper_mgr.c: Proper
handling of debug_level on enter/exit mapper(s) code
2005-08-31 ludovic.rousseau
* [r126] docs/pam_pkcs11.html, docs/pam_pkcs11.xml: add a HOWTO
chapter
* [r125] etc/card_eventmgr.conf.example,
etc/pkcs11_eventmgr.conf.example: remove paths from the executed
commands
* [r124] src/pam_pkcs11/pam_pkcs11.c: pam_sm_authenticate(): check
if DISPLAY is defined before checking if it
is a local or remote login
2005-08-31 jonsito
* [r123] docs/mappers_api.html, docs/mappers_api.xml,
src/common/debug.c, src/common/debug.h, src/mappers/mapper.h:
Mapper API documentation update
2005-08-31 ludovic.rousseau
* [r122] src/pam_pkcs11/mapper_mgr.c: inspect_certificate(): print
"Printing data for mapper %s" on stdout
instead of debug output.
* [r121] src/common/debug.h: add definition of DBG5 if no debug is
used
2005-08-31 jonsito
* [r120] docs/pam_pkcs11.html, etc/pam_pkcs11.conf.example,
src/mappers/cn_mapper.c, src/mappers/digest_mapper.c,
src/mappers/generic_mapper.c, src/mappers/krb_mapper.c,
src/mappers/mail_mapper.c, src/mappers/ms_mapper.c,
src/mappers/null_mapper.c, src/mappers/opensc_mapper.c,
src/mappers/openssh_mapper.c, src/mappers/pwent_mapper.c,
src/mappers/subject_mapper.c, src/mappers/uid_mapper.c,
src/pam_pkcs11/mapper_mgr.c: Set default values in mappers.
Config file fixes
2005-08-31 ludovic.rousseau
* [r119] src/tools/Makefile.am: @LIBMAPPERS@ already includes
@LIBSCCONF@ @LIBCOMMON@ and @OPENSSL_LIBS@
* [r118] src/pam_pkcs11/Makefile.am: @LIBMAPPERS@ alredy include
@LIBSCCONF@ @LIBCOMMON@ so we can remove
them here
* [r117] src/mappers/Makefile.am: libmappers.la uses functions from
scconf/ and common/ so we link with
these libraries
* [r116] src/common/Makefile.am: libcommon_la_LIBADD =
@OPENSSL_LIBS@
We use OpenSSL so we link with it
* [r115] src/pam_pkcs11/mapper_mgr.c: load_module(): initialise res
variable to NULL to avoid a compiler warning
* [r114] src/tools/pkcs11_eventmgr.c: default OpenSC module is now
/usr/lib/opensc-pkcs11.so
* [r113] etc/card_eventmgr.conf.example,
etc/pkcs11_eventmgr.conf.example: improve comments
2005-08-30 jonsito
* [r112] docs/mappers_api.html, docs/mappers_api.xml: Mapper API
manual update
* [r111] docs/mappers_api.html, docs/mappers_api.xml,
src/mappers/cn_mapper.c, src/mappers/cn_mapper.h,
src/mappers/digest_mapper.c, src/mappers/digest_mapper.h,
src/mappers/generic_mapper.c, src/mappers/generic_mapper.h,
src/mappers/krb_mapper.c, src/mappers/krb_mapper.h,
src/mappers/ldap_mapper.c, src/mappers/ldap_mapper.h,
src/mappers/mail_mapper.c, src/mappers/mail_mapper.h,
src/mappers/mapper.h, src/mappers/mapperlist.c,
src/mappers/mapperlist.h, src/mappers/ms_mapper.c,
src/mappers/ms_mapper.h, src/mappers/null_mapper.c,
src/mappers/null_mapper.h, src/mappers/opensc_mapper.c,
src/mappers/opensc_mapper.h, src/mappers/openssh_mapper.c,
src/mappers/openssh_mapper.h, src/mappers/pwent_mapper.c,
src/mappers/pwent_mapper.h, src/mappers/subject_mapper.c,
src/mappers/subject_mapper.h, src/mappers/uid_mapper.c,
src/mappers/uid_mapper.h, src/pam_pkcs11/mapper_mgr.c,
src/pam_pkcs11/mapper_mgr.h: Simplify and optimize mapper
interface
2005-08-30 ludovic.rousseau
* [r110] docs/pam_pkcs11.xml: update
2005-08-30 jonsito
* [r109] docs/mappers_api.html: add mappers_api.html to svn tarball
* [r108] docs/Makefile.am: stupid bug in docs/Makefile.am
* [r107] docs/Makefile.am, docs/mappers_api.xml: Add Mappers API
documentation (wip)
* [r106] src/common/cert_info.c, src/common/strings.c,
src/mappers/Makefile.am, src/mappers/opensc_mapper.c,
src/mappers/openssh_mapper.c, src/tools/card_eventmgr.c,
src/tools/pkcs11_eventmgr.c: Fixes for some '-Wall -pedantic'
warnings
2005-08-29 jonsito
* [r105] src/mappers/Makefile.am, src/mappers/cn_mapper.h,
src/mappers/digest_mapper.h, src/mappers/generic_mapper.h,
src/mappers/krb_mapper.h, src/mappers/ldap_mapper.h,
src/mappers/mail_mapper.h, src/mappers/mapperlist.c,
src/mappers/mapperlist.h, src/mappers/ms_mapper.h,
src/mappers/null_mapper.c, src/mappers/null_mapper.h,
src/mappers/opensc_mapper.h, src/mappers/openssh_mapper.h,
src/mappers/pwent_mapper.h, src/mappers/subject_mapper.h,
src/mappers/uid_mapper.h, src/tools/Makefile.am: Bugfixes on
compiling some static mappers
* [r104] src/mappers/cn_mapper.c, src/mappers/digest_mapper.c,
src/mappers/generic_mapper.c, src/mappers/krb_mapper.c,
src/mappers/ldap_mapper.c, src/mappers/mail_mapper.c,
src/mappers/mapper.h, src/mappers/ms_mapper.c,
src/mappers/null_mapper.c, src/mappers/opensc_mapper.c,
src/mappers/openssh_mapper.c, src/mappers/pwent_mapper.c,
src/mappers/subject_mapper.c, src/mappers/uid_mapper.c: Mappers
now supports static linking
* [r103] src/mappers/Makefile.am, src/mappers/cn_mapper.h,
src/mappers/digest_mapper.h, src/mappers/generic_mapper.h,
src/mappers/krb_mapper.h, src/mappers/ldap_mapper.h,
src/mappers/mail_mapper.h, src/mappers/mapperlist.c,
src/mappers/ms_mapper.h, src/mappers/null_mapper.h,
src/mappers/opensc_mapper.h, src/mappers/openssh_mapper.h,
src/mappers/pwent_mapper.h, src/mappers/subject_mapper.h,
src/mappers/uid_mapper.h: Adding mappers header files
* [r102] docs/pam_pkcs11.html, src/mappers/Makefile.am: Move
mapper.[ch] to libmapper
2005-08-29 ludovic.rousseau
* [r101] docs/pam_pkcs11.xml: change official site URL to
http://www.opensc.org/pam_pkcs11/
* [r100] docs/pam_pkcs11.xml: remove empty lines in <userinput>
parts
* [r99] docs/pam_pkcs11.xml: chapter 3. Fundamentals: include the
reference in the text instead as a
footnote
* [r98] docs/Makefile.am: add section numbering
* [r97] docs/pam_pkcs11.xml: chapter 2. Introduction: include the
references in the text instead as
footnote
* [r96] docs/pam_pkcs11.xml: use <email></email> instead of <
> for emails
2005-08-29 jonsito
* [r95] configure.in, src/Makefile.am, src/mappers/Makefile.am,
src/mappers/mapper.h, src/mappers/mapperlist.c,
src/mappers/mapperlist.h, src/mappers/null_mapper.c,
src/pam_pkcs11/Makefile.am, src/pam_pkcs11/mapper_mgr.c,
src/tools/Makefile.am: Preliminary work on statically linked
mappers
2005-08-29 ludovic.rousseau
* [r94] docs/card_eventmgr.1: minor editing
* [r93] docs/pklogin_finder.1: minor editing
* [r92] docs/pkcs11_inspect.1: minor editing
* [r91] docs/pam_pkcs11.8: remove the NOTE about running the lib as
root using a suid bit.
You should not do that.
* [r90] docs/pam_pkcs11.8: improve style
* [r89] etc/pam_pkcs11.conf.example: OpenSC PKCS#11 lib is now
/usr/lib/opensc-pkcs11.so instead of
/usr/lib/pkcs11/opensc-pkcs11.so
2005-07-05 ludovic.rousseau
* [r88] docs/Makefile.am: remove 'MAINTAINERCLEANFILES =
pam_pkcs11.html' as pam_pkcs11.html is
stored in subversion and should not be removed
* [r87] src/mappers/Makefile.am, src/tools/Makefile.am: use
@OPENSSL_CFLAGS@ and @OPENSSL_LIBS@
* [r86] src/pam_pkcs11/Makefile.am: use @OPENSSL_CFLAGS@ and
@OPENSSL_LIBS@
* [r85] configure.in: use PKG_CHECK_MODULES to find OpenSSL
* [r84] src/tools/card_eventmgr.c: remove test on HAVE_PCSC_OLD,
old pcsc-lite is not more supported
* [r83] src/tools/Makefile.am: do not compile card_eventmgr if
pcsc-lite is not installed
* [r82] configure.in: greatly simplify the detection of pcsc-lite
define HAVE_PCSC to allow conditional compilation (do not compile
tools
using pcsc-lite if pcsc-lite is not installed)
* [r81] src/pam_pkcs11/pam_pkcs11.c: pam_sm_authenticate(): fail if
the user is remote (XMDCP)
2005-06-13 jonsito
* [r80] aclocal/openssl.m4: Support for nonstandard openssl paths
(openssl.m4 missing)
* [r79] aclocal/Makefile.am, configure.in: Support for nonstandard
openssl paths
2005-06-09 jonsito
* [r78] src/mappers/opensc_mapper.c, src/mappers/openssh_mapper.c:
Preliminary work on OpenSC mapper
* [r77] docs/pam_pkcs11.html: Updated User Manual
* [r76] ChangeLog: Updated ChangeLog
* [r75] src/common/cert_info.c, src/common/cert_info.h: Implemented
cert(PEM),pubk(PEM),pubk(SSH) data entries
* [r74] src/mappers/openssh_mapper.c: Finished openssh-mapper.c
coding
* [r73] src/tools/pkcs11_inspect.c: pkcs11_inspect: print correct
certificate number
2005-06-08 jonsito
* [r72] src/common/cert_info.c: more work on extracting
certificate's public key
2005-06-07 jonsito
* [r71] src/mappers/openssh_mapper.c: Add openssh_mapper.c to svn
:-)
* [r70] docs/pam_pkcs11.xml: OpenSSH mapper documentation typos
* [r69] docs/pam_pkcs11.xml: OpenSSH mapper documentation
* [r68] etc/pam_pkcs11.conf.example, src/common/cert_info.c,
src/common/cert_info.h, src/mappers/Makefile.am,
src/mappers/mapper.c: Adding OpenSSH mapper (work-in-progress)
* [r67] src/common/strings.c, src/common/strings.h: Added new
methods for string mgmt
2005-06-06 martin
* [r66] docs/pam_pkcs11.xml: Correct name
2005-06-06 ludovic.rousseau
* [r65] docs/pam_pkcs11.xml: english grammar correction
* [r64] etc/card_eventmgr.conf.example,
etc/pam_pkcs11.conf.example: english grammar corrections
* [r63] docs/Makefile.am: do not call tidy since it modifies the
generated html in a bad way
* [r62] docs/pam_pkcs11.xml: correct some punctuation (end of
phrase dot, extra space in parenthesis)
* [r61] docs/pam_pkcs11.xml: remove <prompt> tags and reformat
<userinput> data
* [r60] docs/pam_pkcs11.xml: use firstname & surname instead of the
invalid name tag
* [r59] docs/pam_pkcs11.html: re-add this generated file since it
is displayed by the website
* [r58] docs/pam_pkcs11.xml: Declare the DTD using <!DOCTYPE ...>
so that rxp (XML validator) can
find it
* [r57] docs/pam_pkcs11.html: file generated from pam_pkcs11.xml so
should not be in subversion
* [r56] docs/pam_pkcs11.xsl: remove shade.verbatim declaration
since it is useless(?) and generates
warnings:
The shade.verbatim parameter is deprecated. Use CSS instead,
* [r55] docs/pam_pkcs11.xsl: do not use a hard coded path for
docbook.xsl
* [r54] docs/Makefile.am: use --path to specify different locations
to find docbook.xsl
* [r53] Makefile.am: remove the definition of MAINTAINERCLEANFILES
since the indicated files
are already removed by the implicit 'make maintainer-clean'
* [r52] aclocal/Makefile.am, docs/Makefile.am, etc/Makefile.am,
src/Makefile.am, src/common/Makefile.am, src/mappers/Makefile.am,
src/pam_pkcs11/Makefile.am, src/scconf/Makefile.am,
src/tools/Makefile.am, tools/Makefile.am: do not use
'MAINTAINERCLEANFILES = Makefile.in' since is it implicit
'make maintainer-clean' can be used to remove Makefile.in files
* [r51] src/mappers/mapper.c: get_mapent(): skip comment lines
* [r50] src/mappers/mapper.c: get_mapent(): allocate len+1 instead
of len bytes to store a
NULL-terminated string
* [r49] src/tools/pklogin_finder.c: add a \n for a printf()
* [r48] docs/Makefile.am: add pam_pkcs11.html to
MAINTAINERCLEANFILES (make maintainer-clean)
* [r47] docs/Makefile.am: the html files also depends on
$(STYLESHEET)
* [r46] tools/make_hash_link.sh: use * instead of "*" to match the
files
2005-05-24 ludovic.rousseau
* [r45] src/tools/card_eventmgr.c: only set first_loop = FALSE;
after looping on all readers
* [r44] src/tools/card_eventmgr.c: cleanly exit in case of error
(remove pidfile)
* [r43] src/tools/card_eventmgr.c: cleanly exit in case of error
(remove pidfile)
* [r42] src/tools/card_eventmgr.c: exit if no reader is found at
startup
* [r41] src/tools/card_eventmgr.c: remove card state parsing debug
* [r40] src/tools/card_eventmgr.c: remove \n in debug strings
* [r39] src/tools/card_eventmgr.c: trap signals even if pidfile=<>
argument is not used so we always have a
clean exit
* [r38] src/tools/card_eventmgr.c: remove the timestamp information
* [r37] src/tools/card_eventmgr.c: main(): remove a useless call to
fflush(stdout); that was directly
imported from pcsc_scan
2005-05-23 ludovic.rousseau
* [r36] docs/card_eventmgr.1: document kill and pidfile= arguments
* [r35] src/tools/card_eventmgr.c: add support for kill and
pidfile=<filename>
2005-05-19 jonsito
* [r34] AUTHORS, docs/pam_pkcs11.xml: Add Ludovic to author's list
* [r33] docs/pam_pkcs11.xml, etc/pam_pkcs11.conf.example: Generic
mapper documentation
2005-05-18 ludovic.rousseau
* [r32] src/tools/pkcs11_eventmgr.c: add two missing \n with
fprintf(stderr,..)
* [r31] etc/pkcs11_eventmgr.conf.example: convert spaces in tab
* [r30] src/tools/card_eventmgr.c: add two missing \n with
fprintf(stderr,..)
* [r29] src/mappers/generic_mapper.c:
generic_mapper_find_user()/generic_mapper_match_user(): remove
two
unused variables
* [r28] tools/make_hash_link.sh: do not use `ls *` to get the list
of files but "*" to correctly manage
files with spaces in their name
* [r27] tools/make_hash_link.sh: do not save/restore the current
directory since we do not need to
* [r26] tools/make_hash_link.sh: remove space characters at end of
lines
* [r25] tools/make_hash_link.sh: display the filename of files we
can't do anything with. Maybe it is
because the format is wrong or they can't be read or whatever.
* [r24] tools/make_hash_link.sh: revert my previous patch. We need
to redirect stderr since the
certificate may not be in pem format and openssl will shout
* [r23] tools/make_hash_link.sh: do not redirect stderr to
/dev/null in the hash generation to get errors
like "Permission denied" if the certificate can't be read
* [r22] tools/make_hash_link.sh: in the test of the presence of
openssl we escape the result string to
have only one strings even with space characters
2005-05-17 jonsito
* [r21] src/mappers/generic_mapper.c: typos in generic_mapper.c
2005-05-17 ludovic.rousseau
* [r20] tools/make_hash_link.sh: check that openssl is installed
* [r19] src/mappers/null_mapper.c: add _DEFAULT_MAPPER_FIND_USER to
avoid an undefined symbol:
mapper_find_user
* [r18] src/mappers/Makefile.am: add @LIBCOMMON@ to
ldap_mapper_la_LIBADD and opensc_mapper_la_LIBADD to
avoid missing symbols at link time
2005-05-12 ludovic.rousseau
* [r17] docs/README.mappers: reformat
* [r16] docs/README.eventmgr: rephrase and reformat
* [r15] docs/README.autologin: reformat
* [r14] docs/pklogin_finder.1: rephrase and reformat
* [r13] docs/pam_pkcs11.8: reformat
* [r12] docs/card_eventmgr.1: rephrase and reformat
2005-05-11 ludovic.rousseau
* [r11] docs/pkcs11_inspect.1: rephrase and reformat
2005-05-06 jonsito
* [r10] src/pam_pkcs11/Makefile.am: Makefile fix for x64 arch
2005-04-14 jonsito
* [r9] ChangeLog, NEWS, etc/pam_pkcs11.conf.example,
src/mappers/generic_mapper.c, src/mappers/mapper.c,
src/mappers/mapper.h, src/mappers/pwent_mapper.c: generic_mapper
coding finished
2005-04-13 jonsito
* [r8] src/mappers/generic_mapper.c: preliminary works on generic
mapper
2005-04-12 aj
* [r7] bootstrap: add bootstrap script for developers and the
snapshot mechanism.
* [r6] configure.in: set the version to "WIP" (work in progress)
for the snapshot script.
* [r5] src/mappers/Makefile.am, src/pam_pkcs11/Makefile.am,
tools/Makefile.am: remove a few Makefile.in on make
maintainer-clean
* [r4] .: copy release 0.5.2 to trunk.
* [r2] import current version 0.5.2
|