chiark / gitweb /
site.c: Abstract out the various parts of capability handling.
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:44 +0000 (13:46 +0100)
commit8bb8c22a2c4c2b86a52069228943f38190f4bc02
tree6a09cede4442b5a88ac8bbd6c2ea11bf44665205
parent7b2ef2245c0607e51a4318ba37691af5aea3f17f
site.c: Abstract out the various parts of capability handling.

Introduce macros for: setting the local capability flags from
crypto-algorithm closures; selecting a crypto algorithm based on the
capabilities reported by a peer site; and finding the local closure
based on the peer's algorithm decision.

This will make introducing new kinds of negotiation much less painful.
No functional change.

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