void DialogSslClientCertificateHandler(Object sender, SvnSslClientCertificateEventArgs e)
        {
            if (Reinvoke(sender, e, DialogSslClientCertificateHandler))
            {
                return;
            }

            using (SslClientCertificateFileDialog dlg = new SslClientCertificateFileDialog())
            {
                dlg.Text = Strings.ConnectToSubversion;
                dlg.descriptionBox.Text    = SharpSvnGui.MakeDescription(e.Realm, Strings.ACertificateFileIsRequiredForAccessingServerXatY, Strings.ACertificateFileIsRequiredForAccessingServerX);
                dlg.descriptionBox.Visible = true;
                dlg.rememberCheck.Enabled  = e.MaySave;

                DialogResult r = RunDialog(dlg);

                if (r != DialogResult.OK)
                {
                    e.Break = true;
                    return;
                }

                e.CertificateFile = dlg.fileBox.Text;
                e.Save            = e.MaySave && dlg.rememberCheck.Checked;
            }
        }
Esempio n. 2
0
        static void AuthenticationSslClientCertificateHandlers(object sender, SvnSslClientCertificateEventArgs e)
        {
            string file;
            bool   save;

            e.Cancel          = !SslClientCertAuthenticationPrompt(e.Realm, e.MaySave, out file, out save);
            e.Save            = save;
            e.CertificateFile = file;
        }
Esempio n. 3
0
		void AuthenticationSslClientCertificateHandlers (object sender, SvnSslClientCertificateEventArgs e)
		{
			string file;
			bool save;
			e.Cancel = !SslClientCertAuthenticationPrompt (e.Realm, e.MaySave, out file, out save);
			e.Save = save;
			e.CertificateFile = file;
		}
Esempio n. 4
0
 void SslClientCertificateHandlers(object sender, SvnSslClientCertificateEventArgs e)
 {
     e.Save = true;
     e.CertificateFile = "D:\\Proyectos\\personal\\SvnMSBuildTasks\\certificate.cer";
 }