abartlet/lorikeet-heimdal.git/.git
13 years agoadd padding support via hx509_crypto_set_padding
Love Hornquist Astrand [Wed, 22 Sep 2010 21:41:17 +0000 (14:41 -0700)]
add padding support via hx509_crypto_set_padding

13 years agoremove unused header file
Love Hornquist Astrand [Sun, 19 Sep 2010 08:47:32 +0000 (01:47 -0700)]
remove unused header file

13 years agox
Love Hornquist Astrand [Sun, 19 Sep 2010 08:14:07 +0000 (01:14 -0700)]
x

13 years agoadd PTHREAD_LIBADD
Love Hornquist Astrand [Sun, 19 Sep 2010 07:55:36 +0000 (00:55 -0700)]
add PTHREAD_LIBADD

13 years agoMove to a plugin cache, contributed from Secure Endpoints
Love Hornquist Astrand [Sun, 19 Sep 2010 06:37:06 +0000 (23:37 -0700)]
Move to a plugin cache, contributed from Secure Endpoints

13 years agoGeneralize MSLSA ccache type to a plug-in based ccache type
Asanka C. Herath [Sun, 19 Sep 2010 03:37:32 +0000 (23:37 -0400)]
Generalize MSLSA ccache type to a plug-in based ccache type

13 years agoWindows: Add missing export for libhcrypto-exports.def
Asanka C. Herath [Sat, 18 Sep 2010 19:39:25 +0000 (15:39 -0400)]
Windows: Add missing export for libhcrypto-exports.def

13 years agoremove prefix zeros
Love Hornquist Astrand [Sat, 18 Sep 2010 21:45:33 +0000 (14:45 -0700)]
remove prefix zeros

13 years agoless brokenness
Love Hornquist Astrand [Sat, 18 Sep 2010 18:55:59 +0000 (11:55 -0700)]
less brokenness

13 years agoadd validate.obj
Love Hornquist Astrand [Tue, 14 Sep 2010 17:52:04 +0000 (10:52 -0700)]
add validate.obj

13 years agoUses unsigned ints for lengths
Simon Wilkinson [Sun, 12 Sep 2010 16:48:47 +0000 (17:48 +0100)]
Uses unsigned ints for lengths

EVP_BytesToKey uses min() on a mixture of signed and unsigned
paramters. To avoid compiler warnings, use unsigned int for all
of the iv and key lengths in this function.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
13 years agomake address a full adress
Love Hornquist Astrand [Sat, 18 Sep 2010 18:26:09 +0000 (11:26 -0700)]
make address a full adress

13 years agoFix to build on aix.
Anton Lundin [Fri, 17 Sep 2010 10:42:39 +0000 (12:42 +0200)]
Fix to build on aix.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
13 years agoFix testing when compiled with --disable-afs-support
Anton Lundin [Fri, 17 Sep 2010 10:44:50 +0000 (12:44 +0200)]
Fix testing when compiled with --disable-afs-support

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
13 years agomake addresses not use compression in the middle since diffrent
Love Hornquist Astrand [Fri, 17 Sep 2010 19:20:29 +0000 (12:20 -0700)]
make addresses not use compression in the middle since diffrent
inet_ntop have diffrent way to format them

13 years agoRename struct to not clash with aix header sys/proc.h
Anton Lundin [Thu, 16 Sep 2010 07:57:33 +0000 (09:57 +0200)]
Rename struct to not clash with aix header sys/proc.h

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
13 years agoifdef away code to be able to build with --disable-krb4
Anton Lundin [Thu, 16 Sep 2010 06:18:35 +0000 (08:18 +0200)]
ifdef away code to be able to build with --disable-krb4

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
13 years agouse krb5_unparse_name instead of krb5_unparse_name_short since that doesnt fail....
Love Hornquist Astrand [Fri, 17 Sep 2010 03:59:35 +0000 (20:59 -0700)]
use krb5_unparse_name instead of krb5_unparse_name_short since that doesnt fail. From Zdenek Hatas

