Skip to content

Commit

Permalink
Make rehash respect FILE_HASH_DISABLED - Improve test hash functions
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Mar 4, 2022
1 parent 79d65f7 commit 1ee5362
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions easytls
Original file line number Diff line number Diff line change
Expand Up @@ -10000,7 +10000,7 @@ main ()
case "${cmd}" in
rehash)
# If hashes have unsynced
unset -v FILE_HASH_DISABLED
#unset -v FILE_HASH_DISABLED
easytls_rehash "$@" || die "easytls_rehash"
#AUTO_CHECK_DISABLED=1
#easytls_verb_io off
Expand All @@ -10014,13 +10014,18 @@ main ()
gmh|generate-master-hash)
return_hashes=1
generate_master_hash "$@" || die "generate_master_hash"
easytls_verbose
print "generated_master_hash: ${generated_master_hash}"
easytls_verbose
unset -v return_hashes=1
return 0
AUTO_CHECK_DISABLED=1
skip_master_hash=1
break
;;
smh|save-master-hash)
return_hashes=1
verify_master_hash "$@" || die "verify_faster_hash"
easytls_verbose
print "generated_master_hash: ${generated_master_hash}"
print "saved_master_hash : ${saved_master_hash}"
print
Expand All @@ -10033,16 +10038,23 @@ main ()
update_master_hash=1
save_master_hash "$@" || die "save_master_hash"
print "save_master_hash: ${generated_master_hash}"
easytls_verbose
unset -v return_hashes=1
return 0
AUTO_CHECK_DISABLED=1
skip_master_hash=1
break
;;
vmh|verify-master-hash)
return_hashes=1
verify_master_hash "$@" || die "verify_master_hash"
easytls_verbose
print "generated_master_hash: ${generated_master_hash}"
print "saved_master_hash : ${saved_master_hash}"
easytls_verbose
unset -v return_hashes=1
return 0
AUTO_CHECK_DISABLED=1
skip_master_hash=1
break
;;
esac

Expand Down

1 comment on commit 1ee5362

@TinCanTech
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.