提交 6a279c04 编写于 作者: X xuelei

8218580: endpoint identification algorithm should be case-insensitive

Reviewed-by: jnimeh
Contributed-by: verghese@amazon.com
上级 0aad3f39
/* /*
* Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -1399,7 +1399,7 @@ final class ClientHandshaker extends Handshaker { ...@@ -1399,7 +1399,7 @@ final class ClientHandshaker extends Handshaker {
String sessionIdentityAlg = String sessionIdentityAlg =
session.getEndpointIdentificationAlgorithm(); session.getEndpointIdentificationAlgorithm();
if (!Objects.equals(identityAlg, sessionIdentityAlg)) { if (!identityAlg.equalsIgnoreCase(sessionIdentityAlg)) {
if (debug != null && Debug.isOn("session")) { if (debug != null && Debug.isOn("session")) {
System.out.println("%% can't resume, endpoint id" + System.out.println("%% can't resume, endpoint id" +
......
/* /*
* Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -705,7 +705,7 @@ final class ServerHandshaker extends Handshaker { ...@@ -705,7 +705,7 @@ final class ServerHandshaker extends Handshaker {
String sessionIdentityAlg = String sessionIdentityAlg =
previous.getEndpointIdentificationAlgorithm(); previous.getEndpointIdentificationAlgorithm();
if (!Objects.equals(identityAlg, sessionIdentityAlg)) { if (!identityAlg.equalsIgnoreCase(sessionIdentityAlg)) {
if (debug != null && Debug.isOn("session")) { if (debug != null && Debug.isOn("session")) {
System.out.println("%% can't resume, endpoint id" System.out.println("%% can't resume, endpoint id"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册