mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-18 04:45:22 +00:00
Remove mbedtls_ssl_transform::minor_ver if the version is hardcoded
This commit is contained in:
parent
0f902b71a8
commit
0a92b8156d
2 changed files with 40 additions and 11 deletions
|
|
@ -709,7 +709,10 @@ struct mbedtls_ssl_transform
|
|||
|
||||
mbedtls_cipher_context_t cipher_ctx_enc; /*!< encryption context */
|
||||
mbedtls_cipher_context_t cipher_ctx_dec; /*!< decryption context */
|
||||
|
||||
#if !defined(MBEDTLS_SSL_CONF_FIXED_MINOR_VER)
|
||||
int minor_ver;
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID)
|
||||
uint8_t in_cid_len;
|
||||
|
|
@ -727,6 +730,16 @@ struct mbedtls_ssl_transform
|
|||
#endif
|
||||
};
|
||||
|
||||
static inline int mbedtls_ssl_transform_get_minor_ver( mbedtls_ssl_transform const *transform )
|
||||
{
|
||||
#if !defined(MBEDTLS_SSL_CONF_FIXED_MINOR_VER)
|
||||
return( transform->minor_ver );
|
||||
#else
|
||||
((void) transform);
|
||||
return( MBEDTLS_SSL_CONF_FIXED_MINOR_VER );
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Internal representation of record frames
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue