1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

fix comments and format issues

Change-Id: I927d97f9d788389d6abb9edbda0f7c3e2f8e9b63
CustomizedGitHooks: yes
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu
2021-08-17 13:09:23 +08:00
parent f7fce9200c
commit 7899de839c
2 changed files with 6 additions and 12 deletions

View File

@ -1184,7 +1184,7 @@ struct mbedtls_ssl_config
const int *MBEDTLS_PRIVATE(sig_hashes); /*!< allowed signature hashes */ const int *MBEDTLS_PRIVATE(sig_hashes); /*!< allowed signature hashes */
#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL) #if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
const uint16_t* MBEDTLS_PRIVATE(tls13_sig_algs); /*!< allowed signature algorithms in TLS 1.3 */ const uint16_t *MBEDTLS_PRIVATE(tls13_sig_algs); /*!< allowed signature algorithms for TLS 1.3 */
#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */ #endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */
#endif #endif
@ -3036,9 +3036,10 @@ void mbedtls_ssl_conf_sig_hashes( mbedtls_ssl_config *conf,
* \brief Configure allowed signature algorithms for use in TLS 1.3 * \brief Configure allowed signature algorithms for use in TLS 1.3
* *
* \param conf The SSL configuration to use. * \param conf The SSL configuration to use.
* \param sig_algs A 0-terminated list of IANA values for TLS 1.3 signature algorithms, * \param sig_algs List of allowed IANA values for TLS 1.3 signature algorithms,
* with the most preferred algorithm listed first. Supported values * terminated by \c MBEDTLS_TLS13_SIG_NONE. The list must remain
* are available as \c MBEDTLS_TLS13_SIG_XXX. * available throughout the liftime of the conf object. Supported
* values are available as \c MBEDTLS_TLS13_SIG_XXXX
*/ */
void mbedtls_ssl_conf_sig_algs( mbedtls_ssl_config *conf, void mbedtls_ssl_conf_sig_algs( mbedtls_ssl_config *conf,
const uint16_t* sig_algs ); const uint16_t* sig_algs );

View File

@ -3935,14 +3935,7 @@ void mbedtls_ssl_conf_sig_hashes( mbedtls_ssl_config *conf,
} }
#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL) #if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
/** /* Configure allowed signature algorithms for use in TLS 1.3 */
* \brief Configure allowed signature algorithms for use in TLS 1.3
*
* \param conf The SSL configuration to use.
* \param sig_algs A 0-terminated list of IANA values for TLS 1.3 signature algorithms,
* with the most preferred algorithm listed first. Supported values
* are available as \c MBEDTLS_TLS13_SIG_XXX.
*/
void mbedtls_ssl_conf_sig_algs( mbedtls_ssl_config *conf, void mbedtls_ssl_conf_sig_algs( mbedtls_ssl_config *conf,
const uint16_t* sig_algs ) const uint16_t* sig_algs )
{ {