File: ChangeLog

package info (click to toggle)
afflib 3.7.17-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,320 kB
  • sloc: cpp: 20,885; ansic: 15,908; makefile: 526; sh: 438; python: 192
file content (2602 lines) | stat: -rw-r--r-- 87,464 bytes parent folder | download | duplicates (5)
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
2013-11-16  Basic  <simsong@Mucha.local>

	* configure.ac: version bumped to 3.7.4

2013-10-29  Man Page  <simsong@mncrnpsedu.local>

	* configure.ac: updated for OSX Mavericks (10.9)

2012-05-21  Simson Garfinkel  <simsong@mncrnpsedu.local>

	* configure.ac: version bumped to 3.7.1

	* tools/affxml.cpp (struct page_stat_block): uint32_t long changed
	to uint64_t

2012-03-31  Simson Garfinkel  <simsong@imac3.home>

	* configure.ac: increased version number to 3.7.0

	* ALL FILES: Audited for copyright.

	* COPYING: Clarified that Basis copyright only applies to 

	* .gitignore: created file in preparation for move to github

2012-03-04  Simson Garfinkel  <simsong@imac3.home>

	* configure.ac: increased version number to 3.6.16

	* Changed license from BSD with advertising to BSD without advertising.

2011-12-02  Simson Garfinkel  <simsong@alphonse-mucha>

	* configure.ac: increased version number to 3.6.15

2011-11-26  Simson Garfinkel  <simsong@it151636.ern.nps.edu>

	* configure.ac: incorporated Greg Freemyer's patch to address some
	ncurses problems.

2011-11-24  Simson Garfinkel  <slgarfin@submit-0.local>

	* lib/utils.h: created virtual destructore

2011-11-21  Simson Garfinkel  <simsong@Alphonse-Mucha.local>

	* configure.ac: added AC_PROG_CXX

2011-11-18  Simson Garfinkel  <simsong@FC15>

	* tools/affxml.cpp (main): removed unused bflag variable

	* lib/vnode_afd.cpp: max() is now always defined, even on windows.

2011-11-01  Simson Garfinkel  <simsong@it150660.ern.nps.edu>

	* lib/aftimer.h (aftimer::eta_time): added std:: before string

	* configure.ac: updated version counter to 3.6.14

2011-11-01  Simson Garfinkel  <slgarfin@submit-0.local>

	* lib/utils.h: added virtual destructor for seginfo

2011-09-28  Simson Garfinkel  <simsong@arlington-8-30-77-137.ncr.vt.edu>

	* configure.ac: incremented version counter to 3.6.13

	* lib/afflib_pages.cpp (af_get_pagesize): having af_page_size() as
	a macro was causing problems, so now there is both af_page_size
	and af_get_pagesize, both of which do the same. Please use af_get_pagesize.

2011-09-27  Simson Garfinkel  <simsong@Alphonse-Mucha.local>

	* aftimer.h (timestamp): updated aftimer for higher resolution on win32

2011-09-18  Simson Garfinkel  <simsong@imac3.home>

	* lib/afflib.cpp (af_get_pagesize): created af_get_pagesize, which
	for some reason was missing.

	* lib/afflib.h: added int af_get_pagesize(AFFILE *af);


2011-05-04  Simson Garfinkel  <simsong@alphonse-mucha.home>

	* configure.ac: increased version number to 3.6.11, overcomes recent problems.

2011-05-02  Simson Garfinkel  <simsong@alphonse-mucha.home>

	* configure.ac: added back libcrypto (needed on MacOS)

	* tools/affinfo.cpp (color): explicity tests for tigetstr(), putp() and tparm()

2011-04-27  Simson Garfinkel  <simsong@t>

	* configure.ac: removed dependency on libcrypto (as we have
	libssl-dev dependency)

2011-04-25  Simson Garfinkel  <simsong@msimsonnet.local>

	* lib/Makefile.am (EXTRA_PROGRAMS): java re-added to distribution;
	bulk_extractor.jar is now listed as an EXTRA program so it doesn't
	always get built.

2011-04-14  Simson Garfinkel  <simsong@Magneto.local>

	* configure.ac: increased version to 3.6.10

	* lib/vnode_split_raw.cpp (split_raw_increment_fname): revised
	splitraw so that it goes 000 to 999 then A00 through ZZ9 (that is,
	the first and second character are base 36, the third remains base
	10)

2011-04-06  Simson Garfinkel  <simsong@t>

	* configure.ac: incremented to version 3.6.9

	* lib/aftest.cpp (bugs_test): added tests

	* lib/vnode_split_raw.cpp (split_raw_identify_file): now 
	returns 1 for filename.000 or filename.001 or filename.AAA or filename.aaa.

	* (split_raw_close): Now only closes files that are open.

	* (increment_fname) changed to vnode_split_raw_increment_fname so it
	can be externally tested.

2011-03-20  Simson Garfinkel  <simsong@imac3.home>

	* configure.ac: increased version number to 3.6.8

2011-03-18  Simson Garfinkel  <simsong@Silver.local>

	* configure.ac: version number incremented to 3.6.7

	* lib/afflib_i.h: removed typedefs for uint and int64 and uint32_t


2011-03-17  Simson Garfinkel  <simsong@silver.westell.com>

	* ALL OF AFFLIB: All "unsigned long" changed to uint32_t *.

2011-02-16  Simson Garfinkel  <simsong@imac3.home>

	* lib/afflib_i.h: removed all u_int, etc. for Cstandard uint8_t,
	uint32_t, etc.

2011-01-29  Simson Garfinkel  <simsong@imac3.home>

	* tools/affsegment.cpp ("C"): added extern "C" around regex.h include

	* lib/utils.h: changed all u_int to "unsigned int".
	(aff): changed u_long to unsigned long

	* lib/afflib.h: changed all u_int to "unsigned int" and all
	"u_char" to unsigned char to ease compiling in certain environments.

2011-01-14  Simson Garfinkel  <simsong@imac3.home>

	* lib/afflib.cpp (af_make_badflag): changed int to unsigned int to
	avoid compiler warning.

	* configure.ac: removed AC_MSG_NOTICE([LIBEWF:             ${enable_libewf} (requires uuid-dev on Linux)])

2011-01-12  Simson Garfinkel  <simsong@imac3.home>

	* aftimer.h (aftimer::hms): fixed plural for days.

2011-01-01  Simson Garfinkel  <simsong@imac3.home>

	* Makefile.am (pkginclude_HEADERS): removed threaded_hash.h from package.

	* lib/vnode_aff.cpp: incorporated kernel modifications from kernel mounter.

2010-12-22  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* tools/affverify.cpp (hash_verify): changed aftimer to return string

	* aftimer.h (class aftimer): modified to return string rather than
	deal with silly buffers.

2010-12-16  Simson Garfinkel  <simsong@247.sub-69-99-140.myvzw.com>

	* configure.ac: removed IN_AFFLIB. I wonder what it was used for.

2010-12-16  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* configure.ac: version number increased to 3.6.6

	* lib/Makefile.am (AFFLIB_SOURCES): threaded_hash.h removed from
	afflib distribution.

2010-12-04  Simson Garfinkel  <simsong@imac3.home>

	* lib/afflib_i.h: only define ENOTSUP if it is not already defined

	* configure.ac: version number increased to 3.6.5

2010-12-04  Simson Garfinkel  <simsong@imac3.local>

	* configure.ac: disable qemu with Msys
	
	* configure.ac: ssl3_new in AC_CHECK_LIB changed to SSL_library_init

2010-11-10  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* tools/affdiskprint.cpp: changed HAVE_EXPAT to HAVE_LIBEXPAT

2010-10-25  Simson Garfinkel  <simsong@imac3.home>

	* tools/affxml.cpp (xml_info): was adding a NULL to data instead
	of b64size.

2010-10-14  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* lib/afflib.cpp (af_open): added a warning that support for E01
	was removed.

2010-10-08  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* configure.ac: increased to 3.6.3

	* lib/vnode_split_raw.cpp (split_raw_get_seg): added ability to
	query AF_PAGESIZE, AF_IMAGESIZE, AF_SECTORSIZE and AF_DEVICE_SECTORS

	* lib/vnode_raw.cpp (raw_get_seg): fixed AF_DEVICE_SECTORS to make
	sure that there are 8 bytes available for the data (previously was 0)

	* lib/afflib_pages.cpp (af_get_page): wasn't setting *bytes if a
	page was requested and data was null. Now it does. This caused
	mis-reporting in the size of split_raw files.

	* lib/vnode_split_raw.cpp (split_raw_open_internal): replaced
	fprintf with call to stderr.

2010-08-09  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* make_mingw.sh: renamed bootstrap_mingw.sh to make_mingw.sh for consistency.

2010-08-01  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* configure.ac: increased version to 3.6.2

	* lib/vnode_afd.cpp (afd_identify_file): added file:// logic to
	afd_identify_file from aff_identify_file

	* lib/vnode_split_raw.cpp (split_raw_write_internal2): when
	storing data in AFM-files the mode set by af_open is only used for
	the AFM-file, but not for the .000 which contains the raw data. In
	case of mode 0600 for af_open,  the mode for the .000 raw-data
	file is set to 0644, which enables read-access for everyone. This
	is a possible security risk on multi-user systems. To correct
	this, mode in open() is now taken from af->openmode, and not
	hard-coded to be 0644.
	

2010-07-29  Simson Garfinkel  <simsong@imac2.home>

	* win32/afflib.mak (LINK_OPTS): updated for AFFLIB3.6 naming scheme

	* lib/afflib.h: added #ifdef for stdint.h

	* BUGLIST.txt: removed note about afd encryption not working.

2010-07-20  Simson Garfinkel  <simsong@45.sub-75-206-247.myvzw.com>

2010-07-15  Simson Garfinkel  <simsong@shorty.local>

	* lib/vnode_afd.cpp (vnode_afd): removed AF_VNODE_NO_SEALING from vnode_afd->flags.
	(afd_add_file): ap->num_afs>0 changed to ap->num_afs>1 for copying
	over the metadata for the second file.

2010-07-10  Simson L. Garfinkel  <simsong@imac2.home>

	* lib/afflib.h (struct af_vnode_info): changed imagesize in
	af_vnode_info structure from int64_t to uint64_t.

2010-07-10  Simson L. Garfinkel  <simsong@imac2.local>

	* tools/Makefile.am: all commands now begin aff rather than af.

	* lib/vnode_ewf.cpp (ewf_vstat): removed EWF support from AFF

2010-07-06  Simson L. Garfinkel  <simsong@imac2.home>

	* lib/vnode_aff.cpp (aff_get_seg): fixed assertion in ret.

2010-06-28  Simson Garfinkel  <simsong@silver-surfer.home>

	* configure.ac: increased version number to 3.5.13.

	* tools/Makefile.am (bin_PROGRAMS): renamed afconvert to
	affconvert because of name collission with MacOS

2010-06-27  Simson Garfinkel  <simsong@silver-surfer.home>

	* lib/Makefile.am (EXTRA_PROGRAMS): I read on a debian complaint
	list that "aftest" and "s3" shouldn't be installed, but nobody
	thought to drop me a note explaining this or telling me how to do
	it. So after about 15 minutes with the automake manual I moved
	aftest and s3 from bin_PROGRAMS to EXTRA_PROGRAMS and now they
	shouldn't get installed. It would be really nice if those Debian
	folks to send their comments back to package authors.

2010-04-25  Simson L. Garfinkel  <simsong@imac2.local>

	* configure.ac: version increased to 3.5.12

	* Makefile.am (EXTRA_DIST): misc expat distribution removed.

2010-04-25  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* configure.ac: version increased to 3.5.11

2010-04-18  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* substantial modifications to compile under mingw
	
	* tools/afcrypto.cpp (check_file): replaced index() with strchr()
	for WIN32

	* lzma443/C/Common/Alloc.cpp: removed MidAlloc(), MidFree(),
	SetLargePageSize(), BigAlloc() and BigFree() when compiling under mingw

2010-04-17  Simson Garfinkel  <simsong@96.sub-75-226-243.myvzw.com>

	* configure.ac: patched for conditional inclusion of the win32
	directory.

2010-04-14  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* debian/ directory removed at the request of the debian project.

2010-04-12  Ryan Mayer  <mrsolo@mayer-precision>

	* lib/aftest.cpp (xmltest): now compiles without threaded_hash.h
	(simson apparently forgot to add threaded_hash.h to the subversion repository....)

	* tools/afinfo.cpp (print_info): now checks to see if fwrite() doesn't
	write all the characters.

	* tools/afcat.cpp (afcat): now checks to see if fwrite() doesn't
	write all the characters.

	* tools/afcrypto.cpp (usage): changed -d (debug) to -D. Added -e
	option (decrypt.)

2010-04-10  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* applied 03-bashism.patch, fixes a so-called bashism in a test script.
	* applied 04-fix-afdiskprint.patch, fixes a grave bug which prevents
	afdiskprint from starting at all.


2010-04-09  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* tools/affuse.c (main): added explicit instructions to install fuse-devl

2010-03-19  Simson L. Garfinkel  <simsong@Silver-SSD.local>

	* configure.ac: updated version to 3.5.10

	* tools/aff_bom.h: removed non-PD terms in copyright statement.

	* tools/aff_bom.cpp: removed non-PD terms in copyright statement.

	* tools/aff_bom.cpp: corrected spelling of postgraduate

2010-03-14  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* configure.ac: increased version number to 3.5.9

	* lib/vnode_raw.cpp: now sets af->imagesectorsize when
	AF_SECTORSIZE is requested. 
	
	* (raw_filesize): moved added support for af_figure_media to
	raw_filesize().

	* (raw_open): modified to call raw_filesize() to figure size of
	the media

	* bulk_extractor should now work with raw devices.

2010-02-23  Simson L. Garfinkel  <simsong@Silver-SSD.local>

	* configure.ac: increased version to 3.5.8
	
	* tools/test_signing.sh (echo): removed ./ from command names.

	* tools/afconvert.cpp (main): removed TERM dependency from
	afconvert. 

2010-01-17  Simson L. Garfinkel  <simsong@Silver-SSD.local>

	* lib/afflib_pages.cpp: removed 'shouldfree' comment, because the
	variable is gone.

2010-01-16  Simson L. Garfinkel  <simsong@Silver-SSD.local>

	* configure.ac: updated version to 3.5.6

2010-01-15  simsong  <simsong@domex.nps.edu>

	* lib/vnode_ewf.cpp (ewf_get_seg): ewf_get_seg had segnum as an uint64_t; should have been a uint_64_t.

2010-01-03  Simson L. Garfinkel  <simsong@Silver-SSD.local>

	* configure.ac: now properly handles linux systems that have
	libewf installed but not uuid-dev

2009-12-24  Simson L. Garfinkel  <simsong@Silver-SSD.local>

	* configure.ac: incremented version to 3.5.5
	
	* tools/afverify.cpp (process): modified to only complain of an
	unsigned file if the unsigned segments are data segments.

	* tools/afverify.cpp (verify_bom_signature): fixed bug in
	verification of XML signatures. I have no idea why this was
	here. Added better error checking.

2009-12-24  Simson L. Garfinkel  <simsong@Silver-SSD.local>

	* tools/test_*.sh: modified to use mkstemp to create proper
	temporary files.
	
	* lib/afflib_pages.cpp (af_read_sizes): corrected to properly
	calculate the size of the last page

2009-12-23  simsong  <simsong@domex.nps.edu>

	* lib/afflib.cpp (af_get_imagesize): added memset(&vni,0,...) to af_get_imagesize()

2009-12-20  Simson L. Garfinkel  <simsong@Silver-SSD.local>

	* lib/afflib.cpp (af_invalidate_vni_cache): created new function,
	since invalidation was happening in more than one place

2009-12-19  simsong  <simsong@domex.nps.edu>

	* tools/afcrypto.cpp (main): added -E option which just prints the number of segments that would be encrypted.

2009-12-16  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* lib/afflib.cpp (af_open_with): modified so that a valid AFFILE
	is returned even if the passphrase is invalid

2009-12-14  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* lib/vnode_aff.cpp (aff_vstat): wasn't setting cannot_decrypt:1; fixed.

	* tools/afconvert.cpp (convert): fixed so that it handles file:// notation.

2009-12-13  Simson L. Garfinkel  <simsong@Silver-SSD.local>

	* configure.ac: upgraded version count to 3.5.4
	
	* tools/afverify.cpp (main): added OpenSSL_add_all_digests().
	(usage): added debug to print if SHA256 isn't working.

2009-12-13  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* tools/test_recovery.sh (PATH): now stores tempfiles in /tmp

	* tools/test_afsegment.sh (echo): now stores tempfiles in /tmp/

	* tools/test_passphrase.sh: now stores tempfiles in /tmp, rather
	than in the current directory.

	* tools/afconvert.cpp (convert): fixed utimes() so that it is
	applied to the af_output_filename.

	* tools/afcrypto.cpp (main): added option -j to print total number
	of encrypted segments and -J to print total number of unencrypted segments.

2009-12-05  Simson Garfinkel  <simsong@23.sub-75-210-229.myvzw.com>

	* lib/vnode_aff.cpp (aff_close): forgot to close aff_toc_free,
	causing memory leak. Fixed.

2009-12-05  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* lib/vnode_ewf.cpp (ewf_get_seg): same bug as below

	* lib/vnode_qemu.cpp (qemu_get_seg): bug in qemu_get_seg should
	have set *datalen to 8 when called with *datalen=0. Fixed.

	* tools/afcompare.cpp (compare_aff_aff): fixed handling when
	images have different pagesize but same sectorsize.

	* lib/vnode_raw.cpp (raw_get_seg): added check for seek beyond end
	of file

2009-11-26  Simson Garfinkel  <simsong@t>

	* MASSIVE UPDATE: fixed many compiler warnings from signness and
	bad printf formats.

	* lib/afflib.h: af_read now returns ssize_t

2009-11-26  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* tools/afcrypto.cpp: now reports the number of encrypted pages

	* lib/vnode_aff.cpp (aff_vstat): now calculates the number of
	encrypted pages.

	* lib/afflib.cpp (af_seek): reworked so that there would be no
	sign problems

	* configure.ac (AFFUSE_BIN): turned on -Wall. enabled
	_FORTIFY_SOURCE=2 in the Makefiles. What happened to that?

2009-11-25  Simson Garfinkel  <simsong@205.2.242.10.in-addr.arpa>

	* configure.ac: updated to version 3.5.3

2009-11-25  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* lib/crypto.cpp (af_get_affkey_using_keyfile): fixed swapped
	memset arguments.

	* lib/vnode_s3.cpp (s3_get_next_seg): fixed swapped memset arguments.

	* lib/s3_glue.cpp (encode): fixed swapped memset arguments.

2009-11-01  Simson L. Garfinkel  <simsong@imac2.local>

	* configure.ac: also checks ${prefix} for installed libraries

2009-10-22  Simson Garfinkel  <simsong@142.sub-75-226-173.myvzw.com>

	* configure.ac: updated to version 3.5.2

2009-10-20  Simson Garfinkel  <simsong@Silver-Surver.local>

	* win32/Makefile.am (the_release): added libeay32.dll to zipfile

2009-10-09  Simson Garfinkel  <simsong@domex.nps.edu>

	* Removed AFF_SIGS since it is now determined on the fly.
	
	
	* configure.ac: remove SHA256 detection from configure script; this is now done at runtime.

	* lib/afflib_pages.cpp (af_update_page): modified write_sha256 block to use the EVP system.

	* lib/afflib.cpp (af_initialize): removed SHA256 validation vectors from af_initialize() because AFFLIB now uses the EVP system for SHA256.

2009-10-04  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* tools/afinfo.cpp (print_info): fixed bug in which auto_decrypt
	was being set even if it was not previously set.

	* lib/afflib.cpp (af_set_option): now returns the previous version
	of the option that is set. 

2009-10-03  Simson Garfinkel  <simsong@Silver-Surver.local>

	* tools/afdiskprint.cpp: added O_BINARY define for Windows.

2009-09-30  Simson Garfinkel  <simsong@t>

	* configure.ac: updated version number to 3.4.2

	* tools/afdiskprint.cpp: added #include <algorithm> because STL
	isn't very S on Linux.

2009-09-22  Simson Garfinkel  <slgarfin@hamming.uc.nps.edu>

	* lib/vnode_aff.cpp (aff_open): failure to obtain exclusive lock
	now generates warning rather than error.

	* tools/afdiskprint.cpp (main): added #ifdef HAVE_SRANDOMDEV for
	compilation on linux

2009-09-17  Simson Garfinkel  <simsong@Silver-Surver.local>

	* configure.ac: increased version number to 3.4.0

	* tools/afdiskprint.cpp (diskprint_verify): added diskprint.

2009-08-22  Simson Garfinkel  <simsong@79.sub-70-198-200.myvzw.com>

	* configure.ac: increased version number to 3.3.8

