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

Fail fast if the handshake type is unknown

XMLWordPrintable

    • 11
    • b11

        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().

              xuelei Xuelei Fan
              xuelei Xuelei Fan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: