mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
Change to more appropriate pointer declaration in ECHDE-PSK part of ssl_write_client_key_exchange()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
c530aa6b4e
commit
d8420cad31
|
|
@ -3096,7 +3096,8 @@ ecdh_calc_secret:
|
|||
* - the PSK itself
|
||||
*/
|
||||
unsigned char *p = ssl->handshake->premaster;
|
||||
unsigned char *p_end = p + sizeof( ssl->handshake->premaster );
|
||||
const unsigned char* const p_end = p +
|
||||
sizeof( ssl->handshake->premaster );
|
||||
size_t zlen = 0;
|
||||
|
||||
/* Perform ECDH computation after the uint16 reserved for the length */
|
||||
|
|
|
|||
Loading…
Reference in a new issue