krb5.git
21 years agomake-depend updates
Ken Raeburn [Sat, 24 May 2003 01:33:03 +0000 (01:33 +0000)]
make-depend updates

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

21 years agoWhen generating etype_info2 for DES style keys, use s2kparams to
Sam Hartman [Sat, 24 May 2003 01:03:30 +0000 (01:03 +0000)]
When generating etype_info2 for DES style keys, use s2kparams to
communicate the type if the key has afs3 salt.

If such s2kparams are received by the client, use the afs string2key
function to process the key.

Ticket: 1512
Tags: pullup

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

21 years agoPopulate etype_info_entry.s2kparams.data
Sam Hartman [Sat, 24 May 2003 00:59:25 +0000 (00:59 +0000)]
Populate etype_info_entry.s2kparams.data

The ASN.1 decoder for etype_info_entry accidentally throws away the
pointer to s2kparams data.  Don't Correctly store the pointer.

Ticket: new
Target_Version: 1.3
Tags: pullup

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

21 years agoupdate descriptions of OS-specific configure options
Ken Raeburn [Fri, 23 May 2003 23:55:12 +0000 (23:55 +0000)]
update descriptions of OS-specific configure options

* build.texinfo (HPUX, Solaris 2.X, Ultrix 4.2/3 [notdef]): Replace
descriptions of old --with- options with VAR=.
(Solaris 2.X): Suggest that defining _XOPEN_SOURCE and __EXTENSIONS__ might
help for 64-bit mode.

ticket: new
target_version: 1.3
tags: pullup

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

21 years ago * admin.texinfo (appdefaults): Clarify afs_krb5 slightly
Tom Yu [Fri, 23 May 2003 23:01:45 +0000 (23:01 +0000)]
* admin.texinfo (appdefaults): Clarify afs_krb5 slightly

ticket: 1192

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

21 years agouse kdc_default_options
Sam Hartman [Fri, 23 May 2003 16:41:43 +0000 (16:41 +0000)]
use kdc_default_options

The documentation and context initialization supports an option called
kdc_default_options which is an integer that sets the default KDC
request flags.  Make the code actually use the option.

Ticket: new
Component: krb5-libs

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

21 years agoDocument afs_krb5 appdefaults section
Sam Hartman [Fri, 23 May 2003 16:33:58 +0000 (16:33 +0000)]
Document afs_krb5 appdefaults section

Ticket: 1192
Tags: pullup

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

21 years agoMemory leak in kdc etype_info2 preauth
Ezra Peisach [Fri, 23 May 2003 06:55:39 +0000 (06:55 +0000)]
Memory leak in kdc etype_info2 preauth

* kdc_preauth.c (return_etype_info2): After encoding the
etype_info2 and copying the pointers to the pa_data, free the
krb5_data pointer.

Ticket: new
Target_Version: 1.3
Tags: pickup

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

21 years ago * gen_seqnum.c (krb5_generate_seq_number): Fix think-o on sequence
Tom Yu [Fri, 23 May 2003 04:07:00 +0000 (04:07 +0000)]
* gen_seqnum.c (krb5_generate_seq_number): Fix think-o on sequence
number mask.

ticket: 1262
status: open

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

21 years agoImplement heuristic for matching broken Heimdal sequence number encodings
Tom Yu [Fri, 23 May 2003 03:37:59 +0000 (03:37 +0000)]
Implement heuristic for matching broken Heimdal sequence number encodings

ticket: 1263
target_version: 1.3
tags: pullup
status: open

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

21 years ago * kt_file.c (krb5_ktfile_get_entry): Check principal name prior to
Tom Yu [Thu, 22 May 2003 23:13:49 +0000 (23:13 +0000)]
* kt_file.c (krb5_ktfile_get_entry): Check principal name prior to
checking enctype.  Suggested by Wyllys Ingersoll.

ticket: 1229
status: open
tags: pullup

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

21 years agoDefault KRB5_DEPRECATED to 0, but force it to 1 for in-tree stuff
Tom Yu [Thu, 22 May 2003 22:25:03 +0000 (22:25 +0000)]
Default KRB5_DEPRECATED to 0, but force it to 1 for in-tree stuff

ticket: 1483
tags: pullup
status: open

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

21 years agoLog transited checkd not done as info not error
Sam Hartman [Thu, 22 May 2003 20:28:21 +0000 (20:28 +0000)]
Log transited checkd not done as info not error

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

21 years agoProvide an explicit list of options not to be allowed in AS requests
Sam Hartman [Thu, 22 May 2003 20:26:59 +0000 (20:26 +0000)]
Provide an explicit list of options not to be allowed in AS requests
rather than disallowing all unknown options.

