| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The SpiceSmartcardManager is a singleton, so it does not make
a lot of sense to try to init it multiple times. This commit adds
a GOnce to ensure the manager is only init'ed once.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When initializing a software smartcard, vcard_emul_init() can
report success, error, or indicate that initialization has already
been done. In this last case, we would assume that an error occurred
instead of behaving as if the initialization succeeded.
vcard_emul_init() can end up being called multiple time if the
smartcard channel gets destroyed and recreated during the lifetime
of the application
Fixes rhbz#815639
|
| |
|
|
|
|
|
| |
It's more consistent to have it close to
spice_smartcard_reader_insert_card() et al.
|
|
|
|
|
|
| |
This returns the list of smartcard readers known to a given
SpiceSmartcardManager. This is useful to check whether a software
smartcard reader is available or not.
|
|
|
|
|
|
|
| |
Currently, the methods to insert/remove smartcards from a software
smartcard reader are global to the SpiceSmartcardManager singleton
rather than acting on a SpiceSmartcardreader object.
This commit adds insert/remove methods acting on such objects.
|
|
|
|
|
|
|
|
| |
As there is no easy way to know if the SpiceSmartcardManager
has an associated software reader or not, it's better to report
failure instead of g_return_if_fail on attempts to use
spice_smartcard_manager_insert/remove_card with no software reader
available.
|
|
|
|
|
|
| |
Never call vevent_get_next_vevent() before calling vcard_emul_init()
Some mutexes are initialized in vevent_queue_init(), during emul_init()
|
| |
|
| |
|
|
|
|
|
|
| |
Patch based on Mageia, provided by Olav Vitters.
https://bugzilla.freedesktop.org/show_bug.cgi?id=43457
|
|
|
|
|
|
|
|
|
|
|
|
| |
It's quite a bad hack, but I can't think of anything really better
Without this patch, g-ir-scanner introspection hangs with:
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion `boxed_copy != NULL' failed
GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
GLib-GObject-WARNING **: gsignal.c:1585: parameter 1 of type `<invalid>' for sig
nal "SpiceSmartcardManager::reader_added" is not a value type
|
| |
|
| |
|
|
|
|
|
|
|
| |
We were generating a user marshaller for VOID:BOXED, but there is a standard
marshaller for that, use that instead.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
| |
|
|
|
|
|
|
|
| |
We were using the gobject standard notation of MyFooPrivate everywhere
except for 3 places, this brings these 3 into sync, with what we do elsewhere.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This is consistent with what spicec does, and is also less
confusing since other certificates can be passed on the command
line (for client/server host authentication).
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Add signals which will be emitted when a reader appears/disappears,
or when a smartcard is inserted/removed.
|
|
|
|
|
|
| |
VReader is a type defined in libcacard which contains all the
information we need ot handle card readers. Since it's refcounted,
we can make it a boxed type for use in signals.
|
|
|
|
|
|
| |
This source gets events from libcacard and inserts them into
a regular glib mainloop. The smartcard manager will then emit
signals in reaction to the events it got from libcacard.
|
|
|