Skip to content

Commit

Permalink
Permanently disable save_file_hash() for EASYTLS_CONFIG_HASH
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 1, 2022
1 parent e4bd935 commit 2cb0404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easytls
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ easytls_create_layout ()
} > "${EASYTLS_CONFIG_FILE}" || return 1
fi
# Save HASH file
"${EASYTLS_PRINTF}" '%s' "${fixed_hash}" > "${EASYTLS_CONFIG_HASH}"
config_save_hash || return 1
# Unset hash blocks because following operations make updates
# EG: save_id()
Expand Down Expand Up @@ -1689,7 +1690,6 @@ save_file_hash ()
# Also, put it last because it must remain on this list
# Must be a valid target fle
if \
[ "${hash_file}" = "${EASYTLS_CONFIG_HASH}" ] || \
[ "${hash_file}" = "${EASYTLS_INLINE_X_HASH}" ] || \
[ "${hash_file}" = "${EASYTLS_KEY_X_HASH}" ] || \
[ "${hash_file}" = "${EASYTLS_FASTER_HASH}" ]; then
Expand Down

1 comment on commit 2cb0404

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