From df2bb75c2830ba4bfd8d4ce9fa205b3f8b335af2 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Wed, 24 Oct 2012 14:30:00 +0000
Subject: [PATCH] - Premaster should have a maximum of MPI size
---
include/polarssl/ssl.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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*/
};