WPS: Reduce struct wps_parse_attr size
authorJouni Malinen <j@w1.fi>
Mon, 7 Sep 2015 19:56:40 +0000 (22:56 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 7 Sep 2015 20:02:19 +0000 (23:02 +0300)
commit4b9a395e29878a739d8d21b4383268d83fc7710d
treefeb4d7d666380b7b064f83f7c2f8bcd77f6d4d96
parentb664ef1c0d97dbf8b127408b4b63eb35e36aa5bb
WPS: Reduce struct wps_parse_attr size

Use shorter variables for storing the attribute lengths and group these
variables together to allow compiler to pack them more efficiently. This
reduces the struct size from 960 bytes to 760 bytes in 64-bit builds.
This reduces stack use in number of functions.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/wps/wps_attr_parse.h
src/wps/wps_enrollee.c
src/wps/wps_registrar.c