MEDIUM: ssl: split ssl_sock_msgcbk() and use a new callback mechanism
authorDragan Dosen <ddosen@haproxy.com>
Mon, 11 May 2020 13:51:45 +0000 (15:51 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 14 May 2020 11:13:14 +0000 (13:13 +0200)
commit9ac9809cb942fb270e601887b3013813fa8daaab
treef52814aaa75d1e0c256bdbc30bf46ba3a133b259
parent1e7ed04665f91a9558d07059c495399fcd1f803e
MEDIUM: ssl: split ssl_sock_msgcbk() and use a new callback mechanism

Make use of ssl_sock_register_msg_callback(). Function ssl_sock_msgcbk()
is now split into two dedicated functions for heartbeat and clienthello.
They are both registered by using a new callback mechanism for SSL/TLS
protocol messages.
src/ssl_sock.c