mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-29 18:35:51 +08: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.