Dr. Stephen Henson 741c9959f6 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.

(cherry picked from commit 173e72e64c6a07ae97660c322396b66215009f33)
2013-09-18 13:46:02 +01:00
..
2012-04-16 17:43:02 +00:00
2013-09-18 13:46:02 +01:00
2013-09-18 13:46:02 +01:00
2013-09-18 13:46:02 +01:00
2013-09-18 13:46:02 +01:00
2012-06-03 22:03:37 +00:00
2009-04-21 22:20:12 +00:00
2013-02-06 13:56:12 +00:00
2013-02-06 13:56:12 +00:00
2013-09-18 13:46:02 +01:00
2013-09-18 13:46:02 +01:00
2013-09-18 13:46:02 +01:00
2013-02-26 17:05:39 +00:00
2013-09-18 13:46:02 +01:00
2013-09-16 18:40:53 +01:00
2002-07-10 07:01:54 +00:00
2011-11-21 22:52:01 +00:00
2013-09-18 13:46:02 +01:00
2011-10-25 12:52:47 +00:00
2013-07-31 16:38:43 +01:00
2013-08-19 14:13:38 +01:00
2013-08-19 14:13:38 +01:00
2013-07-03 11:53:30 +01:00
2013-08-19 14:13:38 +01:00
2013-09-18 13:46:02 +01:00
2013-09-16 18:40:53 +01:00
2012-05-29 17:27:48 +00:00
2011-11-25 00:18:10 +00:00
2011-05-11 13:37:52 +00:00
2012-01-05 14:30:08 +00:00
2013-07-03 11:53:30 +01:00
2011-05-11 13:37:52 +00:00
2013-09-18 13:46:02 +01:00
2011-05-11 13:37:52 +00:00
2009-12-27 22:59:09 +00:00
2011-05-11 13:37:52 +00:00