mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-13 07:14:28 +02:00
Remove mbedtls_ssl_transform::minor_ver if the version is hardcoded
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user