Clean up derivation of finished/peer finished.
authorjsing <jsing@openbsd.org>
Sun, 25 Apr 2021 13:15:22 +0000 (13:15 +0000)
committerjsing <jsing@openbsd.org>
Sun, 25 Apr 2021 13:15:22 +0000 (13:15 +0000)
commit643d65b6e9fb780188211b156383980513f491f7
tree7bfcedd9448c62fb08a90ab347256f83c78fba48
parentb4df56a53a46265c7a71425c00b5395c614cda1a
Clean up derivation of finished/peer finished.

Make this process more readable by having specific client/server functions,
calling the correct one based on s->server. This allows to remove various
SSL_ST_ACCEPT/SSL_ST_CONNECT checks, along with duplicate code.

ok inoguchi@ tb@
lib/libssl/Makefile
lib/libssl/ssl_both.c
lib/libssl/ssl_clnt.c
lib/libssl/ssl_locl.h
lib/libssl/ssl_pkt.c
lib/libssl/ssl_srvr.c
lib/libssl/t1_enc.c
lib/libssl/tls12_lib.c [new file with mode: 0644]