|
@ -46,18 +46,15 @@ dns_aws_add() { |
|
|
return 0 |
|
|
return 0 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
return 1; |
|
|
|
|
|
|
|
|
return 1 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#fulldomain |
|
|
#fulldomain |
|
|
dns_aws_rm() { |
|
|
dns_aws_rm() { |
|
|
fulldomain=$1 |
|
|
fulldomain=$1 |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#################### Private functions bellow ################################## |
|
|
#################### Private functions bellow ################################## |
|
|
|
|
|
|
|
|
_get_root() { |
|
|
_get_root() { |
|
@ -96,7 +93,6 @@ _get_root() { |
|
|
return 1 |
|
|
return 1 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#method uri qstr data |
|
|
#method uri qstr data |
|
|
aws_rest() { |
|
|
aws_rest() { |
|
|
mtd="$1" |
|
|
mtd="$1" |
|
@ -137,13 +133,13 @@ aws_rest() { |
|
|
CanonicalRequest="$mtd\n$CanonicalURI\n$CanonicalQueryString\n$CanonicalHeaders\n$SignedHeaders\n$(printf "%s" "$RequestPayload" | _digest "$Hash" hex)" |
|
|
CanonicalRequest="$mtd\n$CanonicalURI\n$CanonicalQueryString\n$CanonicalHeaders\n$SignedHeaders\n$(printf "%s" "$RequestPayload" | _digest "$Hash" hex)" |
|
|
_debug2 CanonicalRequest "$CanonicalRequest" |
|
|
_debug2 CanonicalRequest "$CanonicalRequest" |
|
|
|
|
|
|
|
|
HashedCanonicalRequest="$(printf "$CanonicalRequest%s" | _digest "$Hash" hex )" |
|
|
|
|
|
|
|
|
HashedCanonicalRequest="$(printf "$CanonicalRequest%s" | _digest "$Hash" hex)" |
|
|
_debug2 HashedCanonicalRequest "$HashedCanonicalRequest" |
|
|
_debug2 HashedCanonicalRequest "$HashedCanonicalRequest" |
|
|
|
|
|
|
|
|
Algorithm="AWS4-HMAC-SHA256" |
|
|
Algorithm="AWS4-HMAC-SHA256" |
|
|
_debug2 Algorithm "$Algorithm" |
|
|
_debug2 Algorithm "$Algorithm" |
|
|
|
|
|
|
|
|
RequestDateOnly="$(echo "$RequestDate" | cut -c 1-8 )" |
|
|
|
|
|
|
|
|
RequestDateOnly="$(echo "$RequestDate" | cut -c 1-8)" |
|
|
_debug2 RequestDateOnly "$RequestDateOnly" |
|
|
_debug2 RequestDateOnly "$RequestDateOnly" |
|
|
|
|
|
|
|
|
Region="us-east-1" |
|
|
Region="us-east-1" |
|
@ -204,17 +200,3 @@ aws_rest() { |
|
|
|
|
|
|
|
|
return "$_ret" |
|
|
return "$_ret" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|