Commit Graph

8 Commits

Author SHA1 Message Date
Jeffrey Altman
6cfbde4d86 plugin interface functions must specify calling convention
The plugin interfaces were originally implemented for use on
Unix where KRB5_CALLCONV, HEIM_CALLCONV and similar are defined
as nothing.  However, on 32-bit Windows the calling convention
matters and executing a __stdcall function through a __cdecl
function pointer will result in failures.

This change updates the krb5plugin_windc, krb5plugin_service_locate,
krb5plugin_send_to_kdc plugins to specify the KRB5_CALLCONV for
functions.   This brings the plugins into compliance with the
heim_plugin_common interface requirement that init() and fini()
use the platform specified HEIM_CALLCONV.

The krb5-plugin(7) man page is updated and the lib/krb5/test_plugin
test is also fixed.

With this change all tests pass on 32-bit Windows.

Change-Id: Ic9d2e1285c9c179e3898dc9d071ed092bcddc406
2021-11-18 18:52:54 -06:00
Love Hornquist Astrand
58ff480763 rewrite send to kdc to be more agressive, try kdcs in paralell and easier to configure behavior 2013-02-10 19:02:52 -08:00
Love Hörnquist Åstrand
a5ed32a6fe the name of the plugin is service_locator
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25173 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-04 06:18:05 +00:00
Love Hörnquist Åstrand
ecfa87ed86 drop #include <krb5.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25104 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-16 07:49:44 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
1f1822b145 define constant KRB5_PLUGIN_LOCATE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23351 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:22:39 +00:00
Love Hörnquist Åstrand
79e58fd503 Add plugin interface for resolving that is API compatible with MITs version.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18998 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 19:00:03 +00:00