1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/src/tls/TlsClientProtocol.cs b/crypto/src/tls/TlsClientProtocol.cs
index 118772f67..7a92220dc 100644
--- a/crypto/src/tls/TlsClientProtocol.cs
+++ b/crypto/src/tls/TlsClientProtocol.cs
@@ -1690,7 +1690,15 @@ namespace Org.BouncyCastle.Tls
{
HandshakeMessageOutput message = new HandshakeMessageOutput(HandshakeType.client_hello);
m_clientHello.Encode(m_tlsClientContext, message);
- message.Send(this);
+
+ // TODO[tls13-psk] Calculate the total length of the binders that will be added.
+ int totalBindersLength = 0;
+
+ message.PrepareClientHello(m_handshakeHash, totalBindersLength);
+
+ // TODO[tls13-psk] Calculate any PSK binders and write them to 'message' here.
+
+ message.SendClientHello(this, m_handshakeHash, totalBindersLength);
}
/// <exception cref="IOException"/>
|