Esempio n. 1
0
        public unsafe GLib.TlsInteractionResult RequestCertificate(GLib.TlsConnection connection, GLib.TlsCertificateRequestFlags flags, GLib.Cancellable cancellable)
        {
            IntPtr error   = IntPtr.Zero;
            int    raw_ret = g_tls_interaction_request_certificate(Handle, connection == null ? IntPtr.Zero : connection.Handle, (int)flags, cancellable == null ? IntPtr.Zero : cancellable.Handle, out error);

            GLib.TlsInteractionResult ret = (GLib.TlsInteractionResult)raw_ret;
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
Esempio n. 2
0
        public unsafe GLib.TlsInteractionResult RequestCertificateFinish(GLib.IAsyncResult result)
        {
            IntPtr error   = IntPtr.Zero;
            int    raw_ret = g_tls_interaction_request_certificate_finish(Handle, result == null ? IntPtr.Zero : ((result is GLib.Object) ? (result as GLib.Object).Handle : (result as GLib.AsyncResultAdapter).Handle), out error);

            GLib.TlsInteractionResult ret = (GLib.TlsInteractionResult)raw_ret;
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
Esempio n. 3
0
        public unsafe GLib.TlsInteractionResult InvokeAskPassword(GLib.TlsPassword password, GLib.Cancellable cancellable)
        {
            IntPtr error   = IntPtr.Zero;
            int    raw_ret = g_tls_interaction_invoke_ask_password(Handle, password == null ? IntPtr.Zero : password.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, out error);

            GLib.TlsInteractionResult ret = (GLib.TlsInteractionResult)raw_ret;
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }