Work around bug in key exporter API

https://github.com/ARMmbed/mbedtls/issues/2759
This commit is contained in:
Manuel Pégourié-Gonnard 2019-07-25 13:17:38 +02:00 committed by Jarno Lamsa
parent cba40d92bd
commit 344460c913

View File

@ -1336,8 +1336,9 @@ static int ssl_populate_transform( mbedtls_ssl_transform *transform,
session->master, keyblk,
mac_key_len, keylen,
iv_copy_len,
handshake->randbytes + 32,
handshake->randbytes,
/* work around bug in exporter type */
(unsigned char *) handshake->randbytes + 32,
(unsigned char *) handshake->randbytes,
tls_prf_get_type( handshake->tls_prf ) );
}
#endif