mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
- Premaster should have a maximum of MPI size
This commit is contained in:
@@ -373,7 +373,8 @@ struct _ssl_handshake_params
|
||||
size_t pmslen; /*!< premaster length */
|
||||
|
||||
unsigned char randbytes[64]; /*!< random bytes */
|
||||
unsigned char premaster[256]; /*!< premaster secret */
|
||||
unsigned char premaster[POLARSSL_MPI_MAX_SIZE];
|
||||
/*!< premaster secret */
|
||||
|
||||
int resume; /*!< session resume indicator*/
|
||||
};
|
||||
|
Reference in New Issue
Block a user