private void ProcessNewSessionTicket(IByteBuffer body) { long ticketLifetimeHint = body.ReadUnsignedInt(); byte[] ticket = new byte[body.ReadUnsignedShort()]; body.ReadBytes(body); NewSessionTicket newSessionTicket = new NewSessionTicket(ticketLifetimeHint, ticket); clientState.Client.NotifyNewSessionTicket(newSessionTicket); }
protected virtual void SendNewSessionTicketMessage(NewSessionTicket newSessionTicket) { if (newSessionTicket == null) { throw new TlsFatalAlert(80); } HandshakeMessage handshakeMessage = new HandshakeMessage(4); newSessionTicket.Encode(handshakeMessage); handshakeMessage.WriteToRecordStream(this); }
public override void NotifyNewSessionTicket(NewSessionTicket newSessionTicket) { base.NotifyNewSessionTicket(newSessionTicket); }
public virtual void NotifyNewSessionTicket(NewSessionTicket newSessionTicket) { }