Project

General

Profile

lasso.patch

Florian Best, 12 Aug 2015 03:47 PM

Download (2.83 KB)

View differences:


  

lasso-2.4.1.org/bindings/python/lang.py 2015-07-26 10:10:34.932000000 +0200
478 478
                    c_args.append(outvar)
479 479
                elif is_cstring(arg):
480 480
                    c_args.append('str2lasso(%s)' % arg_name(arg))
481
                elif is_xml_doc(arg) or is_xml_node(arg) or is_boolean(arg) or is_cstring(arg) or is_int(arg, self.binding_data) or is_glist(arg) or is_hashtable(arg) or is_time_t_pointer(arg):
481
                elif is_xml_node(arg) or is_boolean(arg) or is_cstring(arg) or is_int(arg, self.binding_data) or is_glist(arg) or is_hashtable(arg) or is_time_t_pointer(arg):
482 482
                    c_args.append(arg_name(arg))
483 483
                elif is_object(arg):
484 484
                    c_args.append('%(name)s and %(name)s._cptr' % { 'name': arg_name(arg) })
485
-- lasso-2.4.1/bindings/utils.py	2014-03-27 23:26:07.236023323 +0100
485
++ lasso-2.4.1.org/bindings/utils.py	2015-07-26 10:10:17.004000000 +0200
......
232 232
    arg = arg_type(arg)
233 233
    return clean_type(unconstify(arg)) in ('char*','gchar*','guchar*','string','utf8','strings')
234 234

  
235
def is_xml_doc(arg):
236
    arg = unconstify(arg_type(arg))
237
    return arg and arg.startswith('xmlDoc')
238

  
235 239
def is_xml_node(arg):
236 240
    arg = unconstify(arg_type(arg))
237 241
    return arg and arg.startswith('xmlNode')
238
-- lasso-2.4.1/lasso/id-ff/provider.h	2014-03-27 23:26:07.400024128 +0100
242
++ lasso-2.4.1.org/lasso/id-ff/provider.h	2015-07-26 10:08:04.824000000 +0200
......
216 216
		const char *service_id);
217 217
LASSO_EXPORT gchar* lasso_provider_get_metadata_one(LassoProvider *provider, const char *name);
218 218
LASSO_EXPORT GList* lasso_provider_get_metadata_list(LassoProvider *provider, const char *name);
219
LASSO_EXPORT int lasso_provider_verify_saml_signature(LassoProvider *provider, xmlNode *signed_node, xmlDoc *doc);
219 220

  
220 221
LASSO_EXPORT LassoProvider* lasso_provider_new_from_dump(const gchar *dump);
221 222

  
lasso-2.4.1.org/lasso/id-ff/providerprivate.h 2015-07-26 09:59:59.732000000 +0200
91 91
GList* lasso_provider_get_public_keys(const LassoProvider *provider);
92 92
xmlSecKey* lasso_provider_get_encryption_public_key(const LassoProvider *provider);
93 93
LassoEncryptionSymKeyType lasso_provider_get_encryption_sym_key_type(const LassoProvider* provider);
94
// int lasso_provider_verify_saml_signature(LassoProvider *provider, xmlNode *signed_node, xmlDoc *doc);
94
int lasso_provider_verify_saml_signature(LassoProvider *provider, xmlNode *signed_node, xmlDoc *doc);
95 95
int lasso_provider_verify_query_signature(LassoProvider *provider, const char *message);
96 96
void _lasso_provider_load_key_descriptor(LassoProvider *provider, xmlNode *key_descriptor);
97 97
void _lasso_provider_add_metadata_value_for_role(LassoProvider *provider,