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: NRichard Levitte <levitte@openssl.org>
Showing
此差异已折叠。
想要评论请 注册 或 登录