mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-24 12:41:03 +00:00
fix const-ness of argument to mbedtls_ssl_conf_cert_profile
Otherwise, it's impossible to pass in a pointer to mbedtls_x509_crt_profile_next!
This commit is contained in:
parent
14d800507a
commit
2088e2ebd9
|
@ -1381,7 +1381,7 @@ void mbedtls_ssl_conf_ciphersuites_for_version( mbedtls_ssl_config *conf,
|
||||||
* \param profile Profile to use
|
* \param profile Profile to use
|
||||||
*/
|
*/
|
||||||
void mbedtls_ssl_conf_cert_profile( mbedtls_ssl_config *conf,
|
void mbedtls_ssl_conf_cert_profile( mbedtls_ssl_config *conf,
|
||||||
mbedtls_x509_crt_profile *profile );
|
const mbedtls_x509_crt_profile *profile );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Set the data required to verify peer certificate
|
* \brief Set the data required to verify peer certificate
|
||||||
|
|
|
@ -5372,7 +5372,7 @@ void mbedtls_ssl_conf_ciphersuites_for_version( mbedtls_ssl_config *conf,
|
||||||
|
|
||||||
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
||||||
void mbedtls_ssl_conf_cert_profile( mbedtls_ssl_config *conf,
|
void mbedtls_ssl_conf_cert_profile( mbedtls_ssl_config *conf,
|
||||||
mbedtls_x509_crt_profile *profile )
|
const mbedtls_x509_crt_profile *profile )
|
||||||
{
|
{
|
||||||
conf->cert_profile = profile;
|
conf->cert_profile = profile;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue