chiark / gitweb /
site: Prepare for adding more MSG3 variants
authorMark Wooding <mdw@distorted.org.uk>
Sun, 30 Apr 2017 23:11:25 +0000 (00:11 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 28 Sep 2019 15:25:11 +0000 (16:25 +0100)
commit70da6a8b29d5316d1b498d766aeef15ed77e30f3
treea80c872d6bcc3c8289a87a1ac185a6182d139203
parent0aae8f7a1935b589258a52c4728a434d87537da5
site: Prepare for adding more MSG3 variants

  * Introduce a macro listing the known MSG3 variants.  Use this in
    `type_is_msg34' and `site_incoming', and in the `process_msg3'
    molly-guard.

  * Break out MSG3-ish label minor numbers and analyse them using the
    sensible ordering, in `generate_msg' and `unpick_msg'.

  * Have `check_msg' fall back to trusting `process_msg3' for all
    MSG3-ish messages.  (It already has a more vicious molly-guard
    anyway.)

  * Reformat the decision tree in `generate_msg3' so that adding more
    branches is cleaner.

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