Fossil SCM
Few comment glitches
Commit
8a76861556c3ee11bc419ac944e932af1e848c0c
Parent
b098c9398aacca4…
2 files changed
+3
-3
+1
-1
+3
-3
| --- src/hname.c | ||
| +++ src/hname.c | ||
| @@ -60,11 +60,11 @@ | ||
| 60 | 60 | if( nHash==HNAME_LEN_K256 ) return "SHA3-256"; |
| 61 | 61 | return "?"; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /* |
| 65 | -** Return the integer hash algorithm code number (ex: HNAME_K224) for | |
| 65 | +** Return the integer hash algorithm code number (ex: HNAME_K256) for | |
| 66 | 66 | ** the hash string provided. Or return HNAME_ERROR (0) if the input string |
| 67 | 67 | ** is not a valid artifact hash string. |
| 68 | 68 | */ |
| 69 | 69 | int hname_validate(const char *zHash, int nHash){ |
| 70 | 70 | int id; |
| @@ -82,11 +82,11 @@ | ||
| 82 | 82 | ** Return true if the hash is correct. Return false if the content |
| 83 | 83 | ** does not match the hash. |
| 84 | 84 | ** |
| 85 | 85 | ** Actually, the returned value is one of the hash algorithm constants |
| 86 | 86 | ** corresponding to the hash that matched if the hash is correct. |
| 87 | -** (Examples: HNAME_SHA1 or HNAME_K224). And the return is HNAME_ERROR | |
| 87 | +** (Examples: HNAME_SHA1 or HNAME_K256). And the return is HNAME_ERROR | |
| 88 | 88 | ** if the hash does not match. |
| 89 | 89 | */ |
| 90 | 90 | int hname_verify_hash(Blob *pContent, const char *zHash, int nHash){ |
| 91 | 91 | int id = HNAME_ERROR; |
| 92 | 92 | switch( nHash ){ |
| @@ -114,11 +114,11 @@ | ||
| 114 | 114 | ** Return true if the hash is correct. Return false if the content |
| 115 | 115 | ** does not match the hash. |
| 116 | 116 | ** |
| 117 | 117 | ** Actually, the returned value is one of the hash algorithm constants |
| 118 | 118 | ** corresponding to the hash that matched if the hash is correct. |
| 119 | -** (Examples: HNAME_SHA1 or HNAME_K224). And the return is HNAME_ERROR | |
| 119 | +** (Examples: HNAME_SHA1 or HNAME_K256). And the return is HNAME_ERROR | |
| 120 | 120 | ** if the hash does not match. |
| 121 | 121 | */ |
| 122 | 122 | int hname_verify_file_hash(const char *zFile, const char *zHash, int nHash){ |
| 123 | 123 | int id = HNAME_ERROR; |
| 124 | 124 | switch( nHash ){ |
| 125 | 125 |
| --- src/hname.c | |
| +++ src/hname.c | |
| @@ -60,11 +60,11 @@ | |
| 60 | if( nHash==HNAME_LEN_K256 ) return "SHA3-256"; |
| 61 | return "?"; |
| 62 | } |
| 63 | |
| 64 | /* |
| 65 | ** Return the integer hash algorithm code number (ex: HNAME_K224) for |
| 66 | ** the hash string provided. Or return HNAME_ERROR (0) if the input string |
| 67 | ** is not a valid artifact hash string. |
| 68 | */ |
| 69 | int hname_validate(const char *zHash, int nHash){ |
| 70 | int id; |
| @@ -82,11 +82,11 @@ | |
| 82 | ** Return true if the hash is correct. Return false if the content |
| 83 | ** does not match the hash. |
| 84 | ** |
| 85 | ** Actually, the returned value is one of the hash algorithm constants |
| 86 | ** corresponding to the hash that matched if the hash is correct. |
| 87 | ** (Examples: HNAME_SHA1 or HNAME_K224). And the return is HNAME_ERROR |
| 88 | ** if the hash does not match. |
| 89 | */ |
| 90 | int hname_verify_hash(Blob *pContent, const char *zHash, int nHash){ |
| 91 | int id = HNAME_ERROR; |
| 92 | switch( nHash ){ |
| @@ -114,11 +114,11 @@ | |
| 114 | ** Return true if the hash is correct. Return false if the content |
| 115 | ** does not match the hash. |
| 116 | ** |
| 117 | ** Actually, the returned value is one of the hash algorithm constants |
| 118 | ** corresponding to the hash that matched if the hash is correct. |
| 119 | ** (Examples: HNAME_SHA1 or HNAME_K224). And the return is HNAME_ERROR |
| 120 | ** if the hash does not match. |
| 121 | */ |
| 122 | int hname_verify_file_hash(const char *zFile, const char *zHash, int nHash){ |
| 123 | int id = HNAME_ERROR; |
| 124 | switch( nHash ){ |
| 125 |
| --- src/hname.c | |
| +++ src/hname.c | |
| @@ -60,11 +60,11 @@ | |
| 60 | if( nHash==HNAME_LEN_K256 ) return "SHA3-256"; |
| 61 | return "?"; |
| 62 | } |
| 63 | |
| 64 | /* |
| 65 | ** Return the integer hash algorithm code number (ex: HNAME_K256) for |
| 66 | ** the hash string provided. Or return HNAME_ERROR (0) if the input string |
| 67 | ** is not a valid artifact hash string. |
| 68 | */ |
| 69 | int hname_validate(const char *zHash, int nHash){ |
| 70 | int id; |
| @@ -82,11 +82,11 @@ | |
| 82 | ** Return true if the hash is correct. Return false if the content |
| 83 | ** does not match the hash. |
| 84 | ** |
| 85 | ** Actually, the returned value is one of the hash algorithm constants |
| 86 | ** corresponding to the hash that matched if the hash is correct. |
| 87 | ** (Examples: HNAME_SHA1 or HNAME_K256). And the return is HNAME_ERROR |
| 88 | ** if the hash does not match. |
| 89 | */ |
| 90 | int hname_verify_hash(Blob *pContent, const char *zHash, int nHash){ |
| 91 | int id = HNAME_ERROR; |
| 92 | switch( nHash ){ |
| @@ -114,11 +114,11 @@ | |
| 114 | ** Return true if the hash is correct. Return false if the content |
| 115 | ** does not match the hash. |
| 116 | ** |
| 117 | ** Actually, the returned value is one of the hash algorithm constants |
| 118 | ** corresponding to the hash that matched if the hash is correct. |
| 119 | ** (Examples: HNAME_SHA1 or HNAME_K256). And the return is HNAME_ERROR |
| 120 | ** if the hash does not match. |
| 121 | */ |
| 122 | int hname_verify_file_hash(const char *zFile, const char *zHash, int nHash){ |
| 123 | int id = HNAME_ERROR; |
| 124 | switch( nHash ){ |
| 125 |
+1
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -750,11 +750,11 @@ | ||
| 750 | 750 | |
| 751 | 751 | /* |
| 752 | 752 | ** Compute an hash on the tail of pMsg. Verify that it matches the |
| 753 | 753 | ** the hash given in pHash. Return non-zero for an error and 0 on success. |
| 754 | 754 | ** |
| 755 | -** The type of hash computed (SHA1, SHA3-224, SHA3-256) is determined by | |
| 755 | +** The type of hash computed (SHA1, SHA3-256) is determined by | |
| 756 | 756 | ** the length of the input hash in pHash. |
| 757 | 757 | */ |
| 758 | 758 | static int check_tail_hash(Blob *pHash, Blob *pMsg){ |
| 759 | 759 | Blob tail; |
| 760 | 760 | int rc; |
| 761 | 761 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -750,11 +750,11 @@ | |
| 750 | |
| 751 | /* |
| 752 | ** Compute an hash on the tail of pMsg. Verify that it matches the |
| 753 | ** the hash given in pHash. Return non-zero for an error and 0 on success. |
| 754 | ** |
| 755 | ** The type of hash computed (SHA1, SHA3-224, SHA3-256) is determined by |
| 756 | ** the length of the input hash in pHash. |
| 757 | */ |
| 758 | static int check_tail_hash(Blob *pHash, Blob *pMsg){ |
| 759 | Blob tail; |
| 760 | int rc; |
| 761 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -750,11 +750,11 @@ | |
| 750 | |
| 751 | /* |
| 752 | ** Compute an hash on the tail of pMsg. Verify that it matches the |
| 753 | ** the hash given in pHash. Return non-zero for an error and 0 on success. |
| 754 | ** |
| 755 | ** The type of hash computed (SHA1, SHA3-256) is determined by |
| 756 | ** the length of the input hash in pHash. |
| 757 | */ |
| 758 | static int check_tail_hash(Blob *pHash, Blob *pMsg){ |
| 759 | Blob tail; |
| 760 | int rc; |
| 761 |