summaryrefslogtreecommitdiffstats
path: root/gtk/smartcard-manager.c
Commit message (Collapse)AuthorAgeFilesLines
* smartcard: Only init manager onceChristophe Fergeau2013-07-111-17/+29
| | | | | | 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.
* smartcard: Handle VCARD_EMUL_INIT_ALREADY_INITEDChristophe Fergeau2013-07-111-1/+4
| | | | | | | | | | | | | 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
* doc: add missing symbols and versionsMarc-André Lureau2013-06-261-0/+6
|
* smartcard: Move down spice_smartcard_reader_is_software bodyChristophe Fergeau2013-06-241-15/+15
| | | | | It's more consistent to have it close to spice_smartcard_reader_insert_card() et al.
* Add spice_smartcard_manager_get_readers()Christophe Fergeau2013-06-241-0/+44
| | | | | | 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.
* smartcard: Add methods to act on software readersChristophe Fergeau2013-06-241-10/+63
| | | | | | | 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.
* smartcard: Report failure when software reader is missingChristophe Fergeau2013-06-241-2/+4
| | | | | | | | 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.
* smartcard: do not register monitor before smartcard initMarc-André Lureau2013-02-261-6/+14
| | | | | | Never call vevent_get_next_vevent() before calling vcard_emul_init() Some mutexes are initialized in vevent_queue_init(), during emul_init()
* smartcard: trivial cleanupMarc-André Lureau2013-02-261-7/+7
|
* Fix a bunch of gtkdoc/giscan warningsMarc-André Lureau2013-01-281-4/+4
|
* build: fix build issue because of double declarationMarc-André Lureau2011-12-091-2/+0
| | | | | | Patch based on Mageia, provided by Olav Vitters. https://bugzilla.freedesktop.org/show_bug.cgi?id=43457
* Fix get_type() with --disable-smartcardMarc-André Lureau2011-11-261-1/+2
| | | | | | | | | | | | 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
* Fix a few g-ir-scanner warningsMarc-André Lureau2011-11-231-1/+1
|
* build: move G_DEFINE_BOXED in glib-compat.h and fix build with old glibMarc-André Lureau2011-09-231-0/+2
|
* Drop VOID:BOXED user marshallerHans de Goede2011-09-011-4/+4
| | | | | | | 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>
* doc: various improvementsMarc-André Lureau2011-08-311-2/+2
|
* Rename my_foo private datatypes to MyFooPrivateHans de Goede2011-08-301-5/+5
| | | | | | | 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>
* gtk/doc: improve the generated gtk-doc a bitMarc-André Lureau2011-07-131-1/+1
|
* smartcard: add smartcard API docChristophe Fergeau2011-07-131-5/+48
|
* gtk/smartcard: make smartcard init asyncMarc-André Lureau2011-07-071-8/+90
|
* gtk/smartcard-manager: remove useless trailing ;Marc-André Lureau2011-07-051-3/+3
|
* gtk: s/SmartCard/Smartcard/gMarc-André Lureau2011-07-051-45/+45
|
* prepend smartcard cmdline options with --smartcardChristophe Fergeau2011-07-011-2/+2
| | | | | | 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).
* gtk/smartcard: make cacard dependency optional without breaking APIMarc-André Lureau2011-06-281-5/+47
|
* gtk/smartcard: remove g_assertMarc-André Lureau2011-06-261-1/+1
|
* gtk/smartcard: add a couple of debugMarc-André Lureau2011-06-231-0/+5
|
* gtk/smartcard: simplify a little spice_smartcard_manager_init_libcacardMarc-André Lureau2011-06-231-10/+15
|
* add software smartcard reader supportChristophe Fergeau2011-06-231-1/+50
|
* use user-provided certificates when init'ing libcacardChristophe Fergeau2011-06-231-1/+39
|
* initialize libcacardChristophe Fergeau2011-06-231-0/+7
|
* emit signals in reaction to libcacard eventsChristophe Fergeau2011-06-221-1/+30
|
* add signals for smartcard eventsChristophe Fergeau2011-06-221-1/+84
| | | | | Add signals which will be emitted when a reader appears/disappears, or when a smartcard is inserted/removed.
* add boxed type for VReaderChristophe Fergeau2011-06-221-0/+1
| | | | | | 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.
* add smartcard monitor GSourceChristophe Fergeau2011-06-221-1/+117
| | | | | | 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.
* add smartcard channel and smartcard manager skeletonsChristophe Fergeau2011-06-221-0/+108