diff options
author | Jouni Malinen <j@w1.fi> | 2009-12-06 12:02:28 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-12-06 12:02:28 +0200 |
commit | f721aed4b1baef8ad9336c80f8835f3f3d504d68 (patch) | |
tree | 36fbd6492d27617c6038afc99eb458f3409b2aa8 /src | |
parent | 36b8ed28245eeb52c769ef4fe742d9d26a07182e (diff) | |
download | external_wpa_supplicant_8_ti-f721aed4b1baef8ad9336c80f8835f3f3d504d68.zip external_wpa_supplicant_8_ti-f721aed4b1baef8ad9336c80f8835f3f3d504d68.tar.gz external_wpa_supplicant_8_ti-f721aed4b1baef8ad9336c80f8835f3f3d504d68.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.
Diffstat (limited to 'src')
-rw-r--r-- | src/eap_server/eap_tls_common.c | 2 |
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 d26aa23..d70aff6 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; |