RFR: 8332524: Instead of printing TLSv1.3, it is showing TLS13

Nibedita Jena duke at openjdk.org
Mon Jun 17 14:27:22 UTC 2024


While doing SSL/TLS connection, start the Client with protocol TLSv1.2 and Server with protocol TLSv1.3. During handshake process, the exception shows as "javax.net.ssl.SSLHandshakeException: The client supported protocol versions [TLSv1.2] are not accepted by server preferences [TLS13]", where printing as TLS13 and not formatted to TLSv1.3.

After the given change, the protocol version is correctly printing:
javax.net.ssl.SSLHandshakeException: (protocol_version) The client supported protocol versions [TLSv1.2] are not accepted by server preferences [TLSv1.3]

-------------

Commit messages:
 - 8332524: Instead of printing TLSv1.3, it is showing TLS13

Changes: https://git.openjdk.org/jdk/pull/19749/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19749&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8332524
  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/19749.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19749/head:pull/19749

PR: https://git.openjdk.org/jdk/pull/19749



More information about the security-dev mailing list