diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h index 02874b509..3c812f25a 100644 --- a/include/polarssl/ssl.h +++ b/include/polarssl/ssl.h @@ -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*/ };