Skip to content

Commit

Permalink
Change maxCertificateChainLength to be a local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
haimaychao committed Oct 27, 2023
1 parent b351b41 commit d9f669f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ final class SSLConfiguration implements Cloneable {
static final int maxHandshakeMessageSize = GetIntegerAction.privilegedGetProperty(
"jdk.tls.maxHandshakeMessageSize", 32768);

// Maximum allowed certificate chain length
static final int maxCertificateChainLength;

// Limit the certificate chain length accepted from clients
static final int maxInboundClientCertChainLen;

Expand Down Expand Up @@ -151,7 +148,7 @@ final class SSLConfiguration implements Cloneable {
} else {
globalPropSet = true;
}
maxCertificateChainLength = certLen;
int maxCertificateChainLength = certLen;

// Default for jdk.tls.server.maxInboundCertificateChainLength is 8
Integer inboundClientLen = GetIntegerAction.privilegedGetProperty(
Expand Down

0 comments on commit d9f669f

Please sign in to comment.