krb5.git
26 years agoTue Jun 23 06:28:51 1998 Matthew D Hancher <mdh@mit.edu>
Matthew Hancher [Tue, 23 Jun 1998 10:31:49 +0000 (10:31 +0000)]
Tue Jun 23 06:28:51 1998  Matthew D Hancher  <mdh@mit.edu>

* aclocal.m4: added a kluge to get shared libraries to build
        with gcc under Irix 6.3

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

26 years ago * cnv_tkt_skey.c (krb524_convert_tkt_skey): Handle null address
Tom Yu [Wed, 17 Jun 1998 20:38:09 +0000 (20:38 +0000)]
* cnv_tkt_skey.c (krb524_convert_tkt_skey): Handle null address
fields; actually use saddr (the address from the UDP header) to
generate the ticket address rather than just checking against it.

* conv_creds.c (krb524_convert_creds_plain): Punt address checks.

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

26 years agoDon't depend on $(RM) macro being defined when building kerbsrc-nt.zip
Theodore Tso [Wed, 27 May 1998 21:31:24 +0000 (21:31 +0000)]
Don't depend on $(RM) macro being defined when building kerbsrc-nt.zip

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

26 years agoFolded in enhancements from Cygnus's Kerbnet-1.2 (plus our changes
Theodore Tso [Wed, 27 May 1998 19:51:25 +0000 (19:51 +0000)]
Folded in enhancements from Cygnus's Kerbnet-1.2 (plus our changes
made since Cygnus's last snapshot).  See ChangeLog from Cygnus
(included in the ChangeLog file) for more details.

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

26 years agoMakefile.in: Add ccache/memory as a directory to be recursively built
Theodore Tso [Wed, 27 May 1998 19:48:01 +0000 (19:48 +0000)]
Makefile.in: Add ccache/memory as a directory to be recursively built
by this makefile under Windows.

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

26 years agoMakefile.in: Update Makefile so that it can be built under Windows
Theodore Tso [Wed, 27 May 1998 19:47:02 +0000 (19:47 +0000)]
Makefile.in: Update Makefile so that it can be built under Windows

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

26 years agomkbin.bat: Added convenience batch file which copies all of the
Theodore Tso [Wed, 27 May 1998 19:37:14 +0000 (19:37 +0000)]
mkbin.bat: Added convenience batch file which copies all of the
appropriate files out of the build tree into a single kbin directory

Makefile.in: Add the windows/lib directory to the list of directories
to be built (and cleaned).

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

26 years agologwtmp.c: Include paths.h if present, and use _PATH_WTMP to determine
Theodore Tso [Wed, 27 May 1998 19:34:36 +0000 (19:34 +0000)]
logwtmp.c: Include paths.h if present, and use _PATH_WTMP to determine
WTMPFILE.

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

26 years agoconfigure.in: Add check for paths.h
Theodore Tso [Wed, 27 May 1998 19:33:49 +0000 (19:33 +0000)]
configure.in: Add check for paths.h

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

26 years agosys_term.c: #include utmp.h if present, and use _PATH_WTMP and
Theodore Tso [Wed, 27 May 1998 19:33:00 +0000 (19:33 +0000)]
sys_term.c: #include utmp.h if present, and use _PATH_WTMP and
_PATH_UTMP if defined to determine location of the wtmp and utmp
files.

configure.in: Add check for utmp.h

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

26 years agowindows.in: Remove -DLEHMAN, which doesn't do anything. (A grep
Theodore Tso [Wed, 27 May 1998 19:31:27 +0000 (19:31 +0000)]
windows.in: Remove -DLEHMAN, which doesn't do anything.  (A grep
through the whole source tree shows no instances of #ifdef LEHMAN)

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

26 years agosrv_rcache.c (krb5_get_server_rcache):
Theodore Tso [Wed, 27 May 1998 19:28:17 +0000 (19:28 +0000)]
srv_rcache.c (krb5_get_server_rcache):
auth_con.c (krb5_auth_con_setrcache): Export this function in Windows DLL.

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

26 years agoCheck in files from Kerbnet-1.2 release. This is an auxiliary library
Theodore Tso [Wed, 27 May 1998 19:23:34 +0000 (19:23 +0000)]
Check in files from Kerbnet-1.2 release.  This is an auxiliary library
used by some of the windows programs.

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

26 years agoMakefile.in: include krb5/ccache/memory and windows/lib in the list of
Theodore Tso [Wed, 27 May 1998 19:17:58 +0000 (19:17 +0000)]
Makefile.in: include krb5/ccache/memory and windows/lib in the list of
directories built by the Windows build.  When building kerbsrc-nt.zip,
put a copy of mkbin.bat in the top-level build directory.  Fix bug in
kerbsrc-nt.zip building where it wasn't creating the initial Makefile
(although the dos-zipfiles target did the right thing).

aclocal.m4 (KRB5_LIB_PARAMS): Remove "untested" comment from freebsd.
Add section for openbsd.

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

26 years agokrb5.hin: Declare krb5_auth_con_setrcache and krb5_get_server_rcache
Theodore Tso [Wed, 27 May 1998 19:13:50 +0000 (19:13 +0000)]
krb5.hin: Declare krb5_auth_con_setrcache and krb5_get_server_rcache
to be exported by the DLL.

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

26 years agologin.c (dolastlog): BSD 4.4 systems don't have lastlog.h, but still
Theodore Tso [Wed, 27 May 1998 19:12:45 +0000 (19:12 +0000)]
login.c (dolastlog): BSD 4.4 systems don't have lastlog.h, but still
define struct lastlog somewhere.  Included from Dima Ruban's FreeBSD
patches.

krlogin.c: Include sys/ioctl_compat.h if it is present (instead of
just for 386BSD).

loginpaths.h (LPATH): If the OS provides _PATH_DEFPATH, use it to
define LPATH and RPATH.

login.c: #include paths.h if present, and use it to set the pathnames
for certain common files.

configure.in (withval): Check for <sys/ioctl_compat.h> and <paths.h>

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

26 years agokrb5_32.def: Change the DLL export list to include
Theodore Tso [Wed, 27 May 1998 18:48:16 +0000 (18:48 +0000)]
krb5_32.def: Change the DLL export list to include
krb5_auth_con_setrcache, krb5_get_server_rcache, krb5_cc_default_name,
krb5_change_password, krb5_mcc_ops, and all of the Cygnus
krb5_get_init_creds functions.  Remove the old libkadm functions, as
they are no longer available.

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

26 years ago * configure.in: Re-order check for setupterm to avoid lossage if
Tom Yu [Tue, 26 May 1998 19:32:02 +0000 (19:32 +0000)]
* configure.in: Re-order check for setupterm to avoid lossage if
setupterm is defined in libtermcap or libcurses.

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

26 years agoMakefile.in (CLEANLIBS): Remove lib/kadm from the list of directories
Theodore Tso [Mon, 25 May 1998 02:32:06 +0000 (02:32 +0000)]
Makefile.in (CLEANLIBS): Remove lib/kadm from the list of directories
built in the windows build.

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

26 years agoMakefile.in: Remove lib/kadm and lib/krb5/free from the list of
Theodore Tso [Mon, 25 May 1998 02:31:13 +0000 (02:31 +0000)]
Makefile.in: Remove lib/kadm and lib/krb5/free from the list of
directories supported by windows (since they have since gone away).

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

26 years agoaclocal.m4: Added suggested changes to improve HP-UX's support for
Theodore Tso [Mon, 25 May 1998 02:10:46 +0000 (02:10 +0000)]
aclocal.m4: Added suggested changes to improve HP-UX's support for
shared libraries.

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

26 years agoutil_buffer.c (g_make_string_buffer): Don't include the trailing
Theodore Tso [Mon, 25 May 1998 02:02:40 +0000 (02:02 +0000)]
util_buffer.c (g_make_string_buffer): Don't include the trailing
NULL of the string in the gss buffer's length.

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

26 years agoFix typo which caused import_name to incorrectly import names produced
Theodore Tso [Mon, 25 May 1998 01:58:46 +0000 (01:58 +0000)]
Fix typo which caused import_name to incorrectly import names produced
by gss_export_name().

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

26 years agocopy_ccache.c (gss_krb5_copy_ccache): Fix bugs in copy_ccache.c, which
Theodore Tso [Mon, 25 May 1998 01:54:34 +0000 (01:54 +0000)]
copy_ccache.c (gss_krb5_copy_ccache): Fix bugs in copy_ccache.c, which
never compiled cleanly (since it wasn't added to the Makefile
correctly originally).

