mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 13:34:16 +01:00
Added checks for POLARSSL_SSL_CLI_C
Added additional POLARSSL_SSL_CLI_C preprocessor conditions to suppress warnings on server only builds.
This commit is contained in:
parent
60371454bd
commit
149950d876
@ -83,6 +83,7 @@ static unsigned int mfl_code_to_length[SSL_MAX_FRAG_LEN_INVALID] =
|
|||||||
};
|
};
|
||||||
#endif /* POLARSSL_SSL_MAX_FRAGMENT_LENGTH */
|
#endif /* POLARSSL_SSL_MAX_FRAGMENT_LENGTH */
|
||||||
|
|
||||||
|
#if defined(POLARSSL_SSL_CLI_C)
|
||||||
static int ssl_session_copy( ssl_session *dst, const ssl_session *src )
|
static int ssl_session_copy( ssl_session *dst, const ssl_session *src )
|
||||||
{
|
{
|
||||||
ssl_session_free( dst );
|
ssl_session_free( dst );
|
||||||
@ -122,6 +123,7 @@ static int ssl_session_copy( ssl_session *dst, const ssl_session *src )
|
|||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
#endif /* POLARSSL_SSL_CLI_C */
|
||||||
|
|
||||||
#if defined(POLARSSL_SSL_HW_RECORD_ACCEL)
|
#if defined(POLARSSL_SSL_HW_RECORD_ACCEL)
|
||||||
int (*ssl_hw_record_init)( ssl_context *ssl,
|
int (*ssl_hw_record_init)( ssl_context *ssl,
|
||||||
@ -2637,7 +2639,7 @@ int ssl_write_certificate( ssl_context *ssl )
|
|||||||
ssl->out_msgtype = SSL_MSG_HANDSHAKE;
|
ssl->out_msgtype = SSL_MSG_HANDSHAKE;
|
||||||
ssl->out_msg[0] = SSL_HS_CERTIFICATE;
|
ssl->out_msg[0] = SSL_HS_CERTIFICATE;
|
||||||
|
|
||||||
#if defined(POLARSSL_SSL_PROTO_SSL3)
|
#if defined(POLARSSL_SSL_PROTO_SSL3) && defined(POLARSSL_SSL_CLI_C)
|
||||||
write_msg:
|
write_msg:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user