Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8228757

Fail fast if the handshake type is unknown

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      11
    • Resolved In Build:
      b11

      Backports

        Description

        In the SSLSocketInputRecord.decodeInputRecord() implementation:
            // skip the first byte: handshake type
            byte handshakeType = handshakeFrag.get();

        The handshake type was not checked until the handshake message get fully parsed. It's nice to check that the handshake type is known here and fail fast.

        Similar to SSLEngineInputRecord.decodeInputRecord() and DTLSInputRecord.parseHandshakeMessage().

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                xuelei Xue-Lei Fan
                Reporter:
                xuelei Xue-Lei Fan
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: