mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-01 09:10:03 +00:00
ssl: Remove key exporter bug workaround
It is no longer necessary to cast the randbytes to non-const when exporting keys.
This commit is contained in:
parent
63d813d258
commit
fa63645ec8
@ -1427,9 +1427,8 @@ static int ssl_populate_transform( mbedtls_ssl_transform *transform,
|
|||||||
master, keyblk,
|
master, keyblk,
|
||||||
mac_key_len, keylen,
|
mac_key_len, keylen,
|
||||||
iv_copy_len,
|
iv_copy_len,
|
||||||
/* work around bug in exporter type */
|
randbytes + 32,
|
||||||
(unsigned char *) randbytes + 32,
|
randbytes,
|
||||||
(unsigned char *) randbytes,
|
|
||||||
tls_prf_get_type( tls_prf ) );
|
tls_prf_get_type( tls_prf ) );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user