aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-06 10:02:28 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-09 18:56:32 (GMT)
commit77b438453294969ab641eec27189b9acf9139eca (patch)
treee87526f9975e87a0e4242430dd89621b3c868ea3
parent48308ee126144a7bcad7320acb3aea7a0ec2fda1 (diff)
downloadhostap-06-77b438453294969ab641eec27189b9acf9139eca.zip
hostap-06-77b438453294969ab641eec27189b9acf9139eca.tar.gz
hostap-06-77b438453294969ab641eec27189b9acf9139eca.tar.bz2
Increase EAP server extra room for encryption overhead (for GnuTLS)
This fixes issues with some GnuTLS versions that seem to be adding quite a bit of extra data into TLS messages. The EAP server code is now using the same 300 byte extra room that was already used in the EAP peer implementation. (cherry picked from commit f721aed4b1baef8ad9336c80f8835f3f3d504d68)
-rw-r--r--src/eap_server/eap_tls_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_server/eap_tls_common.c b/src/eap_server/eap_tls_common.c
index befc1bf..bda1184 100644
--- a/src/eap_server/eap_tls_common.c
+++ b/src/eap_server/eap_tls_common.c
@@ -344,7 +344,7 @@ struct wpabuf * eap_server_tls_encrypt(struct eap_sm *sm,
size_t buf_len;
/* reserve some extra room for encryption overhead */
- buf_len = plain_len + 200;
+ buf_len = plain_len + 300;
buf = wpabuf_alloc(buf_len);
if (buf == NULL)
return NULL;