- Premaster should have a maximum of MPI size

This commit is contained in:
Paul Bakker 2012-10-24 14:30:00 +00:00
parent 21654f392e
commit df2bb75c28

View File

@ -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*/
};