From 9574f7d1cd3ff611047e68af926690e9d81e2a56 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Wed, 2 Mar 2022 00:34:50 +0000 Subject: [PATCH] Completely disable unused hashes in rehash() Signed-off-by: Richard T Bonhomme --- easytls | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/easytls b/easytls index 7416bfa..3abe27b 100755 --- a/easytls +++ b/easytls @@ -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 @@ -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