Ticket: 1202
Tags: pullup

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

21 years agoCross realm checks can check beyond end of buffer
Ezra Peisach [Thu, 22 May 2003 17:31:57 +0000 (17:31 +0000)]
Cross realm checks can check beyond end of buffer

        * keytab.c (is_xrealm_tgt): Use strncmp instead of strcmp - as
        principal and realm name do not need to be null terminated.

ticket: new
tags: pullup
target_version: 1.3

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

21 years agokrb5int_populate_gic_opt should return void
Sam Hartman [Thu, 22 May 2003 17:09:52 +0000 (17:09 +0000)]
krb5int_populate_gic_opt should return void

Since none of the functions it calls can return an error, this should
return void.

Ticket: new
Target_Version: 1.3
Tags: pullup

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

21 years ago * kdb5_mkdums.c (main): When attempting to register writable
Ezra Peisach [Thu, 22 May 2003 15:46:27 +0000 (15:46 +0000)]
    * kdb5_mkdums.c (main): When attempting to register writable
        keytab, do not fail if error is KRB5_KT_TYPE_EXISTS.

Ticket: 1501
Target_Version: 1.3
Tags: pullup

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

21 years agoSet length correctly in krb5_get_in_tkt_with_password if password is
Tom Yu [Wed, 21 May 2003 23:55:58 +0000 (23:55 +0000)]
Set length correctly in krb5_get_in_tkt_with_password if password is
actually passed in.  Also, fix test suite to be more lenient about
password prompts, which changed under the previous patches for this
ticket.

ticket: 1480

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

21 years agokrb5_get_in_tkt now only supports old (non-etype-info2) enctypes
Sam Hartman [Tue, 20 May 2003 22:29:57 +0000 (22:29 +0000)]
krb5_get_in_tkt now only supports old (non-etype-info2) enctypes

Ticket: 1480
Tags: pullup

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

21 years agoImplement krb5_get_in_tkt_with_password and
Sam Hartman [Tue, 20 May 2003 21:22:48 +0000 (21:22 +0000)]
Implement krb5_get_in_tkt_with_password and
krb5_get_in_tkt_with_keytab in terms of krb5_get_init_creds.
 It turns out that these do in fact need to use get_init_creds not
get_init_creds_{password,keytab} because of those functions do not
allow the AS request to be returned.

Ticket: 1480
Status: open

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

21 years ago * asn1_k_encode.c (asn1_encode_krb_safe_body): Use
Ezra Peisach [Tue, 20 May 2003 14:34:53 +0000 (14:34 +0000)]
* asn1_k_encode.c (asn1_encode_krb_safe_body): Use
asn1_encode_unsigned_integer for sequence number.

* asn1_k_decode.c (asn1_decode_krb_safe_body): Use
asn1_decode_seqnum to decode sequence number.

ticket: 1262
status: open

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

21 years agoRegister writable keytabs by default
Sam Hartman [Mon, 19 May 2003 17:34:41 +0000 (17:34 +0000)]
Register writable keytabs by default

We have a customer requirement to support writable keytabs using the
public API in 1.3 Discussion on krbcore indicates there is no good
reason why these are not registered by default.  So, they are now
registered by default.

Also adjust other code in the tree not to try and register them.

Ticket: new
Target_Version: 1.3
Component: krb5-libs
Tags: pullup

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

21 years ago* depgen.sed: Put print command on separate lines from substitution commands,
Ken Raeburn [Sun, 18 May 2003 09:01:47 +0000 (09:01 +0000)]
* depgen.sed: Put print command on separate lines from substitution commands,
instead of using s///p form.

ticket: 1364

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

21 years agoSequence numbers are now unsigned. Implement lenient parser for
Tom Yu [Sun, 18 May 2003 05:16:05 +0000 (05:16 +0000)]
Sequence numbers are now unsigned.  Implement lenient parser for
sequence numbers which folds received negative sequence numbers into
positive unsigned numbers.  Constrain the space of initial sequence
numbers to facilitate backwards compatibility.

ticket: 1262
status: open

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

21 years ago* schpw.c (process_chpw_request): Return KRB5_KPASSWD_BAD_VERSION if the
Ken Raeburn [Sat, 17 May 2003 01:57:43 +0000 (01:57 +0000)]
* schpw.c (process_chpw_request): Return KRB5_KPASSWD_BAD_VERSION if the
version number isn't 1.

ticket: 1441
tags: pullup

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

