[libfko] per-SPA message type field count validation
authorMichael Rash <mbr@cipherdyne.org>
Mon, 17 Mar 2014 01:47:19 +0000 (21:47 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Mon, 17 Mar 2014 01:47:19 +0000 (21:47 -0400)
commit7e290245b2bdc0dc561d56c857328cdf373129d5
tree7fb12543b2d3ec69a3564c62e934cf0d6a15ef9b
parent6de811cbc69b59dba04d183762648eeeb88dc39c
[libfko] per-SPA message type field count validation

This commit implements more rigorous SPA packet field count validation
that takes into account expected field counts for each SPA message type.
Two new libfko error codes have been added in support of this, and the
corresponding changes made in the perl and python modules.
lib/fko.h
lib/fko_decode.c
lib/fko_error.c
lib/fko_limits.h
perl/FKO/lib/FKO_Constants.pl
python/fko.py
test/test-fwknop.pl