Commit 2fa9400
committed
Fix a bug where SslHandler does not handle SSLv2Hello correctly
Motivation:
When a SSLv2Hello message is received, SSLEngine expects the application buffer size to be more than 30KB which is larger than what SslBufferPool can provide. SSLEngine will always return with BUFFER_OVERFLOW status, blocking the SSL session from continuing the handshake.
Modifications:
When SSLEngine.getSession().getApplicationBufferSize() returns a value larger than what SslBufferPool provides, allocate a temporary heap buffer.
Result:
SSLv2Hello is handled correctly.1 parent 129c17a commit 2fa9400
1 file changed
+15
-5
lines changedLines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1268 | 1268 | | |
1269 | 1269 | | |
1270 | 1270 | | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
1271 | 1281 | | |
1272 | | - | |
| 1282 | + | |
1273 | 1283 | | |
1274 | 1284 | | |
1275 | 1285 | | |
| |||
1283 | 1293 | | |
1284 | 1294 | | |
1285 | 1295 | | |
1286 | | - | |
| 1296 | + | |
1287 | 1297 | | |
1288 | 1298 | | |
1289 | 1299 | | |
1290 | 1300 | | |
1291 | 1301 | | |
1292 | 1302 | | |
1293 | | - | |
| 1303 | + | |
1294 | 1304 | | |
1295 | 1305 | | |
1296 | 1306 | | |
1297 | 1307 | | |
1298 | | - | |
| 1308 | + | |
1299 | 1309 | | |
1300 | | - | |
| 1310 | + | |
1301 | 1311 | | |
1302 | 1312 | | |
1303 | 1313 | | |
| |||
0 commit comments