Skip to content

Commit

Permalink
remove MBEDTLS_SSL_PROTO_TLS1_2_OR_EARLIER
Browse files Browse the repository at this point in the history
MBEDTLS_SSL_PROTO_TLS1_2_OR_EARLIER is defined
in ssl_internal.h. It is not included in all
files.
So it should not be used in ssl.h

Change-Id: Iedc65ca1287db1a4accad9a89e83e8ab1612e65b
CustomizedGitHooks: yes
Signed-off-by: Jerry Yu <[email protected]>
  • Loading branch information
yuhaoth committed Jul 20, 2021
1 parent 19aaaf4 commit c3ff929
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions include/mbedtls/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1577,10 +1577,16 @@ struct mbedtls_ssl_context
mbedtls_ssl_transform *transform_in; /*!< current transform params (in) */
mbedtls_ssl_transform *transform_out; /*!< current transform params (in) */

#if defined(MBEDTLS_SSL_PROTO_TLS1_2_OR_EARLIER)
#if defined(MBEDTLS_SSL_PROTO_SSL3) || \
defined(MBEDTLS_SSL_PROTO_TLS1) || \
defined(MBEDTLS_SSL_PROTO_TLS1_1) || \
defined(MBEDTLS_SSL_PROTO_TLS1_2)
mbedtls_ssl_transform *transform; /*!< negotiated transform params */
mbedtls_ssl_transform *transform_negotiate; /*!< transform params in negotiation */
#endif /* MBEDTLS_SSL_PROTO_TLS1_2_OR_EARLIER */
#endif /* defined(MBEDTLS_SSL_PROTO_SSL3) || \
defined(MBEDTLS_SSL_PROTO_TLS1) || \
defined(MBEDTLS_SSL_PROTO_TLS1_1) || \
defined(MBEDTLS_SSL_PROTO_TLS1_2) */

#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
mbedtls_ssl_transform *transform_handshake;
Expand Down

0 comments on commit c3ff929

Please sign in to comment.