gnutls-devel
[Top][All Lists]
Advanced

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

[WIP] DTLS 1.0 preliminary patches


From: Jonathan Bastien-Filiatrault
Subject: [WIP] DTLS 1.0 preliminary patches
Date: Tue, 28 Jul 2009 17:37:12 -0400
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

Hello,

Being interested in DTLS and GnuTLS I have decided to try to implement
DTLS in the GnuTLS library.

I have managed to send a valid DTLS ClientHello using a modified GnuTLS
in a relatively non-intrusive way (but which may break the ABI since it
messes with existing enum values). The OpenSSL implementation responds
to this ClientHello with a HelloVerifyMessage and Wireshark considers
the packet valid DTLS.

You may find my patches at this URL: http://x2a.org/pub/dtls/

Unfortunately the lower end of the record layer and buffer/transport
layer seems rather messy to my untrained eye. I am having trouble
imagining implementing UDP buffering easely. I would need to buffer the
whole packet then iterate over the records contained within the packet.

The main problem seems to be layering violations between the handshake,
record and buffer layers. Would it be better if _gnutls_{recv,send}_int
dealt with whole records (and possibly return prematurely if more data
or buffer space is required) ? _gnutls_{recv,send}_int could also deal
with the SSLv2.0 record encapsulation. The handhake layer would
therefore deal with those two functions for sending/receiving from the
lower layer. The handshake layer buffering would also be moved to
gnutls_handshake.c.

Am I making any sense ?

http://lists.gnupg.org/pipermail/gnutls-dev/2005-May/000864.html
documents the previous attempt.

Comments and suggestions welcome...
Cheers,
Jonathan





reply via email to

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