help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gnutls] Re: TLS message boundary


From: Simon Josefsson
Subject: [Help-gnutls] Re: TLS message boundary
Date: Thu, 02 Mar 2006 10:08:53 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Ang Way Chuang <address@hidden> writes:

> Hi all,
>     Does TLS/SSL preserve data message boundary like SCTP? Is assuming 
> whatever
> message that is sent and received through gnutls_record_{send,recv} always
> respect data message boundary a correct assumption?

Hi!  No, that is an incorrect assumption.  See RFC 2246:

   The record layer fragments information blocks into TLSPlaintext
   records carrying data in chunks of 2^14 bytes or less. Client message
   boundaries are not preserved in the record layer (i.e., multiple
   client messages of the same ContentType may be coalesced into a
   single TLSPlaintext record, or a single message may be fragmented
   across several records).

You can of course use a TLV format inside the TLS channel to get what
you want.

Regards,
Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]