Asanka Herath [Thu, 26 Aug 2010 20:21:46 +0000 (16:21 -0400)]
Don't rely on non-CCAPI v3 exports
krb5_ipc_client_set_target_uid() and krb5_ipc_client_clear_target()
may not be present in CCAPI plug-in. Don't rely on their existence.
Asanka Herath [Thu, 26 Aug 2010 20:21:06 +0000 (16:21 -0400)]
Windows: Don't ignore failure in test_addr from now on
Asanka Herath [Thu, 26 Aug 2010 20:10:32 +0000 (16:10 -0400)]
Windows: Add support for MSLSA: cache type using a plug-in
Asanka Herath [Thu, 26 Aug 2010 20:05:06 +0000 (16:05 -0400)]
Windows: Build thirdparty packages if there are any
Asanka Herath [Wed, 25 Aug 2010 15:14:53 +0000 (11:14 -0400)]
Fix line endings
Asanka Herath [Wed, 25 Aug 2010 15:11:47 +0000 (11:11 -0400)]
Windows: Annotate symbols for libkadm5srv
Asanka Herath [Wed, 25 Aug 2010 04:20:00 +0000 (00:20 -0400)]
Windows: Build test binaries for kadm5
Asanka Herath [Tue, 24 Aug 2010 10:05:04 +0000 (06:05 -0400)]
Windows: Remove test_hdbkeys from test-run
test_hdbkeys is not a standalone test app.
Asanka Herath [Tue, 24 Aug 2010 10:04:28 +0000 (06:04 -0400)]
Windows: Fix exports for libhdb
Asanka Herath [Tue, 24 Aug 2010 10:03:42 +0000 (06:03 -0400)]
Windows: Fix exports for libgssapi
Asanka Herath [Tue, 24 Aug 2010 08:31:15 +0000 (04:31 -0400)]
Windows: Decorate krb5_cc_copy_creds export definition
Asanka Herath [Tue, 24 Aug 2010 08:29:37 +0000 (04:29 -0400)]
Address of an imported symbol is not always a constant
On Windows, the address of a symbol imported from a DLL is not
considered a constant. Therefore, it can't be used to initialized
static data.
Asanka Herath [Tue, 24 Aug 2010 08:29:08 +0000 (04:29 -0400)]
Windows: Build hxtool with the correct options
Asanka Herath [Tue, 24 Aug 2010 08:27:51 +0000 (04:27 -0400)]
Windows: Regenerated libasn1-exports.def
Sorted and with data exports declared using DATA statements.
Asanka Herath [Tue, 24 Aug 2010 08:27:17 +0000 (04:27 -0400)]
Declare ASN.1 exported data using ASN1EXP
Asanka Herath [Tue, 24 Aug 2010 08:24:53 +0000 (04:24 -0400)]
Windows: Check for DATA symbols when scanning .obj files
The export symbol list for ASN.1 on Windows is generated by scanning
all the .obj files and extracting the symbols defined in them. The
generated list did not specify which were functions and which were
data symbols. This distinction is necessary for generating correct
import library stubs.
Asanka Herath [Tue, 24 Aug 2010 04:34:18 +0000 (00:34 -0400)]
Add roken/rename.c to fix non-standard rename()
roken/rename.c is for platforms where the native rename()
implementation does not replace the target if it already exists. This
implementation isn't atomic, but should be close enough for most
purposes.
For correct behavior, rk_rename() should be used instead of rename().
rk_rename() is #defined to be rename() on platforms where this fix is
not necessary.
Asanka Herath [Tue, 24 Aug 2010 04:07:27 +0000 (00:07 -0400)]
Additional tests cases for test_addr.c
On platform where we build our own inet_ntop(), exercise it a bit
more. Specifically for zero string compression of IPv6 addresses.
Asanka Herath [Tue, 24 Aug 2010 04:04:51 +0000 (00:04 -0400)]
Windows: Don't attempt to copy a string to a zero length buffer
It won't cause harm since strcpy_s() deals with zero length buffers,
but it invokes the invalid parameter handler, which can disrupt
execution on debug builds.
Asanka Herath [Tue, 24 Aug 2010 04:04:17 +0000 (00:04 -0400)]
strlcat() isn't supposed to access *dst past dst_sz
Try not to do that on platforms where we can avoid it.
Asanka Herath [Tue, 24 Aug 2010 04:02:12 +0000 (00:02 -0400)]
Windows: Fix use of file descriptors as sockets
Sockets and file descriptors are not interchangeable on Windows. The
test for checking whether a given value is a socket or an FD was
broken for the case where WinSock was not initialized to begin with.
Asanka Herath [Tue, 24 Aug 2010 04:00:16 +0000 (00:00 -0400)]
Fix fcc_remove_cred() on platforms with non-standard rename()
Asanka Herath [Tue, 24 Aug 2010 03:58:59 +0000 (23:58 -0400)]
Windows: Have test binaries depend on built libraries
Asanka Herath [Tue, 24 Aug 2010 03:57:19 +0000 (23:57 -0400)]
Compress zeros when converting IPv6 addresses
libroken implementation of inet_ntop() was not compressing strings of
zeros. While it is optional, not doing so was intefering with address
conversion tests in lib/krb5.
Asanka Herath [Tue, 24 Aug 2010 03:55:09 +0000 (23:55 -0400)]
Don't fail tests for unsupported rand methods
Asanka Herath [Tue, 24 Aug 2010 03:54:01 +0000 (23:54 -0400)]
Windows: Add missing exports to libhcrypto-exports.def
Asanka Herath [Mon, 23 Aug 2010 17:36:01 +0000 (13:36 -0400)]
Windows: Fix dependencies for hcrypto/test_hmac.exe
Asanka Herath [Mon, 23 Aug 2010 17:34:40 +0000 (13:34 -0400)]
Fix calling convention for asn1 tests
Love Hornquist Astrand [Thu, 9 Sep 2010 05:04:03 +0000 (22:04 -0700)]
add krb5_get_permitted_enctypes
Love Hornquist Astrand [Wed, 8 Sep 2010 19:22:12 +0000 (12:22 -0700)]
Define HAVE_CFPROPERTYLISTCREATEWITHSTREAM if this is 10.6 or newer
Love Hornquist Astrand [Wed, 8 Sep 2010 18:35:45 +0000 (11:35 -0700)]
This is a modified version of libeditline and the bugs we introduced are our own
Love Hornquist Astrand [Wed, 8 Sep 2010 17:53:08 +0000 (10:53 -0700)]
pull in <AvailabilityMacros.h> for __APPLE__ hosts
Love Hornquist Astrand [Wed, 8 Sep 2010 16:59:57 +0000 (09:59 -0700)]
move out kdc_locl.h
Love Hornquist Astrand [Wed, 8 Sep 2010 16:50:50 +0000 (09:50 -0700)]
make conditional on apple and have_gcd
Love Hornquist Astrand [Wed, 8 Sep 2010 16:49:03 +0000 (09:49 -0700)]
make work w/o gcd
Love Hornquist Astrand [Wed, 8 Sep 2010 16:45:40 +0000 (09:45 -0700)]
cancel sources
Love Hornquist Astrand [Wed, 8 Sep 2010 16:18:03 +0000 (09:18 -0700)]
condition gcd on HAVE_GCD
Love Hornquist Astrand [Wed, 8 Sep 2010 07:06:40 +0000 (00:06 -0700)]
add validation of hmac
Love Hornquist Astrand [Wed, 8 Sep 2010 07:04:18 +0000 (00:04 -0700)]
add validate.c
Love Hornquist Astrand [Wed, 8 Sep 2010 07:04:10 +0000 (00:04 -0700)]
export hc_hcrypto_validate
Love Hornquist Astrand [Wed, 8 Sep 2010 07:04:01 +0000 (00:04 -0700)]
validate args before use
Love Hornquist Astrand [Wed, 8 Sep 2010 07:03:39 +0000 (00:03 -0700)]
validate args before use
Love Hornquist Astrand [Wed, 8 Sep 2010 07:03:27 +0000 (00:03 -0700)]
simple validation of crypto core
Love Hornquist Astrand [Wed, 8 Sep 2010 06:58:34 +0000 (23:58 -0700)]
add back tfm
Love Hornquist Astrand [Wed, 8 Sep 2010 06:57:12 +0000 (23:57 -0700)]
remove unused variable
Love Hornquist Astrand [Wed, 8 Sep 2010 06:56:40 +0000 (23:56 -0700)]
add missing ;
Love Hornquist Astrand [Wed, 8 Sep 2010 06:25:33 +0000 (23:25 -0700)]
wrap common crypto in HAVE_COMMONCRYPTO_COMMONCRYPTOR_H
Love Hornquist Astrand [Wed, 8 Sep 2010 06:20:04 +0000 (23:20 -0700)]
add check for CommonCrypto/CommonCryptor.h
Eray Aslan [Sun, 5 Sep 2010 15:01:50 +0000 (15:01 +0000)]
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>
Russ Allbery [Thu, 2 Sep 2010 05:50:47 +0000 (22:50 -0700)]
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>
Russ Allbery [Thu, 2 Sep 2010 05:46:14 +0000 (22:46 -0700)]
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>
Love Hornquist Astrand [Thu, 2 Sep 2010 04:56:17 +0000 (21:56 -0700)]
add check-rd-req-server
Love Hornquist Astrand [Thu, 2 Sep 2010 04:00:07 +0000 (21:00 -0700)]
accept >= 0 and valid return codes from RAND_bytes due to broken engine from the isc bind implementation, reported by Sam Liddicott
Derrick Brashear [Tue, 24 Aug 2010 15:04:41 +0000 (11:04 -0400)]
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>
Love Hornquist Astrand [Sat, 28 Aug 2010 20:01:45 +0000 (13:01 -0700)]
Expand on what enterprise names are
Guillaume Rousse [Sat, 28 Aug 2010 17:03:58 +0000 (19:03 +0200)]
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>
Love Hornquist Astrand [Tue, 24 Aug 2010 05:02:10 +0000 (22:02 -0700)]
plug memory leaks
Simon Wilkinson [Sun, 22 Aug 2010 14:03:03 +0000 (15:03 +0100)]
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>
Love Hornquist Astrand [Sat, 21 Aug 2010 02:45:14 +0000 (19:45 -0700)]
Changes from Asanka Herath of Secure Endpoint for additional Microsoft Windows support
Love Hornquist Astrand [Sat, 21 Aug 2010 02:39:20 +0000 (19:39 -0700)]
ignore doxyout
Asanka Herath [Fri, 20 Aug 2010 20:59:36 +0000 (16:59 -0400)]
Windows: Specify target machine architecture in link step
Asanka Herath [Fri, 20 Aug 2010 20:59:12 +0000 (16:59 -0400)]
Windows: New exports for comerr64.dll shim library
Asanka Herath [Fri, 20 Aug 2010 20:58:45 +0000 (16:58 -0400)]
Windows: Fix gssapi{32,64} shim library
Asanka Herath [Fri, 20 Aug 2010 20:57:46 +0000 (16:57 -0400)]
Windows: Missing clean targets shouldn't be fatal
Asanka Herath [Fri, 20 Aug 2010 20:57:21 +0000 (16:57 -0400)]
Windows: heimdal.dll depends on LIBLTM instead of LIBTFM
Asanka Herath [Fri, 20 Aug 2010 20:56:46 +0000 (16:56 -0400)]
Use <errno.h> instead of <sys/errno.h> in hcrypto/common.c
Asanka Herath [Fri, 20 Aug 2010 20:56:20 +0000 (16:56 -0400)]
Windows: Revised exports for libgssapi
Asanka Herath [Fri, 20 Aug 2010 20:55:53 +0000 (16:55 -0400)]
Windows: Fix build rules and includes for libtommath
Asanka Herath [Fri, 20 Aug 2010 20:55:15 +0000 (16:55 -0400)]
Windows: Add missing dependency
Asanka Herath [Fri, 20 Aug 2010 20:53:57 +0000 (16:53 -0400)]
Windows: Build with USE_HCRYPTO_IMATH
Asanka Herath [Fri, 20 Aug 2010 20:53:26 +0000 (16:53 -0400)]
Windows: Add missing dependency
Asanka Herath [Fri, 20 Aug 2010 20:52:46 +0000 (16:52 -0400)]
Windows: Note that the .def files are generated
Asanka Herath [Fri, 20 Aug 2010 05:45:11 +0000 (01:45 -0400)]
Windows: No separate assembly directory
Asanka Herath [Wed, 14 Jul 2010 05:37:38 +0000 (01:37 -0400)]
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.
Asanka Herath [Wed, 14 Jul 2010 05:33:25 +0000 (01:33 -0400)]
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.
Asanka Herath [Wed, 14 Jul 2010 05:31:03 +0000 (01:31 -0400)]
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.
Asanka Herath [Wed, 14 Jul 2010 05:28:32 +0000 (01:28 -0400)]
Windows: Use pushd and popd for recursive builds
This makes it possible to recurse into arbitrary directories instead
of just subdirectories.
Asanka Herath [Wed, 14 Jul 2010 05:27:29 +0000 (01:27 -0400)]
Windows: Use 32-bit time_t on 32-bit builds
Asanka Herath [Wed, 14 Jul 2010 05:26:28 +0000 (01:26 -0400)]
Windows: Fix manifest attribute case
Asanka Herath [Wed, 14 Jul 2010 05:25:17 +0000 (01:25 -0400)]
Windows: Make application manifest available everywhere
Asanka Herath [Wed, 14 Jul 2010 05:21:58 +0000 (01:21 -0400)]
Windows: Rename libgssapi.dll -> gssapi.dll
Asanka Herath [Wed, 14 Jul 2010 05:21:17 +0000 (01:21 -0400)]
Windows: Correct calling convention for krb5_free_unparsed_name()
Asanka Herath [Wed, 14 Jul 2010 05:20:23 +0000 (01:20 -0400)]
Windows: Use correct calling convention for com_err
Asanka Herath [Fri, 9 Jul 2010 04:17:34 +0000 (00:17 -0400)]
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.
Asanka Herath [Thu, 8 Jul 2010 00:41:15 +0000 (20:41 -0400)]
Windows: ASN1_LIB needs to be defined for Heimdal library
Asanka Herath [Thu, 8 Jul 2010 00:40:17 +0000 (20:40 -0400)]
Windows: Add krb5_cc_copy_creds to the exports list
Asanka Herath [Thu, 8 Jul 2010 00:39:25 +0000 (20:39 -0400)]
GSSAPI_DEPRECATED needs to be before the return type
Asanka Herath [Thu, 8 Jul 2010 00:34:58 +0000 (20:34 -0400)]
Export and calling convention annotation for lib/asn1
Asanka Herath [Mon, 28 Jun 2010 16:17:05 +0000 (12:17 -0400)]
Fix calling conventions for Windows
Asanka Herath [Mon, 21 Jun 2010 22:08:14 +0000 (18:08 -0400)]
Windows: Build shared side-by-side assemblies for Heimdal
Asanka Herath [Fri, 18 Jun 2010 22:02:20 +0000 (18:02 -0400)]
Windows: Update version and copyright
Asanka Herath [Fri, 18 Jun 2010 22:01:51 +0000 (18:01 -0400)]
roken/parse_time-test.c: Don't pass in incorrect buffer size
Asanka Herath [Fri, 18 Jun 2010 22:01:08 +0000 (18:01 -0400)]
roken/test-mini_inetd.c: Use of rk_SOCK_INIT() etc.
Asanka Herath [Fri, 18 Jun 2010 22:00:27 +0000 (18:00 -0400)]
Windows: Pull required declarations into roken.h.in
Asanka Herath [Fri, 18 Jun 2010 21:59:48 +0000 (17:59 -0400)]
roken/mini_inetd.c: Don't check against FD_SETSIZE unless necessary
Asanka Herath [Fri, 18 Jun 2010 21:59:00 +0000 (17:59 -0400)]
Windows: Fix lib/hcrypto tests
Asanka Herath [Fri, 18 Jun 2010 21:28:12 +0000 (17:28 -0400)]
Windows: lib/roken tests now depend on DNSAPI
Asanka Herath [Fri, 18 Jun 2010 21:27:28 +0000 (17:27 -0400)]
lib/wind/test-normalize.c: Dump failing vectors
If a Unicode string fails a normalization test, dump it so we can
figure out why its failing.
Asanka Herath [Fri, 18 Jun 2010 21:25:23 +0000 (17:25 -0400)]
lib/hcrypto/test_*: Use "rb" when opening binary files
Asanka Herath [Fri, 18 Jun 2010 21:24:39 +0000 (17:24 -0400)]
test_crypto.in: Also test w32crypto