vnc-auth-vencrypt.c (2c94822167672597d870dbeed9ffc95ea2bf93d3) vnc-auth-vencrypt.c (a75d6f07613af7ec5b016b31b117436e32ce7a5f)
1/*
2 * QEMU VNC display driver: VeNCrypt authentication setup
3 *
4 * Copyright (C) 2006 Anthony Liguori <anthony@codemonkey.ws>
5 * Copyright (C) 2006 Fabrice Bellard
6 * Copyright (C) 2009 Red Hat, Inc
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

--- 61 unchanged lines hidden (view full) ---

70 Error *err = NULL;
71
72 if (qio_task_propagate_error(task, &err)) {
73 trace_vnc_auth_fail(vs, vs->auth, "TLS handshake failed",
74 error_get_pretty(err));
75 vnc_client_error(vs);
76 error_free(err);
77 } else {
1/*
2 * QEMU VNC display driver: VeNCrypt authentication setup
3 *
4 * Copyright (C) 2006 Anthony Liguori <anthony@codemonkey.ws>
5 * Copyright (C) 2006 Fabrice Bellard
6 * Copyright (C) 2009 Red Hat, Inc
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

--- 61 unchanged lines hidden (view full) ---

70 Error *err = NULL;
71
72 if (qio_task_propagate_error(task, &err)) {
73 trace_vnc_auth_fail(vs, vs->auth, "TLS handshake failed",
74 error_get_pretty(err));
75 vnc_client_error(vs);
76 error_free(err);
77 } else {
78 if (vs->ioc_tag) {
79 g_source_remove(vs->ioc_tag);
80 }
78 vs->ioc_tag = qio_channel_add_watch(
79 vs->ioc, G_IO_IN | G_IO_OUT, vnc_client_io, vs, NULL);
80 start_auth_vencrypt_subauth(vs);
81 }
82}
83
84
85static int protocol_client_vencrypt_auth(VncState *vs, uint8_t *data, size_t len)

--- 76 unchanged lines hidden ---
81 vs->ioc_tag = qio_channel_add_watch(
82 vs->ioc, G_IO_IN | G_IO_OUT, vnc_client_io, vs, NULL);
83 start_auth_vencrypt_subauth(vs);
84 }
85}
86
87
88static int protocol_client_vencrypt_auth(VncState *vs, uint8_t *data, size_t len)

--- 76 unchanged lines hidden ---