2009-08-20  Simson Garfinkel  <simsong@65.sub-75-195-141.myvzw.com>

	* lib/*.cpp and tools/*.cpp (info_file): warnings removed for GCC 4.2.1
	* Updated many format strings to handle GCC 4.2.1

2009-08-08  Simson Garfinkel  <simsong@imac2.local>

	* tools/affix.cpp (fix): changed truncate() to ftruncate(), as we
	have a valid win32 cover for ftruncate.

	* tools/afconvert.cpp (convert): made call to utimes() conditional
	because we don't always have it.

	* lib/Makefile.am (AFFLIB_SOURCES): removed aftimer.cpp, since the
	class is now entirely defined in the aftimer.h

2009-07-22  Simson Garfinkel  <simsong@Snow3-2.local>

	* configure.ac: now specifically tells the user to install an up-to-date version of OpenSSL if SHA256 is missing.

	Version number upped to 3.3.7

2009-05-19  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* configure.ac: upped version number to 3.3.6

	* Fixed bug in handling of fixed-size AFD files.

2009-05-03  Simson Garfinkel  <simsong@imac2.local>

	* changed version number to 3.3.5

	* Modified configure.ac so lack of SHA256 is no longer fatal

2009-03-17  Simson L. Garfinkel  <simsong@domex.nps.edu>

	* tools/afxml.cpp (xml_info): changed name= to image_filename= in affinfo attribute.

2009-03-05  Simson Garfinkel  <simsong@Silver-Surfer.local>

2009-02-21  Simson Garfinkel  <simsong@t>

	* configure.ac: added AC_CHECK_LIB([rt],[aio_error64]) to configure.ac

2009-02-11  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* configure.ac: support added for VMDK and DMG files.
	Version number will be incremented to to 3.4 when they are stable.

2009-02-10  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* lib/afflib.cpp (af_open_with): Now, if it can't allocate
	AFFLIB_CACHE_PAGES_DEFAULT, try to allocate just 2 pages.

	* lib/afflib.h (AFFLIB_CACHE_PAGES_DEFAULT): Default page cache
	size increased from 2 pages to 32, increasing memory requirements
	from 32MB to 512MB. This will make AFFLIB run dramatically faster
	in most situations. It will, however, require lowering when AFF is
	running in reduced memory configurations.

2009-01-27  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* lib/afflib.cpp: created function to set acquisition date in a
	standardized way.

	* tools/afconvert.cpp (usage): removed -Z option from usage
	because it was never implemented.

2008-12-30  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* lib/Makefile.am (AFFLIB_SOURCES): moved display_as_quad to
	af_display_as_quad() and added to library.

2008-10-28  Simson L. Garfinkel  <simsong@domex.nps.edu>

	* lib/afflib_stream.cpp (af_read): if reading through a short page, return (0) for attempts to read additional bytes. (Previously generated a crash...) What's the correct behavior? SHould we advance to the beginning of the next page? I don't know.

2008-10-12  Simson Garfinkel  <simsong@137.sub-75-221-230.myvzw.com>

	* man/Makefile.am: created man page for afcat

2008-09-29  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* configure.ac: incremented version counter to 3.3.4

	* pyaff/pyaff.c: changed #include from afflib/afflib.h to lib/afflib.h

2008-09-23  Simson Garfinkel  <simsong@imac2.local>

	* lib/afflib_i.h (struct af_figure_media_buf): incremented
	max_read_blocks from 4 bytes to 8 bytes because that's what Apple returns!!!

2008-09-10  Simson Garfinkel  <simsong@imac2.local>

	* configure.ac: upped version counter to 3.3.3

	* Added include <cstring> to all CPP files that had include <string>

2008-09-04  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* configure.ac (AFFUSE_BIN): removed printing of modified cflags

	* lib/s3.cpp (s3_df): removed af_commas, as it was already in afflib_utils.cpp
	(s3_ls): changed af_commas to PRId64

2008-09-03  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* configure.ac: fixed support for QEMU under Linux (added -lrt ---
	what a weird place to put it), and also fixed autoconf problem of
	qemu support being required even when it was turned off.

2008-08-25  Simson L. Garfinkel  <simsong@domex.nps.edu>

	* lib/afflib.h (struct af_vnode_info): 

	* lib/afflib.cpp (af_get_imagesize): updated for new af_vnode_info name

	* lib/afflib.h (struct af_vnode_info): encrypted_count and
	signed_count changed to segment_count_encrypted and
	segment_count_signed; page_count_total and segment_count_total added.

2008-08-26  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* configure.ac: removed QEMU support by default; it needs more work.

2008-08-17  Simson Garfinkel  <simsong@199.122.224.10.in-addr.arpa>

	* configure.ac: made OpenSSL error on Mac fatal.

	* lib/Makefile.am (libafflib_la_SOURCES): s3_glue is now not included
	in AFFLIB SOURCES if MAYBE_S3 is false.

2008-08-17  Simson Garfinkel  <simsong@94.24.242.10.in-addr.arpa>

	* lib/afflib_stream.cpp (af_set_maxsize): changed call from
	af_get_imagesize() to access of af->image_size.

	* lib/afflib.cpp (af_seek): changed called to af_get_imagesize()
	to af->image_size
	(af_get_imagesize): removed locking, as the individual elements of
	the af structure are not accessed.

2008-08-17  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* lib/afflib.cpp (af_update_segf): modified to clear af->vni_cache

	* lib/afflib.cpp (af_vstat): added support for caching results.
	
	* lib/afflib_stream.cpp (af_write): modified to clear af->vni_cache
	
	* lib/afflib_stream.cpp (af_read): modified to use af->image_size
	rather than a calculated image_size.

2008-08-13  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* lib/vnode_ewf.cpp (ewf_get_seg): now takes imagesize from
	af->image_size, since it was already set.
	(ewf_bytes_per_sector): refactored all libewf_get_bytes_per_sector
	into this function.

2008-08-11  Simson Garfinkel  <simsong@0.sub-70-211-150.myvzw.com>

	* configure.ac: increased version number to 3.2.7

	* lib/s3.cpp: changed include err.h to include afflib_i.h for
	cases where users want s3 but don't have err.h (like Solaris)

2008-08-07  Simson Garfinkel  <simsong@imac2.local>

	* configure.ac: version increased to 3.2.6

	* lib/vnode_ewf.cpp (ewf_close): modified to use the second
	argument for libewf if LIBEWF_VERSION>=20080501
	
2008-07-22  Simson Garfinkel  <simsong@112.sub-75-199-16.myvzw.com>

	* configure.ac: upped version to 3.2.5, as 3.2.4 wouldn't compile
	on machines without EVP_SHA256.

2008-07-20  Simson Garfinkel  <simsong@imac2.local>

	* lib/afflib.cpp (af_make_gid): returns -1 if an error, 0 if GID
	exists, and if one is made.

	* lib/crypto.cpp: (af_sign_all_unsigned_segments): Now returns the
	number of unsigned segments that were signed.

	* tools/afsign.cpp (afsign): 

	* lib/crypto.cpp (af_is_signature_segment): af_is_signed_segment
	changed to af_is_signature_segment because that's what it is doing.

2008-07-18  Simson Garfinkel  <simsong@imac2.local>

	* lib/vnode_ewf.cpp (ewf_get_seg): fixed case of data==0 and
	datalen==0 generating an error.
	(ewf_get_seg): fixed requesting of invalid pages

2008-07-18  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* tools/afcopy.cpp (main): changed -s option to -k for consistency
	with afsign.

2008-07-16  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* lib/vnode_aff.cpp (aff_vstat): removed has_encrypted and
	has_signed from the vni information; use the encrypted_count and
	signed_count. Sorry about breaking backward compatibility with the
	binary API; nobody is using this yet.

	* tools/afsign.cpp (afsign): bug in signing of signature pages fixed.

2008-07-15  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* configure.ac: increased version number to 3.2.4

2008-07-14  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* lib/vnode_aff.cpp (aff_open): added flock to vnode_aff, so that
	multiple writers to an AFF file will now block rather
	than corrupt the file

2008-07-10  Simson Garfinkel  <simsong@copy.ern.nps.edu>

	* tools/afinfo.cpp (figure_media): added -A option to print XML
	output of media params.

2008-07-09  Simson L. Garfinkel  <simsong@domex.nps.edu>

	* tools/afxml.cpp: suppreses XML output of encrypted segments

	* tools/afinfo.cpp (info_file): color was too hard to do; we just use bold now for decrypted data

2008-07-08  Simson L. Garfinkel  <simsong@domex.nps.edu>

	* tools/afxml.cpp (xml_info): fixed bug in afxml where last 2 chars of md5_hex were not reported because not large enough buffer was allocated

	* lib/afflib_util.cpp (af_hexbuf): 

2008-07-07  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* tools/afsegment.cpp (main): added -x to print segment as hex string

2008-07-05  Simson Garfinkel  <simsong@imac2.local>

	* lib/Makefile.am (#aftest_LDFLAGS): lib/s3 binary no longer made
	if S3 is not enabled.

2008-07-03  Simson Garfinkel  <simsong@image.ern.nps.edu>

	* tools/afsegment.cpp (process): better error messages when
	segment doesn't exist

2008-07-03  Simson L. Garfinkel  <simsong@domex.nps.edu>

	* tools/afinfo.cpp (info_file): fixed printing so color is left as
	red, not black
	(info_file): only reports missing pages can't be computed if -d
	flag is present.

2008-07-02  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* lib/afflib_i.h (AF_VNODE_NO_SEALING): added flags for
	AF_VNODE_NO_SIGNING and AF_VNODE_NO_SEALING so that AFF
	implementations that do not support encryption can declare
	this. Added appropriate macros for checking these variables. 

2008-06-29  Simson Garfinkel  <simsong@imac2.local>

	* configure.ac: incremented version to 3.2.3

	* tools/afconvert.cpp (convert): fixed bug in which  converting .aff file
	to a .afd file caused crash

2008-06-27  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* lib/afflib.cpp: added locking to all of the functions; still
	need to add it to afflib_streams.

	* lib/afflib_util.cpp: moved eff, af_err, errx, warn and warnx to
	this file.

2008-06-24  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* tools/affix.cpp (fix): adds an AF_IMAGE_GID if one doesn't exist.
	(fix): fixed error in which O_RDWR flag was being passed as a mode
	to af_open_with(). This prevented the -y option from operating
	properly. 

	* tools/afconvert.cpp (convert): adds an AF_IMAGE_GID if one doesn't exist.

	* tools/afcopy.cpp (afcopy): adds an AF_IMAGE_GID if one doesn't exist.


	* lib/afflib.cpp (af_make_gid): added af_make_gid (removed from aimage)

2008-06-20  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* configure.ac: incremented version number to 3.2.2

2008-06-18  Simson Garfinkel  <simsong@Silver-Surfer.local>

	* Makefile.am: added threaded_hash.h to the list of installed .h files

2008-06-10  Simson Garfinkel  <simsong@Obsidian.local>

	* lib/aff_toc.cpp: simplified to make toc mandatory.

2008-06-02  Simson Garfinkel  <simsong@copy.ern.nps.edu>

	* lib/afflib.cpp (af_open_with): fixed error in wiping password
	when open mode is read-only and password is provided. (If no
	encryption segment is present, do not use a password.)

2008-05-28  Simson L. Garfinkel  <simsong@domex.nps.edu>

	* tools/afinfo.cpp (info_file): now states that bold is something that was decrypted

2008-05-30  Simson Garfinkel  <simsong@Obsidian.local>

	* tools/afinfo.cpp (info_file): decrypted data now shows in red
	and bold

	* lib/afflib_i.h (struct _AFFILE): fixed definition of struct
	_AFFILE to be compatible with C (was just compatible with C++).

2008-05-29  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* lib/vnode_ewf.cpp (ewf_get_seg): modifid once again to work with
	wide char

2008-05-21  Simson Garfinkel  <simsong@Obsidian.local>

	* lib/vnode_afd.cpp (afd_open): now refuses to open a .afd
	directory with no aff files.

	* tools/afcrypto.cpp (main): AFCRYPTO will now only encrypt AFD
	and AFM files.

2008-05-20  Simson Garfinkel  <simsong@Obsidian.local>

	* tools/*.cpp (recover): changed err() to af_err() after every af_open().

	* lib/vnode_aff.cpp (aff_get_next_seg): detects truncated files
	and will not allowed them to be opened.

2008-05-19  Simson Garfinkel  <simsong@Obsidian.local>

	* tools/affix.cpp (usage): removed -b option; wasn't using it.

2008-05-17  Simson Garfinkel  <simsong@Obsidian.local>

	* lib/afflib.cpp (af_update_segf): changed padding to 01 for 1 pad
	byte, 02 02 for two pad bytes, etc., in keeping with PKCS7.

	* lib/afflib.h (AFFLIB_TRACEFILE): changed AFFLIB_TRACE to AFFLIB_TRACEFILE 

2008-05-13  Simson L. Garfinkel  <simsong@domex.nps.edu>

	* tools/afxml.cpp (xml_info): for some reason, XML sometimes had a ^C at the end. Changed malloc to calloc to zero buffer and avoid the problem.

2008-05-12  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* lib/aftest.cpp (lzma_test): changed more char *'s to const char *.

	* lib/afflib_i.h (struct af_vnode): changed char *name to const
	char *name; wonder why I didn't see this before.

2008-05-08  Simson Garfinkel  <simsong@Obsidian.local>

	* configure.ac: fixed script so that setting the environment
	variable AFF_NOOPT to any value will prevent optimization

2008-05-07  Simson Garfinkel  <simsong@imac2.local>

	* lib/crypto.cpp (af_get_aes_key_from_passphrase): fixed error in
	kversion checking; additional work on encryption compatibility
	between Mac and Linux

2008-04-28  Simson Garfinkel  <simsong@Obsidian.local>

	* tools/afinfo.cpp: updated copyright notice.

	* tools/aff_bom.cpp: added public domain disclaimer

	* tools/aff_bom.h: added public domain disclaimer

	* tools/afcrypto.cpp: corrected copyright notice 

	* tools/afcompare.cpp: updated copyright notice

	* tools/afconvert.cpp: updated copyright notice.

2008-04-26  Simson Garfinkel  <simsong@imac2.local>

	* tools/afcopy.cpp (afcopy): removed debugging.

2008-04-25  Simson Garfinkel  <simsong@imac2.local>

	* lib/afflib.h (AF_XML_AFFBOM): AF_XML_CUSTODY_CHAIN renamed
	AF_XML_AFFBOM and changed from "custody_chain" to "affbom"

2008-04-23  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* lib/crypto.cpp (af_get_aes_key_from_passphrase): added code to
	fix compiler problem on Linux/GCC 4.0/64-bit machines in which
	unsigned long foo:32 took up 8 bytes (instead of 4).

	* Added to code to handle reading incorrectly-generated 56-byte affkey segments 

2008-04-21  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* lib/vnode_ewf.cpp (ewf_get_seg): changes made to support the
	circa 2007 version of libewf

	* tools/afcrypto.cpp (main): changed output to make easier to parse and more useful.

	* lib/vnode_aff.cpp (aff_vstat): added signed_count and encrypted_count.

2008-04-14  Simson Garfinkel  <simsong@Obsidian.local>

	* lib/vnode_raw.cpp (raw_read): replaced fseek() with fseeko().

	* lib/vnode_aff.cpp (af_truncate_blank): replaced fseek() with
	fseeko()
	
	* lib/vnode_aff.cpp  (aff_update_seg): replaced fseek() with fseeko(). (Shouldn't
	matter here, but it might).

	* lib/vnode_raw.cpp (raw_write): changed fseek() to fseeko().

2008-03-27  Simson Garfinkel  <simsong@Obsidian.local>

	* Added debian system provided by Joachim Metz
	
	* configure.ac: incremented version counter to 3.1.5

	* lib/afflib.cpp (af_get_imagesize): now sets errno=1 if it can't
	determine imagesize because of encryption.
	
	* afflib.pc.in (prefix): added file

2008-03-24  Simson Garfinkel  <simsong@Obsidian.local>

	* lib/vnode_ewf.cpp (ewf_get_seg): updated to handle with libewf
	returning -1 for error and 1 for success.

2008-03-12  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* afflib.spec.in (BuildRequires): fixed subdirectory problem in specfile.

2008-03-09  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* configure.ac: 

2008-03-09  Simson Garfinkel  <simsong@imac2.local>

	* configure.ac: updated to AFFLIB-3.1.3

2008-03-09  System Administrator  <simsong@Obsidian.lan>

	* lib/Makefile.am (install-exec-hook): fixed shell script syntax error

2008-03-05  Simson Garfinkel  <simsong@imac2.local>

	* lib/vnode_ewf.cpp: updated for libewf 20080305

2008-03-02  Simson Garfinkel  <simsong@imac2.local>

	* afflib.spec.in (BuildRequires): added missing include files

	* Makefile.am (pkginclude_HEADERS): removed duplicate afflib_sha256.h

2008-02-28  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* tools/afrecover.cpp (recover): fixed bug in printf statement.

2008-02-26  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* Here's how to turn on executable property in the SVN repository:
	svn propset svn:executable ON test_tools.sh 
	More at http://svnbook.red-bean.com/en/1.0/re23.html

2008-02-26  Simson Garfinkel  <simsong@imac2.local>

	* lib/afflib.cpp (af_update_segf): fixed annoying bug which caused
	signing of encrypted data being written to generate segmentation
	errors under some conditions.

	* configure.ac: better reporting of dependencies for aff signatures

2008-02-26  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* tools/afsegment.cpp (usage): usage fixed, removing space after
	-s and -p options (apparently getopt on Linux can't handle it.)

	* lib/crypto.cpp (af_sig_verify_seg): #ifdef USE_AFFSGIS changed
	to #ifdef USE_AFFSIGS

	* lib/utils.cpp: C++ utilities moved into the aff namespace.

	* tools/afverify.cpp (main): version flag changed from -v to -V
	for consistency with other tools.

	* lib/afflib_os.cpp (af_figure_media): fixed another int64 reference

2008-02-26  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* tools/afverify.cpp (usage): corrected usage.

2008-02-25  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* configure.ac: now properly handles libexpat once again

	* lib/afflib_i.h: removed lots of the #ifdefs for openssl/*.h and replaced if #ifdef HAVE_LIBSSL

	* lib & tools:  moved utils.cpp from tools directory to lib directory

	* Makefile.am (pkginclude_HEADERS): added lib/aftimer.h to the list of installed headers

2008-02-24  Simson Garfinkel  <simsong@imac2.local>

	* lib/afflib.cpp (af_get_imagesize): changed int64 to int64_t and
	uint64 to uint64_t for compliance with C99 standard.

	* aimage removed for AFF; it is now going to be its own distribution

2008-02-12  SImson L. Garfinkel  <simsong@copy.ern.nps.edu>

	* aimage/gui.cpp (my_refresh): changed screen update so it now happens every 128K bytes.

2008-02-10  SImson L. Garfinkel  <simsong@copy.ern.nps.edu>

	* tools/afcat.cpp (sig_info): added SIGINFO (^t) to afcat to print current page

2008-02-10  Charlie Root  <simsong@copy.ern.nps.edu>

	* lib/vnode_raw.cpp (raw_open): modified raw so that it will write as well

2008-02-20  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* lib/afflib_i.h ("C"): put everything inside an extern "C".; removed legacy uint64 and int64 types.

	* tools/Makefile.am (bin_PROGRAMS): added test_tools to being to get some more automated testing.

	* tools/afsign.cpp (afsign): improved error message when certificate file cannot be loaded

	* tools/afsegment.cpp (usage): fixed usage so that version number is -V (as the option was implemented)

2008-02-13  Simson Garfinkel  <simsong@imac2.local>

	* configure.ac: revamped to allow you to specify where expat is located

2008-02-08  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* tools/afcat.cpp (afcat): now warns if it can't cat because it
	doesn't have the encryption keyx

	* lib/afflib.h: moved af_vstat() into afflib.h.
	* lib/afflib.h: moved actually AFFILE definition into afflib_i.h

2008-02-06  SImson L. Garfinkel  <simsong@copy.ern.nps.edu>

	* aimage/gui.cpp (my_refresh): Now prints names of input and
	output files on display.

	* aimage/aimage.cpp: You can now specify "%d" or "%02d" or any
	%...d format in the output filename; %d is incremented until the
	file doesn't exist.

2008-01-29  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* lib/aftest.cpp (main): made default to run all tests
	(main): now erases the test files after creating them.

	* Makefile.am (prerelease): added "make distcheck" to prelease target

2008-01-28  Simson Garfinkel
	* Released 3.0.5 - doesn't compile due to noinst_ issue in
	Makefile.am
	* Released 3.0.6, which is the same as 3.0.5 but doesn't install
	libraries.
	
2007-12-24  Simson Garfinkel  <simsong@imac2.local>

	* afflib.spec.in (Name): Joachim Metz contributed this file.

2007-12-18  Simson Garfinkel  <simsong@Obsidian.local>

	* lib/vnode_afd.h (AFD_DEFAULT_MAXSIZE): Changed from 600 to 608
	(so that it is now a multiple of 16; not strictly needed, but it
	makes things a bit cleaner.)

	* lib/afflib.cpp (af_update_segf): fixed crasher on update when
	af->crypto->encrypt was not present.

	* tools/affuse.c (main): improved error messages for when affuse
	can't run.

2007-12-14  Simson Garfinkel  <simsong@Obsidian.local>

	* configure.ac: changed config.h to affconfig.h to minimize
	name space collisions. 

	* lib/Makefile.am (lib_LTLIBRARIES): libafflib.la is now an
	installed library.

2007-11-27  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* tools/afxml.cpp (okay_to_print): added ', ", and & to the list
	of characters that cannot be output in XML

	* lib/afflib.cpp (af_open_with): opening a read-only AFF file that
	has no encryption works, even if you specify an encryption password.

	* tools/afinfo.cpp (display_as_hex): displayed image GID in hex

2007-11-26  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* REMOVED lib/sha256.c --- the implementation had bugs. (That's
	what I get for including a non-validated crypto algorithm.) AFF
	now requires SHA256 but it should compile without it

	* tools/afsegment.cpp (main): now handles case when optarg==0
	(which happened with afsegment -d seg instead of affsegment -dseg)
	(usage): added : to "d" in getopt.

2007-11-24  Simson Garfinkel  <simsong@imac2.local>

	* lib/crypto.cpp: refactored AFF compilation error message

2007-11-16  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* lib/vnode_aff.cpp (aff_identify_file): fixed parsing of file:// URLs.

2007-11-14  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* lib/afflib.h: af_is_badsector now takes const unsigned char
	*buf; taking non-const was an error

2007-11-13  Simson L. Garfinkel  <simsong@domex.local>

	* lib/afflib_sha256.h: minor tweaks to deal with the problem with
	SHA256() and EVP_sha256() are present but not in the #include file.

2007-11-07  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* tools/afsegment.cpp (main): -q renamed to be -Q (because -q
	should be quiet)
	(main): only prints filename if there is more than one file
	(main): only prints segname if there is more than one seg

2007-10-31  Simson Garfinkel  <simsong@imac2.local>

	* tools/utils.cpp: added #ifdef AFF_SIGS so that bom class won't
	be compiled if not compiling with AFFSIGS
	added #include <afflib_i.h> to get #ifdef AFF_SIGS

2007-10-29  Simson Garfinkel  <simsong@imac2.local>

	* tools/afinfo.cpp (info_file): aes_segs now initialized to
	0. (Strangely, the uninitialized value was causing problems when
	running with MSC.)

	* lib/vnode_s3.cpp (s3_cantopen): added "return -1" to s3_cantopen()

	* lib/vnode_aff.cpp (aff_get_next_seg): ENOBUFS error on
	incomplete reads changed to E2BIG, since there is no ENOBUFS on windows.

2007-10-23  Simson Garfinkel  <simsong@m-ern-nps-edu.local>

	* tools/afverify.cpp: moved #include "expat.h" to after the #ifdef USE_AFFSIGS

2007-10-25  Simson Garfinkel  <simsong@imac2.local>

	* lib/afflib_pages.cpp (af_update_page): lots of code that
	required signatures made #ifdef USE_AFFSIGS for compiling under
	Windows without OpenSSL

	* lib/afflib_util.cpp (af_parse_url): index() changed to strchr()
	for Win32.

2007-10-24  Simson Garfinkel  <simsong@imac2.local>

	* lib/afflib.h: significant changes for compiling under win32. 
	- added u_int and others for compiling under win32.
	- affkey_aes256 structure had an element with the same name;
	structure renamed to affkey.

2007-10-20  Simson Garfinkel  <simsong@imac2.local>

	* lib/vnode_afm.cpp (afm_split_raw_setup): modified so that
	ap->aff->image_size only needs to equal ap->sr->image_size if
	ap->aff->image_size has already been set

2007-10-18  Simson Garfinkel  <simsong@imac2.local>

	* lib/vnode_split_raw.cpp (split_raw_get_seg): fixed bug in that
	*datalen was not set properly if it was smaller than the size of
	the segment, even if data==0. Fixed.

2007-10-16  Simson Garfinkel  <simsong@imac2.local>

	* lib/vnode_split_raw.cpp (split_raw_update_seg): was returning
	the number of bytes written; now returns 0 if write is successful,
	-1 if it is not.

2007-10-14  Simson Garfinkel  <simsong@imac2.local>

        * aimage/aimage.cpp (usage): --sign and -s now used to specify
	private and public key used for signing.
	
	* aimage/aimage.cpp (usage): --setseg used to be -s; changed to -g
	so that we can use -s for signing.

2007-09-25  Simson Garfinkel  <simsong@m-ern-nps-edu.local>

	* tools/utils.cpp (get_seglist): fixed uninitialized variables in
	get_seglist which was causing indeterminate behavior in get_seglist.

2007-09-16  Simson Garfinkel  <simsong@Obsidian.local>

	* BUGLIST.txt (library): removed need to check for af->writing,
	because it's gone.

2007-09-15  Simson Garfinkel  <simsong@Obsidian.local>

	* lib/afflib.h: removed af->writing, because it wasn't good for
	POSIX compatibility. 

2007-09-14  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* tools/afcopy.cpp (main): -c option (verify compression) removed
	from usage because it was never implemented. New -c will specify
	an X.509 certificate.

2007-09-12  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* MULTIPLE FILES: changed most "const void *" pointers on update
	and write routines to "const u_char *".

2007-09-02  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>


	* lib/aff_toc.cpp (aff_toc_del): fixed double-del problem; thanks
	to Jason Shiffer for bringing this to our attention.

2007-08-29  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* lib/Makefile.am, tools/Makefile.am, configure.ac (affuse_LDADD):
	first steps for using libtool and shared libraries

	* lib/afflib.cpp (af_open_with): added support for AFFLIB_PASSPHRASE

2007-08-27  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* aimage/aimage.cpp (process_option): made opt_maxsize an int64;
	added support for dvd and dvddl from luca at palazzo.name.

2007-08-20  Simson Garfinkel  <simsong@Obsidian.local>

	* lib/aftest.cpp (aestest): now sets page size in test files.

	* lib/afflib.cpp (af_update_seg): af_update_seg() didn't check to
	make sure that writing was enabled. Now it does.

2007-08-20  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* lib/afflib_stream.cpp (af_write): Now sets pagesize to
	AFF_DEFAULT_PAGESIZE (1024*1024*16) if a write is attempted
	without a pagesize being previously set.

2007-08-18  Simson Garfinkel  <simsong@Obsidian.local>

	* configure.ac: increased version to 2.4.0

	* lib/aff_db.cpp (af_backspace): af_backspace will no longer
	backspace from the first segment in the file.

	* lib/vnode_aff.cpp (aff_write_ignore): BUG --- if first segment
	was deleted, entire file got wiped. Whoops! fixed this.

	* tools/afcopy.cpp (afcopy): bugfix - removed af_close(out.af);
	when zapping; file wasn't open.

2007-08-17  Simson Garfinkel  <simsong@Obsidian.local>

	* lib/vnode_s3.cpp (s3_open): revised for URL parsing in afflib.cpp

	* lib/vnode_aff.cpp (aff_create): moved af_make_badflag to afflib.cpp
	(aff_get_next_seg): now sets errno to ENOBUFS if buffer isn't
	large enough to hold requested data. 

2007-08-16  Simson Garfinkel  <simsong@Obsidian.local>

	* lib/vnode_aff.cpp (aff_open): changed all occurances of af_toc
	to aff_toc since the TOC is an AFF-file specific thing.

	* tools/afinfo.cpp (usage): changed -p option (validate the hash
	of each page) to -v 

2007-08-12  Simson Garfinkel  <simsong@Obsidian.local>

	* tools/afinfo.cpp (print_info): added two spaces to the "data
	length" printout. 

2007-08-11  Simson Garfinkel  <simsong@Obsidian.local>

	* tools/afinfo.cpp (info_file): fixed printing of missing pages
	with -a when there was no device sector size.

	* lib/afflib.cpp: added support for openssl/fips_sha.h

	* S3 support is now disabled by default. 

2007-08-11  Simson Garfinkel  <simsong@m.ern.nps.edu>

	* lib/s3_glue.cpp: removed main() if USE_S3 was not defined. What
	was I thinking?

2007-07-29  Simson Garfinkel  <simsong@Obsidian.local>

	* tools/afcopy.cpp (main): Removed -p option; now just has -X1
	through -X9 and -L for recompressing; these are the same flags as aimage.

	* lib/afflib.cpp (af_open): attempts to open a file for writing
	with an invalid name now sets EINVAL.


2007-07-26  Simson Garfinkel  <simsong>

	* tools/afxml.cpp (xml_info): removed use of af_backspace() so
	this will now work with S3.
	(xml_info): hex is now printed with coding='base16', decimal
	numbers now printed coding='base10'
	(xml_info): printable data now just printed, rather than encoded

2007-07-25  Simson Garfinkel  <simsong>

	* lib/afflib_stream.cpp (af_write): added check for valid
	image_pagesize in af_write if the write bypass is not used. 

	* lib/vnode_aff.cpp (aff_update_seg): removed stale "append" comment.

2007-07-19  Simson Garfinkel  <simsong>

	* lib/afflib.cpp (af_seek): af_seek w/ SEEK_CUR didn't work. It
	was doing SEEK_CUR as SEEK_SET. This is now fixed. SEEK_END was
	working. 
	(af_seek): added automatic detection of random access, which now
	changes the af_update_seg algorithm.

	* lib/vnode_aff.cpp (aff_write_ignore): modified so that if an
	IGNORE segment is written before another IGNORE, they are
	combined. Likewise, if one is written after an IGNORE, they are
	combined.
	(aff_update_seg): modified so that new objects smaller than 4096
	will not be dropped into deleted segments larger than 4096 bytes
	to prevent fragmentation.

2007-07-18  Simson Garfinkel  <simsong>

	* lib/vnode_aff.cpp (aff_update_seg): if the last segment is NULL,
	it is now erased before writing.
	
	(aff_del_seg): now we use this on Windows, since _chsize_s() is a
	good analog for ftruncate()

	* lib/aftest.cpp (reverse_test): reverse test now reads data to
	verify it is correct

2007-07-17  Simson Garfinkel  <simsong>

	* lib/s3.cpp: applied patches from Ted Romer.  The 'cat' and 'cp'
	commands in s3.cpp had a bug where they neglect to skip over the
	command name in argv, with the result that cat always tries to
	look for the key 'cat' and 'cp' always tries to copy the file
	'cp'.

	This patch fixes that, and also modifies cat and rmdir to accept
	multiple arguments.
	
2007-07-16  Simson L. Garfinkel  <simsong@t.eecs.harvard.edu>

	* lib/aftest.cpp (sparse_test): added read-at-end and
	read-beyond-end of sparse file tests to aftest -6

	* lib/afflib_stream.cpp (af_read): removed break so that reads on
	pages that don't exist return NULs rather than errors.

2007-07-14  Simson L. Garfinkel  <simsong>

	* lib/vnode_s3.cpp: changed AF_IDENTIFY_AFD to AF_IDENTIFY_S3
	Modified system so that if s3 support is not compiled in, s3:///
	names generate an error.

	* lib/afflib_i.h: changed from int64 to int64_t and from uint64 to uint64_t.

2007-07-13  Simson L. Garfinkel  <simsong>

	* Removed #define UNIX. Now we have #ifdef HAVE_POPEN (which is
	what we really wanted, anyway)

	* Added support for uint64_t; uint64 now is a typedef for it.
	* Added support for int64_t; int64 now is a typedef for it.

2007-07-11  Simson L. Garfinkel  <simsong>

	* tools/afcopy.cpp (afcopy): cleaned up printing a bit
	(afcopy): fixed -y option, which apparently didn't work

	* lib/afflib_pages.cpp (af_read_sizes): removed &arg from
	af_get_next_seg call. This change makes af_read_sizes()
	dramatically faster on s3 because the calls can be satisfied by
	reading the directory, rather than the need to read every
	individual segment.


2007-07-10  Simson L. Garfinkel  <simsong>

	* configure.ac: S3 support is now disabled by default.

	* lib/afflib.cpp (af_version): added af_version()

	* lib/afflib.h: moved #include <inttypes.h> to its own major
	block, as prelude to moving over to C99 standards.

2007-07-04  Simson Garfinkel  <simsong>

	* configure.ac: added isatty()

	* lib/afflib_i.h: moved af_identify_file_type() and
	af_identify_file_name() from afflib.h to afflib_i.h so that people
	wouldn't be tempted to call them .

2007-07-01  Simson Garfinkel  <simsong>

	* tools/afinfo.cpp (info_file): changed %qd to %"I64d" for Win32 compat.

	* tools/afstats.cpp (main): changed final return() to exit() for
	Microsoft happieness.

	* tools/affix.cpp (main): added final exit().

	* tools/afconvert.cpp: changed final return() to exit() for
	microsoft happiness

	* tools/afcopy.cpp (afcopy): changed final return to exit() for
	Microsoft happieness.

	* win32/openssl/sha.c: replaced sha1 implementation with
	pass-through to Microsoft CryptoAPI.

	* win32/openssl/md5.c: replaced md5 implementation with
	pass-through to Microsoft CryptoAPI.

2007-06-29  Simson L. Garfinkel  <simsong>

	* aimage/gui.cpp (gui_startup): corrected bug of 
	#ifdef HAVE_LIBCURSES; should have been 
	#ifdef HAVE_LIBNCURSES

	* aimage/imager.cpp, aimage/gui.cpp, aimage/aimage.cpp: added support for SHA256

	* lib/afflib.h (AF_SHA256): added AF_SHA256

2007-06-26  Simson L. Garfinkel  <simsong>

	* Makefile.am (SUBDIRS): added win32 back to the configure.ac and
	Makefile, so that the win32 stuff would be included in the distribution

2007-06-21  Simson L. Garfinkel  <simsong>

	* aimage/gui.cpp (comma_printw): modifications to gui.cpp and
	aimage.cpp so that it will compile and run in batch if ncurses and
	termcap are not installed.

2007-06-10  U-AMD64\Simson Garfinkel  <Simson Garfinkel>

	* aimage/imager.cpp (start_recover_scan): added #ifdef for 
	HAVE_SRANDOMDEV to allow for complication under Cygwin (and other
	systems that don't have srandomdev()

2007-05-30  Simson L. Garfinkel  <simsong>

	* configure.ac: added -D_FILE_OFFSET_BITS=64 to CPPFLAGS when FUSE
	is enabled. fixed compilation for AFFUSE

2007-05-30  Simson Garfinkel  <simsong>

	* lib/vnode_aff.cpp (aff_get_seg): no longer scans the whole file
	looking for a segment. If it is not in the ToC, it doesn't
	exist. Not that this means that we can't have simultaneous access
	to a single AFF file by a writer and a reader anymore.

	* tools/afinfo.cpp (print_info): added -X flag to print segment names without data contents.

	* lib/afflib_pages.cpp (af_get_page): only fills buffer with "bad flag" if a buffer is provided.

2007-05-29  Simson Garfinkel  <simsong>

	* aimage/imager.cpp (start_imaging): only writes out AF_IMAGE_GID if segment doesn't exist.
	Appends to AF_ACQUISITION_DATE segment if it already exists.
	Added \n to AF_ACQUISITION_DATE segment contents.

2007-05-25  Simson L. Garfinkel  <simsong>

	* tools/afinfo.cpp (info_file): fixed rounding error in
	calculation of missing pages

2007-05-23  Simson L. Garfinkel  <simsong>

	* tools/afinfo.cpp (info_file): added Missing Pages to printout

2007-05-14  Simson L. Garfinkel  <simsong>

	* tools/afsegment.cpp (main): modified output format so that it
	prints filename:segname and then the contents on every line

2007-05-11  Simson L. Garfinkel  <simsong>

	* tools/afsegment.cpp (usage): changed afcat to afsegment in usage()
	(main): added -q option which prints value as 64-bit quad

2007-05-02  Simson L. Garfinkel  <simsong>

	* lib/afflib.h: changed af_ext_is to return "int" instead of bool.

2007-04-30  Simson L. Garfinkel  <simsong>

	* lib/s3.cpp (s3_bandwidth): removed s3_debug call from s3
	bandwidth test

2007-04-29  Simson L. Garfinkel  <simsong>

	* aimage/aimage.cpp: minor update to getlock(), although this code
	is still not being called.

2007-04-29  Simson L. Garfinkel  <simsong>

	* lib/vnode_raw.cpp (raw_popen): moved hasmeta() to af_hasmeta()
	and put in afflib_util.cpp.

2007-04-29  Simson Garfinkel  <simsong>

	* tools/afcopy.cpp (afcopy): command string parameter fname no
	longer used as format string in warn().

	* tools/afxml.cpp (xml_info): command string no longer used as
	format string in warn().

	* aimage/aimage.cpp (getlock): command line parameter no longer
	used as format string in err()

	* tools/afinfo.cpp (main): command line parameter no longer used
	as format string in err().

	* lib/aftest.cpp (figure): err(1,fn) changed to err(1,"%s",fn) in
	multiple places

	* lib/s3.cpp (s3_cp): fixed * Format String Injection in s3 *
	reported by V3Security

	* lib/vnode_raw.cpp (raw_popen): added metacharacter testing here
	as well

2007-04-25  Simson L. Garfinkel  <simsong>

	* configure.ac: version 2.2.8

	* aimage/aimage_os.cpp (ident): fixed minor compile-under-linux problems

2007-04-17  Simson Garfinkel  <simsong>

	* aimage/imager.cpp (write_data): doesn't seek if we don't know offset

	* tests/verify.py (runtest): modified test to put file in /tmp

	* aimage/ident.cpp (get_params): added metacharacter checking
	filename before popen.

	* tools/afconvert.cpp (convert): added meta character filtering
	per VSecurity.

2007-04-16  Simson Garfinkel  <simsong>

	* tools/afxml.cpp (xml_info): added name sanitization to AFF XML
	names per VSecurity report

	* aimage/imager.cpp (image_loop): fixed important bug when imaging
	from /dev/random (or presumably a network connection) which caused
	page 0 to be repeatedly rewritten.

	* lib/vnode_raw.cpp: added |AF_VNODE_TYPE_RELIABLE to vnode type

	* lib/vnode_aff.cpp: added |AF_VNODE_TYPE_RELIABLE to vnode type

	* lib/vnode_afd.cpp: added |AF_VNODE_TYPE_RELIABLE to vnode type

	* lib/vnode_split_raw.cpp: added
	|AF_VNODE_TYPE_RELIABLE|AF_VNODE_MAXSIZE_MULTIPLE to vnode type

	* lib/vnode_afm.cpp: added
	|AF_VNODE_TYPE_RELIABLE|AF_VNODE_MAXSIZE_MULTIPLE to vnode type

	* configure.ac: cleaned up enable_fuse so that it doesn't generate
	errors on Macintosh; removed OPENSSL alert

2007-04-11  Simson L. Garfinkel  <simsong>

	* lib/afflib.h: prototypes for af_read() and the like changes from
	"unsigned count" to "size_t count"

	* lib/s3_glue.cpp (quote_plus): added quoting of '%'

2007-04-04  Simson L. Garfinkel  <simsong>

	* aimage/ident.cpp (get_params): fixed strlcat() & strlcpy() order

2007-04-03  Simson L. Garfinkel  <simsong>

	* lib/s3.cpp (strlcat): added strlcpy and strlcat to s3.cpp

2007-04-02  Simson Garfinkel  <simsong>

	* aimage/ident.cpp (get_params): changed occurances of strcpy() to
	strlcpy() and strcat() to strlcat() per VSecurity report.

	* lib/vnode_ewf.cpp (ewf_open): Now checks to make sure that there
	are at least 4 characters available in the fname buffer after the
	trailing '.', per VSecurity report.

	* lib/s3.cpp (s3_bandwidth): all occurances of sprintf() changed
	to snprintf per VSecurity report.

	* tools/afinfo.cpp (main): changed err(1,infile) to
	err(1,"%s",infile) to defend against string format vulnerability
	per VSecurity report. 

	* tools/afcopy.cpp (afcopy): changed err(1,infile) to
	err(1,"%s",infile) to defend against string format vulnerability
	per VSecurity report. 

	* tools/afconvert.cpp (convert): changed err(1,infile) to
	err(1,"%s",infile) to defend against string format vulnerability
	per VSecurity report. 

	* tools/afcompare.cpp (main): replaced all occurances of sprintf()
	with snprintf(), all occurances of strcpy() with strlcpy(), and
	all occurances of strcat() with strlcat().

	* lib/vnode_ewf.cpp (ewf_get_next_seg): replaced both strcpy()
	calls with strlcpy() per VSecurity report

	* lib/vnode_s3.cpp (s3_open): added maximal size to both memcpy()
	calls, per VSecurity report.

	* lib/s3.cpp (s3_ls): replaced strcpy() with strlcpy() per
	VSecurity report.

2007-03-28  Simson L. Garfinkel  <simsong>

	* aimage/aimage.cpp: added option "skip" / -k to the longopts[]
	array. It wasn't there before, and it should have been.

	* lib/afflib_pages.cpp (af_update_page): moved acbi.compressed=1
	out of the if statement in the event that the compress2() call fails.

2007-03-20    <simsong>

	* lib/s3.cpp (s3_bandwidth): s3 bandwidth test now verifies MD5 returned 

2007-03-07  Simson L. Garfinkel  <simsong>

	* tools/affuse.cpp (main): Olivier Castan provided a fuse
	implementation for us. Thanks! We also have changes of his in
	configure.ac, Makefile.am.

2007-03-01  Simson L. Garfinkel  <simsong>

	* configure.ac: Now compiles under stock MacOS without expat installed

2007-02-05  Simson L. Garfinkel  <simsong>

	* tools/afcopy.cpp (usage): fixed formatting

2007-02-05  Simson Garfinkel  <simsong>

	* aimage/imager.cpp: patches to aimage to fix imaging over a
	network provided by Suessmilch Bernd

2007-02-01  Simson Garfinkel  <simsong>

	* fixed bugs in the caching system; caching now works.

2007-01-24  Simson Garfinkel  <simsong>

	* lib/afflib.h: moved #include <sys/types.h> from afflib_i.h to afflib.h

	* lib/afflib.h: Moved #ifndef PACKAGE_TARNAME from afflib.h to afflib_i.h

	* lib/afflib.cpp (af_eof): uses results from af_vstat() instead of
	calling af_imagesize() again (which would be another call to vstat)

2007-01-23  Simson Garfinkel  <simsong>

	* lib/aff_toc.cpp (af_toc_build): changed malloc(0) to
	malloc(sizeof(af_toc_mem)) as on Borland C++, malloc(0) returns a
	NULL pointer.

	* lib/afflib.cpp (af_open_with): fixed memory leak in error condition.

	* lib/vnode_aff.cpp (aff_open): added "b" to opens for running
	under windows.

	* lib/vnode_raw.cpp (raw_get_seg): added support for phantom
	segments AF_PAGESIZE and AF_IMAGESIZE. This fixes the bug with
	afconvert that had been previously reported. 

2007-01-11  Simson L. Garfinkel  <simsong>

	* lib/vnode_afd.cpp: moved definitions of F_OK and R_OK to this file.

	* lib/afflib_pages.cpp: added #include to malloc.h for
	valloc. Perhaps it should go in afflib_i.h?

	* aimage/aimage_os.cpp (ident): fixed handling if ident is not defined

	* tools/unix4win32.cpp: removed this file because it shouldn't be
	needed anymore; warn, warnx, err and errx are now provided by
	afflib. 

	* lib/afflib_i.h: created proper configure macros for HAVE_ERR,
	HAVE_ERRX, HAVE_WARN and HAVE_WARNX to handle the presence of
	absence of these on multiple platforms. 

2006-12-27  Simson L. Garfinkel  <simsong>

	* lib/s3_glue.cpp (request): Added CURLOPT_TIMEOUT 60*60 (1 hour)
	to S3 transactions.

2006-12-14  Simson L. Garfinkel  <simsong>

	* lib/afflib_pages.cpp (af_read_sizes): modified af_read_sizes so
	that if an image file doesn't have an IMAGESIZE segment, the
	imagesize is determined by reading all of the segments

2006-11-28  Simson L. Garfinkel  <simsong>

2006-11-27  Simson L. Garfinkel  <simsong>

	* lib/s3_glue.cpp (canonical_string): added support for BAD_STL,
	so that on pair, where STL is out-of-date, we can still compile

	* lib/vnode_afd.cpp (afd_add_file): wasn't setting sectorsize on
	AFD subfiles. This caused problems with files that had sector
	sizes of 1024 bytes...
	
	* (afd_add_file): files now added to array before new file is set up.

2006-11-25  Simson L. Garfinkel  <simsong>

	* lib/vnode_afd.cpp (afd_update_seg): corrected multiple
	definitions of AFFILE *af2, which might cause compiling problems
	under Windows

	* lib/afflib_i.h: Added AFFLIB_TRACE environment variable; right
	now it just traces seek and read

	* lib/afflib.h: retyped af_seek to take an int64 instead of a uint64

	* lib/vnode_s3.cpp (s3_open): All S3 environment variables are now
	defined in s3_glue.h

2006-11-18  Simson L. Garfinkel  <simsong>

	* aimage/aimage.cpp (debug_list): changed -L option (Log file) to
	-G so that -L could be used for LZMA compression.

2006-10-31  Simson L. Garfinkel  <simsong>

	* lib/s3_glue.cpp (request): changed CURLOPT_INFILESIZE_LARGE to
	CURLOPT_INFILESIZE. This limits maximum requests to 2GB in length,
	but I don't think that this will be a significant problem, and the
	LARGE was causing problems on Linux.

2006-10-27  Simson L. Garfinkel  <simsong>

	* lib/afflib_pages.cpp (af_set_pagesize): no longer complains if
	pagesize it being set to what it already is

	* tools/afcopy.cpp: added -z (opt_zap) to overwrite existing files.

2006-10-26  Simson L. Garfinkel  <simsong>

	* lib/afflib_pages.cpp: fixed bytes==0 bug in af_get_page. Now if
	bytes==0, it probes for the page existence and then returns.

	* lib/s3_glue.cpp (request): Added up to 3 retries for S3 "500"
	internal errors.

2006-10-22  Simson L. Garfinkel  <simsong>

	* lib/afflib.cpp (af_identify_type): Added flag to allow user to
	specify if file must exist or not. 

	* lib/vnode_s3.cpp (s3_get_seg): Now uses "HEAD" to probe length
	of segment without downloading segment. Note that the
	Content-Length: header needs to be decoded.

2006-10-21  Simson L. Garfinkel  <simsong>

	* aimage/aimage.cpp (process_config_questions): Now has conditional detection
	of readline; if it isn't present, defaults to fgets()


2006-10-20  Simson L. Garfinkel  <simsong>

	* Moved AFFLIB to gnu build environment (autoconf, automake,
	configure, etc.). Apparently I can now edit this file by doing a
	C-x 4 a. How cool! More information at:
	http://gnu.j1b.org/software/emacs/manual/html_node/Change-Log.html

Release 1.8.0:
- Added support for storing files on Amazon S3. 
  Set Environment variable AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
  Set variable AWS_DEFAULT_BUCKET.
  Filename syntax is s3://bucket/filename.aff
  or:
  s3:///foo/bar/baz/filename.aff

  Bucket is getenv("AWS_DEFAULT_BUCKET") unless otherwise specified. 
  Buckets are automatically created if they do not exist (and if nobody else has created
  that bucket yet.)

  Remember, there is a limit of 100 buckets per customer.

- Moved af_read_sizes(af) from each open to af_open(). This means that I need
  to re-validate all of the various implementations.

- API simplification: The "append" flag has been dropped from af_update_seg() and
  af_update_segq(). None of my code ever had append==0, and to make S3 handle it
  sensibly would have required a second round-trip to the server.

- Removed errors from LZMA routines

Release 1.7.1:
- Fixed isdigit() call, which isn't available under Linux


Release 1.7.0:

- Moved AFFINFO mailing list to Google Groups. Actualy, to two groups
  on Google Groups: aff-users and aff-announce. Everybody on AFFINFO
  has been subscribed to aff-announce. 

- Added a new compression algorithm, AF_PAGE_COMP_ALG_ZERO. This algorithm 
  detects a page of all 0s and simply notes that fact, rather than passing
  the sectors through zlib.

- Added a new comparession algorithm, AF_PAGE_COMP_ALG_LZMA, which implements
  the LZMA compression algorithm. Validated LZMA against a terrabyte of compressed
  page images and found no errors in decompression. LZMA averages are,
  on average, 1/3 to 1/10th the size of the ZLIB-compressed images. 

library:
- AFFLIB now maintains a two-page cache for every open AFFILE; this
  can be expanded at runtime to any number by setting
  AFFLIB_CACHE_PAGES environment variable to the number of pages that
  you want to keep in memory. Since pages are typically 16MB, setting
  this variable to 16 will dedicate 256MB to each open AFF file
  (assuming that you are reading the file through the page system; the
  memory only gets dedicated when the bytes actually get read.)

- You can also set the AFFLIB_CACHE_STATS environment variable to 1,
  which will put on STDERR the cache information every time you close
  a file.
  
- Renamed "af_is_badblock" to "af_is_badsector".

- Removed logfile from AFFILE structure. It was just being used for
  debugging, and not in a particularly effective way. (af_seek and
  af_write no longer reference it. )

- Fixed linking under MacOS for strlcpy problem.

- Integrated LZMA library

- Got AFFLIB (but not the tools) to compile under MS VC6++. Because the Microsoft
  compiler is pretty picky about some things, a whole bunch of signed/unsigned errors
  were found and fixed. (not that they would have ever mattered, but...)
  LZMA is not included in the Windows release currently
    
afcopy:
- Created new tool, afcopy, which copies an AFF file segment-by-segment,
  and verifies each segment after it is copied by reading the resulting file.
  afcopy thus validates all writes and has the side-effect of compressing files, 
  so the resulting file may be smaller than the original.

- Added "-p" option to afcopy to preen (recompress with LZMA).

afcompare:
- Added -p option to report on preening
- Added -r option to compare directories recurisvely
- Added -j option to just do the data


Release 1.6.33:
- Fixed to compile under Kubuntu 6.0.6

Release 1.6.32:
- pages in AFFILES now have MD5s stored automatically as well. So when
"page3" is written, "page3_md5" is also written. 
- afinfo 
     - when it sees any segment with "md5" in its name that is 16-bytes long, the segment is printed
       in hex. Likewise when a segment has "sha1" in its name and is 20-bytes long.
     - New "-p" option checks the hash for every page.
- aimage: MacOS 10.4 demsg now requires root to run; aimage no longer sends dmesg error to stderr. 
  Instead, errors go to /dev/null, and if there is no dmesg output, no dmesg segment is created.

Release 1.6.31:
Make release now clearly requires gmake and errors if Berkeley Make is used

Release 1.6.30:
Removed dependency on #include <warn.h> from building the library.

Release 1.6.29:
Fixed "reverse" option (-V) on aimage so that it actually works.

Release 1.6.28:
Typedef for "u64" defined under linux so that afflib will compile under Slackware

Release 1.6.27:
- Compiles under Cygwin
- Aimage now has a -Y (--batch) option which prints 
  line-by-line output, so that the program can be easily
  incorporated into other programs.

Release 1.6.24:
AFFLIB no longer assumes that <warnx.h> is installed on cygwin.

Release 1.6.24:
Library and some of the tools now compiles under CYGWIN. 
Programs that rely on termcap don't compile. This includes
aimage and afconvert.


Release 1.6.22:
afxml now displays the same values without base64 encoding as afinfo

Release 1.6.20:
Library should now compile on NetBSD and OpenBSD. Let me know if it doesn't

Release 1.6.19:
Library (but nothing else) now compiles on solaris with GCC

Release 1.6.18:
Now compiles with either Berkeley make or gmake

Release 1.6.17:
af_read:
- returns 0 if attempt made to read a file with no bytes.
- returns -1 if attempt made to read a file with no pagesize defined.

aimage:
- Erases screen junk of amount of freespace on disk goes from 1000MB to 999MB

Release 1.6.16:
aimage:
- Fixed a bug in report printing without going back into \r\l mode.
- fixed error handling when disk fills up. 

Release 1.6.15:
- Removed aff file in tools directory. Sorry about that.

Release 1.6.14:
afxml:
 - metadata segments that just had an arg and no data are now reported as
   <segname>###</segname>, rather than <segname arg=### />
aimage:
 - minor cosmetic improvements


Release 1.6.13:
lib:
 - error message on split_raw_setup clarified
 - af_open now returns 0 if it can't open the file

aimage:
 - now has flags to suppress inclusion of dmesg and ethernet address in AFF file.
 - scaled_atoi now checks its parameters better.
 - cleaned up display on 25x80 display
 - cleaned up display when imaging multiple drives
 - --setseg now works
 - now handles improperly-mastered CDROMs


Release 1.6.12:
lib:
  - fixed badflag handling (badflags were only 4 bytes due to 
    variable sector size changes.)

Release 1.6.11:
vnode_afm:
  af_callback now gets propigated from afm layer to split_raw layer
  on af_write.
lib:
  AFFLIB now has a "parent" pointer which is set for AFM and AFD.
  callback now uses the parent instead of self if parent is set
aimage:
  -v now prints the version number and exits.
  -V now scans in reverse.


Release 1.6.9:
aimage:
- Whoops. Broke update logic in 1.6.8. Fixed

Release 1.6.8:
aimage:
- remove foo.000 and foo.afm from release

Release 1.6.7:
lib:
- Fixed release system so that release X can't be made if release X is already on the server
- Fixed bug in vnode_raw implementation resulting from move to 64-bit math

aimage:
- modified aimage so that it only updates the screen (and queries the timer)
  every million bytes read
- by default, no log file is written

afinfo:
- prints hex digits as DDDD EEEE FFFF now
- fixed behavior of sha1 printing --- it breaks by two lines by default


Release 1.6.6:
lib:
- moved check on change of imagesize on close from aff_close to af_close.
  Now check is done for AFM files in addition to AFF files. This fixes the
  bug of the AF_IMAGESIZE segment not being written by aimage with AFM files.
- renamed af->image_size_orig to af->image_size_in_file to make it more clear what it does
- created new segment type "aff_file_type" which holds AFF for AFF files, AFM for AFM files,
  and AFD for AFD files. 
- created aff_create() and afm_create() functions which are automatically
  called by the corresponding _open() functions when a file is created.
- removed af_set_maxsize64; af_set_maxsize now requires a 64-bit argument
- created new function, af_set_sectorsize()
- sectorsize no longer hard-coded to be 512.
- removed af_demand_sizes; sizes are now assumed read when the file is opened
- no longer calls err() in af_open
- Virus hiding claim removed from FAQ

TOOLS:
- all tools take "-v" to print their version number. Tools that were using
  -v for "verbose' have been changed

afcat:
- checks for -1 return from af_read

afconvert:
- all math involving pages changed to 64-bits
- now honors opt_quiet

afinfo:
- -d command now returns pagesize in addition to page number
- -w command now implemented properly

aimage:
- error message with -E omitted no longer misleading
- Checks for ifconfig in path before running ifconfig

afcompare:
- -v no longer is verbose
- -a prints things that are the same
- -b prints sector numbers that were different
- -c prints contents of sectors that are different.


Release 1.6.5:
afconvert:
- 'm' and 'k' changed back to mod 1024, not mod 1000
- imagesize segment now written when converting from raw to afm

aimage:
- SIGINFO #ifdefed so that it only is included if SIGINFO is defined.


Release 1.6.4:
- afconvert and afinfo fixed to handle 0 read bytes from af_read()

Release 1.6.3:
- af_set_sizes() call removed.
- fixed bug in af_cat
- several bugs in AFM implementation fixed.


Release 1.6.2
- fixed bug in af_imagesize which was affecting afcat
- fixed bug in parsing of -M option in afconvert
- fixed af_eof() for AFF implementation.

Release 1.6.1:
vnode_afd:
- Support for AFD was inadvertantly broken in 1.6.0; it's fixed in 1.6.1

Release 1.6.0:
vnode_split_raw.cpp:
- integrated code from Joel Weber with these significant changes:
- Removed dependency on AFF/AFD/AFM implementation
- changed implementation to use lseek() to write empty files, rather than repeated writes of buffers...
- modified split_raw_get_seg so that it called af_segname_page_number() rather than parsing by hand.
- created afm_update_seg() so that we could remove call to afm_identify_file in split_raw_update_seg
- fixed a bug whereby 256K of raw files were created if maxsize was smaller than ZERO_BUFFER_SIZE,
  which was hard-coded to 256K
- removed raw_file_size from split_raw_private, as it was redundent with maxfilesize in the AFFILE structure.

vnode_afm.cpp:
- integrated code form Joel Weber with these significant changes:
- Opens two sub-files, one for the AFM metadata (through a coerced aff_open()), and one 
  for the split_raw implementation.
- Note: there is still a bug that AFM files can't be opened for extending; 

lib:
- added af_has_pages() to allow higher-level programs to know if the underlying
  vnode implementation supports pages or not.
- af_vnode_info: added has_pages flag so that an implementation can tell the higher
  layers if it supports pages or not.
- vnode_raw: made it so that af_popen() now tells the higher layers that pages are not
  supported.
- af_vnode_info: added use_eof and at_eof flags, to support EOF reporting on af_popen.
- awaiting af_read() & af_write() bypass, pending code from nemo

afcat:
- Outputs NULs for bad blocks unless -b is given. 

afconvert:
- Added version to usage.
- Fixed conversion of gzip'ed and bzip'ed raw images
- Calls af_has_pages to see if the input vnode implementation supports pages or not.
  If it doesn't, then it just reads from the beginning of the image to the end.
- Implemented -O (outdir) flag

afinfo:
- Now honors -w flag
- Output squished to fit MD5s and SHA1s.

aimage:
- Properly prints free space on FreeBSD, MacOS and Linux
- Prints MD5 & SHA1 as groups of 4 upper-case letters.
- Now stores sectorsize in "sectorsize" segment
- Now stores number of sectors that the device has in "devicesectors" segment
- --pagesize= option now allows suffix of b, k, m or g
- ACQUISTION_TIME now correct (it was being saved as a 64-bit number but reported as a 
  32-bit number in afinfo.)



Release 1.5.13:
Encase support works for multiple encase files.
       .E01, .E02 ... .E99

Release 1.5.12:
aimage:
- now allows --maxsize=cd and --maxsize=bigcd
- --no_hash (-H) avoids hash calculation

Release 1.5.10:
makefiles:
- Finally implemented a single makefile along the lines
  of the "Recursive Make considered Harmful" paper, but improved,
  with targets that work in both the subdirectories and in the root directory.
  Currently it only works with gmake, which is only a problem under FreeBSD.

Release engineering:
- added a "tests" directory and moved end-to-end testing there.
  afconvert, afcat, and aimage are now automatically tested as part of the release
  process.

aimage:
- no longer dumps core when not given an output file.
- Doesn't waste left-most column of screen
- Displays elapsed time when running.
- Now displays elapsed time while imaging
- Now displays aimage version
- Saves total time to image a disk in the AFF file.
- Properly indicates free space left on capture disk.

Release 1.5.9:
- Fixed bug in release system which was giving incorrect filenames
- fixed bug in AFD which wasn't setting image size properly in the sub AFF files
- fixed bug in AFD support where maxsize wasn't being set on default. 
  Now it defaults to 600M

Release 1.5.8:
- Fixed progname bug (progname appears to only exist under
  freeBSD)

Release 1.5.7:
- fixed a few bugs regarding AFD performance

afcompare:
- -v flag (verbose) implemented. When run without -v, doesn't report similarities.
- corrected a bug when a data segment was in one file but not another.


Release 1.5.6:
- More options added to afcat for handling segments.
aimage:
- aimage now puts now information into aff files.



Release 1.5.5:
lib:
- Eliminated bug when an afd file was opened read-only of the library
  giving error messages that it was unable to copy over metadata from
  the first AFF file to the other AFF files.
- AFFLIB is now tolerant of a trailing / on .afd names.
- Stores AFFLIB version in the AFF file when new files are created.

afcat:
- now prints AFFLIB version number.
- now prints a warning on STDOUT if a page is skipped; suppress with -q
- no longer clobbers output file without warning
- no longer give errors about not being able to "update"
  information when it cats out an AFD file.


afcompare:
- now prints AFFLIB version number

afinfo:
- Now prints AFFLIB version number.
- Option -v no longer validates hash codes
- Option -m validates MD5 codes
- Option -s validates SHA1 codes
- No longer prints the total compression efficiency

afstats:
- Now prints AFFLIB version number

afxml:
- Now prints AFFLIB version number
- Puts AFFLIB version number as a comment in XML output

release:
- fixed bug of executables in release tar file

aimage:
- ETA acronym removed; now says "Done in:"




Release 1.5.4:
afconvert:
- significant changes in option parsing to make it more reliable.
- Now properly handles creating files with non-standard AFF segment sizes
- change to "-z" option so that it zaps the output file, not the input file
  (to make consistent with other af commands.)

release engineering:
- auotmatic validation of afconvert and afcat as part of the release cycle

Release 1.5.3:
aimage
- Minor patch so it should write afd files...


Release 1.5.1:
- fixed suffixing for -M command in aimage
aimage:
- Now reads serial numbers of USB memory sticks using sysctl -a.
- NOTE: Be sure that ther eis only one USB memory stick in the system when you do this,
  because we can't figure out how to match the stick up with the S/N other than the
  manufacturer's name.

Release  1.5
lib:
- Initial support of EVF file format. (Only works on Intel right now, not PPC) 

afconvert:
- rewrote to use vnode support

aimage:
- Initial support for split files

Release 1.4.1:
aimage:
- fixed bug when encountering errors and imaging from a device. 
  (The error is that additional bad blocks were being written into the file with
   out proper BAD SECTOR headers. No real data was corrupted, but in some cases
   random data appeared in the image file which should not have been written.)
- Improved error recovery. Previously, 5 attempts were made to read the sectors that failed, after
  which the program gave up. Now it skips forward and tries to read the next set of sectors. It repeats
  this whole process until there is a bad region that is equal 2.5 times the size of the 
  default read (256K). 

lib:
- fixed bug in which small pages were written out with too much data
- fixed bug in af_get_page in which invalid data was being left uninitialized rather than 
  being initialized with the bad_block flag


-Release 1.4
Terminology change: data segments are renamed "pages" to eliminate confusion with AFF segments. 

lib:
- Implemented a "vnode" abstraction to make it easy to work with multiple file systems.
- Found and fixed at least 10 major bugs. None of them would have caused data corruption,
  but some would have caused the library to go into an infinite loop or to crash.
- Support for "AFD" files --- these are directories of AFF files. This will allow AFF
  to work with file systems that do not support files larger than 2^32 characters 
  (such as FAT32). 


Known bugs:
AImage: bad block flags are not being properly written out in AFF files. 

afinfo:
- prints more information about AFF files in an easy-to-read format

afcompare:
- Now compares two AFF files, or an AFF and a RAW file.

-Release 1.3.4
aimage:'
- Dramatic restructing of the program. 
- You can now batch multiple aimage commands on a single command line.
  The program surveys total amount of data to copy and a grand-total ETA.
- New -A option will write out a segment with compression, a segment without
  compression, and then will go with the fastest approach.
- Better graphics
- Prints a certificate when the imaging is finished

lib:
- Removed call to fpurge(), which was incorrect.
- renamed aff_ to aff_toc, becuase it really is building a
  table of contents.

-Release 1.3.3
lib:
- Improved error handling in writing segments. 
- More information is now provided to segment writing callback function. 

aimage:
- Removed the --info command, since it was just for debugging.
- Made --make-config a flag that creates the config file if it doesn't exist,
  but it uses the name provided by --config.
- Revamped config file. 
- removed some global variables that weren't being used; folded others into the 
  imager class.
- fixed bug in aimage when reading from devices whose length cannot be determined 
  (e.g. /dev/zero, (tapes, TCP connections)

aconvert:
- No longer core-dumps if the file that it is asked to convert doesn't exist.

January 9, 2006 - Release 1.3.3
aimage:
- added a -A flag which makes aimage compress or not compress, whichever is faster.


January 9, 2006 - Release 1.3.2
Overall:

aimage:
- Some curses testing code was left in. It's been removed.

January 8, 2006 - Release 1.3.1.
Overall:
- Moved source for aimage to aimage/ directory
- Move source for tools to tools/ directory

aimage:
- On Linux, now reads the serial number of USB drives that are being imaged
  using the /proc file system. 

tools:



December 31, 2005 - Release 1.3.0
overall:
- Moved library source code into lib/ subdirectory. 
  One big makefile still makes it all, see
  "Recursive make considered harmful."
  http://www.canb.auug.org.au/~millerp/rmch/recu-make-cons-harm.html

afcat:
- Now only outputs the segments containing data.
  It does this by first scanning and making a list of all the data segments;
  It then seeks to the location of each one in the virtual file, reads 
  the segment worth of data, and sends it to stdout.

afconvert:
- When outputing with the -o option, now outputs an AFF file if file ends
  '.aff' and outputs raw if file does not end .aff
- The -x (no compression) flag now works. 
- The -X (set compression level) flag has been implemented. 
- As a result, you can now batch compress a set of uncompressed AFF files

Release 1.2.9
afconvert:
- fixed crashing bug when converting raw files to aff files
- fixed crashing bug when converting aff files to raw files.


December 21, 2005 - Release 1.2.8

library:
- AF_BADBLOCKS is now initialized to 8 bytes of NULs, rather than 
  a 0-length segment.
- fixed corruption bug in af_del_seg().
- Added (tm).

aimage:
- Fixed calculation of free space on the disk for FreeBSD.
- Made display more attractive. 
- Added support for automatically rescanning scsi bus. 
  You can now scan the scsi bus and image by specifying "scsi1", for 
  example, to image from scsi bus 1.  (FreeBSD only.)
- Added optional preview to let you see the data as it is recorded.
  This is great for spotting drives that have been 'sanitized' or
  cleared.
- Displays size of target disk in GB/MB/KB 
- Doesn't compute hash for raw image if the image is invalid 
  (if aimage did an lseek.)
- Now captures ATA serial number even if disk can't be imaged. 
- Prints final report of image results  

afconvert:
- fixed crashing bug in afconvert.
- Corrected incorrect "progname" in many utilities.

afinfo:
- More tolerant of errors in aff file.

affix:
- Initial Release
- Can fix a file that is not properly terminated by removing junk at end.
  This is useful if a computer crashes while aimage is being run.

December 6, 2005 - Release 1.2.7
- Minor fixes for makedepend problems that people on various platforms had

November 18, 2005 - Release 1.2.5
- Implemented segment directory; list of all segments is now kept
  in memory, rather than read on-the-fly from the disk. This 
  dramatically improves performance on random-access test. 
  Library falls back to old method of scanning the file for
  each segment if the segment list is too large to hold in memory.
  Time for aftest -3 improves on my laptop from TK seconds to 27 seconds.
  

November 18, 2005 - Release 1.2.4
- redesigned afflib for improved performance.
- afconvert can now convert from one AFF to another AFF.

October 21, 2005 - Release 1.2.1
- Added a whole bunch of segment names.
- Found a nasty bug in updating of segments under certain circumstances
- Lots of new features in aimage

October 20, 2005 - Release 1.2.0
- created atest for heavy-duty testing of af_seek()
- support for reading drive SN under Linux and FreeBSD
- found bug in af_seek()

October 11, 2005 - Release 1.1.1
- Modified af_open() so it read data_segsize on open.  
- changed af_setsize() to af_set_sizes(). Now it doesn't allow you to change the
  data segment size if it has already been set.
- Modified convert to handle gzipped files with gzcat.
- Fixed but in aconvert where infiles were not being closed.
- removed fancy image size calculation from ainfo, as it wasn't right for compressed files.
- Added -Wall and found lots of signage bugs
- Cleanly compiles on Linux; supports > 2GB files


September 11, 2005 - Release 1.1
- Added support for writing files with af_write().
- New files now automatically get bad block flag created
- fixed afflib for AMD64 architectures.
- ainfo wasn't calculating SHA-1 properly for -v option on AMD64. Fixed.
  ainfo wasn't printing compression overhead properly. Fixed. Also fixed
  small buffer overflow in printing of SHA-1 values.
- changed "radio" typo to "ratio."
- aconvert now aborts (and deletes AFF file) if ^C is pressed or if
  a write fails.
- aconvert now refuses to convert an AFF file. Added af_identify(fname) to 
  return true if a file is probably an AFF file and false if it is not.

August 14, 2005 - Release 1.0.1
- changed minor bug in aconvert in handling of multiple files

August 13, 2005	- Release 1.0

Initial Release of AFFLIB. Includes library description, README, basic
library functionality, and four utilities.


================================================================
Copyright 2005, 2006, 2007, 2008 Simson L. Garfinkel
Copying and distribution of this file, with or without modification, are
permitted provided the copyright notice and this notice are preserved.

#
# Local Variables:
# mode: flyspell
# mode: auto-fill
# End:
#