Commit ebee829d authored by Killian Lufau's avatar Killian Lufau Committed by Julien Muchembled

Adapt HMAC to upstream option 'no_hmac_verify'

parent 21eacdba
...@@ -88,14 +88,13 @@ def router(ip, ip4, src, hello_interval, log_path, state_path, pidfile, ...@@ -88,14 +88,13 @@ def router(ip, ip4, src, hello_interval, log_path, state_path, pidfile,
cmd += '-C', ('key type blake2s id %s value %s' % cmd += '-C', ('key type blake2s id %s value %s' %
(id, value.encode('hex'))) (id, value.encode('hex')))
key(cmd, 'sign', hmac_sign) key(cmd, 'sign', hmac_sign)
cmd += '-C', 'default %s hmac sign' % default default += ' hmac 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)
else: else:
cmd += '-C', 'ignore_no_hmac' default += ' no_hmac_verify true'
else: cmd += '-C', 'default ' + default
cmd += '-C', 'default ' + default
if ip4: if ip4:
cmd += '-C', 'redistribute ip %s/%s eq %s' % (ip4, n4, n4) cmd += '-C', 'redistribute ip %s/%s eq %s' % (ip4, n4, n4)
if src: if src:
......
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