mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-14 17:47:46 -04:00
Leave the preference order for hashes unspecified
We don't seem to have strong feelings about this, so allow ourselves to change the order later. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
b1940a76ad
commit
a28f0f5082
@ -2943,8 +2943,9 @@ void mbedtls_ssl_conf_curves( mbedtls_ssl_config *conf,
|
|||||||
* \note By default, all supported hashes whose length is at least
|
* \note By default, all supported hashes whose length is at least
|
||||||
* 256 bits are allowed. This is the same set as the default
|
* 256 bits are allowed. This is the same set as the default
|
||||||
* for certificate verification
|
* for certificate verification
|
||||||
* (#mbedtls_x509_crt_profile_default). Larger hashes are
|
* (#mbedtls_x509_crt_profile_default).
|
||||||
* preferred.
|
* The preference order is currently unspecified and may
|
||||||
|
* change in future versions.
|
||||||
*
|
*
|
||||||
* \param conf SSL configuration
|
* \param conf SSL configuration
|
||||||
* \param hashes Ordered list of allowed signature hashes,
|
* \param hashes Ordered list of allowed signature hashes,
|
||||||
|
@ -6099,8 +6099,8 @@ void mbedtls_ssl_config_init( mbedtls_ssl_config *conf )
|
|||||||
|
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||||
/* The selection should be the same as mbedtls_x509_crt_profile_default in
|
/* The selection should be the same as mbedtls_x509_crt_profile_default in
|
||||||
* x509_crt.c. Here, the order matters: larger hashes first, for consistency
|
* x509_crt.c. Here, the order matters. Currently we favor stronger hashes,
|
||||||
* with curves.
|
* for no fundamental reason.
|
||||||
* See the documentation of mbedtls_ssl_conf_curves() for what we promise
|
* See the documentation of mbedtls_ssl_conf_curves() for what we promise
|
||||||
* about this list. */
|
* about this list. */
|
||||||
static int ssl_preset_default_hashes[] = {
|
static int ssl_preset_default_hashes[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user