Reconfigure support for crypto-key routing

This commit is contained in:
Neil Alexander 2019-01-14 18:06:41 +00:00
parent 28072c9fe2
commit bd04124e43
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 62 additions and 31 deletions

View file

@ -127,6 +127,14 @@ func (r *router) mainLoop() {
case f := <-r.admin:
f()
case e := <-r.reconfigure:
// Send reconfigure notification to cryptokey
response := make(chan error)
r.cryptokey.reconfigure <- response
if err := <-response; err != nil {
e <- err
}
// Anything else to do?
e <- nil
}
}