k5seal.c (make_seal_token): Clean up -Wall flames

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

26 years agoinq_cred.c (krb5_gss_inquire_cred):
Theodore Tso [Mon, 25 May 1998 01:45:17 +0000 (01:45 +0000)]
inq_cred.c (krb5_gss_inquire_cred):
inq_context.c (krb5_gss_inquire_context):
import_name.c (krb5_gss_import_name):
export_name.c (krb5_gss_export_name):
disp_name.c (krb5_gss_display_name):
context_time.c (krb5_gss_context_time):
acquire_cred.c (krb5_gss_acquire_cred): Clean up -Wall flames.

indicate_mechs.c (krb5_gss_indicate_mechs): Return a dynamic OID set.

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

26 years agoutil_ordering.c (g_order_free):
Theodore Tso [Mon, 25 May 1998 01:44:13 +0000 (01:44 +0000)]
util_ordering.c (g_order_free):
rel_oid_set.c (generic_gss_release_oid_set):
disp_major_status.c: General lint cleanup.

util_oid.c (g_copy_OID_set): Copy the OID set with entirely dynamic
memory (don't alias the contents of the OID set).

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

26 years agoUse double backslashes for the path separators to workaround Microsoft
Theodore Tso [Mon, 25 May 1998 01:42:51 +0000 (01:42 +0000)]
Use double backslashes for the path separators to workaround Microsoft
NMAKE brain damaging.  Sometimes backslashes are treated as a quoting
characters, and sometimes not, with no rhyme or reason that I can
determine.  Fortunatelly double backslashes in pathanmes don't seem to
hurt (for the times when the backslash isn't treated as a quoating
character).  Whoever decided Windows should use backslash as a path
separator should be shot.

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

26 years ago * krb5_err.et: Clarify error for REALM_CANT_RESOLVE
Tom Yu [Tue, 19 May 1998 00:21:25 +0000 (00:21 +0000)]
* krb5_err.et: Clarify error for REALM_CANT_RESOLVE

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

26 years ago * login.c: Replace strcpy with strncpy in places. Add nul
Tom Yu [Sat, 16 May 1998 20:54:42 +0000 (20:54 +0000)]
* login.c: Replace strcpy with strncpy in places.  Add nul
termination to some existing invocations of strncpy.

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

26 years agotelnetd.c (main):
Theodore Tso [Thu, 14 May 1998 04:57:00 +0000 (04:57 +0000)]
telnetd.c (main):
telnetd-ktd.c (main): POSIX states that getopt returns -1 when it
is done parsing options, not EOF.

configure.in: Rename HAS_* to HAVE_* for the following tests: sac.h,
sys/ptyvar.h, sys/filio.h, sys/stream.h, gettosbyname(), and make
appropriate adjustments in the rest of the .c files.  Remove tests
which aren't being used anymore: vhangup, utmpx.h, utmp.h, etc.

defs.h: Use HAVE_SYS_FILIO_H instead of FILIO_H

sys_term.c: Use HAVE_SAC_H and HAVE_SYS_STREAM_H instead of
      HAS_SAC and STREAMS.

telnetd.c, telnetd-ktd.c: Use HAVE_GETTOSBYNAME instead of
      HAS_GETTOS

telnetd.c: Use HAVE_SYS_PTYVAR_H instead of HAS_PTYVAR.

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

26 years agomain.c (main): POSIX states that getopt returns -1 when it is done
Theodore Tso [Thu, 14 May 1998 04:47:22 +0000 (04:47 +0000)]
main.c (main): POSIX states that getopt returns -1 when it is done
parsing options, not EOF.

configure.in: Use standard autoconf test names. Change tests to define
standard autoconf CPP macro names, not the non-standard HAS_GETTOS,
etc.

main.c, commands.c: Use HAVE_GETTOSBYNAME instead of HAS_GETTOS

ring.c, externs.h: Use HAVE_SYS_FILIO_H instead of FILIO_H

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

26 years agoconfigure.in: Change test for cgetent to use HAVE_ instead of HAS_,
Theodore Tso [Thu, 14 May 1998 04:41:47 +0000 (04:41 +0000)]
configure.in: Change test for cgetent to use HAVE_ instead of HAS_,
and add a test for gettosbyname().

getent.c: Use HAVE_CGETENT instead of HAS_CGETENT

parsetos.c: Use HAVE_GETTOSBYNAME instead of HAS_GETTOS

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

26 years agoMake sure the date string printed uses 4 digit years
Theodore Tso [Thu, 14 May 1998 04:38:14 +0000 (04:38 +0000)]
Make sure the date string printed uses 4 digit years

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

26 years agoThis is now obsolete; superceded by src/lib/kadm5
Tom Yu [Mon, 11 May 1998 01:47:15 +0000 (01:47 +0000)]
This is now obsolete; superceded by src/lib/kadm5

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

26 years agoRemove extraneous stuff, as this actually belongs in
Tom Yu [Mon, 11 May 1998 01:44:50 +0000 (01:44 +0000)]
Remove extraneous stuff, as this actually belongs in
src/kadmin/v4server, etc. now

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

26 years agostr_conv.c (krb5_string_to_timestamp, strptime): Fix routines to be
Theodore Tso [Sat, 9 May 1998 03:19:46 +0000 (03:19 +0000)]
str_conv.c (krb5_string_to_timestamp, strptime): Fix routines to be
able to properly parse Y2K dates.

t_kerb.c: Add ability to test krb5_string_to_timestamp

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

26 years agostime.c (krb_stime):
Theodore Tso [Sat, 9 May 1998 00:04:39 +0000 (00:04 +0000)]
stime.c (krb_stime):
log.c (krb_new_log, krb_log):
klog.c (klog): Print the year using 4 digits to avoid Y2K issues.

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

26 years agoPrint the year as 4 digits to avoid Y2K problems
Theodore Tso [Fri, 8 May 1998 23:55:43 +0000 (23:55 +0000)]
Print the year as 4 digits to avoid Y2K problems

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

26 years ago * kadm_server.c (krb_log): Print the year using 4 digit to avoid
Theodore Tso [Fri, 8 May 1998 23:52:49 +0000 (23:52 +0000)]
* kadm_server.c (krb_log): Print the year using 4 digit to avoid
Y2K issues.

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

26 years agoPrint 4 digit years in Krb4 log entries to avoid Y2K issues
Theodore Tso [Fri, 8 May 1998 22:48:16 +0000 (22:48 +0000)]
Print 4 digit years in Krb4 log entries to avoid Y2K issues

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

26 years agoftpcmd.y (cmd): Fix Y2K problem in the MDTM command
Theodore Tso [Fri, 8 May 1998 22:15:18 +0000 (22:15 +0000)]
ftpcmd.y (cmd): Fix Y2K problem in the MDTM command

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

26 years agoAdd a check for the header file krb4-proto.h. Replace file existence
Theodore Tso [Wed, 6 May 1998 20:40:44 +0000 (20:40 +0000)]
Add a check for the header file krb4-proto.h.  Replace file existence
tests for /etc/environment and /etc/TIMEZONE with K5_AC_CHECK_FILES.

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

26 years agoPOSIX states that getopt returns -1 when it is done parsing options,
Theodore Tso [Wed, 6 May 1998 20:35:03 +0000 (20:35 +0000)]
POSIX states that getopt returns -1 when it is done parsing options,
not EOF.

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

26 years agoAdd support for generic file existence tests (used to simplify some
Theodore Tso [Wed, 6 May 1998 20:34:37 +0000 (20:34 +0000)]
Add support for generic file existence tests (used to simplify some
configure.in files.)

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

26 years agoPOSIX states that getopt returns -1 when it is done parsing options,
Theodore Tso [Wed, 6 May 1998 20:24:10 +0000 (20:24 +0000)]
POSIX states that getopt returns -1 when it is done parsing options,
not EOF.

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

26 years agot_ser.c (main): POSIX states that getopt returns -1 when it is done
Theodore Tso [Wed, 6 May 1998 20:21:28 +0000 (20:21 +0000)]
t_ser.c (main): POSIX states that getopt returns -1 when it is done
parsing options, not EOF.

get_in_tkt.c (krb5_get_init_creds): If libdefaults/{REALM}/noaddresses
is true, then don't put any addresses in the ticket request.

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

26 years agoPOSIX states that getopt returns -1 when it is done parsing options,
Theodore Tso [Wed, 6 May 1998 20:01:28 +0000 (20:01 +0000)]
POSIX states that getopt returns -1 when it is done parsing options,
not EOF.

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

26 years agoPOSIX states that getopt returns -1 when it is done parsing options,
Theodore Tso [Wed, 6 May 1998 18:58:24 +0000 (18:58 +0000)]
POSIX states that getopt returns -1 when it is done parsing options,
not EOF.

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

26 years ago * get_in_tkt.c: Add prototype for make_preauth_list
Tom Yu [Mon, 4 May 1998 21:24:19 +0000 (21:24 +0000)]
* get_in_tkt.c: Add prototype for make_preauth_list

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

26 years ago * get_in_tkt.c (krb5_get_in_tkt): Add missing argument to call to
Tom Yu [Sun, 3 May 1998 01:58:06 +0000 (01:58 +0000)]
* get_in_tkt.c (krb5_get_in_tkt): Add missing argument to call to
make_preauth_list to avoid stack smashing.  Pointed out by lxs.

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

26 years agoFix -n so that it doesn't disable authentication but does disable login. [38]
Sam Hartman [Sat, 25 Apr 1998 06:08:01 +0000 (06:08 +0000)]
Fix -n so that it doesn't disable authentication but does disable login. [38]

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

26 years ago* glob.c (ftpglob): Always allocate new storage, even if no magic glob
Ken Raeburn [Wed, 22 Apr 1998 01:30:40 +0000 (01:30 +0000)]
* glob.c (ftpglob): Always allocate new storage, even if no magic glob
characters were found, because the caller will always free the storage.

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

26 years agooops add PR number
Tom Yu [Fri, 17 Apr 1998 03:53:02 +0000 (03:53 +0000)]
oops add PR number

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

26 years ago * configure.in: Search for /var/tmp first when determining rcache
Tom Yu [Fri, 17 Apr 1998 03:52:26 +0000 (03:52 +0000)]
* configure.in: Search for /var/tmp first when determining rcache
directory.

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

26 years ago * asn1_encode.c (asn1_encode_generaltime): Sanity check the return
Tom Yu [Fri, 17 Apr 1998 00:56:48 +0000 (00:56 +0000)]
* asn1_encode.c (asn1_encode_generaltime): Sanity check the return
from gmtime() to avoid overruns.

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

26 years ago * asn1_err.et (ASN1_BAD_GMTIME): Add code for case where bad
Tom Yu [Fri, 17 Apr 1998 00:56:36 +0000 (00:56 +0000)]
* asn1_err.et (ASN1_BAD_GMTIME): Add code for case where bad
values are returned from gmtime().

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

26 years ago * Makefile.in (SHLIB_EXPDEPS):
Tom Yu [Wed, 15 Apr 1998 22:14:48 +0000 (22:14 +0000)]
* Makefile.in (SHLIB_EXPDEPS):
(SHLIB_EXPLIBS): Rename libcrypto -> libk5crypto.

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

26 years ago * Makefile.in (LIB): Rename to k5crypto
Tom Yu [Wed, 15 Apr 1998 22:10:17 +0000 (22:10 +0000)]
* Makefile.in (LIB): Rename to k5crypto

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

26 years ago * pre.in (CRYPTO_DEPLIB):
Tom Yu [Wed, 15 Apr 1998 22:09:19 +0000 (22:09 +0000)]
* pre.in (CRYPTO_DEPLIB):
(KRB5_BASE_LIBS):
(KRB4COMPAT_LIBS): Rename; libcrypto -> libk5crypto.

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

26 years ago (send_file_list): Oops missed a sigsetjmp() call.
Tom Yu [Sat, 11 Apr 1998 03:27:10 +0000 (03:27 +0000)]
(send_file_list): Oops missed a sigsetjmp() call.
(send_data): Add call to secure_flush() to send a zero length
buffer when aborting.
(send_file_list): Add call to secure_flush() to send a zero length
buffer when aborting.

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

26 years ago * configure.in: Add CHECK_SETJMP and CHECK_SIGNALS
Tom Yu [Sat, 11 Apr 1998 02:53:00 +0000 (02:53 +0000)]
* configure.in: Add CHECK_SETJMP and CHECK_SIGNALS

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

26 years ago * ftpd.c (receive_data):
Tom Yu [Sat, 11 Apr 1998 02:52:39 +0000 (02:52 +0000)]
* ftpd.c (receive_data):
(send_data): Add support for sigsetjmp().
(main): Use sigaction() if we can to avoid SysV lossage.

* ftpcmd.y (PBSZ): Remove restriction on shrinking buffer size.

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

26 years ago * Makefile.in (includes): The header is krb_err.h, not
Tom Yu [Thu, 9 Apr 1998 22:44:44 +0000 (22:44 +0000)]
* Makefile.in (includes): The header is krb_err.h, not
/krb_err.h.

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

26 years ago * secure.c (secure_putbyte): Set nout = 0 *before* calling
Dan Winship [Tue, 7 Apr 1998 21:02:02 +0000 (21:02 +0000)]
    * secure.c (secure_putbyte): Set nout = 0 *before* calling
        secure_putbuf: if the transfer is aborted, the SIGURG handler will
        longjmp out, so the line after the secure_putbuf will never get
        executed, so nout would never be reset and the next transfer
        would overrun ucbuf.

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

26 years ago * Makefile.in (includes): Don't mkdir unless the directory doesn't
Tom Yu [Mon, 6 Apr 1998 23:45:48 +0000 (23:45 +0000)]
* Makefile.in (includes): Don't mkdir unless the directory doesn't
  exist yet.

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

26 years ago * Makefile.in (includes): Don't call mkdir unless the directory
Tom Yu [Mon, 6 Apr 1998 23:44:44 +0000 (23:44 +0000)]
* Makefile.in (includes): Don't call mkdir unless the directory
  exists.

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

26 years ago * update_utmp.c (pty_update_utmp): Don't record LOGIN_PROCESS
Tom Yu [Mon, 6 Apr 1998 23:38:11 +0000 (23:38 +0000)]
* update_utmp.c (pty_update_utmp): Don't record LOGIN_PROCESS
entries, as they confuse last on some systems. [pty/569]

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

26 years ago * g_cnffile.c (krb__get_srvtabname): Fix up to not free context
Tom Yu [Sun, 5 Apr 1998 23:57:09 +0000 (23:57 +0000)]
* g_cnffile.c (krb__get_srvtabname): Fix up to not free context
unless it is valid.

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

26 years ago * disp_major_status.c (g_display_major_status): Fix a typo in
Tom Yu [Wed, 1 Apr 1998 21:35:43 +0000 (21:35 +0000)]
* disp_major_status.c (g_display_major_status): Fix a typo in
previous.

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

26 years agoChange to not return GSS_S_CONTINUE_NEEDED, per the standard C
Theodore Tso [Tue, 31 Mar 1998 19:07:41 +0000 (19:07 +0000)]
Change to not return GSS_S_CONTINUE_NEEDED, per the standard C
bindings specification.

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

26 years ago * klist.c (main): Exit with a 0 exit status if everything okay
Ezra Peisach [Mon, 30 Mar 1998 22:08:50 +0000 (22:08 +0000)]
* klist.c (main): Exit with a 0 exit status if everything okay

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

26 years ago * kdb5_mkdums.c: Add parenthesis about assignements in conditionals
Ezra Peisach [Mon, 30 Mar 1998 22:07:37 +0000 (22:07 +0000)]
* kdb5_mkdums.c: Add parenthesis about assignements in conditionals

gcc -Wall cleanups

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

26 years ago * kdc5_hammer.c (usage): Change usage to refelect reality
Ezra Peisach [Mon, 30 Mar 1998 21:52:25 +0000 (21:52 +0000)]
* kdc5_hammer.c (usage): Change usage to refelect reality
Add parenthesis around assignements in conditionals.

gcc -Wall cleanups

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

26 years ago * kdb5_verify.c: Declare main() as int instead of void.
Ezra Peisach [Mon, 30 Mar 1998 21:47:45 +0000 (21:47 +0000)]
* kdb5_verify.c: Declare main() as int instead of void.
Add parentheses around assignements in conditionals.

More gcc -Wall cleanups

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

26 years ago * t_inetd.c: Include stdlib.h (if present) for atoi() prototype,
Ezra Peisach [Mon, 30 Mar 1998 21:40:28 +0000 (21:40 +0000)]
* t_inetd.c: Include stdlib.h (if present) for atoi() prototype,
Include unistd.h (if present) for dup() prototype.

More gcc -Wall cleanups.

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

26 years ago * ktest_equal.h: Add prototypes for ktest_equal_sam_challenge and
Ezra Peisach [Mon, 30 Mar 1998 18:54:19 +0000 (18:54 +0000)]
* ktest_equal.h: Add prototypes for ktest_equal_sam_challenge and
ktest_equal_sam_response

* ktest.c (ktest_make_sample_sam_response): Remove unused variable.

* krb5_decode_test.c, krb5_decode_test.c (main): Declare main as
        int not void.

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

26 years ago * resolve.c: Include unistd.h if present on system (for
Ezra Peisach [Mon, 30 Mar 1998 18:51:04 +0000 (18:51 +0000)]
* resolve.c: Include unistd.h if present on system (for
        gethostname prototype).

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

26 years agogcc -Wall cleanups. Mainly adding prototypes and
Ezra Peisach [Mon, 30 Mar 1998 17:10:34 +0000 (17:10 +0000)]
gcc -Wall cleanups. Mainly adding prototypes and
making sure that functions have return types declared.

* ss_internal.h: Add ss_pager_create prototype.

* ss.h: Add ss_list_requests prototype.

* request_tbl.c (ss_add_request_table, ss_delete_request_table):
        Declare function types as void.

* prompt.c (ss_set_prompt): Declare function as void.

* listen.c (ss_quit): Int function should return a value.

* list_rqs.c (ss_list_requests): Fix arguments to match proper
        prototype for a ss type handler.

* execute_cmd.c (ss_execute_command): Declare as returning int

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

26 years ago * seteuid.c (krb5_setegid): Fix typo: seteuid -> setegid
Tom Yu [Mon, 23 Mar 1998 22:35:43 +0000 (22:35 +0000)]
* seteuid.c (krb5_setegid): Fix typo: seteuid -> setegid

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

26 years ago * kdc_util.c (add_to_transited): Check lengths, fix up comma
Tom Yu [Fri, 20 Mar 1998 22:14:15 +0000 (22:14 +0000)]
* kdc_util.c (add_to_transited): Check lengths, fix up comma
quoting somewhat (though things are still way broken).

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

26 years ago * chk_trans.c (krb5_check_transited_list): Check lengths when
Tom Yu [Tue, 17 Mar 1998 00:52:00 +0000 (00:52 +0000)]
* chk_trans.c (krb5_check_transited_list): Check lengths when
appending to next and prev.

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

26 years agooops... add PR number
Tom Yu [Thu, 12 Mar 1998 23:13:36 +0000 (23:13 +0000)]
oops... add PR number

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

26 years ago * update_utmp.c (pty_update_utmp): Fix bogus entry of
Tom Yu [Thu, 12 Mar 1998 23:12:52 +0000 (23:12 +0000)]
* update_utmp.c (pty_update_utmp): Fix bogus entry of
PTY_LOGIN_PROCESS types on BSD-ish systems.

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

26 years ago * ftpcmd.y (getline): Don't syslog passwords! (or newlines)
Dan Winship [Thu, 5 Mar 1998 19:02:15 +0000 (19:02 +0000)]
   * ftpcmd.y (getline): Don't syslog passwords! (or newlines)

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

26 years ago * alt_prof.c (krb5_free_realm_params): Free realm_acl_file portion
Ezra Peisach [Thu, 5 Mar 1998 14:16:58 +0000 (14:16 +0000)]
* alt_prof.c (krb5_free_realm_params): Free realm_acl_file portion
of structure.

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

26 years ago * Makefile.in: Enable v4 kadmin tests only if athena
Ezra Peisach [Tue, 3 Mar 1998 16:07:02 +0000 (16:07 +0000)]
* Makefile.in: Enable v4 kadmin tests only if athena
        compatibility is enabled.

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

26 years ago * configure.in: Enable v4 kadmin tests only if athena
Ezra Peisach [Tue, 3 Mar 1998 16:06:41 +0000 (16:06 +0000)]
* configure.in: Enable v4 kadmin tests only if athena
        compatibility is enabled.

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

26 years ago * configure.in: Add KRB5_BUILD_PROGRAM
Ezra Peisach [Tue, 3 Mar 1998 14:12:59 +0000 (14:12 +0000)]
* configure.in: Add KRB5_BUILD_PROGRAM

* Makefile.in (verify): Use CC_LINK and proper Makefile variables
        for library dependencies.

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

26 years ago * Makefile.in (t_cksum): Do not depend on libkrb5.a, use
Ezra Peisach [Tue, 3 Mar 1998 13:43:29 +0000 (13:43 +0000)]
* Makefile.in (t_cksum): Do not depend on libkrb5.a, use
KRB5_BASE_DEPLIBS.

This allows configuration --enable-shared --disable-static to work.

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

26 years ago * Makefile.in: Integrate in the krb5 build tree rules.
Ezra Peisach [Mon, 2 Mar 1998 21:25:32 +0000 (21:25 +0000)]
* Makefile.in: Integrate in the krb5 build tree rules.
(use CC_LINK, etc).

* configure.in: Add AC_BUILD_PROGRAM for test programs.

These changes allow --enable-profiled combined with --disable-static
to function in the build tree.

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

26 years agopre.in: Define AUTOCONF and CONFIG_RELTOPDIR from the autoconf
Theodore Tso [Mon, 2 Mar 1998 03:28:15 +0000 (03:28 +0000)]
pre.in: Define AUTOCONF and CONFIG_RELTOPDIR from the autoconf
substitution macros.

post.in: Fix the call to autoconf to use $(AUTOCONF) and
$(CONFIG_RELTOPDIR), so that configure regeneration rule works
even in a subdirectory below the configure script.

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

26 years agoaclocal.m4: Remove unused variables BUILDTOP and SRCTOP (now defined
Theodore Tso [Mon, 2 Mar 1998 03:25:05 +0000 (03:25 +0000)]
aclocal.m4: Remove unused variables BUILDTOP and SRCTOP (now defined
in the individual Makefile.in file.  Define @AUTOCONF@ to have the
appropriate pathname (either internal to our source tree, or in the
user's path).  Set @CONFIG_RELTOPDIR@ to contain the relative path to
the top of the build directory from the directory containing the
configure script.

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

26 years agoconfigure.in: Clean up configure script. Check $cross_compiling
Theodore Tso [Mon, 2 Mar 1998 03:21:42 +0000 (03:21 +0000)]
configure.in: Clean up configure script.  Check $cross_compiling
instead of (no longer correct) cache variable; remove obsolete
AC_C_CROSS.  Use AC_CHECK_FUNCS instead of individual AC_FUNC_CHECK
calls for speed.  Change checks for strsave and utimes to use
AC_CHECK_FUNCS

krcp.c, v4rcp.c: Change usages of HAS_STRSAVE and HAS_UTIMES to HAVE_*.

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

26 years agoMakefile.in (env-setup.stmp): If env-setup.stamp needs to be rebuilt,
Theodore Tso [Mon, 2 Mar 1998 03:20:13 +0000 (03:20 +0000)]
Makefile.in (env-setup.stmp): If env-setup.stamp needs to be rebuilt,
set CONFIG_FILES so that we only regenerate that one file.

env-setup.shin: Rename SRCTOPDIR to S_TOP, which has been fixed to
deal with absolute source paths.

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

26 years agoDefine S_TOP to contain an absolute pathname to the top of the source
Theodore Tso [Mon, 2 Mar 1998 03:19:12 +0000 (03:19 +0000)]
Define S_TOP to contain an absolute pathname to the top of the source
tree.

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

26 years agoRemove check for the regular expression functions, since they aren't
Theodore Tso [Mon, 2 Mar 1998 02:00:23 +0000 (02:00 +0000)]
Remove check for the regular expression functions, since they aren't
used in lib/kdb.

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

26 years ago * env-setup.shin (STOP): SRCTOP -> SRCTOPDIR
Tom Yu [Sun, 1 Mar 1998 00:45:13 +0000 (00:45 +0000)]
* env-setup.shin (STOP): SRCTOP -> SRCTOPDIR

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

26 years agodocument previous
Tom Yu [Sun, 1 Mar 1998 00:44:44 +0000 (00:44 +0000)]
document previous

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

26 years ago * configure.in: Fix up somewhat (SRCTOP -> SRCTOPDIR) and also get
Tom Yu [Sun, 1 Mar 1998 00:44:27 +0000 (00:44 +0000)]
* configure.in: Fix up somewhat (SRCTOP -> SRCTOPDIR) and also get
directory correct.  (`pwd`/..)

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

26 years ago * Makefile.in (env-setup.stamp): Fix up to use $(thisconfigdir)
Tom Yu [Sat, 28 Feb 1998 23:55:07 +0000 (23:55 +0000)]
* Makefile.in (env-setup.stamp): Fix up to use $(thisconfigdir)

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