Skip to content

Commit

Permalink
Add file division markers
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Dec 12, 2021
1 parent 7640fff commit 0c9267a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 4 additions & 0 deletions easytls
Original file line number Diff line number Diff line change
Expand Up @@ -5060,6 +5060,8 @@ invalid_address ()
esac
} # => invalid_address ()

#=# 9273398a-5284-4c1f-aec5-d597ceb1d085

# Verbose message
verbose_easytls_tctip_lib ()
{
Expand Down Expand Up @@ -5412,6 +5414,8 @@ validate_ip6_data ()
# Return: valid_hextets ; valid_mask_len ; full_valid_ip6_addr
} # => validate_ip6_data ()

#=# 7f97f537-eafd-40c3-8f31-2fee10c12ad3

# Base64 encode metadata fields
b64_enc_metadata ()
{
Expand Down
4 changes: 4 additions & 0 deletions easytls-client-connect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ format_number ()
"${EASYTLS_SED}" -e 's/://g' -e 'y/abcdef/ABCDEF/'
}

#=# 9273398a-5284-4c1f-aec5-d597ceb1d085

# Verbose message
verbose_easytls_tctip_lib ()
{
Expand Down Expand Up @@ -387,6 +389,8 @@ expand_ip6_address ()
# Return full_valid_hextets full_subnet_addr6
} # => expand_ip6_address ()

#=# b66633f8-3746-436a-901f-29638199b187

# Allow connection
connection_allowed ()
{
Expand Down
14 changes: 6 additions & 8 deletions easytls-tctip.lib
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ easytls_tctip_lib ()
"${EASYTLS_PRINTF}" '%s\n' "* easytls-tctip.lib loaded"
}

#=# 9273398a-5284-4c1f-aec5-d597ceb1d085

# Verbose message
verbose_easytls_tctip_lib ()
{
Expand Down Expand Up @@ -199,6 +201,8 @@ expand_ip6_address ()
# Return full_valid_hextets full_subnet_addr6
} # => expand_ip6_address ()

#=# b66633f8-3746-436a-901f-29638199b187

# Validate IPv4 data
validate_ip4_data ()
{
Expand Down Expand Up @@ -341,14 +345,6 @@ validate_ip6_data ()
# OK
:
else
# Normal hextet
# Leading zero
#if [ "${hextet}" != "${hextet#0}" ]; then
# [ "${hextet}" = "0" ] || {
# return 14
# }
#fi

# Range: 0 < hextet < 65535
if [ 0 -gt $(( 0x${hextet} )) ] || [ $(( 0x${hextet} )) -gt 65535 ]
then
Expand Down Expand Up @@ -379,3 +375,5 @@ validate_ip6_data ()
full_valid_ip6_addr="${valid_hextets}/${valid_mask_len}"
# Return: valid_hextets ; valid_mask_len ; full_valid_ip6_addr
} # => validate_ip6_data ()

#=# 7f97f537-eafd-40c3-8f31-2fee10c12ad3

1 comment on commit 0c9267a

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