13 years agotypecase to avoid warning
Love Hornquist Astrand [Thu, 16 Sep 2010 05:47:52 +0000 (22:47 -0700)]
typecase to avoid warning

13 years agomake test pass
Love Hornquist Astrand [Thu, 16 Sep 2010 04:57:20 +0000 (21:57 -0700)]
make test pass

13 years agoadd version-script.map to distributed files
Guillaume Rousse [Wed, 15 Sep 2010 19:25:48 +0000 (21:25 +0200)]
add version-script.map to distributed files

Signed-off-by: Guillaume Rousse <Guillaume.Rousse@inria.fr>
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
13 years agoadd header files for libtommath
Love Hornquist Astrand [Wed, 15 Sep 2010 19:06:16 +0000 (12:06 -0700)]
add header files for libtommath

13 years agospelling
Love Hornquist Astrand [Tue, 14 Sep 2010 17:44:33 +0000 (10:44 -0700)]
spelling

13 years agoDon't typedef u8, u16, u32 in rijndael-alg-fast.c
Simon Wilkinson [Sun, 12 Sep 2010 13:56:10 +0000 (14:56 +0100)]
Don't typedef u8, u16, u32 in rijndael-alg-fast.c

Some kernels define u8, u16 and u32 in their standard headers.
Redefining these symbols in hcrypto's own code prevents that code
from compiling on those kernels.

Instead, just replace all occurrences of u8, u16 and u32 with the
symbols that uint8_t, uint16_t and uint32_t that they were being
typedef'd as, anyway.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
13 years agoRename current to SHA1current
Simon Wilkinson [Tue, 14 Sep 2010 17:24:43 +0000 (10:24 -0700)]
Rename current to SHA1current

Some kernels define 'current' as a #define. This causes chaos when
we try to build sha.c. So, rename current as 'SHA1current', and avoid
the insanity.

13 years agoadd arguments to rk_rename to move it into the macro/function namespace
Love Hornquist Astrand [Tue, 14 Sep 2010 17:18:08 +0000 (10:18 -0700)]
add arguments to rk_rename to move it into the macro/function namespace

13 years agoNew drop with windows code from Secure Endpoints/Asanka
Love Hornquist Astrand [Tue, 14 Sep 2010 17:08:03 +0000 (10:08 -0700)]
New drop with windows code from Secure Endpoints/Asanka

13 years agoclean better
Love Hornquist Astrand [Mon, 13 Sep 2010 07:23:34 +0000 (00:23 -0700)]
clean better

13 years agoclean better
Love Hornquist Astrand [Mon, 13 Sep 2010 07:22:03 +0000 (00:22 -0700)]
clean better

13 years agoclean better
Love Hornquist Astrand [Mon, 13 Sep 2010 07:21:14 +0000 (00:21 -0700)]
clean better

13 years agoWindows: Build the SDK
Asanka C. Herath [Mon, 13 Sep 2010 02:44:48 +0000 (22:44 -0400)]
Windows: Build the SDK

13 years agoWindows: packages/windows/sdk
Asanka C. Herath [Mon, 13 Sep 2010 02:44:21 +0000 (22:44 -0400)]
Windows: packages/windows/sdk

The Makefile in this directory pulls in the SDK into a separate directory tree.

13 years agoAdd krb5_c_random_make_octets() to mit_glue.c
Asanka Herath [Fri, 10 Sep 2010 18:03:15 +0000 (14:03 -0400)]
Add krb5_c_random_make_octets() to mit_glue.c

13 years agoDefine KRB5_TC_OPENCLOSE and KRB5_TC_NOTICKET in krb5.h
Asanka Herath [Thu, 2 Sep 2010 21:18:48 +0000 (17:18 -0400)]
Define KRB5_TC_OPENCLOSE and KRB5_TC_NOTICKET in krb5.h

13 years agoAdd krb5_free_default_realm() to MIT glue
Asanka Herath [Thu, 2 Sep 2010 21:18:26 +0000 (17:18 -0400)]
Add krb5_free_default_realm() to MIT glue

