Commit 94d6954b authored by Joanne Hugé's avatar Joanne Hugé

Rename hmac parameters to match babel 1.12.1

parent 484aef7a
......@@ -85,10 +85,10 @@ def router(ip, ip4, src, hello_interval, log_path, state_path, pidfile,
'-C', 'redistribute ip %s/%s eq %s' % (ip, n, n)]
if hmac_sign:
def key(cmd, id, value):
cmd += '-C', ('key type blake2s id %s value %s' %
cmd += '-C', ('key type blake2s128 id %s value %s' %
(id, value.encode('hex')))
key(cmd, 'sign', hmac_sign)
default += ' hmac sign'
default += ' key sign'
if hmac_accept is not None:
if hmac_accept:
key(cmd, 'accept', hmac_accept)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment