static void HandshakeAsync_cb(IntPtr inst, int io_priority, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data) { try { TlsConnection __obj = GLib.Object.GetObject(inst, false) as TlsConnection; GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker(cb, user_data); __obj.OnHandshakeAsync(io_priority, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static bool AcceptCertificate_cb(IntPtr inst, IntPtr peer_cert, int errors) { try { TlsConnection __obj = GLib.Object.GetObject(inst, false) as TlsConnection; bool __result; __result = __obj.OnAcceptCertificate(GLib.Object.GetObject(peer_cert) as GLib.TlsCertificate, (GLib.TlsCertificateFlags)errors); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool HandshakeFinish_cb(IntPtr inst, IntPtr result, out IntPtr error) { error = IntPtr.Zero; try { TlsConnection __obj = GLib.Object.GetObject(inst, false) as TlsConnection; bool __result; __result = __obj.OnHandshakeFinish(GLib.AsyncResultAdapter.GetObject(result, false)); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool Handshake_cb(IntPtr inst, IntPtr cancellable, out IntPtr error) { error = IntPtr.Zero; try { TlsConnection __obj = GLib.Object.GetObject(inst, false) as TlsConnection; bool __result; __result = __obj.OnHandshake(GLib.Object.GetObject(cancellable) as GLib.Cancellable); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }