Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Remove a reference to sha1sum from the pre-commit verification logic. |
|---|---|
| Timelines: | family | ancestors | descendants | both | fossil-2.0 |
| Files: | files | file ages | folders |
| SHA1: |
fc246fc4d1e9e98528b6af2f15f504cb |
| User & Date: | drh 2017-02-28 20:43:45.257 |
Context
|
2017-02-28
| ||
| 22:15 | Remove unnecessary references to sha1sum from xfer.c. check-in: 7ec259c3ac user: drh tags: fossil-2.0 | |
| 20:43 | Remove a reference to sha1sum from the pre-commit verification logic. check-in: fc246fc4d1 user: drh tags: fossil-2.0 | |
| 20:28 | Remove references to SHA1 hashing from the structural artifact parser. check-in: 9f17d77ada user: drh tags: fossil-2.0 | |
Changes
Changes to src/verify.c.
| ︙ | ︙ | |||
42 43 44 45 46 47 48 |
}
blob_zero(&uuid);
db_blob(&uuid, "SELECT uuid FROM blob WHERE rid=%d", rid);
if( !hname_validate(blob_buffer(&uuid), blob_size(&uuid)) ){
fossil_fatal("not a valid rid: %d", rid);
}
if( content_get(rid, &content) ){
| | < < | | | | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
}
blob_zero(&uuid);
db_blob(&uuid, "SELECT uuid FROM blob WHERE rid=%d", rid);
if( !hname_validate(blob_buffer(&uuid), blob_size(&uuid)) ){
fossil_fatal("not a valid rid: %d", rid);
}
if( content_get(rid, &content) ){
if( !hname_verify_hash(&content, blob_buffer(&uuid), blob_size(&uuid)) ){
fossil_fatal("hash of rid %d does not match its uuid (%b)",
rid, &uuid);
}
blob_reset(&content);
}
blob_reset(&uuid);
}
/*
** The following bag holds the rid for every record that needs
** to be verified.
|
| ︙ | ︙ |