[gcr/wip/gcr4] gck: Remove authenticate_slot/object from GckModule
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr/wip/gcr4] gck: Remove authenticate_slot/object from GckModule
- Date: Tue, 5 Oct 2021 08:50:58 +0000 (UTC)
commit 89764adcb4b308d2618dee0309189c64f5d88927
Author: Corentin Noël <corentin noel collabora com>
Date: Tue Oct 5 10:50:28 2021 +0200
gck: Remove authenticate_slot/object from GckModule
It is now long deprecated
gck/gck-module.c | 55 -------------------------------------------------------
gck/gck-module.h | 4 ----
2 files changed, 59 deletions(-)
---
diff --git a/gck/gck-module.c b/gck/gck-module.c
index 02a186e..acdb0dc 100644
--- a/gck/gck-module.c
+++ b/gck/gck-module.c
@@ -84,12 +84,6 @@ enum {
PROP_FUNCTIONS
};
-enum {
- AUTHENTICATE_SLOT,
- AUTHENTICATE_OBJECT,
- LAST_SIGNAL
-};
-
struct _GckModulePrivate {
gchar *path;
gboolean initialized;
@@ -102,24 +96,10 @@ struct _GckModulePrivate {
G_DEFINE_TYPE_WITH_PRIVATE (GckModule, gck_module, G_TYPE_OBJECT);
-static guint signals[LAST_SIGNAL] = { 0 };
-
/* ----------------------------------------------------------------------------
* OBJECT
*/
-static gboolean
-gck_module_real_authenticate_slot (GckModule *module, GckSlot *self, gchar *label, gchar **password)
-{
- return FALSE;
-}
-
-static gboolean
-gck_module_real_authenticate_object (GckModule *module, GckObject *object, gchar *label, gchar **password)
-{
- return FALSE;
-}
-
static void
gck_module_init (GckModule *self)
{
@@ -212,9 +192,6 @@ gck_module_class_init (GckModuleClass *klass)
gobject_class->dispose = gck_module_dispose;
gobject_class->finalize = gck_module_finalize;
- klass->authenticate_object = gck_module_real_authenticate_object;
- klass->authenticate_slot = gck_module_real_authenticate_slot;
-
/**
* GckModule:path:
*
@@ -238,38 +215,6 @@ gck_module_class_init (GckModuleClass *klass)
g_object_class_install_property (gobject_class, PROP_FUNCTIONS,
g_param_spec_pointer ("functions", "Function List", "PKCS11 Function List",
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
-
- /**
- * GckModule::authenticate-slot:
- * @module: The module
- * @slot: The slot to be authenticated.
- * @string: A displayable label which describes the object.
- * @password: A gchar** where a password should be returned.
- *
- * Use gck_session_set_interaction() instead of connecting to this signal.
- *
- * Deprecated: Since 3.4
- */
- signals[AUTHENTICATE_SLOT] = g_signal_new ("authenticate-slot", GCK_TYPE_MODULE,
- G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GckModuleClass, authenticate_slot),
- g_signal_accumulator_true_handled, NULL, _gck_marshal_BOOLEAN__OBJECT_STRING_POINTER,
- G_TYPE_BOOLEAN, 3, GCK_TYPE_SLOT, G_TYPE_STRING, G_TYPE_POINTER);
-
- /**
- * GckModule::authenticate-object:
- * @module: The module.
- * @object: The object to be authenticated.
- * @label: A displayable label which describes the object.
- * @password: A gchar** where a password should be returned.
- *
- * Use gck_session_set_interaction() instead of connecting to this signal.
- *
- * Deprecated: Since 3.4
- */
- signals[AUTHENTICATE_OBJECT] = g_signal_new ("authenticate-object", GCK_TYPE_MODULE,
- G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GckModuleClass, authenticate_object),
- g_signal_accumulator_true_handled, NULL, _gck_marshal_BOOLEAN__OBJECT_STRING_POINTER,
- G_TYPE_BOOLEAN, 3, GCK_TYPE_OBJECT, G_TYPE_STRING, G_TYPE_POINTER);
}
G_DEFINE_BOXED_TYPE (GckModuleInfo, gck_module_info,
diff --git a/gck/gck-module.h b/gck/gck-module.h
index 4ec366c..e2598b8 100644
--- a/gck/gck-module.h
+++ b/gck/gck-module.h
@@ -66,10 +66,6 @@ struct _GckModule {
struct _GckModuleClass {
GObjectClass parent;
- gboolean (*authenticate_slot) (GckModule *self, GckSlot *slot, gchar *label, gchar **password);
-
- gboolean (*authenticate_object) (GckModule *self, GckObject *object, gchar *label, gchar **password);
-
/*< private >*/
gpointer reserved[8];
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]