krb5.git
24 years ago * rlogin.exp: Change RLOGIN to KRLOGIN so we do not use the
Ezra Peisach [Thu, 10 Aug 2000 13:55:32 +0000 (13:55 +0000)]
* rlogin.exp: Change RLOGIN to KRLOGIN so we do not use the
  incorrect binary as used for the root login in default.exp.

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

24 years ago * default.exp: Add an eof clause to avoid breakage if rlogin exits
Tom Yu [Wed, 9 Aug 2000 22:00:57 +0000 (22:00 +0000)]
* default.exp: Add an eof clause to avoid breakage if rlogin exits
too quickly.

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

24 years ago * cnv_tkt_skey.c: Fix up static prototypes for
Tom Yu [Wed, 9 Aug 2000 18:40:29 +0000 (18:40 +0000)]
* cnv_tkt_skey.c: Fix up static prototypes for
krb524int_krb_create_ticket(), krb524int_krb_cr_tkt_krb5(), and
krb524int_krb_cr_tkt_int(), as well as their definitions, so that
there aren't bare identifiers in the prototypes and so that there
aren't narrow types in the definitions.

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

24 years ago Quoting of lists in mutipass variable assigments is unnecessary
Ezra Peisach [Tue, 8 Aug 2000 19:45:46 +0000 (19:45 +0000)]
 Quoting of lists in mutipass variable assigments is unnecessary

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

24 years ago* v4standalone.exp: New set of tests for basic V4 functionality
Ezra Peisach [Tue, 8 Aug 2000 19:40:01 +0000 (19:40 +0000)]
* v4standalone.exp: New set of tests for basic V4 functionality

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

24 years ago * default.exp: Create krb.conf and krb.realms files for v4
Ezra Peisach [Tue, 8 Aug 2000 19:38:44 +0000 (19:38 +0000)]
* default.exp: Create krb.conf and krb.realms files for v4
compatibility. Set KRBTKFILE environment variable. Add
v4_compatible_enctype() proc to test if krb4 tests are being run
and if the current encryption type being tested is compatible with
V4.  Added v4kinit() proc.

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

24 years ago * Makefile.in (KRB4_RUNTESTFLAGS): Set from configure.in and pass
Ezra Peisach [Tue, 8 Aug 2000 19:35:55 +0000 (19:35 +0000)]
* Makefile.in (KRB4_RUNTESTFLAGS): Set from configure.in and pass
to runtest if krb4 compatibility is enabled.

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

24 years ago * configure.in: Define KRB4_DEJAGNU_TEST depending on if krb4
Ezra Peisach [Tue, 8 Aug 2000 19:34:56 +0000 (19:34 +0000)]
    * configure.in: Define KRB4_DEJAGNU_TEST depending on if krb4
        support is enabled.

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

24 years ago * krlogin.c (read_wrapper): Copy from the current point and not
Ezra Peisach [Tue, 8 Aug 2000 17:40:29 +0000 (17:40 +0000)]
* krlogin.c (read_wrapper): Copy from the current point and not
  the start of the cached buffer.

This would only be observed when the client sent the cmdchar.

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

24 years ago * default.exp: Protect Quote quotation marks in multipass variable
Ezra Peisach [Mon, 7 Aug 2000 15:57:24 +0000 (15:57 +0000)]
* default.exp: Protect Quote quotation marks in multipass variable
assignments. Dejagnu (June 1999 release) fails overwise.

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

24 years ago * reference_encode.out, trval_reference.out: Test encoding of
Ezra Peisach [Mon, 7 Aug 2000 15:28:26 +0000 (15:28 +0000)]
* reference_encode.out, trval_reference.out: Test encoding of
negative lr_type field.

* krb5_decode_test.c: Fix enc_kdc_rep_part tests to trully handle
a negative lr_type in a krb5_last_req_entry structure. If
KRB5_GENEROUS_LR_TYPE is defined, do a backwards compatibility
test as well.

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

24 years ago * asn1_k_decode.c (asn1_decode_last_req_entry): Decode the lr_type
Ezra Peisach [Mon, 7 Aug 2000 15:22:18 +0000 (15:22 +0000)]
* asn1_k_decode.c (asn1_decode_last_req_entry): Decode the lr_type
as an int32. Handle backwards compatibility if KRB5_GENEROUS_LR_TYPE
is defined.

* krbasn1.h: Define KRB5_GENEROUS_LR_TYPE for compatibility with
one byte negative lr_types which are sent as a positive integer.

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

