mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-23 20:51:07 +01:00
The postprocessing code for the server-side incoming client key exchange and the client-side outgoing client key exchange both contain the same code-paths for building the premaster secret depending on the chosen ciphersuite (e.g., for ECDHE-PSK, concatenating the ECDHE secret with the chosen PSK). This commit moves this common code to ssl_tls.c, allowing client- and server-side to share it.