mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-07 13:22:46 +00:00
Deprecate mbedtls_ssl_conf_dh_param
This commit is contained in:
parent
5e6b8d7d29
commit
470a8c4d87
@ -1699,6 +1699,15 @@ void mbedtls_ssl_conf_psk_cb( mbedtls_ssl_config *conf,
|
|||||||
#endif /* MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED */
|
#endif /* MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED */
|
||||||
|
|
||||||
#if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_SSL_SRV_C)
|
#if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_SSL_SRV_C)
|
||||||
|
|
||||||
|
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_DEPRECATED_WARNING)
|
||||||
|
#define MBEDTLS_DEPRECATED __attribute__((deprecated))
|
||||||
|
#else
|
||||||
|
#define MBEDTLS_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Set the Diffie-Hellman public P and G values,
|
* \brief Set the Diffie-Hellman public P and G values,
|
||||||
* read as hexadecimal strings (server-side only)
|
* read as hexadecimal strings (server-side only)
|
||||||
@ -1708,12 +1717,15 @@ void mbedtls_ssl_conf_psk_cb( mbedtls_ssl_config *conf,
|
|||||||
* \param dhm_P Diffie-Hellman-Merkle modulus
|
* \param dhm_P Diffie-Hellman-Merkle modulus
|
||||||
* \param dhm_G Diffie-Hellman-Merkle generator
|
* \param dhm_G Diffie-Hellman-Merkle generator
|
||||||
*
|
*
|
||||||
|
* \deprecated Superseded by \c mbedtls_ssl_conf_dh_param_bin.
|
||||||
|
*
|
||||||
* \return 0 if successful
|
* \return 0 if successful
|
||||||
*/
|
*/
|
||||||
int mbedtls_ssl_conf_dh_param( mbedtls_ssl_config *conf,
|
MBEDTLS_DEPRECATED int mbedtls_ssl_conf_dh_param( mbedtls_ssl_config *conf,
|
||||||
const char *dhm_P,
|
const char *dhm_P,
|
||||||
const char *dhm_G );
|
const char *dhm_G );
|
||||||
|
|
||||||
|
#endif /* MBEDTLS_DEPRECATED_REMOVED */
|
||||||
/**
|
/**
|
||||||
* \brief Set the Diffie-Hellman public P and G values,
|
* \brief Set the Diffie-Hellman public P and G values,
|
||||||
* read from existing context (server-side only)
|
* read from existing context (server-side only)
|
||||||
|
@ -6115,6 +6115,8 @@ void mbedtls_ssl_conf_psk_cb( mbedtls_ssl_config *conf,
|
|||||||
#endif /* MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED */
|
#endif /* MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED */
|
||||||
|
|
||||||
#if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_SSL_SRV_C)
|
#if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_SSL_SRV_C)
|
||||||
|
|
||||||
|
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
||||||
int mbedtls_ssl_conf_dh_param( mbedtls_ssl_config *conf, const char *dhm_P, const char *dhm_G )
|
int mbedtls_ssl_conf_dh_param( mbedtls_ssl_config *conf, const char *dhm_P, const char *dhm_G )
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
@ -6129,6 +6131,7 @@ int mbedtls_ssl_conf_dh_param( mbedtls_ssl_config *conf, const char *dhm_P, cons
|
|||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
#endif /* MBEDTLS_DEPRECATED_REMOVED */
|
||||||
|
|
||||||
int mbedtls_ssl_conf_dh_param_ctx( mbedtls_ssl_config *conf, mbedtls_dhm_context *dhm_ctx )
|
int mbedtls_ssl_conf_dh_param_ctx( mbedtls_ssl_config *conf, mbedtls_dhm_context *dhm_ctx )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user