24 years ago * krb5.hin: lr_type element of krb5_last_req_entry needs to be a
Ezra Peisach [Mon, 7 Aug 2000 15:21:53 +0000 (15:21 +0000)]
* krb5.hin: lr_type element of krb5_last_req_entry needs to be a
signed int instead of an unsigned char.

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

24 years ago * aclocal.m4 (CHECK_SIGPROCMASK): Check for posix sigprocmask
Ezra Peisach [Mon, 7 Aug 2000 10:55:14 +0000 (10:55 +0000)]
    * aclocal.m4 (CHECK_SIGPROCMASK): Check for posix sigprocmask
        before a potential bsd compatible sigmask.

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

24 years ago * ss_internal.h: Only use fake sigmask, sigblock and sigsetmask if
Ezra Peisach [Mon, 7 Aug 2000 10:49:24 +0000 (10:49 +0000)]
    * ss_internal.h: Only use fake sigmask, sigblock and sigsetmask if
        USE_SIGPROCMASK is defined and not POSIX_SIGNALS.

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

24 years ago* Makefile.in (SRCS, OBJS, STLIBOBJS): Remove util_canonhost.
Ken Raeburn [Fri, 4 Aug 2000 03:06:49 +0000 (03:06 +0000)]
* Makefile.in (SRCS, OBJS, STLIBOBJS): Remove util_canonhost.
* gssapiP_generic (g_canonicalize_host, g_local_host_name): Delete
declarations.

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

24 years ago* listen.c (ss_quit): Now returns void. Fix type of argument ARGV to fit
Ken Raeburn [Fri, 4 Aug 2000 02:51:02 +0000 (02:51 +0000)]
* listen.c (ss_quit): Now returns void.  Fix type of argument ARGV to fit
prototype.
* ss.h (ss_execute_line) [__STDC__]: Make prototype unconditional.
(ss_quit): Use __SS_PROTO and return void, as with other command functions.

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

24 years ago * kprop.c, kpropd.c: Compiler warning fixes including: not
Ezra Peisach [Thu, 3 Aug 2000 15:40:09 +0000 (15:40 +0000)]
* kprop.c, kpropd.c: Compiler warning fixes including: not
shadowing global variabls/functions, assignments in conditionals,
declaring local functions static.

* configure.in: Check for mode_t being defined.

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

24 years ago * klist.c: Compiler warning cleanups by declaring functions as
Ezra Peisach [Wed, 2 Aug 2000 21:08:07 +0000 (21:08 +0000)]
* klist.c: Compiler warning cleanups by declaring functions as
static, using existing global variables instead of trying to
shadow them, and removing assignments from conditionals.

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

24 years ago * krb.h: Add prototypes for tf_init(), tf_get_pname(),
Ezra Peisach [Wed, 2 Aug 2000 21:06:17 +0000 (21:06 +0000)]
* krb.h: Add prototypes for tf_init(), tf_get_pname(),
tf_get_pinst(), tf_get_cred() and tf_close() which are all used by
clients.

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

24 years ago * tf_util.c (tf_init): Add KRB5_DLLIMP/KRB5_CALLCONV definitions
Ezra Peisach [Wed, 2 Aug 2000 21:05:08 +0000 (21:05 +0000)]
* tf_util.c (tf_init): Add KRB5_DLLIMP/KRB5_CALLCONV definitions
for functions exported prototypes in krb.h.

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

24 years ago * requests.c (DECLARE): Fix prototype for dispatch functions to
Ezra Peisach [Wed, 2 Aug 2000 19:42:26 +0000 (19:42 +0000)]
* requests.c (DECLARE): Fix prototype for dispatch functions to
properly match what is expected by ss library.

* pager.c (ss_pager_create): Cast return from fork to int for use
in switch statement.

* ss.h: Provide full prototype for ss_name(). Add prototypes for
ss_execute_line(), ss_delete_invocation(), ss_add_info_dir(),
ss_delete_info_dir(), ss_abort_subsystem(), ss_get_prompt(),
ss_set_prompt(), ss_add_request_table(),
ss_delete_request_table(), ss_quit().

* ss_internal.h: Made full prototypes for ss_parse(),
ss_page_stdin(), ss_pagre_create(). Add prototypes for
ss_self_identify(), ss_subsystem_name(), ss_subsystem_version(),
ss_unimplemented(). Moved ss_execute_line() to ss.h

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

24 years ago* kdestroy.c (main): Clean up compiler warnings
Ezra Peisach [Wed, 2 Aug 2000 14:50:33 +0000 (14:50 +0000)]
* kdestroy.c (main): Clean up compiler warnings

There are still some warnings, but this handles the bulk of them.

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

24 years ago * kvno.c (main): Compiler warning fixes - declare usage as static, and
Ezra Peisach [Wed, 2 Aug 2000 14:48:57 +0000 (14:48 +0000)]
* kvno.c (main): Compiler warning fixes - declare usage as static, and
break out assignments within conditionals.

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

24 years ago * krb5.conf: Test with a space after ']' and '{'
Ezra Peisach [Wed, 2 Aug 2000 13:57:32 +0000 (13:57 +0000)]
* krb5.conf: Test with a space after ']' and '{'

* prof_parse.c (parse_std_line): Spaces after '{' or ']' should
not be a fatal error. This is a common lossage in krb5.conf files.

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

24 years agoAdd missing krb5_cc_store_cred()
Danilo Almeida [Sun, 30 Jul 2000 05:20:10 +0000 (05:20 +0000)]
Add missing krb5_cc_store_cred()

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

24 years agokpasswd.c (main): Warnings cleanup
Ezra Peisach [Sat, 29 Jul 2000 19:17:30 +0000 (19:17 +0000)]
kpasswd.c (main): Warnings cleanup

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

24 years ago * sserver.c (main): Include unistd.h if present (for close
Ezra Peisach [Sat, 29 Jul 2000 02:03:47 +0000 (02:03 +0000)]
    * sserver.c (main): Include unistd.h if present (for close
        prototype).  Change variable named sin (shadows maht
        library). Compiler warning cleanups.

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

24 years ago * sclient.c: Include unistd.h if present (for close prototype).
Ezra Peisach [Sat, 29 Jul 2000 01:58:35 +0000 (01:58 +0000)]
    * sclient.c:  Include unistd.h if present (for close prototype).
        Change variable named sin (shadows maht library).

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

24 years ago * utility.c: Add casts on types being sent to internal functions
Ezra Peisach [Sat, 29 Jul 2000 01:46:30 +0000 (01:46 +0000)]
    * utility.c: Add casts on types being sent to internal functions

        * krb5_encode_test.c: Declare internal functions as static.

        * ktest.c: Remove unused functions. Clean up compiler warnings.

        * trval.c: Add proper prototype for declared functions.

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

24 years agokdb5_mkdums.c: Remove unused quit() and compiler warning cleanup
Ezra Peisach [Fri, 28 Jul 2000 14:28:11 +0000 (14:28 +0000)]
kdb5_mkdums.c: Remove unused quit() and compiler warning cleanup

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

24 years ago * kdc5_hammer.c: Move global (to file) enctype into main to prevent
Ezra Peisach [Fri, 28 Jul 2000 14:26:47 +0000 (14:26 +0000)]
* kdc5_hammer.c: Move global (to file) enctype into main to prevent
being shadowed in other routines. Remove unused krb5_parse_lifetime().

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

24 years ago * kdb5_verify.c (check_princ): Compiler warning cleanup. Get rid
Ezra Peisach [Fri, 28 Jul 2000 14:22:24 +0000 (14:22 +0000)]
  * kdb5_verify.c (check_princ): Compiler warning cleanup. Get rid
      of unused function.

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

24 years agot_imp_name.c: Profide full prototypes for internal functions
Ezra Peisach [Fri, 28 Jul 2000 14:18:45 +0000 (14:18 +0000)]
t_imp_name.c: Profide full prototypes for internal functions

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

24 years ago * prof_init.c: Cleanup internal type warnings in calls to profile_init
Ezra Peisach [Mon, 24 Jul 2000 16:16:28 +0000 (16:16 +0000)]
* prof_init.c: Cleanup internal type warnings in calls to profile_init

* test_parse.c (main): Cast arguments to error_message.

* prof_file.c (profile_open_file): Variable with argument to
malloc should be unsigned.

* profile.hin: Revert changes to const_profile_filespect_t and
profile_filespec_t to preserve interface.

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

24 years ago * et_c.awk: Actually define NOARGS as needed. Add prototype for
Ezra Peisach [Mon, 24 Jul 2000 16:07:31 +0000 (16:07 +0000)]
* et_c.awk: Actually define NOARGS as needed. Add prototype for
error table initiialization function.

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

24 years ago * default.exp: Add code to handle setting of PASS to constrain
Tom Yu [Sun, 23 Jul 2000 03:17:39 +0000 (03:17 +0000)]
* default.exp: Add code to handle setting of PASS to constrain
multipass testing to particular passes.  dejagnu-1.3 doesn't have
support for PASS, so we kludge it here, though some later versions
handle it by themselves.
(krb_exit): Add new proc to clean up on exit.
(kinit): Remove "expect \r" since "expect eof" will drain the pty
buffer properly anyway.

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

24 years ago * accessor.c: Add NEED_SOCKETS in order to get prototype for
Tom Yu [Sun, 23 Jul 2000 01:03:47 +0000 (01:03 +0000)]
* accessor.c: Add NEED_SOCKETS in order to get prototype for
krb5_locate_kdc().

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

24 years ago* krlogin.c (writer): Improved bandwith efficiency by reading
Peter Litwack [Fri, 21 Jul 2000 23:35:12 +0000 (23:35 +0000)]
* krlogin.c (writer): Improved bandwith efficiency by reading
and sending more than one character at a time if multiple
characters are available to be read from the terminal.

* krlogin.c (read_wrapper): Added this function as a helper
to writer.  It facilitates checking for escape sequences
(~^Z etc.) when reading mulitple characters at a time.

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

24 years ago * krb.h: For get_pw_tkt() and unix_time_gmt_unixsec() add required
Ezra Peisach [Fri, 21 Jul 2000 16:42:43 +0000 (16:42 +0000)]
* krb.h: For get_pw_tkt() and unix_time_gmt_unixsec() add required
KRB5_DLLIMP and KRB4_CALLCONV declarations.

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

24 years ago * g_pw_tkt.c, unix_time.c: Add KRB5_DLLIMP/KRB5_CALLCONV defintion
Ezra Peisach [Fri, 21 Jul 2000 16:33:47 +0000 (16:33 +0000)]
* g_pw_tkt.c, unix_time.c: Add KRB5_DLLIMP/KRB5_CALLCONV defintion

To be compatible with krb.h changes for windows.

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

24 years ago* Makefile.in: Fix build so we don't try to build an extra lib.
Danilo Almeida [Thu, 20 Jul 2000 06:45:49 +0000 (06:45 +0000)]
* Makefile.in: Fix build so we don't try to build an extra lib.
Fix up krb524 build so we default to krb5's krb4 but can use an
alternate.

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

24 years ago* win-pre.in: Add KRB4_INCLUDES definition
Danilo Almeida [Thu, 20 Jul 2000 06:44:15 +0000 (06:44 +0000)]
* win-pre.in: Add KRB4_INCLUDES definition

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

24 years ago* Makefile.in: Compile .et file for krb524
Danilo Almeida [Thu, 20 Jul 2000 06:09:42 +0000 (06:09 +0000)]
* Makefile.in: Compile .et file for krb524

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

24 years ago* krb5_32.def: Add krb5_cc_* functions
Danilo Almeida [Thu, 20 Jul 2000 06:08:33 +0000 (06:08 +0000)]
* krb5_32.def: Add krb5_cc_* functions

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

24 years ago* memcache.c: Add krb_in_tkt() function to initialize ticket for a
Danilo Almeida [Thu, 20 Jul 2000 06:07:34 +0000 (06:07 +0000)]
* memcache.c: Add krb_in_tkt() function to initialize ticket for a
given principal.  It is like in_tkt() but it is public and also
takes a realm for credentials caches that require a full
principal name (e.g., CCAPI).

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

24 years ago* cc_file.c, cc_stdio.c: Remove unused krb5_[fs]cc_default_name()
Danilo Almeida [Thu, 20 Jul 2000 05:45:34 +0000 (05:45 +0000)]
* cc_file.c, cc_stdio.c: Remove unused krb5_[fs]cc_default_name()
prototype.
* cc_stdio.c: Fix calling convention for op functions.
* ccfns.c (krb5_cc_get_type): Fix calling convention.

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

24 years ago* stdcc.h: Include k5-int.h to get krb5_ccache definition
Danilo Almeida [Thu, 20 Jul 2000 05:44:59 +0000 (05:44 +0000)]
* stdcc.h: Include k5-int.h to get krb5_ccache definition

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

24 years ago* krb5.hin: Fix calling convention for krb5_cc_get_type
Danilo Almeida [Thu, 20 Jul 2000 05:39:58 +0000 (05:39 +0000)]
* krb5.hin: Fix calling convention for krb5_cc_get_type

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

24 years ago* Makefile.in: Change ${CC} and ${OBJS} to $(CC) and $(OBJS) so
Danilo Almeida [Thu, 20 Jul 2000 05:20:17 +0000 (05:20 +0000)]
* Makefile.in: Change ${CC} and ${OBJS} to $(CC) and $(OBJS) so
nmake does not freak out.

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

24 years ago* Makefile.in: Make krb524 library and k524init program build on
Danilo Almeida [Thu, 20 Jul 2000 00:46:02 +0000 (00:46 +0000)]
* Makefile.in: Make krb524 library and k524init program build on
Windows.

* krb524.def, libinit.c: Files needed to build on Windows.

* k524init.c: Use public krb_in_tkt() with realm paramter instead of
potentially private in_tkt() w/o realm parameter (which does not
even exist w/o the realm paramter in some krb4 libraries).  Use
krb_save_credentials() instead of tf_init() then
tf_save_credentials() then tf_close().

* cnv_tkt_skey.c: Put copy of krb_cr_tkt_krb5() and
krb_create_ticket() as static functions in this file, calling them
krb524int_*().  Call these functions instead of the ones in the
MIT krb4 library included in the krb5 tree.

* conv_princ.c: Remove unused headers.

* k524init.c, cnv_tkt_skey.c, conv_creds.c, encode.c, misc.c,
sendmsg.c, test.c: Do not include Unix headers on Windows.

* sendmsg.c (krb524_sendto_kdc): Fix call to krb5_locate_kdc() to
use right number and types of parameters.  Use krb5int_accessor()
to get at internals: krb5_locate_kdc(), krb5_max_dgram_size,
krb5_skdc_timeout_1, and krb5_skdc_timeout_shift.  (The latter 3
should probably be #defines...)

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

24 years ago* Makefile.in: Remove references to now defunct directories
Danilo Almeida [Wed, 19 Jul 2000 23:56:31 +0000 (23:56 +0000)]
* Makefile.in: Remove references to now defunct directories
lib/krb5/ccache/{file,memory,stdio}.

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

24 years ago* cc_memory.c (mcc_head): Combine static declaration and initialization
Ken Raeburn [Wed, 19 Jul 2000 20:26:39 +0000 (20:26 +0000)]
* cc_memory.c (mcc_head): Combine static declaration and initialization

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

24 years agoAdd ms2mit and krb524 Makefile creation to Windows build preparation
Danilo Almeida [Wed, 19 Jul 2000 18:22:10 +0000 (18:22 +0000)]
Add ms2mit and krb524 Makefile creation to Windows build preparation

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

24 years ago* getcred.c (main): Use correct parameters for krb5_cc_default()
Danilo Almeida [Wed, 19 Jul 2000 18:18:39 +0000 (18:18 +0000)]
* getcred.c (main): Use correct parameters for krb5_cc_default()
in case someone actually wants to build this file.

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

24 years agoAdd ms2mit utility
Danilo Almeida [Wed, 19 Jul 2000 17:42:26 +0000 (17:42 +0000)]
Add ms2mit utility

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

24 years agoAdd ms2mit
Danilo Almeida [Wed, 19 Jul 2000 17:40:35 +0000 (17:40 +0000)]
Add ms2mit

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

24 years ago* krb4_32.def: Add krb_in_tkt.
Danilo Almeida [Wed, 19 Jul 2000 17:20:36 +0000 (17:20 +0000)]
* krb4_32.def: Add krb_in_tkt.
* krb5_32.def: Add krb5int_accessor.

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

24 years agoAdd krb5int_accessor() to access internal krb5 functions from outside
Danilo Almeida [Wed, 19 Jul 2000 17:11:09 +0000 (17:11 +0000)]
Add krb5int_accessor() to access internal krb5 functions from outside
the library (so that we don't have to export them for the krb525 and
gssapi libraries).  The goal is to make this function eventually do
nothing.

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

24 years ago* k5-int.h: Add krb5int_accessor() and related definitions.
Danilo Almeida [Wed, 19 Jul 2000 17:06:07 +0000 (17:06 +0000)]
* k5-int.h: Add krb5int_accessor() and related definitions.
krb5int_accessor should be used by any code that is trying to use
krb5 internal functions (such as krb524 and GSSAPI).  The goal is
to eventually make this function do nothing.  That will only be
accomplished when we fix our apps/libraries not to call internal
functions.

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

24 years agokrb.h: Add krb_in_tkt() prototype
Danilo Almeida [Wed, 19 Jul 2000 16:29:35 +0000 (16:29 +0000)]
krb.h: Add krb_in_tkt() prototype

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

24 years ago* in_tkt.c: Add krb_in_tkt() function to initialize ticket for a
Danilo Almeida [Wed, 19 Jul 2000 15:59:36 +0000 (15:59 +0000)]
* in_tkt.c: Add krb_in_tkt() function to initialize ticket for a
given principal.  It is like in_tkt() but it is public and also
takes a realm for credentials caches that require a full
principal name (e.g., CCAPI).

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

24 years ago * locate_kdc.c, hst_realm.c, def_realm.c, changepw.c: Include
Ezra Peisach [Tue, 18 Jul 2000 14:38:33 +0000 (14:38 +0000)]
* locate_kdc.c, hst_realm.c, def_realm.c, changepw.c: Include
os-proto.h for internal prototypes.

* os-proto.h: Prototypes for _krb5_use_dns_realm(),
_krb5_use_dns_kdc(), _krb5_conf_boolean().

* t_std_conf.c: Include k5-int.h for internal function prototypes.

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

24 years ago * vfy_increds.c: include int-proto.h for krb5_libdefault_boolean
Ezra Peisach [Tue, 18 Jul 2000 14:33:51 +0000 (14:33 +0000)]
* vfy_increds.c: include int-proto.h for krb5_libdefault_boolean
prototype.

* t_ser.c (ser_eblock_test): ifdef out old eblock serialization
test which is no longer called. (see 1999-09-01 ChangeLog)

* t_kerb.c: Cast argument to fprintf to long to agree with format
string.

* t_deltat.c: If MIN is defined, undef before redefined as 60.

* str_conv.c: Provide strptime prototype if the system header
files fail to provide a prototype.

* int-proto.h:  Add prototype for krb5_libdefault_boolean()

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

24 years ago * k5-int.h: Move prototypes for krb5 only internal functions
Ezra Peisach [Tue, 18 Jul 2000 14:25:17 +0000 (14:25 +0000)]
* k5-int.h: Move prototypes for krb5 only internal functions
krb5_libdefault_boolean, _krb5_use_dns_realm, _krb5_use_dns_kdc,
_krb5_conf_boolean to the header files in the lib/krb5/{os,krb}
directories.

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

24 years ago * krcp.c: Provide format attribute for error() for versions of gcc
Ezra Peisach [Tue, 18 Jul 2000 14:21:41 +0000 (14:21 +0000)]
* krcp.c: Provide format attribute for error() for versions of gcc
that support it.

* configure.in (LOGINLIBS): Test for crypt() in crypt library only
modifies LOGINLIBS.

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

24 years ago* cc_memory.c (mcc_head): Now static
Ken Raeburn [Fri, 14 Jul 2000 23:38:12 +0000 (23:38 +0000)]
* cc_memory.c (mcc_head): Now static

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

24 years agomissed a stray #endif
Ken Raeburn [Fri, 14 Jul 2000 23:23:42 +0000 (23:23 +0000)]
missed a stray #endif

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

24 years agomerge duplicate copyright notices; eliminate #if 0 code
Ken Raeburn [Fri, 14 Jul 2000 23:21:14 +0000 (23:21 +0000)]
merge duplicate copyright notices; eliminate #if 0 code

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

24 years agoEliminate duplicated copyright messages, and most "former file foo.c" markers
Ken Raeburn [Fri, 14 Jul 2000 23:08:05 +0000 (23:08 +0000)]
Eliminate duplicated copyright messages, and most "former file foo.c" markers

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

24 years agokeep scc.h too
Ken Raeburn [Fri, 14 Jul 2000 22:59:25 +0000 (22:59 +0000)]
keep scc.h too

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

24 years agoDelete subdirectories we aren't compiling any more.
Ken Raeburn [Fri, 14 Jul 2000 22:47:27 +0000 (22:47 +0000)]
Delete subdirectories we aren't compiling any more.
Rescued contents of "README", "todo", and test cases.
Test cases aren't actually used at present; this should be fixed, but
they'll probably need some work.

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

24 years agolog for ccache changes
Ken Raeburn [Fri, 14 Jul 2000 22:35:56 +0000 (22:35 +0000)]
log for ccache changes

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

24 years agofix typo in comment
Ken Raeburn [Fri, 14 Jul 2000 22:35:27 +0000 (22:35 +0000)]
fix typo in comment

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

24 years agoCollapse ccache implementations file, stdio, memory into single files.
Ken Raeburn [Fri, 14 Jul 2000 22:33:59 +0000 (22:33 +0000)]
Collapse ccache implementations file, stdio, memory into single files.
(Old files not removed yet.)
Add a new file for krb5_cc_* dispatch functions that are no longer macros.

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

24 years ago* krb5.hin (krb5_cc_*): Replace macro definitions with function declarations.
Ken Raeburn [Fri, 14 Jul 2000 22:15:28 +0000 (22:15 +0000)]
* krb5.hin (krb5_cc_*): Replace macro definitions with function declarations.
(struct _krb5_ccache, struct _krb5_cc_ops): Declare only; move definitions...
* k5-int.h: To here.

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

24 years ago* aclocal.m4 (KRB5_LIB_PARAMS): Moved bulk of the work into config/shlib.conf.
Ken Raeburn [Fri, 14 Jul 2000 22:04:39 +0000 (22:04 +0000)]
* aclocal.m4 (KRB5_LIB_PARAMS): Moved bulk of the work into config/shlib.conf.
(K5_AC_CHECK_FILES): Require AC_PROG_CC be run first.
(WITH_CC): If we're using gcc, enable a bunch of warning options.

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

24 years ago* shlib.conf: New file, taken from KRB5_LIB_PARAMS in ../aclocal.m4
Ken Raeburn [Fri, 14 Jul 2000 22:04:12 +0000 (22:04 +0000)]
* shlib.conf: New file, taken from KRB5_LIB_PARAMS in ../aclocal.m4

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

24 years ago * coding-style: Update after some discussion. Add sections
Tom Yu [Thu, 13 Jul 2000 00:55:24 +0000 (00:55 +0000)]
* coding-style: Update after some discussion.  Add sections
comparing to BSD KNF and GNU coding standards.

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

24 years ago * coding-style: Some minor tweaks. Require do-while to always be
Tom Yu [Wed, 12 Jul 2000 02:38:04 +0000 (02:38 +0000)]
* coding-style: Some minor tweaks.  Require do-while to always be
braced.  Note some aspects of function pointer and array pointer
usage.  Elaborate on function declaration practices.  Add
placeholders for sections on Makefiles and test suites.

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

24 years ago * coding-style: Another pass. Add secion on namespaces.
Tom Yu [Mon, 10 Jul 2000 20:34:47 +0000 (20:34 +0000)]
* coding-style: Another pass.  Add secion on namespaces.
Elaborate some on null pointers.

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

24 years ago * coding-style: First pass draft of coding standards
Tom Yu [Mon, 10 Jul 2000 05:18:26 +0000 (05:18 +0000)]
* coding-style: First pass draft of coding standards

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

24 years ago* dump.c: Various message char arrays turned into macros, to permit gcc to
Ken Raeburn [Wed, 5 Jul 2000 22:18:29 +0000 (22:18 +0000)]
* dump.c: Various message char arrays turned into macros, to permit gcc to
verify format strings and arguments match.
(k5beta6_dump_header, k5beta7_dump_header): Deleted.
(dump_ov_princ): Use %lx for aux_attributes.

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

24 years ago * rsh.exp: Drain buffers on klist test to avoid wedging rsh on
Tom Yu [Wed, 5 Jul 2000 00:57:42 +0000 (00:57 +0000)]
* rsh.exp: Drain buffers on klist test to avoid wedging rsh on
exit under HP/UX.

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

24 years ago * test/dbtest.c: Cleanup gcc -Wall complaints with printf format
Ezra Peisach [Tue, 4 Jul 2000 14:36:24 +0000 (14:36 +0000)]
   * test/dbtest.c: Cleanup gcc -Wall complaints with printf format
        strings.

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

24 years ago * encrypt_key.c, kdb_cpw.c, kdb_xdr.c: Add parenthesis about
Ezra Peisach [Tue, 4 Jul 2000 12:16:48 +0000 (12:16 +0000)]
    * encrypt_key.c, kdb_cpw.c, kdb_xdr.c: Add parenthesis about
        assignment in conditional and remove unused variables.

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

24 years ago * gssapi.exp: Rework significantly to deal with HP/UX lossage that
Tom Yu [Tue, 4 Jul 2000 10:59:27 +0000 (10:59 +0000)]
* gssapi.exp: Rework significantly to deal with HP/UX lossage that
probably resulted from when either the client or the server wound
up blocking on tty output.  Abstract things a little more.  Remove
dead duplicate code that used to deal with "-v2".  Should figure
out why the "-v2" stuff disappeared mysteriously.

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

24 years ago * cr_tkt.c: Frob prototypes so they don't involve narrow types
Tom Yu [Tue, 4 Jul 2000 01:19:12 +0000 (01:19 +0000)]
* cr_tkt.c: Frob prototypes so they don't involve narrow types

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

24 years ago * krb.h: Add prototypes for get_pw_tkt() and unix_time_gmt_unixsec()
Ezra Peisach [Mon, 3 Jul 2000 16:41:07 +0000 (16:41 +0000)]
   * krb.h: Add prototypes for get_pw_tkt() and unix_time_gmt_unixsec()

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

24 years ago * k5-int.h: Add prototypes for krb5_libdefault_boolean,
Ezra Peisach [Mon, 3 Jul 2000 16:37:59 +0000 (16:37 +0000)]
    * k5-int.h: Add prototypes for krb5_libdefault_boolean,
        _krb5_use_dns_realm, _krb5_use_dns_kdc, _krb5_conf_boolean.

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

24 years agoadmin.h: Add kadm5_free_name_list prototype
Ezra Peisach [Mon, 3 Jul 2000 16:32:36 +0000 (16:32 +0000)]
admin.h: Add kadm5_free_name_list prototype

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

24 years agoAdded prototype for ss_create_invocation()
Ezra Peisach [Mon, 3 Jul 2000 15:16:39 +0000 (15:16 +0000)]
Added prototype for ss_create_invocation()

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

24 years ago * Makefile.in (ktutil): Do not link with the V4
Ezra Peisach [Mon, 3 Jul 2000 15:09:35 +0000 (15:09 +0000)]
* Makefile.in (ktutil): Do not link with the V4
libraries. Although the program can write out a v4 srvtab, the one
necessary function is here.

* ktutil_funcs.c (ktutil_read_keytab): Add explicit braces to
avoid ambiguous `else'.
(getstr): register count -> register int count

* ktutil.c (main): ss_listen() takes only one argument.

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

24 years ago * ss_wrapper.c (main): ss_listen() takes only one argument
Ezra Peisach [Mon, 3 Jul 2000 15:04:27 +0000 (15:04 +0000)]
* ss_wrapper.c (main): ss_listen() takes only one argument

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

24 years ago * test_ss.c (main): Change usage of ss_listen to agree with
Ezra Peisach [Mon, 3 Jul 2000 15:02:45 +0000 (15:02 +0000)]
* test_ss.c (main): Change usage of ss_listen to agree with
prototype.

* ss.h: Add prototype for ss_listen()

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

24 years ago * Makefile.in: Remove linking of krb5util library from
Ezra Peisach [Mon, 3 Jul 2000 14:22:27 +0000 (14:22 +0000)]
* Makefile.in: Remove linking of krb5util library from
applications that never use it.

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

24 years agoMakefile.in (rtest): Link in the kdb5 library
Ezra Peisach [Mon, 3 Jul 2000 14:21:04 +0000 (14:21 +0000)]
Makefile.in (rtest): Link in the kdb5 library

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

24 years ago * pre.in: Remove the kdb5 and db libraries from the
Ezra Peisach [Mon, 3 Jul 2000 14:19:28 +0000 (14:19 +0000)]
* pre.in: Remove the kdb5 and db libraries from the
common application list but list them for server applications.

Clients in general do not depend on the database libraries. (this
improves startup time with shared libraries by not requiring
the resolve of a library that is not used.

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

24 years ago * Makefile.in: v5passwd does not depend on the kadm5
Ezra Peisach [Mon, 3 Jul 2000 14:17:00 +0000 (14:17 +0000)]
* Makefile.in: v5passwd does not depend on the kadm5
libraries. This is the older protocol.

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

24 years agoMakefile.in: kadmin4d depends on the kdb5 lib
Ezra Peisach [Mon, 3 Jul 2000 14:14:58 +0000 (14:14 +0000)]
Makefile.in: kadmin4d depends on the kdb5 lib

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