Skip to content

Commit

Permalink
fix pmslen and premaster undefined error
Browse files Browse the repository at this point in the history
issues: hannestschofenig#15
compile-status: Fail

Change-Id: I73f989ffe29efb1d6936e599230a8cbe121bbcc4
CustomizedGitHooks: yes
Signed-off-by: Jerry Yu <[email protected]>
  • Loading branch information
yuhaoth committed Jul 25, 2021
1 parent 011325d commit adf5987
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions include/mbedtls/ssl_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -833,13 +833,12 @@ struct mbedtls_ssl_handshake_params
int early_data;
#endif /* MBEDTLS_ZERO_RTT */

#else
size_t pmslen; /*!< premaster length */

unsigned char premaster[MBEDTLS_PREMASTER_SIZE];
/*!< premaster secret */
#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */

#if defined(MBEDTLS_SSL_PROTO_TLS1_2_OR_EARLIER)
size_t pmslen; /*!< premaster length */
unsigned char premaster[MBEDTLS_PREMASTER_SIZE]; /*!< premaster secret */
#endif /* defined(MBEDTLS_SSL_PROTO_TLS1_2_OR_EARLIER) */

int resume; /*!< session resume indicator*/
int max_major_ver; /*!< max. major version client*/
Expand Down

0 comments on commit adf5987

Please sign in to comment.