mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Document config restrictions of psk fields
This commit is contained in:
@ -673,10 +673,18 @@ struct mbedtls_ssl_config
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED)
|
#if defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED)
|
||||||
unsigned char *psk; /*!< pre-shared key */
|
unsigned char *psk; /*!< pre-shared key. This field should
|
||||||
size_t psk_len; /*!< length of the pre-shared key */
|
only be set via
|
||||||
unsigned char *psk_identity; /*!< identity for PSK negotiation */
|
mbedtls_ssl_conf_psk() */
|
||||||
size_t psk_identity_len;/*!< length of identity */
|
size_t psk_len; /*!< length of the pre-shared key. This
|
||||||
|
field should only be set via
|
||||||
|
mbedtls_ssl_conf_psk() */
|
||||||
|
unsigned char *psk_identity; /*!< identity for PSK negotiation. This
|
||||||
|
field should only be set via
|
||||||
|
mbedtls_ssl_conf_psk() */
|
||||||
|
size_t psk_identity_len;/*!< length of identity. This field should
|
||||||
|
only be set via
|
||||||
|
mbedtls_ssl_conf_psk() */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_ALPN)
|
#if defined(MBEDTLS_SSL_ALPN)
|
||||||
|
Reference in New Issue
Block a user