13 years agoDon't return a freed pointer in allocate_ccache()
Asanka Herath [Thu, 2 Sep 2010 21:17:56 +0000 (17:17 -0400)]
Don't return a freed pointer in allocate_ccache()

13 years agoHandle Windows pathnames properly in krb5_cc_resolve()
Asanka Herath [Thu, 2 Sep 2010 21:15:01 +0000 (17:15 -0400)]
Handle Windows pathnames properly in krb5_cc_resolve()

On Windows, a pathname can contain a drive letter and a colon.
krb5_cc_resolve() used to check whether there were any colons in the
ccache name string and assume it is a FILE: cache if there weren't.
In addition, on Windows, check for a drive specification.

13 years agoWindows: Enable weak crypto by default
Asanka Herath [Thu, 2 Sep 2010 21:13:26 +0000 (17:13 -0400)]
Windows: Enable weak crypto by default

13 years agoklist: If we aren't being verbose, we don't need the full ticket
Asanka Herath [Fri, 27 Aug 2010 20:28:03 +0000 (16:28 -0400)]
klist: If we aren't being verbose, we don't need the full ticket

13 years agoDefine KRB5_TC_NOTICKET
Asanka Herath [Fri, 27 Aug 2010 20:27:17 +0000 (16:27 -0400)]
Define KRB5_TC_NOTICKET

13 years agoFix comment
Asanka Herath [Thu, 26 Aug 2010 20:26:43 +0000 (16:26 -0400)]
Fix comment

13 years agoAdditional MIT glue
Asanka Herath [Thu, 26 Aug 2010 20:25:13 +0000 (16:25 -0400)]
Additional MIT glue

Add compatible exports for:

krb5_auth_con_getsendsubkey()
krb5_auth_con_getrecvsubkey()
krb5_auth_con_setsendsubkey()
krb5_auth_con_setrecvsubkey()

13 years agoDeal with NULL or empty input for expand_path_tokens()
Asanka Herath [Thu, 26 Aug 2010 20:23:42 +0000 (16:23 -0400)]
Deal with NULL or empty input for expand_path_tokens()

_krb5_expand_path_tokens() should return an empty string if the input
string is empty or NULL, instead of always returning a NULL for these
two cases.

13 years agoDon't rely on non-CCAPI v3 exports
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.

13 years agoWindows: Don't ignore failure in test_addr from now on
Asanka Herath [Thu, 26 Aug 2010 20:21:06 +0000 (16:21 -0400)]
Windows: Don't ignore failure in test_addr from now on

13 years agoWindows: Add support for MSLSA: cache type using a plug-in
Asanka Herath [Thu, 26 Aug 2010 20:10:32 +0000 (16:10 -0400)]
Windows: Add support for MSLSA: cache type using a plug-in

13 years agoWindows: Build thirdparty packages if there are any
Asanka Herath [Thu, 26 Aug 2010 20:05:06 +0000 (16:05 -0400)]
Windows: Build thirdparty packages if there are any

13 years agoFix line endings
Asanka Herath [Wed, 25 Aug 2010 15:14:53 +0000 (11:14 -0400)]
Fix line endings

13 years agoWindows: Annotate symbols for libkadm5srv
Asanka Herath [Wed, 25 Aug 2010 15:11:47 +0000 (11:11 -0400)]
Windows: Annotate symbols for libkadm5srv

13 years agoWindows: Build test binaries for kadm5
Asanka Herath [Wed, 25 Aug 2010 04:20:00 +0000 (00:20 -0400)]
Windows: Build test binaries for kadm5

13 years agoWindows: Remove test_hdbkeys from test-run
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.

13 years agoWindows: Fix exports for libhdb
Asanka Herath [Tue, 24 Aug 2010 10:04:28 +0000 (06:04 -0400)]
Windows: Fix exports for libhdb

13 years agoWindows: Fix exports for libgssapi
Asanka Herath [Tue, 24 Aug 2010 10:03:42 +0000 (06:03 -0400)]
Windows: Fix exports for libgssapi

