gnutls-devel
[Top][All Lists]
Advanced

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

Re: TLS over SCTP


From: Nikos Mavrogiannopoulos
Subject: Re: TLS over SCTP
Date: Sat, 02 Aug 2008 11:31:34 +0300
User-agent: Thunderbird 2.0.0.16 (X11/20080724)

Sebastien Decugis wrote:

> In its current state, the gnutls library misses the ability to have
> several gnutls_session_t associated to a single connection object. It is

I depends on how you define the object. You can associate each session
with a transport pointer, which can be anything you like and will be
passed to push/pull functions and also a custom pointer which can be
anything you like and is available to you only.

> a problem on message reception, because we can determine the session to
> which a message belongs only *after* we receive it. This demultiplexing
> operation is not currently allowed in gnutls, AFAIU.

A layer that would demultiplex the streams before should be needed.
That's correct.

> I am considering to implement such support in the gnutls library, either
> as a new session object ("gnutls_session_multistream_t") or as an
> extension of the current session object (adding new fields to it).
> Basically, the differences are:
> -> ability to define a number of independent communication channels
> (bi-directional streams) in the object.
> -> storage for this same number of sessions states (the current
> gnutls_session_t)
> -> different prototype of the push and pull transport callbacks, that
> take an additional parameter (the stream id on which to send / on which
> the message was received)

Can't this be achieved by having a layer of demultiplexing before gnutls
that will use separate pull/push functions and a custom transport
pointer? That we could include in gnutls as helper functions for SCTP.

regards,
Nikos




reply via email to

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