1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Keep raw PSK when set via mbedtls_ssl_conf_psk() and feed as input_bytes

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong
2022-05-05 11:40:35 +02:00
parent 80f6f32495
commit 8ecd66884f
4 changed files with 13 additions and 48 deletions

View File

@ -1427,8 +1427,7 @@ struct mbedtls_ssl_config
* If either no PSK or a raw PSK have been
* configured, this has value \c 0.
*/
uint8_t MBEDTLS_PRIVATE(psk_opaque_is_internal);
#else
#endif /* MBEDTLS_USE_PSA_CRYPTO */
unsigned char *MBEDTLS_PRIVATE(psk); /*!< The raw pre-shared key. This field should
* only be set via mbedtls_ssl_conf_psk().
* If either no PSK or an opaque PSK
@ -1438,7 +1437,6 @@ struct mbedtls_ssl_config
* mbedtls_ssl_conf_psk().
* Its value is non-zero if and only if
* \c psk is not \c NULL. */
#endif /* MBEDTLS_USE_PSA_CRYPTO */
unsigned char *MBEDTLS_PRIVATE(psk_identity); /*!< The PSK identity for PSK negotiation.
* This field should only be set via