Replace switch/assignments with table lookup
authorRich Salz <rsalz@akamai.com>
Fri, 15 May 2015 20:32:49 +0000 (16:32 -0400)
committerRich Salz <rsalz@openssl.org>
Wed, 20 May 2015 21:51:52 +0000 (17:51 -0400)
commit3e8e688f867a1ec1e554da67f111fa58a6ee1138
tree5d7d7d54e9cc66b0f27c5aef2eec802e55203088
parentac38115c1a4fb61c66c2a8cd2a9800751828d328
Replace switch/assignments with table lookup

Typedef STRINT_PAIR to be the same as OPT_PAIR, and use that structure and
a bunch of tables instead of switch statements to lookup various values
out of the SSL/TLS message buffers.  Shrinks a bunch of code.

Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/apps.h
apps/s_cb.c