mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 23:35:49 +01:00
Don't store debug func ptr cb + ctx in SSL config if !DEBUG_C
Note: This is an structure-API breaking change that we might not be able to upstream.
This commit is contained in:
parent
5455afd74e
commit
272063abfd
@ -898,9 +898,11 @@ struct mbedtls_ssl_config
|
||||
|
||||
const int *ciphersuite_list[4]; /*!< allowed ciphersuites per version */
|
||||
|
||||
#if defined(MBEDTLS_DEBUG_C)
|
||||
/** Callback for printing debug output */
|
||||
void (*f_dbg)(void *, int, const char *, int, const char *);
|
||||
void *p_dbg; /*!< context for the debug function */
|
||||
#endif /* MBEDTLS_DEBUG_C */
|
||||
|
||||
#if !defined(MBEDTLS_SSL_CONF_RNG)
|
||||
/** Callback for getting (pseudo-)random numbers */
|
||||
|
@ -8217,8 +8217,14 @@ void mbedtls_ssl_conf_dbg( mbedtls_ssl_config *conf,
|
||||
void (*f_dbg)(void *, int, const char *, int, const char *),
|
||||
void *p_dbg )
|
||||
{
|
||||
#if defined(MBEDTLS_DEBUG_C)
|
||||
conf->f_dbg = f_dbg;
|
||||
conf->p_dbg = p_dbg;
|
||||
#else
|
||||
((void) conf);
|
||||
((void) f_dbg);
|
||||
((void) p_dbg);
|
||||
#endif /* MBEDTLS_DEBUG_C */
|
||||
}
|
||||
|
||||
#if !defined(MBEDTLS_SSL_CONF_RECV) && \
|
||||
|
Loading…
Reference in New Issue
Block a user