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); } }
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); } }
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; } }
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; } }
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; } }