DTLS protocol version 1.2

DTLS protocol version 1.2 was published in January 2012 and is copyrighted by the Internet Engineering Task Force (IETF). This section shares code samples that illustrate the changes in version 1.2.

The following code illustrates the TLS 1.2 handshake message header. This format supports:

  • Message fragmentation
  • Message loss
  • Reordering
    // Copyright (c) 2012 IETF Trust and the persons identified as       authors of the code. All rights reserved.
    struct     {
      HandshakeType msg_type;
      uint24 length;
      uint16 message_seq;                           // New field
      uint24 fragment_offset;                       // New field
      uint24 fragment_length;                       // New field
      select (HandshakeType)  { case hello_request: HelloRequest; case client_hello: ClientHello; case hello_verify_request: HelloVerifyRequest; ...

Get Java 9: Building Robust Modular Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.