void Authenticator_SslServerTrustHandlersAllow(object sender, SharpSvn.Security.SvnSslServerTrustEventArgs e) { Assert.That(e.Break, Is.False); Assert.That(e.Cancel, Is.False); _serverTrustTicked = true; e.AcceptedFailures = e.Failures; }
void Authenticator_SslServerTrustHandlers(object sender, SharpSvn.Security.SvnSslServerTrustEventArgs e) { Assert.That(e.Break, Is.False); Assert.That(e.Cancel, Is.False); Assert.That(e.CommonName.EndsWith(".apache.org")); //Assert.That(DateTime.Parse(e.ValidFrom), Is.LessThan(DateTime.Now)); //Assert.That(DateTime.Parse(e.ValidUntil), Is.GreaterThan(DateTime.Now)); _serverTrustTicked = true; e.AcceptedFailures = e.Failures; }
static void SVN_SSL_Override(object sender, SharpSvn.Security.SvnSslServerTrustEventArgs e) { e.AcceptedFailures = e.Failures; e.Save = true; }