morningyi / as3crypto

Automatically exported from code.google.com/p/as3crypto
0 stars 0 forks source link

TLSEngine produces incorrect packets for data longer than 16KB. #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Attempt to send data with size bigger than 16384 bytes fails.

What is the expected output? What do you see instead?
The library should send data reliably no matter its size. However, in case 
of longer packets, the SSL server reports it receives packets with invalid 
length. For example, openssl s_server prints ERROR 3428:error:1408F092:SSL 
routines:SSL3_GET_RECORD:data length too long:.\ssl\s3_pkt.c:446

What version of the product are you using? On what operating system?
This issue is seen in version 1.3, revision 27.

Please provide any additional information below.
I've inspected the sources and found a solution. The fix is in the 
attached file.

Original issue reported on code.google.com by vlado.gr...@gmail.com on 28 Apr 2009 at 2:08

Attachments: