Fossil SCM
Update the comment on SHA1 code with the upstream commit hash and date.
Commit
f1df16fc39c50fb0672c468466a6ca892e97a22ee4a4dfcbdf1a36fe91b25317
Parent
d243deba6a63cf4…
2 files changed
+1
-1
+6
-3
+1
-1
| --- src/diffcmd.c | ||
| +++ src/diffcmd.c | ||
| @@ -1455,11 +1455,11 @@ | ||
| 1455 | 1455 | int bFromIsDir = 0; /* True if zFrom is a directory name */ |
| 1456 | 1456 | |
| 1457 | 1457 | isGDiff = g.argv[1][0]=='g'; |
| 1458 | 1458 | if( find_option("tk",0,0)!=0 |
| 1459 | 1459 | || has_option("tclsh") |
| 1460 | - || gdiff_using_tk(isGDiff) | |
| 1460 | + /* || gdiff_using_tk(isGDiff) */ | |
| 1461 | 1461 | ){ |
| 1462 | 1462 | diff_tk("diff", 2); |
| 1463 | 1463 | return; |
| 1464 | 1464 | } |
| 1465 | 1465 | zFrom = find_option("from", "r", 1); |
| 1466 | 1466 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -1455,11 +1455,11 @@ | |
| 1455 | int bFromIsDir = 0; /* True if zFrom is a directory name */ |
| 1456 | |
| 1457 | isGDiff = g.argv[1][0]=='g'; |
| 1458 | if( find_option("tk",0,0)!=0 |
| 1459 | || has_option("tclsh") |
| 1460 | || gdiff_using_tk(isGDiff) |
| 1461 | ){ |
| 1462 | diff_tk("diff", 2); |
| 1463 | return; |
| 1464 | } |
| 1465 | zFrom = find_option("from", "r", 1); |
| 1466 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -1455,11 +1455,11 @@ | |
| 1455 | int bFromIsDir = 0; /* True if zFrom is a directory name */ |
| 1456 | |
| 1457 | isGDiff = g.argv[1][0]=='g'; |
| 1458 | if( find_option("tk",0,0)!=0 |
| 1459 | || has_option("tclsh") |
| 1460 | /* || gdiff_using_tk(isGDiff) */ |
| 1461 | ){ |
| 1462 | diff_tk("diff", 2); |
| 1463 | return; |
| 1464 | } |
| 1465 | zFrom = find_option("from", "r", 1); |
| 1466 |
+6
-3
| --- src/sha1.c | ||
| +++ src/sha1.c | ||
| @@ -19,16 +19,19 @@ | ||
| 19 | 19 | */ |
| 20 | 20 | #include "config.h" |
| 21 | 21 | #include "sha1.h" |
| 22 | 22 | |
| 23 | 23 | /* |
| 24 | -** SHA1 Implementation #1 is the hardened SHA1 implementation by | |
| 25 | -** Marc Stevens. Code obtained from GitHub | |
| 24 | +** This is the hardened SHA1 implementation by Marc Stevens (under MIT License). | |
| 25 | +** | |
| 26 | +** Code obtained from GitHub | |
| 26 | 27 | ** |
| 27 | 28 | ** https://github.com/cr-marcstevens/sha1collisiondetection |
| 28 | 29 | ** |
| 29 | -** Downloaded on 2017-03-01 then repackaged to work with Fossil | |
| 30 | +** at commit a06f1adbe5522f3c939cd6a3f13d5ec7f4c1a988 (2025-10-25). | |
| 31 | +** | |
| 32 | +** Downloaded on 2026-10-16 then repackaged to work with Fossil | |
| 30 | 33 | ** and makeheaders. |
| 31 | 34 | */ |
| 32 | 35 | #if INTERFACE |
| 33 | 36 | typedef void(*collision_block_callback)(uint64_t, const uint32_t*, |
| 34 | 37 | const uint32_t*, const uint32_t*, const uint32_t*); |
| 35 | 38 |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -19,16 +19,19 @@ | |
| 19 | */ |
| 20 | #include "config.h" |
| 21 | #include "sha1.h" |
| 22 | |
| 23 | /* |
| 24 | ** SHA1 Implementation #1 is the hardened SHA1 implementation by |
| 25 | ** Marc Stevens. Code obtained from GitHub |
| 26 | ** |
| 27 | ** https://github.com/cr-marcstevens/sha1collisiondetection |
| 28 | ** |
| 29 | ** Downloaded on 2017-03-01 then repackaged to work with Fossil |
| 30 | ** and makeheaders. |
| 31 | */ |
| 32 | #if INTERFACE |
| 33 | typedef void(*collision_block_callback)(uint64_t, const uint32_t*, |
| 34 | const uint32_t*, const uint32_t*, const uint32_t*); |
| 35 |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -19,16 +19,19 @@ | |
| 19 | */ |
| 20 | #include "config.h" |
| 21 | #include "sha1.h" |
| 22 | |
| 23 | /* |
| 24 | ** This is the hardened SHA1 implementation by Marc Stevens (under MIT License). |
| 25 | ** |
| 26 | ** Code obtained from GitHub |
| 27 | ** |
| 28 | ** https://github.com/cr-marcstevens/sha1collisiondetection |
| 29 | ** |
| 30 | ** at commit a06f1adbe5522f3c939cd6a3f13d5ec7f4c1a988 (2025-10-25). |
| 31 | ** |
| 32 | ** Downloaded on 2026-10-16 then repackaged to work with Fossil |
| 33 | ** and makeheaders. |
| 34 | */ |
| 35 | #if INTERFACE |
| 36 | typedef void(*collision_block_callback)(uint64_t, const uint32_t*, |
| 37 | const uint32_t*, const uint32_t*, const uint32_t*); |
| 38 |