mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 23:17:41 +00:00
fix indentation
This commit is contained in:
parent
82c4060d62
commit
f69525589c
6
acme.sh
6
acme.sh
@ -470,10 +470,10 @@ _hmac() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Try to fall back to python's built-in hmac/hashlib modules
|
# Try to fall back to python's built-in hmac/hashlib modules
|
||||||
[ -n "$outputhex" ] && outputhex=hex
|
[ -n "$outputhex" ] && outputhex=hex
|
||||||
python -u -c \
|
python -u -c \
|
||||||
'import sys,binascii,hmac,hashlib;sys.stdout.write(getattr(hmac.new(binascii.unhexlify(sys.argv[3]),sys.stdin.read(),getattr(hashlib,sys.argv[1])),sys.argv[2])())' \
|
'import sys,binascii,hmac,hashlib;sys.stdout.write(getattr(hmac.new(binascii.unhexlify(sys.argv[3]),sys.stdin.read(),getattr(hashlib,sys.argv[1])),sys.argv[2])())' \
|
||||||
"$alg" "${outputhex}digest" "$secret_hex"
|
"$alg" "${outputhex}digest" "$secret_hex"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
_err "$alg is not supported yet"
|
_err "$alg is not supported yet"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user