site.c: Allocate and free the Diffie--Hellman secret buffers each time.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 29 Apr 2017 12:55:40 +0000 (13:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 25 Sep 2019 12:46:59 +0000 (13:46 +0100)
commit088f80a16f384041909c6df6c5fbc98c0d76427f
tree411a4c71d6009788997d93d21cbc505f08f6a4a2
parent242a13f76aec76b7ab05ce924c123813aa58b92c
site.c: Allocate and free the Diffie--Hellman secret buffers each time.

This will allow us to maybe use a different Diffie--Hellman group, with
different size requirements, to communicate with the same peer at a
later time.  We can't do this yet, of course, but the negotiation
machinery is coming soon.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
site.c