Changeset 107
- Timestamp:
- Jun 16, 2007, 3:29:39 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/Changelog
r105 r107 1 1 2.3.5: 2 * fix incorrect handling of files with zero size in GrowingLogFiles 3 (problem reported by S. Petersen) 2 4 * fix incorrect encoding of null checksums in stealth mode 3 5 * sh_hash.c: fix repeated printing of acl/attributes in database dump -
trunk/include/sh_tiger.h
r22 r107 12 12 TIGER_DATA 13 13 } TigerType; 14 15 #define TIGER_NOLIM ((UINT64)-1) 14 16 15 17 extern SL_TICKET tiger_fd; -
trunk/src/cutest_sh_tiger0.c
r96 r107 139 139 /* same result as GnuPG 1.0.6 (gpg --load-extension tiger --print-md TIGER192) 140 140 */ 141 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, 0, 0);141 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, TIGER_NOLIM, 0); 142 142 expected = "0E9321614C966A33608C2A15F156E0435CACFD1213B9F095"; 143 143 CuAssertStrEquals(tc, expected, actual); … … 147 147 tiger_fd = rval_open; 148 148 149 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FD, 0, 0);149 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FD, TIGER_NOLIM, 0); 150 150 expected = "0E9321614C966A33608C2A15F156E0435CACFD1213B9F095"; 151 151 CuAssertStrEquals(tc, expected, actual); … … 163 163 /* same result as GNU md5sum 164 164 */ 165 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FD, 0, 0);165 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FD, TIGER_NOLIM, 0); 166 166 expected = "AEEC4DDA496BCFBA691F4E8863BA84C00000000000000000"; 167 167 CuAssertStrEquals(tc, expected, actual); … … 179 179 /* same result as gpg --print-md SHA1 180 180 */ 181 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FD, 0, 0);181 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FD, TIGER_NOLIM, 0); 182 182 expected = "2FE65D1D995B8F8BC8B13F798C07E7E935A787ED00000000"; 183 183 CuAssertStrEquals(tc, expected, actual); … … 205 205 /* same result as GnuPG 1.0.6 (gpg --load-extension tiger --print-md TIGER192) 206 206 */ 207 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, 0, 0);207 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, TIGER_NOLIM, 0); 208 208 expected = "F987845A0EA784367BF9E4DB09014995810F27C99C891734"; 209 209 CuAssertStrEquals(tc, expected, actual); … … 228 228 /* same result as GnuPG 1.0.6 (gpg --load-extension tiger --print-md TIGER192) 229 229 */ 230 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, 0, 0);230 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, TIGER_NOLIM, 0); 231 231 expected = "75B98A7AE257A230189828A40792E30B4038D286479CC7B8"; 232 232 CuAssertStrEquals(tc, expected, actual); … … 268 268 /* same as GnuPG 1.0.6 (gpg --load-extension tiger --print-md TIGER192) 269 269 */ 270 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, 0, 0); 271 expected = "24F0130C63AC933216166E76B1BB925FF373DE2D49584E7A"; 272 CuAssertStrEquals(tc, expected, actual); 273 270 274 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, testlen, 0); 271 275 expected = "75B98A7AE257A230189828A40792E30B4038D286479CC7B8"; … … 276 280 CuAssertStrEquals(tc, expected, actual); 277 281 278 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, 0, 0);282 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, TIGER_NOLIM, 0); 279 283 expected = "B5B4FB97B01ADB58794D87A6A01B2368852FA764BD93AB90"; 280 284 CuAssertStrEquals(tc, expected, actual); … … 299 303 CuAssertStrEquals(tc, expected, actual); 300 304 301 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, 0, 0);305 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FILE, TIGER_NOLIM, 0); 302 306 expected = "D0EE1A9956CAB22D84B51A5E0C093B724828C6A1F9CBDB7F"; 303 307 CuAssertStrEquals(tc, expected, actual); … … 337 341 CuAssertTrue(tc, rval_open >= 0); 338 342 339 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FD, 0, 0);343 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FD, TIGER_NOLIM, 0); 340 344 expected = "00A1F1C5EDDCCFC430D3862FDA94593E0000000000000000"; 341 345 CuAssertStrEquals(tc, expected, actual); … … 371 375 CuAssertTrue(tc, rval_open >= 0); 372 376 373 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FD, 0, 0);377 actual = sh_tiger_generic_hash("cutest_foo", TIGER_FD, TIGER_NOLIM, 0); 374 378 expected = "FAA937EF3389C7E786EB0F1006D049D7AEA7B7B600000000"; 375 379 CuAssertStrEquals(tc, expected, actual); -
trunk/src/sh_hash.c
r105 r107 3143 3143 #ifdef REPLACE_OLD 3144 3144 if (sh.flag.reportonce == S_TRUE && sh.flag.update == S_FALSE) 3145 sl_strlcpy(p->theFile.checksum, fileHash, KEY_LEN+1); 3145 { 3146 sl_strlcpy(p->theFile.checksum, fileHash, KEY_LEN+1); 3147 if ((theFile->check_mask & MODI_SGROW) != 0) 3148 p->theFile.size = theFile->size; 3149 } 3146 3150 #endif 3147 3151 } -
trunk/src/sh_prelink.c
r102 r107 259 259 260 260 sl_strlcpy(file_hash, 261 sh_tiger_generic_hash (path, TIGER_FD, 0, alert_timeout),261 sh_tiger_generic_hash (path, TIGER_FD, TIGER_NOLIM, alert_timeout), 262 262 KEY_LEN+1); 263 263 -
trunk/src/sh_tiger0.c
r105 r107 236 236 } 237 237 238 if (Length > 0)238 if (Length != TIGER_NOLIM) 239 239 { 240 240 bcount += count; … … 879 879 } 880 880 881 if (Length > 0)881 if (Length != TIGER_NOLIM) 882 882 { 883 883 bcount += n; … … 1402 1402 } 1403 1403 1404 if (Length > 0)1404 if (Length != TIGER_NOLIM) 1405 1405 { 1406 1406 bcount += n; -
trunk/src/sh_unix.c
r105 r107 2891 2891 KEY_LEN+1); 2892 2892 2893 /* return */2893 /* return */ 2894 2894 SL_RETURN( 0, _("sh_unix_checksum_size")); 2895 2895 } … … 3226 3226 sl_strlcpy(fileHash, 3227 3227 sh_tiger_generic_hash (theFile->fullpath, 3228 TIGER_FD, 0,3228 TIGER_FD, TIGER_NOLIM, 3229 3229 alert_timeout), 3230 3230 KEY_LEN+1); … … 3265 3265 tiger_fd = rval_open; 3266 3266 sl_strlcpy(fileHash, 3267 sh_tiger_generic_hash (theFile->fullpath, TIGER_FD, 0,3267 sh_tiger_generic_hash (theFile->fullpath, TIGER_FD, TIGER_NOLIM, 3268 3268 alert_timeout), 3269 3269 KEY_LEN + 1);
Note:
See TracChangeset
for help on using the changeset viewer.