Clean up and simplify info and msg callbacks.
authorjsing <jsing@openbsd.org>
Mon, 30 Aug 2021 19:25:43 +0000 (19:25 +0000)
committerjsing <jsing@openbsd.org>
Mon, 30 Aug 2021 19:25:43 +0000 (19:25 +0000)
commit545b2b63048ee07e7fd983e5551ba5812e662786
tree0ed7886e6672563e0ef7af4aa0620fdc2ca5106a
parent665c92da575e4726f1b8c5398ee77a224336ae54
Clean up and simplify info and msg callbacks.

The info and msg callbacks result in duplication - both for code that
refers to the function pointers and for the call sites. Avoid this by
providing typedefs for the function pointers and pulling the calling
sequences into their own functions.

ok inoguchi@ tb@
lib/libssl/d1_pkt.c
lib/libssl/ssl_both.c
lib/libssl/ssl_clnt.c
lib/libssl/ssl_lib.c
lib/libssl/ssl_locl.h
lib/libssl/ssl_pkt.c
lib/libssl/ssl_srvr.c
lib/libssl/tls13_lib.c