File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
tls/src/main/java/org/bouncycastle/tls Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -420,10 +420,11 @@ protected byte[] generateClientHello(ClientHandshakeState state)
420
420
421
421
TlsSession sessionToResume = offeringDTLSv12Minus ? client .getSessionToResume () : null ;
422
422
423
- boolean fallback = client .isFallback ();
424
-
423
+ // NOTE: Client is free to modify the cipher suites up until getSessionToResume
425
424
state .offeredCipherSuites = client .getCipherSuites ();
426
425
426
+ boolean fallback = client .isFallback ();
427
+
427
428
state .clientExtensions = TlsExtensionsUtils .ensureExtensionsInitialised (client .getClientExtensions ());
428
429
429
430
final boolean shouldUseEMS = client .shouldUseExtendedMasterSecret ();
Original file line number Diff line number Diff line change @@ -1808,10 +1808,11 @@ protected void sendClientHello()
1808
1808
1809
1809
TlsSession sessionToResume = offeringTLSv12Minus ? tlsClient .getSessionToResume () : null ;
1810
1810
1811
- boolean fallback = tlsClient .isFallback ();
1812
-
1811
+ // NOTE: Client is free to modify the cipher suites up until getSessionToResume
1813
1812
int [] offeredCipherSuites = tlsClient .getCipherSuites ();
1814
1813
1814
+ boolean fallback = tlsClient .isFallback ();
1815
+
1815
1816
this .clientExtensions = TlsExtensionsUtils .ensureExtensionsInitialised (tlsClient .getClientExtensions ());
1816
1817
1817
1818
final boolean shouldUseEMS = tlsClient .shouldUseExtendedMasterSecret ();
You can’t perform that action at this time.
0 commit comments