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 19, 2021
1 parent 16b4a4b commit 5b53d76
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/mbedtls/ssl_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -839,12 +839,10 @@ 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 */
size_t pmslen; /*!< premaster length */
unsigned char premaster[MBEDTLS_PREMASTER_SIZE]; /*!< premaster secret */



int resume; /*!< session resume indicator*/
Expand Down

0 comments on commit 5b53d76

Please sign in to comment.