On (22/02/16 10:01), Jakub Hrozek wrote: >Hi, > >during my work on pam_hbac I ran into some issues in libipa_hbac that I >would like to fix. And before doing the work I wanted to check if anyone >is opposed to these changes. > >I would like to: > 1) Stop using C99 in libipa_hbac. pam_hbac can run on old and/or > strange platforms that don't support C99 compilers. > > 2) Stop using sss_utf8_case_eq unconditionally and rather use an > externally-provided function, a bit like we already set the debug > function. I was thinking even about creating hbac_init() that > would accept these functions and return a context which would then > be passed to other libipa_hbac functions, but this would be an API > break. Alternatively, we could just use a function setter, I just think > the context might be clearer..and IIRC the C libipa_hbac API is used > only by the python bindings at the moment. > what about ifdef?
> 3) Also add a private context to the debug function to pass > additional data. Again, this is an API break. If the other > developers don't like changing the API, we can alternatively add > hbac_enable_debug_ex() with the private pointer. > It isn't. sssd hasn't been officially released with hbac_debug feature. > 4) Do not include header files from the sssd deamon tree at all. > make sense > 5) Move the hbac_evaluator.c and ipa_hbac.h files from > src/providers/ipa/ to src/lib/libipa_hbac. This is already the same > as the idmapping library. > +1. It's jsut cosmetic change. > 6) Some minor enhancements: Fixes to doxygen comments and OK > change some internally-used errno codes that might not exist on all > platforms (ENOMATCH) > This might be API break on linux but #ifdef might be a solution. LS _______________________________________________ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://lists.fedorahosted.org/admin/lists/sssd-devel@lists.fedorahosted.org