static IntPtr OnAuthSslClientCertPrompt (ref IntPtr cred, IntPtr baton, string realm, bool may_save, IntPtr pool) { var data = new LibSvnClient.svn_auth_cred_ssl_client_cert_t (); bool ms; if (SslClientCertAuthenticationPrompt (realm, may_save, out data.cert_file, out ms)) { data.may_save = ms; cred = apr.pcalloc (pool, data); return IntPtr.Zero; } else { data.cert_file = ""; data.may_save = false; cred = apr.pcalloc (pool, data); return GetCancelError (); } }
static IntPtr OnAuthSslClientCertPrompt (ref IntPtr cred, IntPtr baton, [MarshalAs (UnmanagedType.LPStr)] string realm, [MarshalAs (UnmanagedType.SysInt)] int may_save, IntPtr pool) { LibSvnClient.svn_auth_cred_ssl_client_cert_t data = new LibSvnClient.svn_auth_cred_ssl_client_cert_t (); bool ms; if (SslClientCertAuthenticationPrompt (realm, may_save != 0, out data.cert_file, out ms)) { data.may_save = ms ? 1 : 0; cred = apr.pcalloc (pool, data); return IntPtr.Zero; } else { data.cert_file = ""; data.may_save = 0; cred = apr.pcalloc (pool, data); return GetCancelError (); } }