[gnutls-devel] [sr #108712] mutiple DTLS records in one UDP packet not handled correctly
Andreas Schultz
INVALID.NOREPLY at gnu.org
Sun Jan 4 16:58:22 CET 2015
Follow-up Comment #2, sr #108712 (project gnutls):
> From what I understand from your description gnutls has read 251 bytes out
of a 16732 UDP packet
No, gnutls told the pull function that the supplied buffer is 16732 bytes
long, the pull function
reads a UDP packet of 251 bytes and copies those 251 bytes into the supplied
buffer.
The 251 byte UDP packet does contain a total of three (3) DTLS records.
The first record is 158 bytes long and does contain the last fragment of the
server certificate, the second record contains a certificate request and the
third record is the server hello done.
gnutls now processes only the first record, ignores the two others and return
GNUTLS_E_AGAIN. There is no data in the socket buffer left at this point, all
of it was passed to gnutls and is no in gnutls internal buffers.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/support/?108712>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
More information about the Gnutls-devel
mailing list