185 // By default, allow such legacy hello messages. |
185 // By default, allow such legacy hello messages. |
186 static final boolean allowLegacyHelloMessages = Debug.getBooleanProperty( |
186 static final boolean allowLegacyHelloMessages = Debug.getBooleanProperty( |
187 "sun.security.ssl.allowLegacyHelloMessages", true); |
187 "sun.security.ssl.allowLegacyHelloMessages", true); |
188 |
188 |
189 // To prevent the TLS renegotiation issues, by setting system property |
189 // To prevent the TLS renegotiation issues, by setting system property |
190 // "jdk.tls.rejectClientInitializedRenego" to true, applications in server |
190 // "jdk.tls.rejectClientInitiatedRenegotiation" to true, applications in |
191 // side can disable all client initiated SSL renegotiations regardless |
191 // server side can disable all client initiated SSL renegotiations |
192 // of the support of TLS protocols. |
192 // regardless of the support of TLS protocols. |
193 // |
193 // |
194 // By default, allow client initiated renegotiations. |
194 // By default, allow client initiated renegotiations. |
195 static final boolean rejectClientInitiatedRenego = |
195 static final boolean rejectClientInitiatedRenego = |
196 Debug.getBooleanProperty( |
196 Debug.getBooleanProperty( |
197 "jdk.tls.rejectClientInitializedRenego", false); |
197 "jdk.tls.rejectClientInitiatedRenegotiation", false); |
198 |
198 |
199 // need to dispose the object when it is invalidated |
199 // need to dispose the object when it is invalidated |
200 boolean invalidated; |
200 boolean invalidated; |
201 |
201 |
202 Handshaker(SSLSocketImpl c, SSLContextImpl context, |
202 Handshaker(SSLSocketImpl c, SSLContextImpl context, |