21 years ago* chpw.c (krb5int_rd_chpw_rep): Allow new kpasswd error codes up through
Ken Raeburn [Sat, 17 May 2003 01:56:10 +0000 (01:56 +0000)]
* chpw.c (krb5int_rd_chpw_rep): Allow new kpasswd error codes up through
_INITIAL_FLAG_NEEDED.

ticket: 1441
status: open

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

21 years agoDefine the new error codes
Ken Raeburn [Sat, 17 May 2003 01:55:28 +0000 (01:55 +0000)]
Define the new error codes

* krb5.hin (KRB5_KPASSWD_ACCESSDENIED): New macro.
(KRB5_KPASSWD_BAD_VERSION, KRB5_KPASSWD_INITIAL_FLAG_NEEDED): New macros.

ticket: 1441

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

21 years ago* ser_ctx.c (krb5_context_internalize): Copy read-in OS context data into
Ken Raeburn [Sat, 17 May 2003 01:51:53 +0000 (01:51 +0000)]
* ser_ctx.c (krb5_context_internalize): Copy read-in OS context data into
krb5_context and free up the newly allocated OS context.

ticket: 1497
status: open

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

21 years ago* default.exp (spawn_xterm): Add KPASSWD and REALMNAME to the list of exported
Ken Raeburn [Sat, 17 May 2003 01:48:44 +0000 (01:48 +0000)]
* default.exp (spawn_xterm): Add KPASSWD and REALMNAME to the list of exported
variables.

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

21 years ago * mkrel: Remote autom4te.cache files
Tom Yu [Thu, 15 May 2003 23:42:21 +0000 (23:42 +0000)]
* mkrel: Remote autom4te.cache files

ticket: 1492
target_version: 1.3
tags: pullup

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

21 years agoOnly allow combine_keys to work on des and 3des enctypes. It is not
Sam Hartman [Thu, 15 May 2003 20:20:46 +0000 (20:20 +0000)]
Only allow combine_keys to work on des and 3des enctypes.  It is not
supported for rc4 or AES until we implement the crypto framework PRF.

Ticket: 1248
Tags: pullup

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

21 years agoKfM should export krb5_c_string_to_key_with_params
Alexandra Ellwood [Thu, 15 May 2003 18:55:12 +0000 (18:55 +0000)]
KfM should export krb5_c_string_to_key_with_params

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

21 years agoBe more friendly towards parallel builds
Ken Raeburn [Wed, 14 May 2003 20:48:22 +0000 (20:48 +0000)]
Be more friendly towards parallel builds

* Makefile.in ($(EHDRDIR)$(S)timestamp): New target, used for ensuring
$(EHDRDIR) exists.
(clean-unix): Delete the dummy file.
($(EHDRDIR)$(S)gssapi.h): Depend on it, instead of creating the directory here.
($(EHDRDIR)$(S)gssapi_generic.h): Likewise.

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

21 years agoUpdate for krb5-1.3-beta1
Tom Yu [Wed, 14 May 2003 19:32:45 +0000 (19:32 +0000)]
Update for krb5-1.3-beta1

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

21 years agoAllow the KDC to return bad integrity errors to the client on preauth
Sam Hartman [Wed, 14 May 2003 19:28:48 +0000 (19:28 +0000)]
Allow the KDC to return bad integrity errors to the client on preauth
failure.  This will be translated by the client into password
incorrect.

Ticket: 1488
Target_Version: 1.3
Tags: pullup
Component: krb5-kdc

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

21 years ago* start_servers_local: Set KRB5RCACHEDIR.
Ken Raeburn [Wed, 14 May 2003 00:26:17 +0000 (00:26 +0000)]
* start_servers_local: Set KRB5RCACHEDIR.
* stop_servers_local: Set KRB5RCACHEDIR.  Use the correct filename when
deleting the replay cache file.

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

21 years agoprovide shorthand aliases for AES enctypes
Ken Raeburn [Tue, 13 May 2003 23:24:36 +0000 (23:24 +0000)]
provide shorthand aliases for AES enctypes

* etypes.c (krb5_enctypes_list): Add names aes128-cts and aes256-cts as
aliases.

ticket: new
target_version: 1.3
tags: pullup

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

21 years agoTry forwarding with no enctype restriction if forwarding with an
Sam Hartman [Tue, 13 May 2003 21:53:59 +0000 (21:53 +0000)]
Try forwarding with no enctype restriction if forwarding with an
enctype restriction fails.  This is sufficient for 1.3.

Ticket: 1473

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

21 years ago * gssapi_krb5.h: Remove check for GSS_RFC_COMPLIANT_OIDS
Tom Yu [Tue, 13 May 2003 21:04:33 +0000 (21:04 +0000)]
* gssapi_krb5.h: Remove check for GSS_RFC_COMPLIANT_OIDS

ticket: 1482
status: open
tags: pullup
target_version: 1.3

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

21 years agoAES shouldn't be in KDC default enctype list
Ken Raeburn [Tue, 13 May 2003 21:01:09 +0000 (21:01 +0000)]
AES shouldn't be in KDC default enctype list

Until all services including GSS-based ones can support AES, we don't
want it in the default supported enctypes list on the KDC.

ticket: new
tags: pullup
target_version: 1.3

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

21 years agoreduce AES string-to-key iteration count to 4096
Ken Raeburn [Tue, 13 May 2003 20:24:57 +0000 (20:24 +0000)]
reduce AES string-to-key iteration count to 4096

* aes_s2k.c (DEFAULT_ITERATION_COUNT): New macro; define to 4096.
(MAX_ITERATION_COUNT): New macro.
(krb5int_aes_string_to_key): Use them.

Also added a proper copyright notice.

ticket: new
tags: pullup
target_version: 1.3

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

21 years agoFix minor error in previous commit that broke v4 salts
Sam Hartman [Tue, 13 May 2003 17:56:20 +0000 (17:56 +0000)]
Fix minor error in previous commit  that broke  v4 salts

Ticket: 1470
Tags: pullup

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

21 years agoFix memory leaks and double frees in preauth2.c
Sam Hartman [Tue, 13 May 2003 17:05:27 +0000 (17:05 +0000)]
Fix memory leaks and double frees in preauth2.c

Ticket: 1470
Tags: pullup

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

21 years agoAdd AES enctypes to t_encrypt
Sam Hartman [Tue, 13 May 2003 16:22:21 +0000 (16:22 +0000)]
Add AES enctypes to t_encrypt

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

21 years ago * Makefile.in: Add setting of KRB_ERR on Windows
Tom Yu [Mon, 12 May 2003 22:33:42 +0000 (22:33 +0000)]
* Makefile.in: Add setting of KRB_ERR on Windows

ticket: 1477

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

21 years agoDon't #include compile_et .c files
Sam Hartman [Mon, 12 May 2003 18:04:31 +0000 (18:04 +0000)]
Don't #include compile_et .c files

At least the e2fsprogs compile_et produces .c files that duplicate
definitions found in com_err.h and so you need to avoid including
those .c files in other files.

In order to do this we duplicate the string tables.

Ticket: new
Target_Version: 1.3
Tags: pullup

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

21 years agoDocs should reflect default krb4 mode
Sam Hartman [Mon, 12 May 2003 17:57:20 +0000 (17:57 +0000)]
Docs should reflect default krb4 mode

The KDC now defaults to no krb4 enabled; the docs should reflect this.

Ticket: new
Target_Version: 1.3
Tags: pullup

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

21 years agoCleanup memory in asn.1 testsuite to allow for leak checking
Ezra Peisach [Mon, 12 May 2003 09:29:46 +0000 (09:29 +0000)]
Cleanup memory in asn.1 testsuite to allow for leak checking

* krb5_decode_test.c: Modify decode_run macro to take a cleanup
handler to free allocated memory. Add static handlers to free
krb5_alt_method, passwd_phrase_element and krb5_enc_data as the
krb5 library does not handle at this time.

* krb5_encode_test.c: Free krb5_context at end. Utilize the many
ktest_empty and detroy functions to cleanup memory.

* ktest.h, ktest.c: Add many ktest free and empty functions to
cleanup allocated structures in tests.

* utility.c (krb5_data_hex_parse): Free temporary data.

With these changes, one can then test for memory leaks in the
asn.1 and krb5_free functions.

ticket: new
tags: pullup

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

21 years ago* IMplement etype_info in KDC. If the request contains any new
Sam Hartman [Mon, 12 May 2003 02:59:06 +0000 (02:59 +0000)]
* IMplement etype_info in KDC.  If the request contains any new
enctypes (currently AES but anything not explicitly listed as old)
then only etype_info2 is sent back in response.  Send back etype_info2
all the time.  Also send back etype_info2 to provide salt and
s2kparams with AS reply not just for preauth errors.

* Expose interface for getting string2key with parameters (previously
implemented but not exported)

* IN the client (at least for get_init_creds interface) prfer
etype_info2 to etype_info and pw_salt.  Pass s2kparams and use
string2key_with_params.

Ticket: 1454
Status: open
Target_Version: 1.3

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

21 years agoAdd a new krb5_context field for the config-file tgs_enctypes, which
Ken Raeburn [Sat, 10 May 2003 02:09:34 +0000 (02:09 +0000)]
Add a new krb5_context field for the config-file tgs_enctypes, which
applications cannot override, and use it for ticket-granting tickets needed to
acquire some desired service ticket.

ticket: 1429
tags: pullup
status: resolved

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

21 years agopunt leftover conflict markers
Tom Yu [Sat, 10 May 2003 01:27:15 +0000 (01:27 +0000)]
punt leftover conflict markers

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

21 years agomissed note for an old change
Ken Raeburn [Sat, 10 May 2003 01:11:22 +0000 (01:11 +0000)]
missed note for an old change

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

21 years ago * krb5.tex: Update subkey-related information to match code
Tom Yu [Sat, 10 May 2003 00:02:05 +0000 (00:02 +0000)]
* krb5.tex: Update subkey-related information to match code

ticket: 1415
status: open

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

21 years agoRename the local_subkey and remote_subkey fields in the auth_context
Tom Yu [Sat, 10 May 2003 00:01:04 +0000 (00:01 +0000)]
Rename the local_subkey and remote_subkey fields in the auth_context
to send_subkey and recv_subkey, respectively.  Add new APIs to query
and set these fields.  Change the behavior of mk_req_ext, rd_req_dec,
and rd_rep to set both subkeys.  Applications wanting to set
unidirectional subkeys may still do so by saving the values of subkeys
and doing overrides.  Cause mk_cred, mk_priv, and mk_safe to never use
the recv_subkey.  Cause rd_cred, rd_priv, and rd_safe to never use the
send_subkey.

ticket: 1415
status: open
tags: pullup
target_version: 1.3

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

21 years ago * kpasswd.0/changing.exp: Replace ovpasswd with kpasswd
Tom Yu [Fri, 9 May 2003 12:51:58 +0000 (12:51 +0000)]
* kpasswd.0/changing.exp: Replace ovpasswd with kpasswd

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

21 years agoAdded option to search paths correctly with new tools and to include TargetConditiona...
Alexandra Ellwood [Thu, 8 May 2003 17:24:19 +0000 (17:24 +0000)]
Added option to search paths correctly with new tools and to include TargetConditionals.h so that TARGET_OS_MAC is defined for all files in the build system, not just those that include krb5.h

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

21 years agoNeeded for com_err library testing
Ken Raeburn [Wed, 7 May 2003 21:50:31 +0000 (21:50 +0000)]
Needed for com_err library testing

* test_et.c [HAVE_SYS_ERRLIST]: Do declare sys_nerr.

ticket: 1440

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

21 years agoReorganize kdc_preauth enctype handling
Sam Hartman [Wed, 7 May 2003 21:15:06 +0000 (21:15 +0000)]
Reorganize kdc_preauth enctype handling

Patch from Sun to reorganize and better abstract kdc_preauth.c's
enctype info handling.  This will make it easier to implement
etype_info2 so I'm committing it.

Ticket: new
Target_Version: 1.3

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

21 years ago* init_os_ctx.c: Added support for KLL's __KLAllowHomeDirectoryAccess() function...
Alexandra Ellwood [Wed, 7 May 2003 21:08:17 +0000 (21:08 +0000)]
* init_os_ctx.c: Added support for KLL's __KLAllowHomeDirectoryAccess() function so that krb4, krb5 and gssapi will not access the user's homedir if the application forbids it

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

21 years agoAdded krb5_set_password, krb5_set_password_using_ccache, krb5_c_random_os_entropy...
Alexandra Ellwood [Wed, 7 May 2003 20:50:36 +0000 (20:50 +0000)]
Added krb5_set_password, krb5_set_password_using_ccache, krb5_c_random_os_entropy, krb5_c_random_add_entropy, krb5_c_init_state, and krb5_c_free_state to the export file for KfM.  (RT bug #1462)

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

21 years agoFix typo
Sam Hartman [Tue, 6 May 2003 19:00:02 +0000 (19:00 +0000)]
Fix typo

Ticket: 1454
Status: open

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

21 years agoImplement encoders for etype_info2 and add support to s2kparams for
Sam Hartman [Tue, 6 May 2003 18:46:46 +0000 (18:46 +0000)]
Implement encoders for etype_info2 and add support to s2kparams for
decoders.

Ticket: 1454
Status: open

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

21 years agoReplace ovpasswd with kpasswd
Sam Hartman [Sun, 4 May 2003 19:52:50 +0000 (19:52 +0000)]
Replace ovpasswd with kpasswd

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

21 years ago* port-sockets.h (inet_ntop) [!_WIN32 && !HAVE_MACSOCK_H]: Define as a macro if
Ken Raeburn [Fri, 2 May 2003 08:05:23 +0000 (08:05 +0000)]
* port-sockets.h (inet_ntop) [!_WIN32 && !HAVE_MACSOCK_H]: Define as a macro if
not provided by the OS.

ticket: 1435
target_version: 1.3
tags: pullup

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

21 years ago* kadm_stream.c: Fixed vts_long() and vts_short() so they return a pointer to the...
Alexandra Ellwood [Thu, 1 May 2003 17:03:25 +0000 (17:03 +0000)]
* kadm_stream.c: Fixed vts_long() and vts_short() so they return a pointer to the beginning of the memory they allocate and place their data at the end of the buffer which was passed in

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

21 years agoupdate for 1.3a3
Tom Yu [Tue, 29 Apr 2003 23:43:31 +0000 (23:43 +0000)]
update for 1.3a3

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

21 years agoAES code shouldn't define uint32_t etc if the system provides them
Ken Raeburn [Tue, 29 Apr 2003 20:46:14 +0000 (20:46 +0000)]
AES code shouldn't define uint32_t etc if the system provides them

Use inttypes.h if available.

ticket: new
status: open
target_version: 1.3

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

21 years agoset-change password breaks kpasswd
Sam Hartman [Mon, 28 Apr 2003 21:38:02 +0000 (21:38 +0000)]
set-change password breaks kpasswd

In some cases a null realm argument was passed into the function for
locating the kpasswd server.  This ended up causing segfaults in
kpasswd.  Fix to use the right realm.

ticket: new
Tags: pullup
Target_Version: 1.3

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

21 years agoIncorporate krb5_os_context directly into krb5_context, since they're always
Ken Raeburn [Mon, 28 Apr 2003 18:51:35 +0000 (18:51 +0000)]
Incorporate krb5_os_context directly into krb5_context, since they're always
allocated and freed at the same time, even if in different files.

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

21 years ago* ksetpwd.c (init_creds): Let's use C comments for C code, shall we?
Ken Raeburn [Mon, 28 Apr 2003 18:26:16 +0000 (18:26 +0000)]
* ksetpwd.c (init_creds): Let's use C comments for C code, shall we?

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

21 years ago * prof_file.c (r_access): Static function. Only include if
Ezra Peisach [Mon, 28 Apr 2003 16:06:38 +0000 (16:06 +0000)]
* prof_file.c (r_access): Static function. Only include if
SHARE_TREE_DATA defined.

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

21 years agokrb5_setpw_result_string should be internal
Sam Hartman [Sun, 27 Apr 2003 21:07:21 +0000 (21:07 +0000)]
krb5_setpw_result_string should be internal

Make krb5_setpw_result_string a krb5int_ function prototyped in
k5-int.h.  The prototype was already there, but the code did not match
the function name.
This needs to be pulled up to the release branch to fix Windows build because of a KRB5_CALLCONV issue.

ticket: new
Tags: pullup
Target_Version: 1.3

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

21 years agoBuild ksetpw, a client for the Microsoft set password protocol. Not
Sam Hartman [Fri, 25 Apr 2003 18:50:04 +0000 (18:50 +0000)]
Build ksetpw, a client for the Microsoft set password protocol.  Not
of release quality yet, so don't actually install.

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

21 years agoImplementation of Microsoft set password client library code provided
Sam Hartman [Fri, 25 Apr 2003 18:46:22 +0000 (18:46 +0000)]
Implementation of Microsoft set password client library code provided
by Paul Nelson.

Ticket: 1377
Status: open
Tags: pullup

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

21 years ago* reconf: Restore support for 2.52; reject older versions
Ken Raeburn [Fri, 25 Apr 2003 03:13:32 +0000 (03:13 +0000)]
* reconf: Restore support for 2.52; reject older versions

ticket: 1242
status: open

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

21 years agoRequire only autoconf 2.52. Try --include argument to autoconf and autoheader,
Ken Raeburn [Fri, 25 Apr 2003 03:09:57 +0000 (03:09 +0000)]
Require only autoconf 2.52.  Try --include argument to autoconf and autoheader,
and if the command fails, try it again with --localdir; don't tie it to some
previously used version of autoconf.

ticket: 1242
status: open

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

21 years ago * kfree.c (krb5_free_pwd_sequences): Correction to previous
Ezra Peisach [Thu, 24 Apr 2003 17:37:56 +0000 (17:37 +0000)]
* kfree.c (krb5_free_pwd_sequences): Correction to previous
fix. Free contents of krb5_data - not just the pointer.

ticket: 1439

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

21 years agoerrno should never be explicitly declared
Ken Raeburn [Thu, 24 Apr 2003 03:28:00 +0000 (03:28 +0000)]
errno should never be explicitly declared

Remove explicit declarations of errno; include errno.h as needed.
(Also, errmsg in krb4, and malloc in compile_et.)

ticket: new
target_version: 1.3
tags: pullup
status: resolved

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

21 years agoEliminate explicit declarations of errno; include errno.h as needed.
Ken Raeburn [Thu, 24 Apr 2003 03:18:03 +0000 (03:18 +0000)]
Eliminate explicit declarations of errno; include errno.h as needed.
(Also errmsg in krb4, and malloc in compile_et.)

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

21 years ago* reconf: Drop support for 2.52 and earlier
Ken Raeburn [Thu, 24 Apr 2003 02:38:28 +0000 (02:38 +0000)]
* reconf: Drop support for 2.52 and earlier

ticket: 1242
status: open

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

21 years agoSimplify autoconf compatibility by requiring that we always have a version that
Ken Raeburn [Thu, 24 Apr 2003 02:33:04 +0000 (02:33 +0000)]
Simplify autoconf compatibility by requiring that we always have a version that
supports --include, instead of assuming that whether the autoconf to be run
supports it is the same as whether the autoconf used to generate the current
configure scripts supported it.

* aclocal.m4: Require autoconf 2.53.
(CONFIG_RULES): Always set AUTOCONFINCFLAGS to --include.

ticket: 1242
status: open

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

21 years agokrb5_free_pwd_sequences only frees first element
Ezra Peisach [Wed, 23 Apr 2003 20:28:23 +0000 (20:28 +0000)]
krb5_free_pwd_sequences only frees first element

* kfree.c (krb5_free_pwd_sequences): Actually free the entire
sequence of passwd_phase_elements and not just the first one.

In our tree, this code is only used by krb5_free_pwd_data() which is
subsequently not used anywhere else. Perhaps all code pertaining to pwd
data (asn.1 decoders, encoders, etc. should be removed)

ticket: new
component: krb5-libs
target_version: 1.3
tags: pullup

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

21 years ago* definitions.texinfo (DefaultETypeList, DefaultSupportedEnctypes): Update for
Ken Raeburn [Sat, 19 Apr 2003 01:18:55 +0000 (01:18 +0000)]
* definitions.texinfo (DefaultETypeList, DefaultSupportedEnctypes): Update for
AES.
* install.texinfo (Client Machine Configuration Files): Fix typo in variable
reference.

ticket: 1418
status: open

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

21 years ago* alt_prof.c (kadm5_get_config_params): Add aes256 to the default supported
Ken Raeburn [Sat, 19 Apr 2003 01:18:09 +0000 (01:18 +0000)]
* alt_prof.c (kadm5_get_config_params): Add aes256 to the default supported
enctypes list.

ticket: 1418
status: open

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

21 years agoTest AES. ** Not all tests pass at present. **
Ken Raeburn [Fri, 18 Apr 2003 10:08:30 +0000 (10:08 +0000)]
Test AES.  ** Not all tests pass at present. **

* default.exp: Add passes for testing AES.
(start_kerberos_daemons): Add a small delay between starting the "tail -f"
processes and appending the markers to their files.
(spawn_xterm): Add RLOGIN, RLOGIND, FTP, and FTPD to the list of variables to
export to the environment.  Check that variables are defined before exporting
them.

ticket: 1418
status: open

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

21 years agoNote to self: Save buffers before checkin, not after. Grr
Ken Raeburn [Fri, 18 Apr 2003 03:29:51 +0000 (03:29 +0000)]
Note to self: Save buffers before checkin, not after.  Grr

ticket: 1418
status: open

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

21 years agofix typo
Ken Raeburn [Fri, 18 Apr 2003 03:28:20 +0000 (03:28 +0000)]
fix typo

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

21 years ago* init_ctx.c (DEFAULT_ETYPE_LIST): Add AES with 256 bits at the front of the
Ken Raeburn [Fri, 18 Apr 2003 03:27:55 +0000 (03:27 +0000)]
* init_ctx.c (DEFAULT_ETYPE_LIST): Add AES with 256 bits at the front of the
list.  No 128-bit support by defaut.

ticket: 1418
status: open

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

21 years ago* dk_encrypt.c (krb5int_aes_dk_encrypt): Set output length properly
Ken Raeburn [Fri, 18 Apr 2003 02:30:28 +0000 (02:30 +0000)]
* dk_encrypt.c (krb5int_aes_dk_encrypt): Set output length properly

ticket: 1418
status: open

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

21 years ago* g_ad_tkt.c: Added support for login library to get_ad_tkt. Support is copied from...
Alexandra Ellwood [Mon, 14 Apr 2003 22:17:10 +0000 (22:17 +0000)]
* g_ad_tkt.c: Added support for login library to get_ad_tkt.  Support is copied from Mac Kerberos4 library and conditionalized for USE_LOGIN_LIBRARY to avoid changing get_ad_tkt's behavior for non-Kerberos Login Library builds

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

21 years agoFinish implementation of CBC+CTS decryption and truncated HMAC for AES.
Ken Raeburn [Sun, 13 Apr 2003 13:03:22 +0000 (13:03 +0000)]
Finish implementation of CBC+CTS decryption and truncated HMAC for AES.
Fix memory management bugs.

ticket: 1418
status: open

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

21 years agoObscure memory leak in asn1_decode_kdc_req_body
Ezra Peisach [Sun, 13 Apr 2003 13:01:51 +0000 (13:01 +0000)]
Obscure memory leak in asn1_decode_kdc_req_body

* asn1_k_decode.c (asn1_decode_kdc_req_body): Fix memory leak if
optional server field is lacking,

ticket: new
component: krb5-libs
target_version: 1.3
tags: pullup

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

21 years agoAvoid really, really huge cpu time usage caused by iteration count in
Ken Raeburn [Sun, 13 Apr 2003 11:18:42 +0000 (11:18 +0000)]
Avoid really, really huge cpu time usage caused by iteration count in
spoofed preauth data.  (Merely huge cpu time usage is probably still
possible.)

* aes_s2k.c (krb5int_aes_string_to_key): Return an error if the supplied
iteration count is really, really large.

ticket: 1418
status: open

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

21 years agomemory leak in krb5_read_password
Ken Raeburn [Sun, 13 Apr 2003 10:40:03 +0000 (10:40 +0000)]
memory leak in krb5_read_password

* read_pwd.c (krb5_read_password): Always free temporary storage used for
verification version of password.

ticket: new
target_version: 1.3
tags: pullup

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

21 years agoupdate for 1.3a2
Tom Yu [Sat, 12 Apr 2003 02:17:40 +0000 (02:17 +0000)]
update for 1.3a2

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

21 years agobuild libtelnet with library build framework
Tom Yu [Fri, 11 Apr 2003 02:18:38 +0000 (02:18 +0000)]
build libtelnet with library build framework

* Makefile.in: Use library build framework.

* configure.in: Add support for library build framework.  Remove
old explicit checks for ranlib, etc.

ticket: new
target_version: 1.3
tags: pullup

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

21 years agoback out requirement of autoconf-2.53
Tom Yu [Thu, 10 Apr 2003 22:06:08 +0000 (22:06 +0000)]
back out requirement of autoconf-2.53

Back out requirement of autoconf-2.53, as MacOS X doesn't have it.  To
compensate, place warning in util/reconf if autoconf-2.52 is
discovered.

ticket: new
status: open
tags: pullup
target_version: 1.3

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

21 years agoThanks, patch applied
Tom Yu [Wed, 9 Apr 2003 23:42:06 +0000 (23:42 +0000)]
Thanks, patch applied

* kerberos.c (kerberos4_status): Always copy in username if
present.  Patch from Nathan Neulinger to make "-a user" work.

* kerberos5.c (kerberos5_status): Always copy in username if
present.  Patch from Nathan Neulinger to make "-a user" work.

ticket: 1362
tags: pullup
status: open

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

21 years agoetype info handling infinite loop
Sam Hartman [Wed, 9 Apr 2003 18:19:18 +0000 (18:19 +0000)]
etype info handling infinite loop

If a request contains no des-cbc-crc enctype bumt des-cbc-crc or
des-cbc-md5 existis in the database then an infinite loop is created.
Fix etype info handling to avoid this.

ticket: new
Tags: pullup

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

21 years agodocument krb4 cross-realm patch
Tom Yu [Tue, 8 Apr 2003 23:36:52 +0000 (23:36 +0000)]
document krb4 cross-realm patch

* krb4-xrealm.txt: New file.  Describe the krb4 cross-realm
patchkit.  Copied from 2003-004-krb4_patchkit.

ticket: new
target_version: 1.3
tags: pullup
status: open

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