13 years agoWindows: Decorate krb5_cc_copy_creds export definition
Asanka Herath [Tue, 24 Aug 2010 08:31:15 +0000 (04:31 -0400)]
Windows: Decorate krb5_cc_copy_creds export definition

13 years agoAddress of an imported symbol is not always a constant
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.

13 years agoWindows: Build hxtool with the correct options
Asanka Herath [Tue, 24 Aug 2010 08:29:08 +0000 (04:29 -0400)]
Windows: Build hxtool with the correct options

13 years agoWindows: Regenerated libasn1-exports.def
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.

13 years agoDeclare ASN.1 exported data using ASN1EXP
Asanka Herath [Tue, 24 Aug 2010 08:27:17 +0000 (04:27 -0400)]
Declare ASN.1 exported data using ASN1EXP

13 years agoWindows: Check for DATA symbols when scanning .obj files
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.

13 years agoAdd roken/rename.c to fix non-standard rename()
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.

13 years agoAdditional tests cases for test_addr.c
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.

13 years agoWindows: Don't attempt to copy a string to a zero length buffer
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.

13 years agostrlcat() isn't supposed to access *dst past dst_sz
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.

13 years agoWindows: Fix use of file descriptors as sockets
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.

13 years agoFix fcc_remove_cred() on platforms with non-standard rename()
Asanka Herath [Tue, 24 Aug 2010 04:00:16 +0000 (00:00 -0400)]
Fix fcc_remove_cred() on platforms with non-standard rename()

13 years agoWindows: Have test binaries depend on built libraries
Asanka Herath [Tue, 24 Aug 2010 03:58:59 +0000 (23:58 -0400)]
Windows: Have test binaries depend on built libraries

13 years agoCompress zeros when converting IPv6 addresses
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.

13 years agoDon't fail tests for unsupported rand methods
Asanka Herath [Tue, 24 Aug 2010 03:55:09 +0000 (23:55 -0400)]
Don't fail tests for unsupported rand methods

13 years agoWindows: Add missing exports to libhcrypto-exports.def
Asanka Herath [Tue, 24 Aug 2010 03:54:01 +0000 (23:54 -0400)]
Windows: Add missing exports to libhcrypto-exports.def

13 years agoWindows: Fix dependencies for hcrypto/test_hmac.exe
Asanka Herath [Mon, 23 Aug 2010 17:36:01 +0000 (13:36 -0400)]
Windows: Fix dependencies for hcrypto/test_hmac.exe

13 years agoFix calling convention for asn1 tests
Asanka Herath [Mon, 23 Aug 2010 17:34:40 +0000 (13:34 -0400)]
Fix calling convention for asn1 tests

13 years agoadd data/win-u16-in-printablestring.der
Love Hornquist Astrand [Mon, 13 Sep 2010 06:56:08 +0000 (23:56 -0700)]
add data/win-u16-in-printablestring.der

13 years agoadd missing files
Love Hornquist Astrand [Mon, 13 Sep 2010 06:44:03 +0000 (23:44 -0700)]
add missing files

13 years agoadd opt files
Love Hornquist Astrand [Mon, 13 Sep 2010 06:35:30 +0000 (23:35 -0700)]
add opt files

13 years agoremove extra b
Love Hornquist Astrand [Mon, 13 Sep 2010 06:22:41 +0000 (23:22 -0700)]
remove extra b

13 years agoadd heim_ipc_types.h
Love Hornquist Astrand [Mon, 13 Sep 2010 06:18:02 +0000 (23:18 -0700)]
add heim_ipc_types.h

13 years agoinclude hi_locl.h
Love Hornquist Astrand [Mon, 13 Sep 2010 06:10:47 +0000 (23:10 -0700)]
include hi_locl.h

13 years agoadd heim_ipc_reply.defs
Love Hornquist Astrand [Mon, 13 Sep 2010 06:04:00 +0000 (23:04 -0700)]
add heim_ipc_reply.defs

13 years agoadd heim_ipc_async.defs
Love Hornquist Astrand [Mon, 13 Sep 2010 06:01:09 +0000 (23:01 -0700)]
add heim_ipc_async.defs

