Skip to content

Commit c7ac59b

Browse files
committed
rephrase comments and funcs for clarity
1 parent da5f9d0 commit c7ac59b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

testssl.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,7 @@ http_get() {
18701870
# The proxy environment variable is used automatically.
18711871
# Currently it is being used by check_pwnedkeys(), only
18721872
#
1873-
http_get_header() {
1873+
http_head() {
18741874
local proto
18751875
local node="" query=""
18761876
local request_header="$2"
@@ -1917,14 +1917,14 @@ http_get_header() {
19171917
fi
19181918
}
19191919

1920-
# does a simple http head via printf with no proxy, only used by do_opossum
1920+
# does a simple http head via printf with no proxy, only used by do_opossum()
19211921
# arg1: URL
19221922
# arg2: extra http header
19231923
#
19241924
# return codes:
19251925
# 0: all fine
1926-
# 1: got stuck within HEADER_MAXSLEEP
1927-
# 3: got stuck within HEADER_MAXSLEEP and PROXY was defined
1926+
# 1: server dind't respond within HEADER_MAXSLEEP
1927+
# 3: server dind't respond within HEADER_MAXSLEEP and PROXY was defined
19281928
#
19291929
http_header_printf() {
19301930
local request_header="$2"
@@ -2021,7 +2021,7 @@ check_pwnedkeys() {
20212021
fi
20222022
fingerprint="$($OPENSSL pkey -pubin -outform DER <<< "$pubkey" 2>/dev/null | $OPENSSL dgst -sha256 -hex 2>/dev/null)"
20232023
fingerprint="${fingerprint#*= }"
2024-
response="$(http_get_header "https://v1.pwnedkeys.com/$fingerprint")"
2024+
response="$(http_head "https://v1.pwnedkeys.com/$fingerprint")"
20252025
# Handle curl's/wget's connectivity exit codes
20262026
case $? in
20272027
4|5|7) return 7 ;;

0 commit comments

Comments
 (0)