Merge remote-tracking branch 'origin/pr/563' into baremetal

This commit is contained in:
Simon Butcher 2019-05-24 15:06:16 +01:00
commit 5a790f9214
5 changed files with 347 additions and 210 deletions

View file

@ -4298,7 +4298,10 @@ static int ssl_parse_certificate_verify( mbedtls_ssl_context *ssl )
}
/* Calculate hash and verify signature */
ssl->handshake->calc_verify( ssl, hash );
{
size_t dummy_hlen;
ssl->handshake->calc_verify( ssl, hash, &dummy_hlen );
}
if( ( ret = mbedtls_pk_verify( &ssl->session_negotiate->peer_cert->pk,
md_alg, hash_start, hashlen,