mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 23:24:54 +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
|
||||
else
|
||||
# Try to fall back to python's built-in hmac/hashlib modules
|
||||
[ -n "$outputhex" ] && outputhex=hex
|
||||
[ -n "$outputhex" ] && outputhex=hex
|
||||
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])())' \
|
||||
"$alg" "${outputhex}digest" "$secret_hex"
|
||||
'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"
|
||||
fi
|
||||
else
|
||||
_err "$alg is not supported yet"
|
||||
|
Loading…
x
Reference in New Issue
Block a user