diff options
Diffstat (limited to 'crypto/src/tls/TlsServerProtocol.cs')
-rw-r--r-- | crypto/src/tls/TlsServerProtocol.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/src/tls/TlsServerProtocol.cs b/crypto/src/tls/TlsServerProtocol.cs index a7e0e0120..2afb625a8 100644 --- a/crypto/src/tls/TlsServerProtocol.cs +++ b/crypto/src/tls/TlsServerProtocol.cs @@ -332,7 +332,11 @@ namespace Org.BouncyCastle.Tls agreement.ReceivePeerValue(clientShare.KeyExchange); securityParameters.m_sharedSecret = agreement.CalculateSecret(); - TlsUtilities.Establish13PhaseSecrets(m_tlsServerContext); + + // TODO[tls13-psk] Use PSK early secret if negotiated + TlsSecret pskEarlySecret = null; + + TlsUtilities.Establish13PhaseSecrets(m_tlsServerContext, pskEarlySecret); } this.m_serverExtensions = serverEncryptedExtensions; |