From 2d280660f30fe7653ebdc5d1e3d991e20c8bc92f Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 4 Oct 2021 18:18:43 +0700 Subject: Fixes for new_session_ticket - see https://github.com/bcgit/bc-csharp/issues/317 --- crypto/src/tls/DtlsServerProtocol.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto/src/tls/DtlsServerProtocol.cs') diff --git a/crypto/src/tls/DtlsServerProtocol.cs b/crypto/src/tls/DtlsServerProtocol.cs index 5637d4106..99c47ba1b 100644 --- a/crypto/src/tls/DtlsServerProtocol.cs +++ b/crypto/src/tls/DtlsServerProtocol.cs @@ -313,6 +313,11 @@ namespace Org.BouncyCastle.Tls if (state.expectSessionTicket) { + /* + * TODO[new_session_ticket] Check the server-side rules regarding the session ID, since the client + * is going to ignore any session ID it received once it sees the new_session_ticket message. + */ + NewSessionTicket newSessionTicket = state.server.GetNewSessionTicket(); byte[] newSessionTicketBody = GenerateNewSessionTicket(state, newSessionTicket); handshake.SendMessage(HandshakeType.new_session_ticket, newSessionTicketBody); -- cgit 1.5.1