krb5.git
23 years ago* init_ctx.c (get_profile_etype_list): Zero out multiple separator characters
Ken Raeburn [Sat, 2 Jun 2001 01:10:58 +0000 (01:10 +0000)]
* init_ctx.c (get_profile_etype_list): Zero out multiple separator characters
between tokens, so the second can be recognized properly.

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

23 years ago * login.c: Add braces around initializers. Cleanup assignments in
Ezra Peisach [Fri, 1 Jun 2001 22:01:12 +0000 (22:01 +0000)]
* login.c: Add braces around initializers. Cleanup assignments in
conditionals.  Include krb524.h if KRB4_CONVERT defined.

* krlogind.c (main): Cleanup unused variables.
(protocol): Cleanup ambiguous if-if-else warning.

* krshd.c (main): Cleanup unused variables.

* krlogin.c (setsignal): Declare as void.
(server_message): Cleanup unused variables.

* setenv.c (setenv): Declare as returning int and clean up
assignments in conditionals.

* kcmd.c (kcmd, rcmd_stream_init_krb5, v5_des_read): Clean up
unused variables and assignments in conditionals.
* forward.c (rd_and_store_for_creds): Likewise.
* krcp.c (rsource): Likewise.
* v4rcp.c (answer_auth): Likewise.

* krsh.c (main): Declare as retuning int.

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

23 years ago * g_krbrlm.c: Remove unused static variable krb_conf
Ezra Peisach [Fri, 1 Jun 2001 18:43:25 +0000 (18:43 +0000)]
* g_krbrlm.c: Remove unused static variable krb_conf

* g_svc_in_tkt.c (krb_svc_init, krb_svc_init_preauth): Declare as
returning int.

* gethostname.c: Include unistd.h for gethostname() prototype.

* getst.c: Include unistd.h for read() prototype.

* in_tkt.c (in_tkt): Cast arguments to debugging printf to int
from uid_t to match format statement.

* kname_parse.c: Declare k_isname() and k_isinst() as returning
int. Cleanup assigments in conditionals.

* kuserok.c (kuserok): Cleanup assignment in conditional.

* log.c (krb_set_logfile): Declare function as void.
* klog.c (kset_logfile): Likewise.

* pkt_clen.c (pkt_clen): Declare as returning int.
* kntoln.c (krb_kntoln): Likewise.
* fgetst.c (fgetst): Likewise.

* rd_req.c: Declare local variable only if KRB_CRYPT_DEBUG defined.

* recvauth.c: Include stdlib.h and unistd.h for read() and atoi()
prototypes.

* send_to_kdc.c: Include unistd.h for close() prototype.

* sendauth.c (krb_sendauth): Clean up assignment in conditional.

* tkt_string.c (tkt_string): Likewise

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

23 years ago * des.c (des_ecb_encrypt): Do not use a variable named "encrypt".
Ezra Peisach [Thu, 31 May 2001 17:47:51 +0000 (17:47 +0000)]
* des.c (des_ecb_encrypt): Do not use a variable named "encrypt".
* enc_dec.c (des_cbc_encrypt): Likewise.
* pcbc_encrypt.c (des_pcbc_encrypt): Likewise.

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

23 years ago* des.h: Do not use "encrypt" as an argument
Ezra Peisach [Thu, 31 May 2001 17:39:05 +0000 (17:39 +0000)]
* des.h: Do not use "encrypt" as an argument

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

23 years ago * k5_md4des.c (k5_md4des_verify): Get rid of local variable that
Ezra Peisach [Thu, 31 May 2001 17:38:03 +0000 (17:38 +0000)]
* k5_md4des.c (k5_md4des_verify): Get rid of local variable that
is assigned to, without side effects, but never used.
* k5_md5des.c (k5_md5des_verify): Likewise.

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

23 years ago * des.c (k5_des_docrypt): Do not use a variable named "encrypt"
Ezra Peisach [Thu, 31 May 2001 17:36:30 +0000 (17:36 +0000)]
* des.c (k5_des_docrypt): Do not use a variable named "encrypt"
* des3.c (k5_des3_docrypt): Likewise.

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

23 years ago * f_cbc.c (mit_des_cbc_encrypt): Do not use a variable named "encrypt".
Ezra Peisach [Thu, 31 May 2001 17:34:39 +0000 (17:34 +0000)]
* f_cbc.c (mit_des_cbc_encrypt): Do not use a variable named "encrypt".
* d3_cbc.c (mit_des3_cbc_encrypt): Likewise.

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

23 years ago * des_int.h (mit_des_cbc_encrypt, mit_des3_ecb_encrypt,
Ezra Peisach [Thu, 31 May 2001 17:15:50 +0000 (17:15 +0000)]
* des_int.h (mit_des_cbc_encrypt, mit_des3_ecb_encrypt,
mit_des3_cbc_encrypt): Don't use "encrypt" as argument name.

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

23 years ago * krb5-config.in: New script for providing linker and compiler
Ezra Peisach [Wed, 30 May 2001 18:44:44 +0000 (18:44 +0000)]
* krb5-config.in: New script for providing linker and compiler
information for applications.

* patchlevel.h: Update to current release. Mkrel script generates
this in distribtions.

* configure.in: Add support for parsing patchlevel.h into a
useable form for krb5-config. Generate krb5-config from
krb5-config.in. Add KRB5_BUILD_PROGRAM for variable substitution.

* Makefile.in: Add support for building and installing krb5-config.

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

23 years ago * krlogind.c (protocol): Don't do TIOCPKT on systems with STREAMS
Tom Yu [Fri, 25 May 2001 21:40:08 +0000 (21:40 +0000)]
* krlogind.c (protocol): Don't do TIOCPKT on systems with STREAMS
ptys, even if there is a TIOCPKT, since it may result in hangs on
some systems where BSD packet mode is (presumably) not implemented
properly, such as AIX 4.3.3.  Should get cleaned up at some later
point to actually I_PUSH "pckt" or equivalent and do translation
between STREAMS and BSD style packet mode.

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

23 years ago * aclocal.m4 (WITH_CC, WITH_CCOPTS): Autoconf 2.50 fix. Change
Ezra Peisach [Wed, 23 May 2001 22:16:00 +0000 (22:16 +0000)]
* aclocal.m4 (WITH_CC, WITH_CCOPTS): Autoconf 2.50 fix. Change
from define to AC_DEFUN. Autoconf warns of use of AC_REQUIRE
outside such as environment.

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

23 years ago * getpty.c: Make pty_getpty() into ptyint_getpty_ext(), which has
Tom Yu [Wed, 16 May 2001 02:55:51 +0000 (02:55 +0000)]
* getpty.c: Make pty_getpty() into ptyint_getpty_ext(), which has
an extra argument that determines whether to call grantpt() and
unlockpt() on systems that support it.  The new pty_getpty() will
simply call the extended version.  This is to support some
wackiness needed by pty_paranoia.c tests.

* pty-int.h: Add prototype for ptyint_getpty_ext().

* pty_paranoia.c: Add rant about ptys and quirks therein.  Needs
to be updated somewhat.  Add some more paranoia for the case where
we actually succeed in opening the slave of a closed master and
then succeed in opening the same master.  This program will get
rewritten at some point to actually see what things result in EOFs
and under what conditions data will actually get passed between
master and slave.

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

23 years ago* gss-server.c (usage): Fix usage info *again* to reflect that
Danilo Almeida [Tue, 15 May 2001 21:19:02 +0000 (21:19 +0000)]
* gss-server.c (usage): Fix usage info *again* to reflect that
service_name is required.

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

23 years ago * wrap_size_limit.c (krb5_gss_wrap_size_limit): Get rid of unused
Ezra Peisach [Mon, 14 May 2001 18:19:55 +0000 (18:19 +0000)]
* wrap_size_limit.c (krb5_gss_wrap_size_limit): Get rid of unused
variable.

* util_ctxsetup.c (kg2_parse_token): Fix erroneous assignment in
conditional. (code not used in current tree).

* util_seed.c, util_seqnum.c, util_crypt.c, util_cksum.c: Cleanup
up assignments in conditionals.

* ser_sctx.c (kg_queue_internalize): Get rid of unused variable.

* gssapiP_krb5.h: Renable prototype for krb5_gss_release_oid() as
code is back (since 1996).

* k5unseal.c (kg_unseal_v1): Declare internal function static.

* init_sec_context.c (make_ap_req_v2): Comment out non-referenced
function.

* gssapi_krb5.c: Include k5-int.h for krb5_ser_* prototypes.

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

23 years ago * defines.h: Fix k4cmd prototype to match kcmd.c
Tom Yu [Fri, 11 May 2001 03:42:35 +0000 (03:42 +0000)]
* defines.h: Fix k4cmd prototype to match kcmd.c

* kcmd.c (k4cmd): Fix to not use a narrow type.

* krlogin.c: Fix prototypes so they don't include narrow types.

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

23 years ago * pty_paranoia.c: New file; do many paranoid checks about ctty
Tom Yu [Fri, 11 May 2001 03:01:46 +0000 (03:01 +0000)]
* pty_paranoia.c: New file; do many paranoid checks about ctty
handling by the pty drivers.

* Makefile.in: Add rules for pty_paranoia and check-paranoia,
which runs pty_paranoia.

* configure.in: Define REVOKE_NEEDS_OPEN for Tru64.  Add support
for program building and run flags for the sake of pty_paranoia.

* open_slave.c: Fix somewhat; AIX doesn't like opening the ctty
twice, so only do initial open if we special-case it in
configure.in, e.g. for Tru64.

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

23 years ago * shlib.conf: Fix RUN_ENV for Irix. [pulled up from 1.2.2]
Tom Yu [Fri, 11 May 2001 02:14:03 +0000 (02:14 +0000)]
* shlib.conf: Fix RUN_ENV for Irix. [pulled up from 1.2.2]

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

23 years ago * logwtmp.c: Delete code under "#if 0". Fix reversed test for
Tom Yu [Wed, 9 May 2001 03:38:37 +0000 (03:38 +0000)]
* logwtmp.c: Delete code under "#if 0".  Fix reversed test for
loggingin.  Don't forget to set the ut_tv or ut_time for the
entry.

* update_utmp.c: Update rant about Tru64; remove fetching of
ut_user from old entry.  The existence of the old ut_user in the
logout entry in wtmp was confusing last.

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

23 years ago * disp_major_status.c (display_unknown): Remove unused variable
Ezra Peisach [Tue, 8 May 2001 17:10:18 +0000 (17:10 +0000)]
* disp_major_status.c (display_unknown): Remove unused variable

* util_token.c (g_make_token_header): Remove incorrect cast of
length argument to memcpy.

* oid_ops.c (generic_gss_str_to_oid): Cast argument of isxxx()
functions to int - avoids gcc warning when these are implemented
as macros indexing an array.

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

23 years ago* locate_kdc.c (add_host_to_list): Initialize stack variable err
Danilo Almeida [Tue, 8 May 2001 14:29:53 +0000 (14:29 +0000)]
* locate_kdc.c (add_host_to_list): Initialize stack variable err
which would otherwise get returned without being set in certain
circumstances.

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

23 years ago * cleanup.c: Call update_utmp() with the correct pid to assist in
Tom Yu [Tue, 8 May 2001 04:28:33 +0000 (04:28 +0000)]
* cleanup.c: Call update_utmp() with the correct pid to assist in
finding the old utmp entry.

* open_ctty.c: Reformat somewhat and revise comment.

* open_slave.c: Rework significantly.  Primarily, keep a fd open
to the slave if we need to reopen the slave device following
vhangup() or revoke(), to accommodate various OS quirks.

* update_utmp.c: Revise history section somewhat to document more
HP-UX brokenness.  Search via ut_pid before searching via
ut_line.  Copy stuff around because entuxent() will clobber some
things.

* void_assoc.c: Revise comment and reformat somewhat.

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

23 years ago* sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN is returned,
Ken Raeburn [Tue, 8 May 2001 04:22:23 +0000 (04:22 +0000)]
* sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN is returned,
as might happen if the DNS support is not enabled.

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

23 years ago* locate_kdc.c (add_sockaddr_to_list) [TEST]: If getnameinfo is available, use
Ken Raeburn [Tue, 8 May 2001 03:50:53 +0000 (03:50 +0000)]
* locate_kdc.c (add_sockaddr_to_list) [TEST]: If getnameinfo is available, use
it instead of inet_ntoa to get the printable address.
(add_host_to_list): Share declaration sections as much as possible.  Propagate
errors back correctly from gethostbyname path.

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

23 years ago * open_slave.c (pty_open_slave): If revoke() present on system but
Ezra Peisach [Fri, 4 May 2001 18:59:20 +0000 (18:59 +0000)]
* open_slave.c (pty_open_slave): If revoke() present on system but
VHANG_FIRST is not defined, declare local variable.

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

23 years ago * dump-utmp.c: Fix some off-by-one errors. Handle cases where we
Tom Yu [Fri, 4 May 2001 04:22:50 +0000 (04:22 +0000)]
* dump-utmp.c: Fix some off-by-one errors.  Handle cases where we
have utmpname() but not utmpname().

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

23 years ago * pty-int.h: Fix typo; VHANG_first -> VHANG_FIRST
Tom Yu [Fri, 4 May 2001 04:12:07 +0000 (04:12 +0000)]
* pty-int.h: Fix typo; VHANG_first -> VHANG_FIRST

* open_slave.c (pty_open_slave): Add workaround for Tru64 v5.0,
since its revoke() will fail if the slave isn't open already.

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

23 years ago * sane_hostname.c (pty_make_sane_hostname): Preserve const
Ezra Peisach [Thu, 3 May 2001 18:44:24 +0000 (18:44 +0000)]
* sane_hostname.c (pty_make_sane_hostname): Preserve const
property of incomming parameter in casts.

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

23 years ago * cleanup.c (pty_cleanup): Delcare local variable only if
Ezra Peisach [Thu, 3 May 2001 18:41:20 +0000 (18:41 +0000)]
* cleanup.c (pty_cleanup): Delcare local variable only if
VHANG_LAST defined.

* logwtmp.c (pty_logwtmp): Only declare local variables if
logwtmp() not available on system.

* sane_hostname.c (sockaddrlen): Only define static function if
HAVE_GETNAMEINFO defined. (pty_make_sane_hostname) Declare goto
target only if code compiled in.

gcc warning cleanups

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

23 years ago* update_utmp.c (pty_update_utmp): Fix typo (OWRONLY -> O_WRONLY)
Ken Raeburn [Wed, 2 May 2001 02:28:23 +0000 (02:28 +0000)]
* update_utmp.c (pty_update_utmp): Fix typo (OWRONLY -> O_WRONLY)

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

23 years agocmds.c: fix broken port number check
Ken Raeburn [Tue, 1 May 2001 22:46:11 +0000 (22:46 +0000)]
cmds.c: fix broken port number check

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

23 years ago* telnet.c (telnet): Fix grammar in some error messages
Ken Raeburn [Tue, 1 May 2001 22:39:38 +0000 (22:39 +0000)]
* telnet.c (telnet): Fix grammar in some error messages

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

23 years ago * update_wtmp.c (ptyint_update_wtmpx): Add missing semi-colon in
Ezra Peisach [Tue, 1 May 2001 14:59:25 +0000 (14:59 +0000)]
* update_wtmp.c (ptyint_update_wtmpx): Add missing semi-colon in
  code path if PTY_UTMP_E_EXIT and PTY_UTMPX_E_EXIT exist.

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

23 years ago * configure.in: Fix some quoting of shell variables when passing
Tom Yu [Mon, 30 Apr 2001 21:53:15 +0000 (21:53 +0000)]
* configure.in: Fix some quoting of shell variables when passing
to "test".  Reorder some logic in consistency checks to validate
cache variables against "yes" to account for possible empty or
nonexistent values.

* pty-int.h: Fix conditional prototype of update_wtmp().

* update_wtmp.c: Fix conditional compilation of update_wtmp() to
cover the case where we have setutxent() but don't have updwtmpx()
and WTMPX_FILE, as is the case on some Linux installations.

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

23 years ago * configure.in(K5_CHECK_UT_MEMBER): Fix typo in previous; make
Tom Yu [Sat, 28 Apr 2001 02:20:57 +0000 (02:20 +0000)]
* configure.in(K5_CHECK_UT_MEMBER): Fix typo in previous; make
sure to include the correct header when checking structure
members.

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

23 years ago * configure.in: Many changes to support the rewriting of the utmp
Tom Yu [Sat, 28 Apr 2001 02:05:38 +0000 (02:05 +0000)]
* configure.in: Many changes to support the rewriting of the utmp
pieces of libpty.  Do a large amount of checking for consistency
of various utmp and utmpx APIs as currently understood.  See rant
in update_utmp.c.

* dump-utmp.c: Rewrite; now has capability to use utmp{,x}name()
to extract entries from utmp and utmpx files.  Adjusts field
widths when printing as appropriate.

* libpty.h: Update call signature for update_utmp() and logwtmp();
make prototypes unconditional.

* logwtmp.c: Rewrite.  Use pututline() or pututxline() API
whenever possible.

* pty-int.h: Update call signatures for update_wtmp{,x}(); make
prototypes unconditional.

* sane_hostname.c: Use the autoconf-correct macro names.

* update_utmp.c: Rewrite.  Basically, use functions from the
pututline() or pututxline() API whenever possible, to avoid
lossage.  Inserted large rant about the conjectured history of BSD
utmp, sysV utmp, and utmpx, as well as documentation about some
known quirks.

* update_wtmp.c: Rewrite.  Add new function ptyint_logwtmpx() that
takes a utmpx rather than a utmp, so it can fail to lose data
converting to and from utmp.

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

23 years agotelnetd.c (usage): Align output columns better
Ken Raeburn [Fri, 27 Apr 2001 23:24:05 +0000 (23:24 +0000)]
telnetd.c (usage): Align output columns better

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

23 years agodelete support for command-line options that are no longer accepted (and haven't...
Ken Raeburn [Fri, 27 Apr 2001 23:21:47 +0000 (23:21 +0000)]
delete support for command-line options that are no longer accepted (and haven't been since 1999)

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

23 years ago* aclocal.m4 (DECLARE_SYS_ERRLIST): Check for sys_nerr with an
Ken Raeburn [Fri, 27 Apr 2001 22:51:51 +0000 (22:51 +0000)]
* aclocal.m4 (DECLARE_SYS_ERRLIST): Check for sys_nerr with an
expression that can't be optimized away.
(KRB5_INIT_CCOPTS): New macro.
(WITH_CC): Add gcc warning flags to CCOPTS instead of CC.  Add option
-Wno-comment to stop gcc from complaining about SunOS system header
files.  Call AC_REQUIRE on KRB5_INIT_CCOPTS.
(WITH_CCOPTS): Add to CCOPTS instead of simply assigning to it.  Call
AC_REQUIRE on KRB5_INIT_CCOPTS.

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

23 years ago * ftp_var.h: Prototype for recvrequest() needs volatile
Ezra Peisach [Fri, 27 Apr 2001 14:02:19 +0000 (14:02 +0000)]
* ftp_var.h: Prototype for recvrequest() needs volatile
  declaration to match code. Native Dec Alpha compiler errors on the
  inconsistancy.

* secure.h (PROTOTYPE): Only define if not defined already.

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

23 years ago.cvsignore: Add stamp-h.in
Ezra Peisach [Fri, 27 Apr 2001 13:55:46 +0000 (13:55 +0000)]
.cvsignore: Add stamp-h.in

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

23 years ago * v4gssftp.exp: Allow for "no credentials cache found" error minor
Tom Yu [Fri, 27 Apr 2001 01:58:48 +0000 (01:58 +0000)]
* v4gssftp.exp: Allow for "no credentials cache found" error minor
code from GSSAPI.

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

23 years agoback out accidental check-in
Ken Raeburn [Thu, 26 Apr 2001 11:17:10 +0000 (11:17 +0000)]
back out accidental check-in

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

23 years ago* conv_creds.c (broken, krb524_convert_creds_plain): Unused code deleted
Ken Raeburn [Thu, 26 Apr 2001 11:15:12 +0000 (11:15 +0000)]
* conv_creds.c (broken, krb524_convert_creds_plain): Unused code deleted

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

23 years agoadd some comments
Ken Raeburn [Thu, 26 Apr 2001 11:13:31 +0000 (11:13 +0000)]
add some comments

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

23 years agohst_realm.c (T_TXT): Define if not defined by header files
Ken Raeburn [Thu, 26 Apr 2001 11:12:36 +0000 (11:12 +0000)]
hst_realm.c (T_TXT): Define if not defined by header files

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

23 years agouse new internal interface for locating servers
Ken Raeburn [Thu, 26 Apr 2001 11:11:11 +0000 (11:11 +0000)]
use new internal interface for locating servers

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

23 years agoimplement and use new internal interface for locating servers
Ken Raeburn [Thu, 26 Apr 2001 11:10:15 +0000 (11:10 +0000)]
implement and use new internal interface for locating servers

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

23 years agonew internal library interface for locating servers
Ken Raeburn [Thu, 26 Apr 2001 11:08:18 +0000 (11:08 +0000)]
new internal library interface for locating servers

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

23 years ago* aclocal.m4 (KRB5_AC_INET6): Don't look for getipnodebyname, getipnodebyaddr
Ken Raeburn [Thu, 26 Apr 2001 07:53:10 +0000 (07:53 +0000)]
* aclocal.m4 (KRB5_AC_INET6): Don't look for getipnodebyname, getipnodebyaddr

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

23 years agoassume ANSI C: delete no-volatile support, and most no-prototype support
Ken Raeburn [Thu, 26 Apr 2001 07:41:52 +0000 (07:41 +0000)]
assume ANSI C: delete no-volatile support, and most no-prototype support

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

23 years ago* configure.in: Don't look for getipnodebyaddr
Ken Raeburn [Thu, 26 Apr 2001 05:30:46 +0000 (05:30 +0000)]
* configure.in: Don't look for getipnodebyaddr

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

23 years ago* klist.c (one_addr): Drop getipnodebyaddr support
Ken Raeburn [Thu, 26 Apr 2001 05:29:49 +0000 (05:29 +0000)]
* klist.c (one_addr): Drop getipnodebyaddr support

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

23 years agoback out changes that shouldn't have been checked in yet
Ken Raeburn [Thu, 26 Apr 2001 03:57:48 +0000 (03:57 +0000)]
back out changes that shouldn't have been checked in yet

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

23 years agolocaladdr.c (foreach_localaddr): support SIOCGIFNUM, for Solaris
Ken Raeburn [Thu, 26 Apr 2001 03:54:43 +0000 (03:54 +0000)]
localaddr.c (foreach_localaddr): support SIOCGIFNUM, for Solaris

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

23 years agoupdate copyright years
Ken Raeburn [Thu, 26 Apr 2001 03:49:18 +0000 (03:49 +0000)]
update copyright years

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

23 years agomove socklen_t, socklen handling from krb5 library to include/k5-int.h
Ken Raeburn [Thu, 26 Apr 2001 03:47:29 +0000 (03:47 +0000)]
move socklen_t, socklen handling from krb5 library to include/k5-int.h

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

23 years ago * ftpcmd.y: Don't dereference a NULL pointer returned from
Tom Yu [Thu, 26 Apr 2001 00:55:20 +0000 (00:55 +0000)]
* ftpcmd.y: Don't dereference a NULL pointer returned from
ftpglob().

* ftpd.c: Be more paranoid about return values from ftpglob().
Police uses of sprintf().  Account for expansion in
radix_encode().

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

23 years ago test.c: Always include stdlib.h
Ezra Peisach [Wed, 25 Apr 2001 17:36:07 +0000 (17:36 +0000)]
 test.c: Always include stdlib.h

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

23 years ago* Makefile.in: Add lclint support
Ezra Peisach [Wed, 25 Apr 2001 17:33:13 +0000 (17:33 +0000)]
* Makefile.in: Add lclint support

* dyn.h: Lclint annotate functions.

* dyn_create.c (DynCreate): Do not assume that malloc(0) is valid
and returns a valid pointer. Fix memory leak if malloc fails.

* dyn_realloc.c (_DynResize): Turn off warning of shifting a
signed variable.

* test.c: Check the return values of all library calls.

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

23 years ago* tcl_kadm5.c, tcl_ovsec_kadm.c: Cleanup of assignments in
Ezra Peisach [Wed, 25 Apr 2001 15:14:24 +0000 (15:14 +0000)]
* tcl_kadm5.c, tcl_ovsec_kadm.c: Cleanup of assignments in
conditionals, missing prototypes, etc.

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

23 years ago kdb_dbm.c (destroy_file_suffix): Declare as static
Ezra Peisach [Wed, 25 Apr 2001 15:02:36 +0000 (15:02 +0000)]
 kdb_dbm.c (destroy_file_suffix): Declare as static

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

23 years ago * default.exp: For Kerberos 4 tests, use a different ticket file
Ezra Peisach [Wed, 25 Apr 2001 14:55:00 +0000 (14:55 +0000)]
* default.exp: For Kerberos 4 tests, use a different ticket file
name from the V5 tests.

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

23 years ago * client.c (main): Ensure that end of string is NULL terminated
Ezra Peisach [Tue, 24 Apr 2001 17:05:34 +0000 (17:05 +0000)]
* client.c (main): Ensure that end of string is NULL terminated
  instead of assuming buffer initialized to 0. Include <string.h>
  for memset prototype.

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

23 years ago * util_crypt.c (kg_make_confounder): Change variable random to
Ezra Peisach [Tue, 24 Apr 2001 16:06:52 +0000 (16:06 +0000)]
* util_crypt.c (kg_make_confounder): Change variable random to
  lrandom to prevent shadowing of global function.

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

23 years agoupdate info on Solaris; add BSD/OS
Ken Raeburn [Tue, 24 Apr 2001 14:21:41 +0000 (14:21 +0000)]
update info on Solaris; add BSD/OS

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

23 years ago* Makefile.in (unixmac): Target deleted
Ken Raeburn [Tue, 17 Apr 2001 19:41:35 +0000 (19:41 +0000)]
* Makefile.in (unixmac): Target deleted

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

23 years ago* Makefile.in (includes): New target
Ken Raeburn [Tue, 17 Apr 2001 19:36:06 +0000 (19:36 +0000)]
* Makefile.in (includes): New target

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

23 years agorevise error table header rules - don't explicitly invoke awk here
Ken Raeburn [Sat, 14 Apr 2001 03:30:28 +0000 (03:30 +0000)]
revise error table header rules - don't explicitly invoke awk here

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

23 years ago* Makefile.in (EHDRDIR): Install into kerberosIV subdirectory
Ken Raeburn [Sat, 14 Apr 2001 03:29:13 +0000 (03:29 +0000)]
* Makefile.in (EHDRDIR): Install into kerberosIV subdirectory

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

23 years ago* ad_print.c (ad_print): Pass address of session key to des_cblock_print_file,
Ken Raeburn [Sat, 14 Apr 2001 03:28:52 +0000 (03:28 +0000)]
* ad_print.c (ad_print): Pass address of session key to des_cblock_print_file,
not the session key.

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

23 years ago* g_tkt_svc.c (CredIsExpired): Don't use a variable named "time"
Ken Raeburn [Sat, 14 Apr 2001 03:27:43 +0000 (03:27 +0000)]
* g_tkt_svc.c (CredIsExpired): Don't use a variable named "time"

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

23 years agok5-int.h: Always include stdlib.h and string.h; don't bother with HAVE_ macros
Ken Raeburn [Sat, 14 Apr 2001 03:14:44 +0000 (03:14 +0000)]
k5-int.h: Always include stdlib.h and string.h; don't bother with HAVE_ macros

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

23 years agoAllow des-mdX keys as well as des-crc (patch from assar).
Ken Raeburn [Sat, 14 Apr 2001 03:04:23 +0000 (03:04 +0000)]
Allow des-mdX keys as well as des-crc (patch from assar).
Deal better with conversion of inter-realm tickets.
Misc cleanup.

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

23 years ago* memcache.h: Don't use macro PROTOTYPE
Danilo Almeida [Fri, 13 Apr 2001 15:38:21 +0000 (15:38 +0000)]
* memcache.h: Don't use macro PROTOTYPE

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

23 years ago* cksum.c (des_cbc_cksum): Gee, a consistent calling convntion.
Danilo Almeida [Thu, 12 Apr 2001 18:11:12 +0000 (18:11 +0000)]
* cksum.c (des_cbc_cksum): Gee, a consistent calling convntion.
What a concept!

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

23 years ago * f_tables.h: Do not define const to nothing on platforms that
Ezra Peisach [Thu, 12 Apr 2001 16:03:36 +0000 (16:03 +0000)]
* f_tables.h: Do not define const to nothing on platforms that
fail to define __STDC__ - let autoconf do this if necessary.

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

23 years ago * aclocal.m4 (WITH_CC): Reorganize test: Do not use cache variable
Ezra Peisach [Wed, 11 Apr 2001 21:01:09 +0000 (21:01 +0000)]
* aclocal.m4 (WITH_CC): Reorganize test: Do not use cache variable
that conflicts with an autoconf internal variable (prefix with
krb5_ instead of ac_). Ensure that the first time AC_PROG_CC is
invoked, is not within a conditional cache block. Autoconf 2.49
only include the compiler test code once in the configure script
instead of everytime it is seen.

aclocal now works with autoconf-2.49d... (as well as earlier versions)

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

23 years agosome stuff to be fixed in des code
Ken Raeburn [Tue, 10 Apr 2001 08:54:13 +0000 (08:54 +0000)]
some stuff to be fixed in des code

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

23 years agomore casting cleanup
Ken Raeburn [Tue, 10 Apr 2001 08:52:35 +0000 (08:52 +0000)]
more casting cleanup

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

23 years agofix/add casts as needed
Ken Raeburn [Tue, 10 Apr 2001 08:39:54 +0000 (08:39 +0000)]
fix/add casts as needed

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

23 years agomore cleanup - add const, reduce casting
Ken Raeburn [Tue, 10 Apr 2001 08:31:43 +0000 (08:31 +0000)]
more cleanup - add const, reduce casting

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

23 years agostuff to still address
Ken Raeburn [Tue, 10 Apr 2001 07:57:03 +0000 (07:57 +0000)]
stuff to still address

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

23 years agoremove some outdated comments
Ken Raeburn [Tue, 10 Apr 2001 07:49:14 +0000 (07:49 +0000)]
remove some outdated comments

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

23 years agouse const for some des inputs and reduce unnecessary casts
Ken Raeburn [Tue, 10 Apr 2001 07:40:02 +0000 (07:40 +0000)]
use const for some des inputs and reduce unnecessary casts

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

23 years ago* krb.h: Don't use "index" as argument name
Ken Raeburn [Tue, 10 Apr 2001 07:38:00 +0000 (07:38 +0000)]
* krb.h: Don't use "index" as argument name

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

23 years agouse const for some inputs (when practical) without changing api
Ken Raeburn [Tue, 10 Apr 2001 07:35:55 +0000 (07:35 +0000)]
use const for some inputs (when practical) without changing api

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

23 years ago* cr_err_repl.c (req_act_vno): Delete commented-out declaration
Ken Raeburn [Tue, 10 Apr 2001 06:29:56 +0000 (06:29 +0000)]
* cr_err_repl.c (req_act_vno): Delete commented-out declaration

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

23 years agomake prototypes unconditional
Ken Raeburn [Tue, 10 Apr 2001 06:27:01 +0000 (06:27 +0000)]
make prototypes unconditional

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

23 years ago* do_as_req.c, do_tgs_req.c, kdc_preauth.c, kdc_util.h, kerberos_v4.c, main.c,
Ken Raeburn [Tue, 10 Apr 2001 06:23:30 +0000 (06:23 +0000)]
* do_as_req.c, do_tgs_req.c, kdc_preauth.c, kdc_util.h, kerberos_v4.c, main.c,
policy.h: Don't use macros PROTOTYPE or KRB5_PROTOTYPE.
* kerberos_v4.c (req_act_vno): Delete variable definition.
(kerberos_v4): Don't set it.

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

23 years ago* kparse.c, send_to_kdc.c: Don't use macro PROTOTYPE
Ken Raeburn [Tue, 10 Apr 2001 06:01:59 +0000 (06:01 +0000)]
* kparse.c, send_to_kdc.c: Don't use macro PROTOTYPE

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

23 years ago* kparse.h: Don't use PROTOTYPE macro
Ken Raeburn [Tue, 10 Apr 2001 05:58:00 +0000 (05:58 +0000)]
* kparse.h: Don't use PROTOTYPE macro

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

23 years agofix pathname in comment
Ken Raeburn [Tue, 10 Apr 2001 05:06:34 +0000 (05:06 +0000)]
fix pathname in comment

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

23 years ago* des.h (des_cblock, des_key_schedule): Separate definitions into a block with
Ken Raeburn [Tue, 10 Apr 2001 05:06:19 +0000 (05:06 +0000)]
* des.h (des_cblock, des_key_schedule): Separate definitions into a block with
a comment indicating lib/crypto/des/des_int.h needs to be kept in sync.  Use
macro KRB5INT_DES_TYPES_DEFINED to avoid duplication.

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

23 years ago* des_int.h: Don't use PROTOTYPE macro.
Ken Raeburn [Tue, 10 Apr 2001 05:03:55 +0000 (05:03 +0000)]
* des_int.h: Don't use PROTOTYPE macro.
(des_cblock, des_key_schedule): Duplicate definitions here and in
kerberosIV/des.h, using macro KRB5INT_DES_TYPES_DEFINED to avoid duplication.
(mit_des_cblock, mit_des_key_schedule): Define in terms of the other types for
now.
(PROTOTYPE): Don't define.

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

23 years agoafsstring2key.c, destest.c: Don't use PROTOTYPE macro
Ken Raeburn [Tue, 10 Apr 2001 05:00:54 +0000 (05:00 +0000)]
afsstring2key.c, destest.c: Don't use PROTOTYPE macro

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

23 years agocleanup
Ken Raeburn [Tue, 10 Apr 2001 04:04:09 +0000 (04:04 +0000)]
cleanup

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

23 years ago* des.h: Include stdio.h.
Ken Raeburn [Tue, 10 Apr 2001 04:00:09 +0000 (04:00 +0000)]
* des.h: Include stdio.h.
(PROTOTYPE): Delete macro.  Make all function prototypes unconditional.
(des_ecb_encrypt, des_fixup_key_parity, des_check_key_parity,
des_new_random_key, des_init_random_number_generator, des_random_key,
des_is_weak_key, des_cblock_print_file): Add prototypes.
(des_cbc_cksum, des_cbc_encrypt, des_read_password) [KRB5_GENERAL__]: Add
prototypes.

* krb.h: Make all function prototypes unconditional, don't use PROTOTYPE macro.

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

23 years agonew test case for pcbc encryption
Ken Raeburn [Tue, 10 Apr 2001 03:33:11 +0000 (03:33 +0000)]
new test case for pcbc encryption

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

23 years ago* pcbc_encrypt.c (des_pcbc_encrypt): Initialize plainl and plainr to keep
Ken Raeburn [Tue, 10 Apr 2001 03:32:34 +0000 (03:32 +0000)]
* pcbc_encrypt.c (des_pcbc_encrypt): Initialize plainl and plainr to keep
compiler happy.

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