mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:35:43 +01:00
Explicit void pointer cast for buggy MS compiler
This commit is contained in:
parent
5191e92ecc
commit
beccd9f226
@ -541,7 +541,8 @@ static int ssl_parse_supported_elliptic_curves( ssl_context *ssl,
|
||||
if( ( curves = polarssl_malloc( our_size * sizeof( *curves ) ) ) == NULL )
|
||||
return( POLARSSL_ERR_SSL_MALLOC_FAILED );
|
||||
|
||||
memset( curves, 0, our_size * sizeof( *curves ) );
|
||||
/* explicit void pointer cast for buggy MS compiler */
|
||||
memset( (void *) curves, 0, our_size * sizeof( *curves ) );
|
||||
ssl->handshake->curves = curves;
|
||||
|
||||
p = buf + 2;
|
||||
|
@ -4161,7 +4161,8 @@ void ssl_handshake_free( ssl_handshake_params *handshake )
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_ECDH_C) || defined(POLARSSL_ECDSA_C)
|
||||
polarssl_free( handshake->curves );
|
||||
/* explicit void pointer cast for buggy MS compiler */
|
||||
polarssl_free( (void *) handshake->curves );
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_X509_CRT_PARSE_C) && \
|
||||
|
Loading…
Reference in New Issue
Block a user