From aa5258919b6f52ae0d1eec657a421784f1b6241e Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 28 Jul 2021 19:53:31 +0700 Subject: Set psk_key_exchange_modes extension --- crypto/src/tls/TlsUtilities.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crypto/src/tls') diff --git a/crypto/src/tls/TlsUtilities.cs b/crypto/src/tls/TlsUtilities.cs index 8df787b6f..b03548398 100644 --- a/crypto/src/tls/TlsUtilities.cs +++ b/crypto/src/tls/TlsUtilities.cs @@ -5481,6 +5481,7 @@ namespace Org.BouncyCastle.Tls int bindersSize = OfferedPsks.GetBindersSize(pskExternals); AddPreSharedKeyToClientExtensions(pskExternals, clientExtensions); + TlsExtensionsUtilities.AddPskKeyExchangeModesExtension(clientExtensions, pskKeyExchangeModes); return new OfferedPsks.BindersConfig(pskExternals, pskKeyExchangeModes, pskEarlySecrets, bindersSize); } @@ -5520,6 +5521,7 @@ namespace Org.BouncyCastle.Tls } AddPreSharedKeyToClientExtensions(result.m_psks, clientExtensions); + // NOTE: psk_key_exchange_modes should already be in 'clientExtensions' from the ClientHello return result; } -- cgit 1.4.1