Implementing preauthentication using loadable modules

Kevin Coffman kwc at
Tue Oct 3 11:02:51 EDT 2006

On 10/2/06, Ken Raeburn <raeburn at> wrote:
> On Oct 2, 2006, at 20:09, Kevin Coffman wrote:
> > The load-time hook is through the use of
> > "__attribute__((constructor))" or something else that I'm missing?
> >
> > Use of "__attribute__((constructor))" seems to work, so it looks like
> > that or whatever I'm missing should be sufficient.
> That's the core of it on gcc configurations, but it's macroized all
> to heck so that (1) we can do something for non-gcc platforms with
> the same coding conventions, just different macro expansions, and (2)
> checking for errors during initialization is part of the interface.
> In include/k5-platform.h we define macros MAKE_INIT_FUNCTION,
> first two are used to specify which functions are your init/fini
> functions.
> [...]

Use of these macros assumes the plugin has access to k5-int.h though,
right?  Which I thought we are trying to avoid with these plugins.

More information about the krbdev mailing list