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

      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: