Skip to content

Commit

Permalink
Permanently DISABLE match_two_hashes() validate_hash() - excessive
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 3, 2022
1 parent 2a6cb97 commit 388c46e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions easytls
Original file line number Diff line number Diff line change
Expand Up @@ -1681,8 +1681,9 @@ validate_hash ()
match_two_hashes ()
{
[ "${#}" -eq 2 ] || return 1
validate_hash "${1}" || return 1
validate_hash "${2}" || return 1
# DISABLE: Always validate prior to this test
#validate_hash "${1}" || return 1
#validate_hash "${2}" || return 1
[ "${1}" = "${2}" ] && return 0
# Check if either hash is fixed hash then ignore
# Allows to switch between file-hash and file-hash-disabled mode
Expand Down

1 comment on commit 388c46e

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