]> git.ipfire.org Git - thirdparty/krb5.git/log
thirdparty/krb5.git
15 years agomerge r22978:23027 of trunk into heimmig lhoward/heimmig
Luke Howard [Sat, 24 Oct 2009 22:43:34 +0000 (22:43 +0000)] 
merge r22978:23027 of trunk into heimmig

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@23028 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoinitialise magic and len fields of krb5_db_entry in HDB backend
Luke Howard [Sat, 24 Oct 2009 22:42:57 +0000 (22:42 +0000)] 
initialise magic and len fields of krb5_db_entry in HDB backend

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@23027 dc483132-0cff-0310-8789-dd5450dbe970

15 years agomerge trunk r:22882:22976 into heimmig branch
Luke Howard [Thu, 22 Oct 2009 22:24:56 +0000 (22:24 +0000)] 
merge trunk r:22882:22976 into heimmig branch

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22977 dc483132-0cff-0310-8789-dd5450dbe970

15 years agofix a typo
Luke Howard [Mon, 19 Oct 2009 16:40:59 +0000 (16:40 +0000)] 
fix a typo

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22935 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoimplement promote_db, cleanup
Luke Howard [Mon, 19 Oct 2009 15:09:55 +0000 (15:09 +0000)] 
implement promote_db, cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22933 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoconsolidate setting of endtime, check for underflow/overflow
Luke Howard [Mon, 19 Oct 2009 14:26:52 +0000 (14:26 +0000)] 
consolidate setting of endtime, check for underflow/overflow

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22932 dc483132-0cff-0310-8789-dd5450dbe970

