Browse Source
Try to make it work with DragonFlyBSD
pull/4271/head
Nicolas Rosset
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
4 deletions
-
dnsapi/dns_me.sh
|
@ -134,10 +134,7 @@ _me_rest() { |
|
|
data="$3" |
|
|
data="$3" |
|
|
_debug "$ep" |
|
|
_debug "$ep" |
|
|
|
|
|
|
|
|
cdate=$( |
|
|
|
|
|
LC_TIME=en_US.utf8 |
|
|
|
|
|
LANG=C date -u +"%a, %d %b %Y %T %Z" |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
cdate=$(LC_TIME='en_US.utf8' LANG='C' date -u +"%a, %d %b %Y %T %Z") |
|
|
|
|
|
|
|
|
hmac=$(printf "%s" "$cdate" | _hmac sha1 "$(printf "%s" "$ME_Secret" | _hex_dump | tr -d " ")" hex) |
|
|
hmac=$(printf "%s" "$cdate" | _hmac sha1 "$(printf "%s" "$ME_Secret" | _hex_dump | tr -d " ")" hex) |
|
|
|
|
|
|
|
|