blob: 6b0e7947571463d13530066071189cd3ad1773a8 [file] [log] [blame] [view]
Hanno Becker67e49a62021-05-14 20:02:42 +01001Relaxed semantics for PSK configuration
2-----------------------------------------------------------------
3
4This affects users which call the PSK configuration APIs
5`mbedtlsl_ssl_conf_psk()` and `mbedtls_ssl_conf_psk_opaque()`
6multiple times on the same SSL configuration.
7
8In Mbed TLS 2.x, users would observe later calls overwriting
9the effect of earlier calls, with the prevailing PSK being
Hanno Becker196739b2021-05-28 05:25:46 +010010the one that has been configured last. In Mbed TLS 3.0,
Hanno Becker2bec09c2021-05-28 09:54:31 +010011calling `mbedtls_ssl_conf_[opaque_]psk()` multiple times
Hanno Becker196739b2021-05-28 05:25:46 +010012will return an error, leaving the first PSK intact.
Hanno Becker67e49a62021-05-14 20:02:42 +010013
14To achieve equivalent functionality when migrating to Mbed TLS 3.0,
15users calling `mbedtls_ssl_conf_[opaque_]psk()` multiple times should
16remove all but the last call, so that only one call to _either_
17`mbedtls_ssl_conf_psk()` _or_ `mbedtls_ssl_conf_psk_opaque()`
18remains.