Skip to content

Commit

Permalink
Add --sub-key-name to disabled-list search in verify script
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Jan 12, 2021
1 parent 70ca8b8 commit 627d9f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion easytls-cryptv2-verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ verify_serial_number_not_disabled ()
# Search disabled list for client serial number
fn_search_disabled_list ()
{
grep -c "^${md_serial}[[:blank:]]${md_name}[[:blank:]]${md_subkey}$" \
grep -c "^${md_serial}[[:blank:]]${full_name}$" \
"$disabled_list"
}

Expand Down Expand Up @@ -777,6 +777,9 @@ deps
# Use --disable-list to disable this check
if [ $use_disable_list ]
then
# Append --sub-key-name first
full_name="$md_name $md_subkey"

# Load binary: grep +1
verify_serial_number_not_disabled || {
failure_msg="Client is disabled"
Expand Down

1 comment on commit 627d9f7

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