Skip to content

Commit

Permalink
fix warnings without psk
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Yu <[email protected]>
  • Loading branch information
yuhaoth committed Sep 4, 2021
1 parent 708c5f1 commit b52af03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/ssl_tls13_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -2262,13 +2262,15 @@ static int ssl_client_hello_parse( mbedtls_ssl_context* ssl,
int ret;
size_t i, j;
size_t comp_len, sess_len;
size_t ciph_len, ext_len, ext_len_psk_ext = 0;
size_t ciph_len, ext_len;
unsigned char *orig_buf, *end = buf + buflen;
unsigned char *ciph_offset;
unsigned char *p = NULL;
unsigned char *ext = NULL;
unsigned char *ext_psk_ptr = NULL;

#if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
size_t ext_len_psk_ext = 0;
#endif
const int* ciphersuites;
const mbedtls_ssl_ciphersuite_t* ciphersuite_info;

Expand Down

0 comments on commit b52af03

Please sign in to comment.