0005-Fix-all-cast-function-type-warnings-71313.patch
lasso/id-ff/federation.c | ||
---|---|---|
218 | 218 |
/*****************************************************************************/ |
219 | 219 | |
220 | 220 |
static void |
221 |
instance_init(LassoFederation *federation) |
|
221 |
instance_init(LassoFederation *federation, G_GNUC_UNUSED void *unused)
|
|
222 | 222 |
{ |
223 | 223 |
federation->private_data = g_new0(LassoFederationPrivate, 1); |
224 | 224 |
federation->private_data->dispose_has_run = FALSE; |
lasso/id-ff/identity.c | ||
---|---|---|
216 | 216 |
/*****************************************************************************/ |
217 | 217 | |
218 | 218 |
static void |
219 |
instance_init(LassoIdentity *identity) |
|
219 |
instance_init(LassoIdentity *identity, G_GNUC_UNUSED void *unused)
|
|
220 | 220 |
{ |
221 | 221 |
identity->private_data = g_new0(LassoIdentityPrivate, 1); |
222 | 222 |
identity->private_data->dispose_has_run = FALSE; |
lasso/id-ff/lecp.c | ||
---|---|---|
408 | 408 |
/*****************************************************************************/ |
409 | 409 | |
410 | 410 |
static void |
411 |
instance_init(LassoLecp *lecp) |
|
411 |
instance_init(LassoLecp *lecp, G_GNUC_UNUSED void *unused)
|
|
412 | 412 |
{ |
413 | 413 |
lecp->authnRequestEnvelope = NULL; |
414 | 414 |
lecp->authnResponseEnvelope = NULL; |
lasso/id-ff/login.c | ||
---|---|---|
2447 | 2447 |
/*****************************************************************************/ |
2448 | 2448 | |
2449 | 2449 |
static void |
2450 |
instance_init(LassoLogin *login) |
|
2450 |
instance_init(LassoLogin *login, G_GNUC_UNUSED void *unused)
|
|
2451 | 2451 |
{ |
2452 | 2452 |
login->private_data = LASSO_LOGIN_GET_PRIVATE(login); |
2453 | 2453 |
login->protocolProfile = 0; |
lasso/id-ff/logout.c | ||
---|---|---|
1216 | 1216 |
/*****************************************************************************/ |
1217 | 1217 | |
1218 | 1218 |
static void |
1219 |
instance_init(LassoLogout *logout) |
|
1219 |
instance_init(LassoLogout *logout, G_GNUC_UNUSED void *unused)
|
|
1220 | 1220 |
{ |
1221 | 1221 |
logout->initial_http_request_method = LASSO_HTTP_METHOD_NONE; |
1222 | 1222 |
logout->private_data = g_new0(LassoLogoutPrivate, 1); |
lasso/id-ff/name_registration.c | ||
---|---|---|
664 | 664 |
/*****************************************************************************/ |
665 | 665 | |
666 | 666 |
static void |
667 |
instance_init(LassoNameRegistration *name_registration) |
|
667 |
instance_init(LassoNameRegistration *name_registration, G_GNUC_UNUSED void *unused)
|
|
668 | 668 |
{ |
669 | 669 |
name_registration->oldNameIdentifier = NULL; |
670 | 670 |
} |
lasso/id-ff/profile.c | ||
---|---|---|
929 | 929 |
/*****************************************************************************/ |
930 | 930 | |
931 | 931 |
static void |
932 |
instance_init(LassoProfile *profile) |
|
932 |
instance_init(LassoProfile *profile, G_GNUC_UNUSED void *unused)
|
|
933 | 933 |
{ |
934 | 934 |
profile->private_data = LASSO_PROFILE_GET_PRIVATE(profile); |
935 | 935 |
profile->private_data->dispose_has_run = FALSE; |
lasso/id-ff/provider.c | ||
---|---|---|
882 | 882 |
/*****************************************************************************/ |
883 | 883 | |
884 | 884 |
static void |
885 |
instance_init(LassoProvider *provider) |
|
885 |
instance_init(LassoProvider *provider, G_GNUC_UNUSED void *unused)
|
|
886 | 886 |
{ |
887 | 887 |
provider->role = LASSO_PROVIDER_ROLE_NONE; |
888 | 888 |
provider->ProviderID = NULL; |
lasso/id-ff/server.c | ||
---|---|---|
426 | 426 |
} |
427 | 427 | |
428 | 428 |
static gboolean |
429 |
get_first_providerID_by_role(G_GNUC_UNUSED gchar *key, gpointer value, LassoProviderRole role) { |
|
429 |
get_first_providerID_by_role(G_GNUC_UNUSED gchar *key, gpointer value, gpointer _role) { |
|
430 |
LassoProviderRole role = (LassoProviderRole)_role; |
|
430 | 431 |
LassoProvider *provider = (LassoProvider*)value; |
431 | 432 |
if (provider->role == role || role == LASSO_PROVIDER_ROLE_ANY) { |
432 | 433 |
return TRUE; |
... | ... | |
648 | 649 |
/*****************************************************************************/ |
649 | 650 | |
650 | 651 |
static void |
651 |
instance_init(LassoServer *server) |
|
652 |
instance_init(LassoServer *server, G_GNUC_UNUSED void *unused)
|
|
652 | 653 |
{ |
653 | 654 |
server->private_data = g_new0(LassoServerPrivate, 1); |
654 | 655 |
server->private_data->dispose_has_run = FALSE; |
lasso/id-ff/session.c | ||
---|---|---|
63 | 63 |
return nid_and_session_index; |
64 | 64 |
} |
65 | 65 | |
66 |
void |
|
67 |
lasso_release_nid_and_session_index(struct _NidAndSessionIndex *nid_and_session_index) |
|
66 |
static void
|
|
67 |
lasso_release_nid_and_session_index(struct _NidAndSessionIndex *nid_and_session_index, G_GNUC_UNUSED void *unused)
|
|
68 | 68 |
{ |
69 | 69 |
lasso_release_gobject(nid_and_session_index->name_id); |
70 | 70 |
lasso_release_string(nid_and_session_index->session_index); |
... | ... | |
97 | 97 |
/* do some sharing and limit doublons */ |
98 | 98 |
if (lasso_match_name_id(other_nid_and_sid->name_id, nid_and_session_index->name_id)) { |
99 | 99 |
if (lasso_strisequal(other_nid_and_sid->session_index, nid_and_session_index->session_index)) { |
100 |
lasso_release_nid_and_session_index(nid_and_session_index); |
|
100 |
lasso_release_nid_and_session_index(nid_and_session_index, NULL);
|
|
101 | 101 |
return; |
102 | 102 |
} |
103 | 103 |
// lasso_assign_gobject(nid_and_session_index->name_id, other_nid_and_sid->name_id); |
... | ... | |
955 | 955 |
/*****************************************************************************/ |
956 | 956 | |
957 | 957 |
static void |
958 |
instance_init(LassoSession *session) |
|
958 |
instance_init(LassoSession *session, G_GNUC_UNUSED void *unused)
|
|
959 | 959 |
{ |
960 | 960 |
session->private_data = LASSO_SESSION_GET_PRIVATE(session); |
961 | 961 |
session->private_data->dispose_has_run = FALSE; |
lasso/key.c | ||
---|---|---|
51 | 51 |
/*****************************************************************************/ |
52 | 52 | |
53 | 53 |
static void |
54 |
instance_init(LassoKey *key) |
|
54 |
instance_init(LassoKey *key, G_GNUC_UNUSED void *unused)
|
|
55 | 55 |
{ |
56 | 56 |
key->private_data = LASSO_KEY_GET_PRIVATE(key); |
57 | 57 |
} |
lasso/saml-2.0/assertion_query.c | ||
---|---|---|
537 | 537 |
/*****************************************************************************/ |
538 | 538 | |
539 | 539 |
static void |
540 |
instance_init(LassoAssertionQuery *assertion_query) |
|
540 |
instance_init(LassoAssertionQuery *assertion_query, G_GNUC_UNUSED void *unused)
|
|
541 | 541 |
{ |
542 | 542 |
assertion_query->private_data = g_new0(LassoAssertionQueryPrivate, 1); |
543 | 543 |
} |
lasso/saml-2.0/ecp.c | ||
---|---|---|
434 | 434 |
/*****************************************************************************/ |
435 | 435 | |
436 | 436 |
static void |
437 |
instance_init(LassoEcp *ecp) |
|
437 |
instance_init(LassoEcp *ecp, G_GNUC_UNUSED void *unused)
|
|
438 | 438 |
{ |
439 | 439 |
ecp->private_data = g_new0(LassoEcpPrivate, 1); |
440 | 440 |
} |
lasso/utils.c | ||
---|---|---|
121 | 121 |
return 1; |
122 | 122 |
} |
123 | 123 | |
124 |
static int lasso_extract_gtype_from_list_compare_func(const void *a, const void *b) { |
|
125 |
return lasso_gobject_is_of_type((GObject*)a, (GType)b); |
|
126 |
} |
|
127 | ||
124 | 128 |
GObject* |
125 | 129 |
lasso_extract_gtype_from_list(GType type, GList *list) |
126 | 130 |
{ |
127 | 131 |
GList *needle; |
128 | 132 | |
129 |
needle = g_list_find_custom(list, (gconstpointer)type, (GCompareFunc)lasso_gobject_is_of_type);
|
|
133 |
needle = g_list_find_custom(list, (gconstpointer)type, lasso_extract_gtype_from_list_compare_func);
|
|
130 | 134 |
if (needle) { |
131 | 135 |
return needle->data; |
132 | 136 |
} |
lasso/xml/dsig/ds_x509_data.c | ||
---|---|---|
59 | 59 |
/*****************************************************************************/ |
60 | 60 | |
61 | 61 |
static void |
62 |
instance_init(LassoDsX509Data *x509_data) |
|
62 |
instance_init(LassoDsX509Data *x509_data, G_GNUC_UNUSED void *unused)
|
|
63 | 63 |
{ |
64 | 64 |
x509_data->private_data = LASSO_DS_X509_DATA_GET_PRIVATE(x509_data); |
65 | 65 |
} |
lasso/xml/ecp/ecp_request.c | ||
---|---|---|
131 | 131 | |
132 | 132 | |
133 | 133 |
static void |
134 |
instance_init(LassoEcpRequest *node) |
|
134 |
instance_init(LassoEcpRequest *node, G_GNUC_UNUSED void *unused)
|
|
135 | 135 |
{ |
136 | 136 |
node->IsPassive = TRUE; |
137 | 137 |
} |
lasso/xml/lib_authn_request.c | ||
---|---|---|
164 | 164 |
/*****************************************************************************/ |
165 | 165 | |
166 | 166 |
static void |
167 |
instance_init(LassoLibAuthnRequest *node) |
|
167 |
instance_init(LassoLibAuthnRequest *node, G_GNUC_UNUSED void *unused)
|
|
168 | 168 |
{ |
169 | 169 |
node->IsPassive = TRUE; |
170 | 170 |
} |
lasso/xml/lib_scoping.c | ||
---|---|---|
57 | 57 |
/*****************************************************************************/ |
58 | 58 | |
59 | 59 |
static void |
60 |
instance_init(LassoLibScoping *node) |
|
60 |
instance_init(LassoLibScoping *node, G_GNUC_UNUSED void *unused)
|
|
61 | 61 |
{ |
62 | 62 |
node->ProxyCount = -1; |
63 | 63 |
} |
lasso/xml/saml-2.0/saml2_assertion.c | ||
---|---|---|
144 | 144 |
/*****************************************************************************/ |
145 | 145 | |
146 | 146 |
static void |
147 |
instance_init(LassoSaml2Assertion *node) |
|
147 |
instance_init(LassoSaml2Assertion *node, G_GNUC_UNUSED void *unused)
|
|
148 | 148 |
{ |
149 | 149 |
node->sign_type = LASSO_SIGNATURE_TYPE_NONE; |
150 | 150 |
node->encryption_sym_key_type = LASSO_ENCRYPTION_SYM_KEY_TYPE_DEFAULT; |
lasso/xml/saml-2.0/saml2_key_info_confirmation_data_type.c | ||
---|---|---|
78 | 78 |
/*****************************************************************************/ |
79 | 79 | |
80 | 80 |
static void |
81 |
instance_init(LassoSaml2KeyInfoConfirmationDataType *saml2_key_info_confirmation_data_type) |
|
81 |
instance_init(LassoSaml2KeyInfoConfirmationDataType *saml2_key_info_confirmation_data_type, G_GNUC_UNUSED void *unused)
|
|
82 | 82 |
{ |
83 | 83 |
saml2_key_info_confirmation_data_type->private_data = |
84 | 84 |
LASSO_SAML2_KEY_INFO_CONFIRMATION_DATA_TYPE_GET_PRIVATE( |
lasso/xml/saml-2.0/samlp2_authn_request.c | ||
---|---|---|
99 | 99 |
/*****************************************************************************/ |
100 | 100 | |
101 | 101 |
static void |
102 |
instance_init(LassoSamlp2AuthnRequest *node) |
|
102 |
instance_init(LassoSamlp2AuthnRequest *node, G_GNUC_UNUSED void *unused)
|
|
103 | 103 |
{ |
104 | 104 |
node->AssertionConsumerServiceIndex = -1; |
105 | 105 |
node->AttributeConsumingServiceIndex = -1; |
lasso/xml/saml-2.0/samlp2_request_abstract.c | ||
---|---|---|
115 | 115 |
/*****************************************************************************/ |
116 | 116 | |
117 | 117 |
static void |
118 |
instance_init(LassoSamlp2RequestAbstract *node) |
|
118 |
instance_init(LassoSamlp2RequestAbstract *node, G_GNUC_UNUSED void *unused)
|
|
119 | 119 |
{ |
120 | 120 |
node->sign_type = LASSO_SIGNATURE_TYPE_NONE; |
121 | 121 |
} |
lasso/xml/saml-2.0/samlp2_status_response.c | ||
---|---|---|
122 | 122 |
/*****************************************************************************/ |
123 | 123 | |
124 | 124 |
static void |
125 |
instance_init(LassoSamlp2StatusResponse *node) |
|
125 |
instance_init(LassoSamlp2StatusResponse *node, G_GNUC_UNUSED void *unused)
|
|
126 | 126 |
{ |
127 | 127 |
node->sign_type = LASSO_SIGNATURE_TYPE_NONE; |
128 | 128 |
} |
lasso/xml/samlp_request_abstract.c | ||
---|---|---|
82 | 82 |
/*****************************************************************************/ |
83 | 83 | |
84 | 84 |
static void |
85 |
instance_init(LassoSamlpRequestAbstract *node) |
|
85 |
instance_init(LassoSamlpRequestAbstract *node, G_GNUC_UNUSED void *unused)
|
|
86 | 86 |
{ |
87 | 87 |
node->sign_type = LASSO_SIGNATURE_TYPE_NONE; |
88 | 88 |
} |
lasso/xml/samlp_response_abstract.c | ||
---|---|---|
87 | 87 |
/*****************************************************************************/ |
88 | 88 | |
89 | 89 |
static void |
90 |
instance_init(LassoSamlpResponseAbstract *node) |
|
90 |
instance_init(LassoSamlpResponseAbstract *node, G_GNUC_UNUSED void *unused)
|
|
91 | 91 |
{ |
92 | 92 |
node->sign_type = LASSO_SIGNATURE_TYPE_NONE; |
93 | 93 |
} |
94 |
- |