15 years agorevert mkey/history workarounds now we support them
Luke Howard [Sun, 18 Oct 2009 22:22:56 +0000 (22:22 +0000)] 
revert mkey/history workarounds now we support them

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22928 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd indent mode
Luke Howard [Sun, 18 Oct 2009 22:19:01 +0000 (22:19 +0000)] 
add indent mode

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22927 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoset KRB5_KDB_DISALLOW_ALL_TIX on synthesied master key
Luke Howard [Sun, 18 Oct 2009 22:18:02 +0000 (22:18 +0000)] 
set KRB5_KDB_DISALLOW_ALL_TIX on synthesied master key

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22926 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoallow kadmin to inquire K/M
Luke Howard [Sun, 18 Oct 2009 21:54:45 +0000 (21:54 +0000)] 
allow kadmin to inquire K/M

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22925 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Sun, 18 Oct 2009 21:48:57 +0000 (21:48 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22924 dc483132-0cff-0310-8789-dd5450dbe970

15 years agosome work on master key migration
Luke Howard [Sun, 18 Oct 2009 21:13:06 +0000 (21:13 +0000)] 
some work on master key migration

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22923 dc483132-0cff-0310-8789-dd5450dbe970

15 years agosome more work on master key support
Luke Howard [Sun, 18 Oct 2009 20:46:48 +0000 (20:46 +0000)] 
some more work on master key support

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22922 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCleanup error mapping
Luke Howard [Sun, 18 Oct 2009 20:15:19 +0000 (20:15 +0000)] 
Cleanup error mapping

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22921 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Sun, 18 Oct 2009 20:03:27 +0000 (20:03 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22920 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoonly load WinDC plugin if we are a KDC
Luke Howard [Sun, 18 Oct 2009 13:44:28 +0000 (13:44 +0000)] 
only load WinDC plugin if we are a KDC

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22917 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Sun, 18 Oct 2009 13:23:17 +0000 (13:23 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22916 dc483132-0cff-0310-8789-dd5450dbe970

15 years agorefactor
Luke Howard [Sun, 18 Oct 2009 13:04:41 +0000 (13:04 +0000)] 
refactor

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22915 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoharmonise key sealing interface with MIT
Luke Howard [Sun, 18 Oct 2009 12:54:22 +0000 (12:54 +0000)] 
harmonise key sealing interface with MIT

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22914 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoreenable some disabled code
Luke Howard [Sun, 18 Oct 2009 12:27:24 +0000 (12:27 +0000)] 
reenable some disabled code

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22913 dc483132-0cff-0310-8789-dd5450dbe970

15 years agopreliminary read/write support for HDB shim
Luke Howard [Sun, 18 Oct 2009 03:26:49 +0000 (03:26 +0000)] 
preliminary read/write support for HDB shim

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22910 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoinitialise errinfo
Luke Howard [Sat, 17 Oct 2009 18:00:08 +0000 (18:00 +0000)] 
initialise errinfo

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22909 dc483132-0cff-0310-8789-dd5450dbe970

15 years agofix cross-realm PAC support
Luke Howard [Sat, 17 Oct 2009 16:54:11 +0000 (16:54 +0000)] 
fix cross-realm PAC support

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22908 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 16 Oct 2009 21:02:47 +0000 (21:02 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22907 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 16 Oct 2009 12:21:59 +0000 (12:21 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22904 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Wed, 14 Oct 2009 16:08:37 +0000 (16:08 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22898 dc483132-0cff-0310-8789-dd5450dbe970

15 years agosupport inquiring libhdb ABI version
Luke Howard [Wed, 14 Oct 2009 16:03:55 +0000 (16:03 +0000)] 
support inquiring libhdb ABI version

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22897 dc483132-0cff-0310-8789-dd5450dbe970

15 years agosupport HDB_F_GET_KRBTGT
Luke Howard [Wed, 14 Oct 2009 14:36:26 +0000 (14:36 +0000)] 
support HDB_F_GET_KRBTGT

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22896 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd short-circuit
Luke Howard [Wed, 14 Oct 2009 11:58:38 +0000 (11:58 +0000)] 
add short-circuit

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22895 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoreturn KRB5_KDB_DBTYPE_NOSUP for unimplemented backend methods (excluding methods...
Luke Howard [Wed, 14 Oct 2009 06:07:14 +0000 (06:07 +0000)] 
return KRB5_KDB_DBTYPE_NOSUP for unimplemented backend methods (excluding methods we supply a default implementation for)

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22894 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocheck WinDC plugin init return code
Luke Howard [Tue, 13 Oct 2009 21:00:08 +0000 (21:00 +0000)] 
check WinDC plugin init return code

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22893 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoallow policy methods to propagate e_data to client
Luke Howard [Tue, 13 Oct 2009 20:55:05 +0000 (20:55 +0000)] 
allow policy methods to propagate e_data to client

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22892 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Tue, 13 Oct 2009 20:42:34 +0000 (20:42 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22891 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Tue, 13 Oct 2009 19:38:42 +0000 (19:38 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22889 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd policy checking
Luke Howard [Tue, 13 Oct 2009 19:27:57 +0000 (19:27 +0000)] 
add policy checking

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22887 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoparse TGS key to authdata backend, NB this changes 1.7 authdata SPI
Luke Howard [Tue, 13 Oct 2009 18:46:01 +0000 (18:46 +0000)] 
parse TGS key to authdata backend, NB this changes 1.7 authdata SPI

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22886 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd prototype PAC code, untested
Luke Howard [Tue, 13 Oct 2009 18:10:40 +0000 (18:10 +0000)] 
add prototype PAC code, untested

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22885 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup, show sample invoke callback
Luke Howard [Tue, 13 Oct 2009 11:39:02 +0000 (11:39 +0000)] 
cleanup, show sample invoke callback

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22884 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd extension marshalling infrastructure
Luke Howard [Mon, 12 Oct 2009 23:12:18 +0000 (23:12 +0000)] 
add extension marshalling infrastructure

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22883 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoprototype KDB to HDB shim
Luke Howard [Mon, 12 Oct 2009 22:55:43 +0000 (22:55 +0000)] 
prototype KDB to HDB shim

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22882 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCreating a branch to explore Heimdal to MIT migration options
Luke Howard [Mon, 12 Oct 2009 12:37:45 +0000 (12:37 +0000)] 
Creating a branch to explore Heimdal to MIT migration options

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/heimmig@22881 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix memory leak and init those magic number fields to prevent compiler warning
Ezra Peisach [Sat, 10 Oct 2009 11:33:01 +0000 (11:33 +0000)] 
Fix memory leak and init those magic number fields to prevent compiler warning
when structure copied.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22879 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoClean nfold.o on make clean
Ezra Peisach [Sat, 10 Oct 2009 11:32:25 +0000 (11:32 +0000)] 
Clean nfold.o on make clean

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22878 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoMove destest to builtin/des, because it depends on overriding some
Tom Yu [Sat, 10 Oct 2009 03:57:45 +0000 (03:57 +0000)] 
Move destest to builtin/des, because it depends on overriding some
internals.

Make depend.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22877 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRemove krb5.conf, bigendian.o, and bigendian on make clean
Ezra Peisach [Sat, 10 Oct 2009 01:49:38 +0000 (01:49 +0000)] 
Remove krb5.conf, bigendian.o, and bigendian on make clean

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22876 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoImplement GSS naming extensions and authdata verification
Greg Hudson [Fri, 9 Oct 2009 18:29:34 +0000 (18:29 +0000)] 
Implement GSS naming extensions and authdata verification

Merge Luke's users/lhoward/authdata branch to trunk.  Implements GSS naming
extensions and verification of authorization data.

ticket: 6572

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22875 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoGet aes-gen to build again (for the default back end, at least)
Greg Hudson [Fri, 9 Oct 2009 17:18:50 +0000 (17:18 +0000)] 
Get aes-gen to build again (for the default back end, at least)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22873 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoIn asn1_decode_enc_kdc_rep_part, don't leak the enc_padata field on
Greg Hudson [Fri, 9 Oct 2009 14:21:04 +0000 (14:21 +0000)] 
In asn1_decode_enc_kdc_rep_part, don't leak the enc_padata field on
invalid representations.

ticket: 6571
tags: pullup
target_version: 1.7.1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22872 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoIn anticipation of a new version of OpenSSL 1.0.0, support renamed API: EVP_PKEY_decr...
Zhanna Tsitkov [Thu, 8 Oct 2009 16:11:01 +0000 (16:11 +0000)] 
In anticipation of a new version of OpenSSL 1.0.0, support renamed API: EVP_PKEY_decrypt -> EVP_PKEY_decrypt_old

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22871 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoIn krb5_c_verify_checksum, avoid the structure copy of *data since we
Greg Hudson [Thu, 8 Oct 2009 12:59:33 +0000 (12:59 +0000)] 
In krb5_c_verify_checksum, avoid the structure copy of *data since we
don't care about data->magic.  Squashes a bunch of unimportant
Coverity defects.  (May not be the correct long-term solution.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22868 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoIn krb5_calculate_checksum (a compatibility routine), initialize
Greg Hudson [Thu, 8 Oct 2009 12:58:56 +0000 (12:58 +0000)] 
In krb5_calculate_checksum (a compatibility routine), initialize
key.enctype to ENCTYPE_NULL.  This will predictably fail to match a
keyed hash's enctype, which may not be the best behavior, but is
better than unpredictably failing to match it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22867 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoIn krb5_c_make_checksum, avoid the structure copy of *input since we
Greg Hudson [Wed, 7 Oct 2009 18:14:49 +0000 (18:14 +0000)] 
In krb5_c_make_checksum, avoid the structure copy of *input since we
don't care about input->magic.  Squashes a bunch of unimportant
Coverity defects.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22866 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix krb5_c_weak_enctype in the case of invalid enctypes; r22839
Greg Hudson [Wed, 7 Oct 2009 18:13:29 +0000 (18:13 +0000)] 
Fix krb5_c_weak_enctype in the case of invalid enctypes; r22839
simplified it a bit too much.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22865 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRemove an outdated parenthetical comment about master_kdc; we actually
Greg Hudson [Wed, 7 Oct 2009 16:39:54 +0000 (16:39 +0000)] 
Remove an outdated parenthetical comment about master_kdc; we actually
do check if the response came from the master KDC now.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22864 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoIn krb5_encrypt_helper, return ENOMEM instead of 0 if we can't
Greg Hudson [Tue, 6 Oct 2009 16:36:34 +0000 (16:36 +0000)] 
In krb5_encrypt_helper, return ENOMEM instead of 0 if we can't
allocate the ciphertext buffer.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22860 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCrypto modularity proj: Populate openssl/aes dir
Zhanna Tsitkov [Tue, 6 Oct 2009 16:20:19 +0000 (16:20 +0000)] 
Crypto modularity proj: Populate openssl/aes dir

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22859 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoSlightly more comprehensible message for KRB5_RC_IO
Ken Raeburn [Tue, 6 Oct 2009 15:54:50 +0000 (15:54 +0000)] 
Slightly more comprehensible message for KRB5_RC_IO

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22857 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix object file path
Zhanna Tsitkov [Tue, 6 Oct 2009 15:47:04 +0000 (15:47 +0000)] 
Fix object file path

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22856 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoImpl. krb5int_aes_enc/decrypt_iov. Passes t_encrypt test
Zhanna Tsitkov [Sun, 4 Oct 2009 18:37:09 +0000 (18:37 +0000)] 
Impl. krb5int_aes_enc/decrypt_iov. Passes t_encrypt test

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22843 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoUpdate the crypto derived key support code to conform to most of the
Greg Hudson [Sat, 3 Oct 2009 18:07:44 +0000 (18:07 +0000)] 
Update the crypto derived key support code to conform to most of the
current coding practices (except lack of tabs).  Use the helper
functions k5alloc, zapfree, and find_enctype to reduce code size.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22840 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoUpdate the crypto API glue to conform to most of the current coding
Greg Hudson [Sat, 3 Oct 2009 16:03:15 +0000 (16:03 +0000)] 
Update the crypto API glue to conform to most of the current coding
practices (except lack of tabs).  Use the helper functions k5alloc,
zapfree, and find_enctype to reduce code size.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22839 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAdd convenience functions zapfree (test for null, zap, free) and
Greg Hudson [Sat, 3 Oct 2009 14:46:54 +0000 (14:46 +0000)] 
Add convenience functions zapfree (test for null, zap, free) and
k5alloc (allocate memory, set a krb5_error_code result) to k5-int.h.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22838 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCrypto modularity proj: Populae openssl/arcfour dir
Zhanna Tsitkov [Thu, 1 Oct 2009 22:54:27 +0000 (22:54 +0000)] 
Crypto modularity proj: Populae openssl/arcfour dir

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22825 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCrypto modularity proj: Populate openssl/des dir.
Zhanna Tsitkov [Thu, 1 Oct 2009 21:46:57 +0000 (21:46 +0000)] 
Crypto modularity proj: Populate openssl/des dir.
To avoid breaking the export list some functions (mostly mit_xxx) are left in place with the disabled functionality.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22821 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCrypto modulrity proj: Basic AES crypto for openssl impl
Zhanna Tsitkov [Thu, 1 Oct 2009 21:18:05 +0000 (21:18 +0000)] 
Crypto modulrity proj: Basic AES crypto for openssl impl

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22820 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCleanup
Zhanna Tsitkov [Thu, 1 Oct 2009 18:39:42 +0000 (18:39 +0000)] 
Cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22819 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCrypto modularity proj: SHS_INFO structure is defined differently for crypto impl...
Zhanna Tsitkov [Wed, 30 Sep 2009 22:33:41 +0000 (22:33 +0000)] 
Crypto modularity proj: SHS_INFO structure is defined differently for crypto impl's. Files hash_sha1.c and yhash.h are affected by this difference. Move hash_provider into the backend

The following bigredbutton is used to suppress svn complains about the trailing spaces in the moved/copied dirs.
bigredbutton: whitespace

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22815 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix include path to pick up the correct headers
Zhanna Tsitkov [Tue, 29 Sep 2009 14:38:51 +0000 (14:38 +0000)] 
Fix include path to pick up the correct headers

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22814 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRemove OBJS.ST from SUBDIROBJLISTS so that running make does not
Ezra Peisach [Tue, 29 Sep 2009 00:31:54 +0000 (00:31 +0000)] 
Remove OBJS.ST from SUBDIROBJLISTS so that running make does not
rebuild shared library when running make from the top.  (make
otherwise thinks that OBJS.ST depends on "all-recurse" - which does
not exist, and rebuilds it all the time.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22806 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix a braino in r22790
Greg Hudson [Mon, 28 Sep 2009 04:00:27 +0000 (04:00 +0000)] 
Fix a braino in r22790

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22791 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix a few problems introduced by r22787
Greg Hudson [Mon, 28 Sep 2009 01:47:32 +0000 (01:47 +0000)] 
Fix a few problems introduced by r22787

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22790 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAdd keytab_local.c to the kadmin client SRCS variable, so that we
Greg Hudson [Fri, 25 Sep 2009 16:57:22 +0000 (16:57 +0000)] 
Add keytab_local.c to the kadmin client SRCS variable, so that we
generate dependencies for its object file.  This change causes
kadmin.local to be properly rebuilt when keytab.c changes.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22789 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix a few bugs in kadmin's keytab.c from r22785
Greg Hudson [Fri, 25 Sep 2009 16:31:40 +0000 (16:31 +0000)] 
Fix a few bugs in kadmin's keytab.c from r22785

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22788 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoClean up krb5_get_credentials:
Greg Hudson [Fri, 25 Sep 2009 15:20:19 +0000 (15:20 +0000)] 
Clean up krb5_get_credentials:
  * Use the current coding practice for output parameters.
  * Rename the helper function krb5_get_credentials_core to
    krb5int_construct_matching_creds and document it.
  * Don't fail out if we fail to cache intermediate tgts.
  * Simplify conditional logic and variable handling.  ncreds is now
    always a temporary holder for the resulting credentials.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22787 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCrypto modularity proj: Updated IOV crypto
Zhanna Tsitkov [Fri, 25 Sep 2009 15:12:27 +0000 (15:12 +0000)] 
Crypto modularity proj: Updated IOV crypto

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22786 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoUpdate the kadmin client code to most current coding practices
Greg Hudson [Thu, 24 Sep 2009 16:48:57 +0000 (16:48 +0000)] 
Update the kadmin client code to most current coding practices

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22785 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix kadm5 unit test modified in r22782
Greg Hudson [Thu, 24 Sep 2009 15:40:26 +0000 (15:40 +0000)] 
Fix kadm5 unit test modified in r22782

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22784 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix a braino in r22782: we don't use strcpy even safely; use strlcpy
Greg Hudson [Tue, 22 Sep 2009 16:46:06 +0000 (16:46 +0000)] 
Fix a braino in r22782: we don't use strcpy even safely; use strlcpy
instead.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22783 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoImprove the mechanism used for addprinc -randkey. In the kadmin
Greg Hudson [Mon, 21 Sep 2009 18:40:02 +0000 (18:40 +0000)] 
Improve the mechanism used for addprinc -randkey.  In the kadmin
server, if the password is null when creating a principal, treat that
as a request for a random key.  In the kadmin client, try using the
new method for random key creation and then fall back to the old one.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22782 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix addprinc -randkey when policy requires multiple character classes
Greg Hudson [Mon, 21 Sep 2009 16:11:26 +0000 (16:11 +0000)] 
Fix addprinc -randkey when policy requires multiple character classes

The fix for ticket #6074 (r20650) caused a partial regression of
ticket #115 (r9210) because the dummy password contained only one
character class.  As a minimal 1.7 fix, use all five character classes
in the dummy password.

ticket: 6568
tags: pullup
target_version: 1.7.1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22781 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix a few bugs in r22736. Cherry-picked from Luke's authdata branch
Greg Hudson [Mon, 21 Sep 2009 15:53:47 +0000 (15:53 +0000)] 
Fix a few bugs in r22736.  Cherry-picked from Luke's authdata branch

ticket: 6563

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22780 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoClean up warnings of unused variables that have crept into the source tree..
Ezra Peisach [Sun, 20 Sep 2009 22:23:52 +0000 (22:23 +0000)] 
Clean up warnings of unused variables that have crept into the source tree..

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22779 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoUse enc_provider for des hash routines. Also needed by Crypto modularity proj
Zhanna Tsitkov [Fri, 18 Sep 2009 19:10:48 +0000 (19:10 +0000)] 
Use enc_provider for des hash routines. Also needed by Crypto modularity proj

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22778 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRemove krb5_decode_leak test program on "make clean"
Greg Hudson [Wed, 16 Sep 2009 22:58:01 +0000 (22:58 +0000)] 
Remove krb5_decode_leak test program on "make clean"

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22777 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRemove autoconf.h on "make distclean".
Greg Hudson [Wed, 16 Sep 2009 22:54:59 +0000 (22:54 +0000)] 
Remove autoconf.h on "make distclean".
Check for the presence of a build in the src tree for "make depend".
Suggest "make distclean" when "make depend" detects a build in the
 src tree or an attempt to make depend in the src tree.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22776 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRe-run make depend without autoconf.h in the source tree
Greg Hudson [Wed, 16 Sep 2009 20:51:50 +0000 (20:51 +0000)] 
Re-run make depend without autoconf.h in the source tree

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22775 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCreate DB headers before recursing for "make depend" in
Greg Hudson [Wed, 16 Sep 2009 20:51:17 +0000 (20:51 +0000)] 
Create DB headers before recursing for "make depend" in
plugins/kdb/db2/libdb2, to restore the r22486 functionality ("make
depend" in an unbuilt source tree) after r22572 (predictable "make
depend" output for DB headers).

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22774 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix return value of krb5int_des_make_key from rev 22769
Zhanna Tsitkov [Wed, 16 Sep 2009 17:58:58 +0000 (17:58 +0000)] 
Fix return value of krb5int_des_make_key from rev 22769

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22770 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCrypto modularity proj.: Move prf and random-to-key ops from backend to krb
Zhanna Tsitkov [Wed, 16 Sep 2009 16:51:13 +0000 (16:51 +0000)] 
Crypto modularity proj.: Move prf and random-to-key ops from backend to krb

bigredbutton: whitespace

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22769 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix stupid logic bug in last version
Ken Raeburn [Tue, 15 Sep 2009 19:28:31 +0000 (19:28 +0000)] 
Fix stupid logic bug in last version

ticket: 6565

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22766 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAdd t_unal.c to SRCS and generate dependencies..
Ezra Peisach [Tue, 15 Sep 2009 16:28:15 +0000 (16:28 +0000)] 
Add t_unal.c to SRCS and generate dependencies..

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22765 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoTest byte ordering determination and unaligned access
Ken Raeburn [Tue, 15 Sep 2009 06:19:32 +0000 (06:19 +0000)] 
Test byte ordering determination and unaligned access

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22762 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCheck __BIG_ENDIAN__ and __LITTLE_ENDIAN__ to determine endianness.
Ken Raeburn [Tue, 15 Sep 2009 06:17:17 +0000 (06:17 +0000)] 
Check __BIG_ENDIAN__ and __LITTLE_ENDIAN__ to determine endianness.
In fallback code, check ia64 platforms for hpux vs everything else;
HP-UX uses big-endian mode.

ticket: 6565

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22761 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoInitialize several variables - so that on error cleanup - we do not try to free
Ezra Peisach [Mon, 14 Sep 2009 02:03:28 +0000 (02:03 +0000)] 
Initialize several variables - so that on error cleanup - we do not try to free
bogus memory.

The ticket is still open as the kproplog test is failing - but no coredump.

ticket: 6564
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22750 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRemove src/lib/crypto/krb/enc_provider, which was accidentally
Greg Hudson [Sun, 13 Sep 2009 14:23:37 +0000 (14:23 +0000)] 
Remove src/lib/crypto/krb/enc_provider, which was accidentally
resurrected in the S4U merge after being moved into the back-end
directories in r22707.

ticket: 6563

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22744 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoImplement s4u extensions
Greg Hudson [Sun, 13 Sep 2009 02:52:23 +0000 (02:52 +0000)] 
Implement s4u extensions

Merge Luke's users/lhoward/s4u branch to trunk.  Implements S4U2Self
and S4U2Proxy extensions.

ticket: 6563

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22736 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoIn the top-level configure.in, switch from dnl comments to # comments
Greg Hudson [Fri, 11 Sep 2009 22:28:42 +0000 (22:28 +0000)] 
In the top-level configure.in, switch from dnl comments to # comments
as recommended by the autoconf documentation, for improved
readability.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22735 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix parsing of GSS exported names
Greg Hudson [Fri, 11 Sep 2009 17:30:51 +0000 (17:30 +0000)] 
Fix parsing of GSS exported names

Cherry-picked from Luke's authdata branch.

ticket: 6559
tags: pullup
target_version: 1.7.1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22732 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoIn ksetpwd (a program we don't yet install), don't display the new
Greg Hudson [Wed, 9 Sep 2009 18:44:23 +0000 (18:44 +0000)] 
In ksetpwd (a program we don't yet install), don't display the new
password to stderr.  Cherry-picked from Luke's s4u branch since it's
an unrelated change.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22719 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix memory leak in gss_krb5int_copy_ccache
Greg Hudson [Wed, 9 Sep 2009 15:17:09 +0000 (15:17 +0000)] 
Fix memory leak in gss_krb5int_copy_ccache

gss_krb5int_copy_ccache was iterating over credentials in a ccache
without freeing them.

ticket: 6558
tags: pullup
target_version: 1.7.1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22718 dc483132-0cff-0310-8789-dd5450dbe970