13 years agoadd heim_ipc.defs
Love Hornquist Astrand [Mon, 13 Sep 2010 05:50:51 +0000 (22:50 -0700)]
add heim_ipc.defs

13 years ago1.4.99
Love Hornquist Astrand [Mon, 13 Sep 2010 05:31:50 +0000 (22:31 -0700)]
1.4.99

13 years agoadd krb5_get_permitted_enctypes
Love Hornquist Astrand [Thu, 9 Sep 2010 05:04:03 +0000 (22:04 -0700)]
add krb5_get_permitted_enctypes

13 years agoDefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM if this is 10.6 or newer
Love Hornquist Astrand [Wed, 8 Sep 2010 19:22:12 +0000 (12:22 -0700)]
Define HAVE_CFPROPERTYLISTCREATEWITHSTREAM if this is 10.6 or newer

13 years agoThis is a modified version of libeditline and the bugs we introduced are our own
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

13 years agopull in <AvailabilityMacros.h> for __APPLE__ hosts
Love Hornquist Astrand [Wed, 8 Sep 2010 17:53:08 +0000 (10:53 -0700)]
pull in <AvailabilityMacros.h> for __APPLE__ hosts

13 years agomove out kdc_locl.h
Love Hornquist Astrand [Wed, 8 Sep 2010 16:59:57 +0000 (09:59 -0700)]
move out kdc_locl.h

13 years agomake conditional on apple and have_gcd
Love Hornquist Astrand [Wed, 8 Sep 2010 16:50:50 +0000 (09:50 -0700)]
make conditional on apple and have_gcd

13 years agomake work w/o gcd
Love Hornquist Astrand [Wed, 8 Sep 2010 16:49:03 +0000 (09:49 -0700)]
make work w/o gcd

13 years agocancel sources
Love Hornquist Astrand [Wed, 8 Sep 2010 16:45:40 +0000 (09:45 -0700)]
cancel sources

13 years agocondition gcd on HAVE_GCD
Love Hornquist Astrand [Wed, 8 Sep 2010 16:18:03 +0000 (09:18 -0700)]
condition gcd on HAVE_GCD

13 years agoadd validation of hmac
Love Hornquist Astrand [Wed, 8 Sep 2010 07:06:40 +0000 (00:06 -0700)]
add validation of hmac

13 years agoadd validate.c
Love Hornquist Astrand [Wed, 8 Sep 2010 07:04:18 +0000 (00:04 -0700)]
add validate.c

13 years agoexport hc_hcrypto_validate
Love Hornquist Astrand [Wed, 8 Sep 2010 07:04:10 +0000 (00:04 -0700)]
export hc_hcrypto_validate

13 years agovalidate args before use
Love Hornquist Astrand [Wed, 8 Sep 2010 07:04:01 +0000 (00:04 -0700)]
validate args before use

13 years agovalidate args before use
Love Hornquist Astrand [Wed, 8 Sep 2010 07:03:39 +0000 (00:03 -0700)]
validate args before use

13 years agosimple validation of crypto core
Love Hornquist Astrand [Wed, 8 Sep 2010 07:03:27 +0000 (00:03 -0700)]
simple validation of crypto core

13 years agoadd back tfm
Love Hornquist Astrand [Wed, 8 Sep 2010 06:58:34 +0000 (23:58 -0700)]
add back tfm

13 years agoremove unused variable
Love Hornquist Astrand [Wed, 8 Sep 2010 06:57:12 +0000 (23:57 -0700)]
remove unused variable

13 years agoadd missing ;
Love Hornquist Astrand [Wed, 8 Sep 2010 06:56:40 +0000 (23:56 -0700)]
add missing ;

13 years agowrap common crypto in HAVE_COMMONCRYPTO_COMMONCRYPTOR_H
Love Hornquist Astrand [Wed, 8 Sep 2010 06:25:33 +0000 (23:25 -0700)]
wrap common crypto in HAVE_COMMONCRYPTO_COMMONCRYPTOR_H