예제 #1
0
        public virtual void Clear()
        {
            this.compressionMethod = SecurityCompressionType.None;
            this.serverSettings    = new TlsServerSettings();
            this.clientSettings    = new TlsClientSettings();
            this.handshakeMessages = new TlsStream();
            this.sessionId         = null;
            this.handshakeState    = HandshakeState.None;

            this.ClearKeyInfo();
        }
예제 #2
0
 public Context(SecurityProtocolType securityProtocolType)
 {
     this.SecurityProtocol  = securityProtocolType;
     this.compressionMethod = SecurityCompressionType.None;
     this.serverSettings    = new TlsServerSettings();
     this.clientSettings    = new TlsClientSettings();
     this.handshakeMessages = new TlsStream();
     this.sessionId         = null;
     this.handshakeState    = HandshakeState.None;
     this.random            = RandomNumberGenerator.Create();
 }