CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2022/10/01 10:23:15
Modified files: lib/libssl : ssl_both.c ssl_clnt.c ssl_locl.h ssl_srvr.c Log message: Move handshake message handling functions from ssl_both.c to client/server. Currently, ssl_both.c contains several functions that are used by both the legacy client and legacy server. This interwines the client and server, making it harder to make progressive changes. While it does deduplicate some code, it also ends up with code that is conditioned on s->server and forces the caller to pass in SSL3_ST_* values. Move these functions from ssl_both.c into ssl_clnt.c and ssl_srvr.c, renaming as appropriate and removing the s->server conditionals. Also move the client and server function prototypes from ssl_locl.h into the .c files, making them static in the process. ok tb@