Commit 98e98fe5 authored by Joanne Hugé's avatar Joanne Hugé

re6st/plib.py: rename hmac parameters to match babel 1.12.1

parent fed6c18b
...@@ -81,10 +81,10 @@ def router(ip, ip4, rt6, hello_interval, log_path, state_path, pidfile, ...@@ -81,10 +81,10 @@ def router(ip, ip4, rt6, hello_interval, log_path, state_path, pidfile,
'-C', 'redistribute ip %s/%s eq %s' % (ip, n, n)] '-C', 'redistribute ip %s/%s eq %s' % (ip, n, n)]
if hmac_sign: if hmac_sign:
def key(cmd, id, value): 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'))) (id, value.encode('hex')))
key(cmd, 'sign', hmac_sign) key(cmd, 'sign', hmac_sign)
default += ' hmac sign' default += ' key sign'
if hmac_accept is not None: if hmac_accept is not None:
if hmac_accept: if hmac_accept:
key(cmd, 'accept', 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