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

Misleading code in SSLCipher

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      11
    • Resolved In Build:
      b22
    • Verification:
      Not verified

      Backports

        Description

        One potential code issue in SSLCipher.java:

            SSLWriteCipher createWriteCipher(Authenticator authenticator,
                    ProtocolVersion protocolVersion,
                    SecretKey key, IvParameterSpec iv,
                    SecureRandom random) throws GeneralSecurityException {
        - if (readCipherGenerators.length == 0) {
        + if (writeCipherGenerators.length == 0) {
                    return null;
                }

        The code should have no impact, but it is nice to make an update for readability.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: