Skip to content

Commit

Permalink
fix functions undefined link errors
Browse files Browse the repository at this point in the history
Change-Id: I0a1e13e99d5261255ab6bbd7b02845849c8f375d
CustomizedGitHooks: yes
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
  • Loading branch information
yuhaoth committed Jul 19, 2021
1 parent 8900344 commit a6144ca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions library/ssl_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,9 @@ static void ssl_calc_finished_tls( mbedtls_ssl_context *, unsigned char *, int )
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
#if defined(MBEDTLS_SHA256_C)
static void ssl_update_checksum_sha256( mbedtls_ssl_context *, const unsigned char *, size_t );
#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
static void ssl_update_checksum_sha256_tls13( mbedtls_ssl_context *, const unsigned char *, size_t );
#endif
static void ssl_calc_verify_tls_sha256( const mbedtls_ssl_context *,unsigned char*, size_t * );
static void ssl_calc_finished_tls_sha256( mbedtls_ssl_context *,unsigned char *, int );
#endif
Expand Down Expand Up @@ -2263,7 +2266,8 @@ static void ssl_clear_peer_cert( mbedtls_ssl_session *session )
}
#endif /* MBEDTLS_X509_CRT_PARSE_C */

#if !defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
#if 1
//!defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)

/*
* Handshake functions
Expand Down Expand Up @@ -3137,7 +3141,8 @@ void mbedtls_ssl_optimize_checksum( mbedtls_ssl_context *ssl,
}
}

#if !defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
#if 1
//!defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
void mbedtls_ssl_reset_checksum( mbedtls_ssl_context *ssl )
{
#if defined(MBEDTLS_SSL_PROTO_SSL3) || defined(MBEDTLS_SSL_PROTO_TLS1) || \
Expand Down Expand Up @@ -8774,7 +8779,8 @@ int mbedtls_ssl_check_cert_usage( const mbedtls_x509_crt* cert,
#endif /* MBEDTLS_X509_CRT_PARSE_C */


#if !defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
#if 1
//!defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
int mbedtls_ssl_set_calc_verify_md( mbedtls_ssl_context* ssl, int md )
{
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
Expand Down
2 changes: 1 addition & 1 deletion library/ssl_tls13_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -4272,7 +4272,7 @@ int mbedtls_ssl_handshake_client_step_tls1_3( mbedtls_ssl_context *ssl )
mbedtls_ssl_set_outbound_transform( ssl, ssl->transform_application );
#endif /* MBEDTLS_SSL_USE_MPS */

mbedtls_ssl_handshake_wrapup( ssl );
mbedtls_ssl_handshake_wrapup_tls13( ssl );
mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_HANDSHAKE_OVER );
break;

Expand Down

0 comments on commit a6144ca

Please sign in to comment.