summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls12_lib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Clean up and harden TLSv1.2 master key derivation.jsing2021-04-301-1/+24
| | | | | | | | | | | The master key and its length are only stored in one location, so it makes no sense to handle these outside of the derivation function (the current 'out' argument is unused). This simplifies the various call sites. If derivation fails for some reason, fail hard rather than continuing on and hoping that something deals with this correctly later. ok inoguchi@ tb@
* Clean up derivation of finished/peer finished.jsing2021-04-251-0/+92
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@