_hmac use and generic date

This commit is contained in:
nytral committed 2016-11-08 15:56:46 +01:00
1 parent 0b5bff01e1
commit 22b83d7630
1 file changed
+2 -2
+2 -2
View File
@@ -123,8 +123,8 @@ _me_rest() {
data="$3"
_debug $ep
cdate=$(date -Ru)
hmac=$(printf "$cdate" | openssl dgst -sha1 -hmac $ME_Secret | cut -d = -f 2 | tr -d ' ')
cdate=$(date -u +"%a, %d %b %Y %T %Z")
hmac=$(printf "$cdate" | _hmac sha1 "$ME_Secret" 1)
_H1="x-dnsme-apiKey: $ME_Key"
_H2="x-dnsme-requestDate: $cdate"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.