Dr. Stephen Henson 173e72e64c DTLS revision.
Revise DTLS code. There was a *lot* of code duplication in the
DTLS code that generates records. This makes it harder to maintain and
sometimes a TLS update is omitted by accident from the DTLS code.

Specifically almost all of the record generation functions have code like
this:

some_pointer = buffer + HANDSHAKE_HEADER_LENGTH;
... Record creation stuff ...
set_handshake_header(ssl, SSL_MT_SOMETHING, message_len);

...

write_handshake_message(ssl);

Where the "Record creation stuff" is identical between SSL/TLS and DTLS or
in some cases has very minor differences.

By adding a few fields to SSL3_ENC to include the header length, some flags
and function pointers for handshake header setting and handshake writing the
code can cope with both cases.

Note: although this passes "make test" and some simple DTLS tests there may
be some minor differences in the DTLS code that have to be accounted for.
2013-03-18 14:36:43 +00:00
..
2012-04-16 17:42:36 +00:00
2013-03-18 14:36:43 +00:00
2013-03-18 14:36:43 +00:00
2013-03-18 14:36:43 +00:00
2013-03-11 13:05:07 +00:00
2013-03-18 14:36:43 +00:00
2011-12-31 22:59:57 +00:00
2012-07-05 13:20:19 +00:00
2009-04-23 16:32:42 +00:00
2013-02-21 18:17:38 +00:00
2013-02-06 14:16:55 +00:00
2013-02-06 14:16:55 +00:00
2013-03-18 14:36:43 +00:00
2013-02-21 18:30:04 +00:00
2013-03-18 14:36:43 +00:00
2013-03-18 14:36:43 +00:00
2013-02-26 16:46:58 +00:00
2013-03-18 14:36:43 +00:00
2010-06-12 14:13:23 +00:00
2002-07-10 07:01:54 +00:00
2011-11-21 22:52:13 +00:00
2013-03-18 14:36:43 +00:00
2012-12-07 12:41:13 +00:00
2012-11-19 02:46:46 +00:00
2013-03-18 14:36:43 +00:00
2012-06-07 13:20:47 +00:00
2011-11-25 00:17:44 +00:00
2012-07-05 13:20:02 +00:00
2012-12-26 15:23:42 +00:00
2013-02-11 18:29:05 +00:00
2013-03-18 14:36:43 +00:00
2009-12-27 22:58:55 +00:00
2013-03-11 13:05:07 +00:00
2011-12-14 22:17:06 +00:00