Ejemplo n.º 1
0
 public Context(string pub_crt_filepath, string prv_pfx_filepath, bool force_ClientCert = false, bool force_ServerNameCheck = false, bool enable_tls13 = true)
 {
     _pubkeyfile     = pub_crt_filepath;
     _prvkeyfile     = prv_pfx_filepath;
     _serverCertType = new X509Certificate2(_pubkeyfile).PublicKey.Oid.FriendlyName;
     _params         = new NegotiationParams(force_ClientCert, force_ServerNameCheck, enable_tls13);
 }
Ejemplo n.º 2
0
 public Session13(NegotiationParams para, string pub_crt_filepath, string prv_pfx_filepath) : base(para, pub_crt_filepath, prv_pfx_filepath)
 {
 }
Ejemplo n.º 3
0
 public Session12(NegotiationParams para, string pub_crt_filepath, string prv_pfx_filepath)
 {
     _params     = para;
     _pubkeyfile = pub_crt_filepath;
     _prvkeyfile = prv_pfx_filepath;
 }