Fossil SCM

Few comment glitches

jan.nijtmans 2017-03-02 12:37 trunk
Commit 8a76861556c3ee11bc419ac944e932af1e848c0c
2 files changed +3 -3 +1 -1
+3 -3
--- src/hname.c
+++ src/hname.c
@@ -60,11 +60,11 @@
6060
if( nHash==HNAME_LEN_K256 ) return "SHA3-256";
6161
return "?";
6262
}
6363
6464
/*
65
-** Return the integer hash algorithm code number (ex: HNAME_K224) for
65
+** Return the integer hash algorithm code number (ex: HNAME_K256) for
6666
** the hash string provided. Or return HNAME_ERROR (0) if the input string
6767
** is not a valid artifact hash string.
6868
*/
6969
int hname_validate(const char *zHash, int nHash){
7070
int id;
@@ -82,11 +82,11 @@
8282
** Return true if the hash is correct. Return false if the content
8383
** does not match the hash.
8484
**
8585
** Actually, the returned value is one of the hash algorithm constants
8686
** 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
8888
** if the hash does not match.
8989
*/
9090
int hname_verify_hash(Blob *pContent, const char *zHash, int nHash){
9191
int id = HNAME_ERROR;
9292
switch( nHash ){
@@ -114,11 +114,11 @@
114114
** Return true if the hash is correct. Return false if the content
115115
** does not match the hash.
116116
**
117117
** Actually, the returned value is one of the hash algorithm constants
118118
** 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
120120
** if the hash does not match.
121121
*/
122122
int hname_verify_file_hash(const char *zFile, const char *zHash, int nHash){
123123
int id = HNAME_ERROR;
124124
switch( nHash ){
125125
--- 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 @@
750750
751751
/*
752752
** Compute an hash on the tail of pMsg. Verify that it matches the
753753
** the hash given in pHash. Return non-zero for an error and 0 on success.
754754
**
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
756756
** the length of the input hash in pHash.
757757
*/
758758
static int check_tail_hash(Blob *pHash, Blob *pMsg){
759759
Blob tail;
760760
int rc;
761761
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button