mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8168261: Use server cipher suites preference by default
Reviewed-by: mullan
This commit is contained in:
parent
07991d3f2d
commit
2eb8492163
3 changed files with 123 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -194,10 +194,9 @@ public abstract class SSLContextSpi {
|
|||
*/
|
||||
protected SSLParameters engineGetSupportedSSLParameters() {
|
||||
SSLSocket socket = getDefaultSocket();
|
||||
SSLParameters params = new SSLParameters();
|
||||
SSLParameters params = socket.getSSLParameters();
|
||||
params.setCipherSuites(socket.getSupportedCipherSuites());
|
||||
params.setProtocols(socket.getSupportedProtocols());
|
||||
return params;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue