Adds --with-berkeley-db-include=dir option to configure to use berkeley
db headers in dir. Default is to let configure check. Also adds
support for checking for and using db5/db.h
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
Pass the function name into foreach_principal instead of the static
"get" string, so the correct function is reported in errors in
kadmin list.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
kadmin list and kadmin get -t used the same output display logic
as short output, which meant that they called kadm5_get_principal
for each principal. However, they then just threw that output
away since the terse format displays only the principal name.
For terse get output, instead use a separate set of functions that
just print the string version of the principal name and do not
retrieve additional information.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
at some point asn1 header generation lost its trailing newline on
asn1_%s_units prototypes. put it back for neatness.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
Some kernels #define u as a pointer to the current user structure.
This causes problems when trying to use hcrypto's hash routines in
those kernels, as they try to use 'u' as a variable name for a
structure pointer. Change this variable name to avoid the conflict.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
The assemblies should be built when the lib directory is build because
the generated application manifest should be used with all the tools
and executables that use the libraries.
This script analyzes the export lists for MIT Kerberos for Windows,
export lists for Heimdal DLLs and the symbol lists from the shim code
and generates the appropriate export definition (.DEF) files.
.DEF files that are generated are committed to the source tree because
otherwise having MIT KfW DLLs around would be a build requirement. If
there is any change to the shim code, the export .DEF files should be
rebuilt using:
nmake /f NTMakefile DEV=1 gen-defs
.. from the packages/windows/kfw_shim directory. The new .DEF files
should then be commited.
The shim code creates DLLs that intend to be ABI compatible with MIT
Kerberos for Windows DLLs. At its current state, the shim isn't
complete and there are multiple functions that are missing.
Fix manifests to include manifestVersion attribute and introduce an
application manifest. The application manifest will be included in
the eventual SDK so that applications that depend on Heimdal can
correctly reference the Heimdal assemblies.