- Premaster should have a maximum of MPI size
This commit is contained in:
parent
21654f392e
commit
df2bb75c28
1 changed files with 2 additions and 1 deletions
|
@ -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*/
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue