Beispiel #1
0
 public static bool TryGetHandshakeMessage <T>(this TlsPacket.TlsHandshakeProtocol handshake, out T protocol) where T : class
 {
     foreach (var msg in handshake.HandshakeMessages)
     {
         if (msg.Body is T x)
         {
             protocol = x;
             return(true);
         }
     }
     protocol = default;
     return(false);
 }
Beispiel #2
0
 public TlsHandshake(KaitaiStream p__io, TlsPacket.TlsHandshakeProtocol p__parent = null, TlsPacket p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     _read();
 }