chiark / gitweb /
site setup: actually use calculated default for st->key_renegotiate_time
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Jun 2011 18:13:38 +0000 (19:13 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Jun 2011 11:07:27 +0000 (12:07 +0100)
commitcce0051f2732852823594157cf82ade6528704df
tree771305a69ffba9ea810628ca0b895ef7ae3c0176
parentc27ca22fe83cb7b8ddbf16c46fbcf2b0be659075
site setup: actually use calculated default for st->key_renegotiate_time

We go to some trouble to calculate an appropriate default value for
st->key_renegotiate_time.  However, when we actually do the config
file lookup we overwrote the result and used st->key_lifetime as the
default instead, which is wrong.

The upshot is that prior to this patch, DEFAULT_KEY_RENEGOTIATE_GAP
and the associated logic was unused, and keys were only renegotiated
at the point where they expired, which would produce a small gap in
connectivity.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
site.c