site.c: 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>
Wed, 25 Sep 2019 12:46:59 +0000 (13:46 +0100)
commit0fa27fb315db6cb9a2523e630c58f6fac277dd6f
treed045933a34c473381a49ea3c79a1107a3dd5540d
parent3f488f14527df0f3da6616bcc26c2cf69f627df9
site.c: 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