Commit Graph

25911 Commits

Author SHA1 Message Date
Love Hornquist Astrand
d615f77834 condition gcd on HAVE_GCD 2010-09-08 09:18:03 -07:00
Love Hornquist Astrand
17d64b8507 add validation of hmac 2010-09-08 00:06:40 -07:00
Love Hornquist Astrand
51e6e505f1 add validate.c 2010-09-08 00:04:18 -07:00
Love Hornquist Astrand
b897f2df34 export hc_hcrypto_validate 2010-09-08 00:04:10 -07:00
Love Hornquist Astrand
28c80fdf15 validate args before use 2010-09-08 00:04:01 -07:00
Love Hornquist Astrand
76867d73ab validate args before use 2010-09-08 00:03:39 -07:00
Love Hornquist Astrand
cf3d2ca7ed simple validation of crypto core 2010-09-08 00:03:27 -07:00
Love Hornquist Astrand
eb2b84791a add back tfm 2010-09-07 23:58:34 -07:00
Love Hornquist Astrand
c3670bb45f remove unused variable 2010-09-07 23:57:12 -07:00
Love Hornquist Astrand
7c0b7083ea add missing ; 2010-09-07 23:56:40 -07:00
Love Hornquist Astrand
04e0c67070 wrap common crypto in HAVE_COMMONCRYPTO_COMMONCRYPTOR_H 2010-09-07 23:25:33 -07:00
Love Hornquist Astrand
0d12baeb83 add check for CommonCrypto/CommonCryptor.h 2010-09-07 23:20:04 -07:00
Eray Aslan
a1c14b2319 Add --with-berkeley-db-include option
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>
2010-09-05 18:41:30 -07:00
Russ Allbery
ce438f343c Fix error reporting prefix for kadmin list
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>
2010-09-01 22:59:30 -07:00
Russ Allbery
890c797f68 Don't retrieve principal data for kadmin list
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>
2010-09-01 22:59:12 -07:00
Love Hornquist Astrand
d893207413 add check-rd-req-server 2010-09-01 21:56:17 -07:00
Love Hornquist Astrand
856c1c0a86 accept >= 0 and valid return codes from RAND_bytes due to broken engine from the isc bind implementation, reported by Sam Liddicott 2010-09-01 21:00:07 -07:00
Derrick Brashear
33e0d2c32e asn1 header generation misses newline
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>
2010-08-28 13:31:46 -07:00
Love Hornquist Astrand
3ba4f32d8d Expand on what enterprise names are 2010-08-28 13:01:45 -07:00
Guillaume Rousse
792db1ca13 document --enterprise option, as in --help output
Signed-off-by: Guillaume Rousse <Guillaume.Rousse@inria.fr>
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-08-28 10:57:12 -07:00
Love Hornquist Astrand
4f5390877a plug memory leaks 2010-08-23 22:02:10 -07:00
Simon Wilkinson
bbc9176868 hcrypto: Don't use 'u' as a variable name
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>
2010-08-23 21:21:14 -07:00
Love Hornquist Astrand
bd91f174b9 Changes from Asanka Herath of Secure Endpoint for additional Microsoft Windows support 2010-08-20 19:45:14 -07:00
Love Hornquist Astrand
c166adf010 ignore doxyout 2010-08-20 19:39:20 -07:00
Asanka Herath
00e84dac77 Windows: Specify target machine architecture in link step 2010-08-20 16:59:36 -04:00
Asanka Herath
069d9a8afc Windows: New exports for comerr64.dll shim library 2010-08-20 16:59:12 -04:00
Asanka Herath
dc638df0ff Windows: Fix gssapi{32,64} shim library 2010-08-20 16:58:45 -04:00
Asanka Herath
6304b4d2ef Windows: Missing clean targets shouldn't be fatal 2010-08-20 16:57:46 -04:00
Asanka Herath
92bdd469bc Windows: heimdal.dll depends on LIBLTM instead of LIBTFM 2010-08-20 16:57:21 -04:00
Asanka Herath
8e8cf3814f Use <errno.h> instead of <sys/errno.h> in hcrypto/common.c 2010-08-20 16:56:46 -04:00
Asanka Herath
8b378cec73 Windows: Revised exports for libgssapi 2010-08-20 16:56:20 -04:00
Asanka Herath
4b1fbabe68 Windows: Fix build rules and includes for libtommath 2010-08-20 16:55:53 -04:00
Asanka Herath
93c08e67f0 Windows: Add missing dependency 2010-08-20 16:55:15 -04:00
Asanka Herath
fd3d2ccd0d Windows: Build with USE_HCRYPTO_IMATH 2010-08-20 16:53:57 -04:00
Asanka Herath
1a4ffdca13 Windows: Add missing dependency 2010-08-20 16:53:26 -04:00
Asanka Herath
38f3c4d20a Windows: Note that the .def files are generated 2010-08-20 16:52:46 -04:00
Asanka Herath
e9e33710ce Windows: No separate assembly directory 2010-08-20 13:14:19 -04:00
Asanka Herath
f56c77103d Windows: Change when assemblies and shims are built
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.
2010-08-20 13:14:19 -04:00
Asanka Herath
fbf3864422 Windows: Script for generating exports lists for shim layer
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.
2010-08-20 13:14:18 -04:00
Asanka Herath
8793628306 Windows: Shim library for ABI compatibility with MIT KfW
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.
2010-08-20 13:14:17 -04:00
Asanka Herath
c111770aed Windows: Use pushd and popd for recursive builds
This makes it possible to recurse into arbitrary directories instead
of just subdirectories.
2010-08-20 13:14:17 -04:00
Asanka Herath
7843607a49 Windows: Use 32-bit time_t on 32-bit builds 2010-08-20 13:14:16 -04:00
Asanka Herath
0f214582d5 Windows: Fix manifest attribute case 2010-08-20 13:14:16 -04:00
Asanka Herath
63597ca3fc Windows: Make application manifest available everywhere 2010-08-20 13:14:15 -04:00
Asanka Herath
08b297b785 Windows: Rename libgssapi.dll -> gssapi.dll 2010-08-20 13:14:15 -04:00
Asanka Herath
f88854effa Windows: Correct calling convention for krb5_free_unparsed_name() 2010-08-20 13:14:14 -04:00
Asanka Herath
225e142ac5 Windows: Use correct calling convention for com_err 2010-08-20 13:14:13 -04:00
Asanka Herath
4ea2e07b21 Windows: Build and validate manifests
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.
2010-08-20 13:14:13 -04:00
Asanka Herath
0730c0b98f Windows: ASN1_LIB needs to be defined for Heimdal library 2010-08-20 13:14:12 -04:00
Asanka Herath
8d40619564 Windows: Add krb5_cc_copy_creds to the exports list 2010-08-20 13:14:12 -04:00