_krb5_load_plugins: Windows naming rules
commitce3d2be1c70a286fabb150f3450ac7352754dff0
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 11 Sep 2013 02:12:09 +0000 (10 22:12 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 11 Sep 2013 02:31:43 +0000 (10 22:31 -0400)
treec0efb4f8729f5864025abb8955bd944230697ef6
parent5a8da41b38932fc5ad70cad366be22f46dcd92f4
_krb5_load_plugins: Windows naming rules

Windows plugins must be loaded from the same directory as the
heimdal.dll in order to ensure that "DLL Hell" is not revisited.
Since plugins cannot be grouped in a directory by "module" name
the plugins must have a name of the form:

  plugin_<module>_<name>.dll

Construct the "plugin_<module>_" prefix string dynamically and
test for both the prefix and the ".dll" extension when building
the list of plugins to load.

Change-Id: I0ff7bf7287f8fb38061c226f0844d7d0f1fb59ec
lib/krb5/plugin.c