public override void StartHandshake() { InitializeConnection(); ssl = new MonoBtlsSsl(ctx); bio = new MonoBtlsBioMono(this); ssl.SetBio(bio); if (IsServer) { if (nativeServerCertificate != null) { SetPrivateCertificate(nativeServerCertificate); } } else { ssl.SetServerName(ServerName); } if (Options.AllowRenegotiation) { ssl.SetRenegotiateMode(MonoBtlsSslRenegotiateMode.FREELY); } }
public override void StartHandshake() { InitializeConnection(); ssl = new MonoBtlsSsl(ctx); bio = new MonoBtlsBioMono(this); ssl.SetBio(bio); if (IsServer) { SetPrivateCertificate(nativeServerCertificate); } else { ssl.SetServerName(ServerName); } }