예제 #1
0
 static void RequestCertificateAsync_cb(IntPtr inst, IntPtr connection, int flags, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
 {
     try {
         TlsInteraction __obj = GLib.Object.GetObject(inst, false) as TlsInteraction;
         GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker(cb, user_data);
         __obj.OnRequestCertificateAsync(GLib.Object.GetObject(connection) as GLib.TlsConnection, (GLib.TlsCertificateRequestFlags)flags, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
예제 #2
0
 static void AskPasswordAsync_cb(IntPtr inst, IntPtr password, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
 {
     try {
         TlsInteraction __obj = GLib.Object.GetObject(inst, false) as TlsInteraction;
         GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker(cb, user_data);
         __obj.OnAskPasswordAsync(GLib.Object.GetObject(password) as GLib.TlsPassword, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
예제 #3
0
        static int AskPassword_cb(IntPtr inst, IntPtr password, IntPtr cancellable, out IntPtr error)
        {
            error = IntPtr.Zero;

            try {
                TlsInteraction            __obj = GLib.Object.GetObject(inst, false) as TlsInteraction;
                GLib.TlsInteractionResult __result;
                __result = __obj.OnAskPassword(GLib.Object.GetObject(password) as GLib.TlsPassword, GLib.Object.GetObject(cancellable) as GLib.Cancellable);
                return((int)__result);
            } catch (Exception e) {
                GLib.ExceptionManager.RaiseUnhandledException(e, true);
                // NOTREACHED: above call does not return.
                throw e;
            }
        }
예제 #4
0
        static int RequestCertificateFinish_cb(IntPtr inst, IntPtr result, out IntPtr error)
        {
            error = IntPtr.Zero;

            try {
                TlsInteraction            __obj = GLib.Object.GetObject(inst, false) as TlsInteraction;
                GLib.TlsInteractionResult __result;
                __result = __obj.OnRequestCertificateFinish(GLib.AsyncResultAdapter.GetObject(result, false));
                return((int)__result);
            } catch (Exception e) {
                GLib.ExceptionManager.RaiseUnhandledException(e, true);
                // NOTREACHED: above call does not return.
                throw e;
            }
        }
예제 #5
0
        static int RequestCertificate_cb(IntPtr inst, IntPtr connection, int flags, IntPtr cancellable, out IntPtr error)
        {
            error = IntPtr.Zero;

            try {
                TlsInteraction            __obj = GLib.Object.GetObject(inst, false) as TlsInteraction;
                GLib.TlsInteractionResult __result;
                __result = __obj.OnRequestCertificate(GLib.Object.GetObject(connection) as GLib.TlsConnection, (GLib.TlsCertificateRequestFlags)flags, GLib.Object.GetObject(cancellable) as GLib.Cancellable);
                return((int)__result);
            } catch (Exception e) {
                GLib.ExceptionManager.RaiseUnhandledException(e, true);
                // NOTREACHED: above call does not return.
                throw e;
            }
        }