Skip to content

Commit

Permalink
Completely disable unused hashes in rehash()
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 2, 2022
1 parent 9679db3 commit 9574f7d
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions easytls
Original file line number Diff line number Diff line change
Expand Up @@ -1464,14 +1464,18 @@ easytls_create_layout ()
# Rehash file hashes
easytls_rehash ()
{
config_save_hash || return 1
inline_index_save_hash || return 1
tlskey_index_save_hash || return 1
disabled_list_save_hash || return 1
# These are permanently set to use request_fixed_hash
#config_save_hash || return 1
#inline_index_save_hash || return 1
#tlskey_index_save_hash || return 1
#disabled_list_save_hash || return 1
update_master_hash=1
#save_master_hash || return 1
save_master_hash || return 1
unset -v update_master_hash
skip_master_hash=1
print "
Rehash completed successfully."
Rehash completed successfully.
"
} # => easytls_rehash ()

# Create missing files for old Easy-TLS
Expand Down Expand Up @@ -9881,8 +9885,8 @@ main ()
# If hashes have unsynced
unset -v FILE_HASH_DISABLED
easytls_rehash "$@" || die "easytls_rehash"
AUTO_CHECK_DISABLED=1
easytls_verb_io off
#AUTO_CHECK_DISABLED=1
#easytls_verb_io off
break
;;
esac
Expand Down

1 comment on commit 9574f7d

@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.