projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36b8ed2
)
Increase EAP server extra room for encryption overhead (for GnuTLS)
author
Jouni Malinen
<j@w1.fi>
Sun, 6 Dec 2009 10:02:28 +0000
(12:02 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sun, 6 Dec 2009 10:02:28 +0000
(12:02 +0200)
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.
src/eap_server/eap_tls_common.c
patch
|
blob
|
history
diff --git
a/src/eap_server/eap_tls_common.c
b/src/eap_server/eap_tls_common.c
index
d26aa23
..
d70aff6
100644
(file)
--- 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 +
2
00;
+ buf_len = plain_len +
3
00;
buf = wpabuf_alloc(buf_len);
if (buf == NULL)
return NULL;