krb5.git
29 years ago* krsh.c: Include sys/time.h (linux)
Richard Basch [Tue, 10 Jan 1995 20:24:10 +0000 (20:24 +0000)]
* krsh.c: Include sys/time.h (linux)

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

29 years ago * kcmd.c, krlogin.c, krcp.c: Always include fcntl.h, and never
Theodore Tso [Tue, 10 Jan 1995 02:51:06 +0000 (02:51 +0000)]
* kcmd.c, krlogin.c, krcp.c: Always include fcntl.h, and never
sys/fcntl.h.

* krshd.c: Always define the Kerberos V4 data structures.

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

29 years agogss_display_name() should return a name type OID, not a mechanism OID
Theodore Tso [Tue, 10 Jan 1995 00:29:55 +0000 (00:29 +0000)]
gss_display_name() should return a name type OID, not a mechanism OID

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

29 years agoChanged kerberos5 and kerberos4 port names to kerberos and kerberos-sec
Theodore Tso [Thu, 5 Jan 1995 22:10:04 +0000 (22:10 +0000)]
Changed kerberos5 and kerberos4 port names to kerberos and kerberos-sec

Add a comment about why you might want to switch the definitions of
kerberos and kerberos-sec under some circumstances.

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

29 years agoUse the service names kerberos and kerberos-sec, instead of kerberos5
Theodore Tso [Thu, 5 Jan 1995 22:03:26 +0000 (22:03 +0000)]
Use the service names kerberos and kerberos-sec, instead of kerberos5
and kerberos4 --- the official port name is kerberos, after all!

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

29 years agokcmd.c, krsh.c, krshd.c
Richard Basch [Tue, 3 Jan 1995 21:58:41 +0000 (21:58 +0000)]
kcmd.c, krsh.c, krshd.c

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

29 years agoRemoved a debugging statement (which could compromise the eblock)
Richard Basch [Tue, 3 Jan 1995 21:58:14 +0000 (21:58 +0000)]
Removed a debugging statement (which could compromise the eblock)

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

29 years agoTidied up the comments
Richard Basch [Tue, 3 Jan 1995 21:57:51 +0000 (21:57 +0000)]
Tidied up the comments

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

29 years agoRemoved old sgi code (it has POSIX signals)
Richard Basch [Tue, 3 Jan 1995 21:57:28 +0000 (21:57 +0000)]
Removed old sgi code (it has POSIX signals)

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

29 years ago* krsh.c
Richard Basch [Tue, 3 Jan 1995 02:52:31 +0000 (02:52 +0000)]
* krsh.c
* krshd.c
   Added encrypted rsh support.
It still isn't entirely secure; as the command-line could
be spoofed by an active attack, but the data sharing is...

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

29 years agomailquery.c: Issue QUIT pop command when done retrieving messges
Richard Basch [Mon, 2 Jan 1995 19:45:48 +0000 (19:45 +0000)]
mailquery.c: Issue QUIT pop command when done retrieving messges

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

29 years agokrlogind.c, krshd.c
Richard Basch [Mon, 2 Jan 1995 18:34:05 +0000 (18:34 +0000)]
krlogind.c, krshd.c

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

29 years agoUltrix doesn't have a fully functional POSIX termios
Richard Basch [Mon, 2 Jan 1995 18:33:47 +0000 (18:33 +0000)]
Ultrix doesn't have a fully functional POSIX termios

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

29 years agoCleaned up some of the #ifdef's and code duplication.
Richard Basch [Mon, 2 Jan 1995 18:33:26 +0000 (18:33 +0000)]
Cleaned up some of the #ifdef's and code duplication.
Fixed decl. of return variable for getopt() [int not char]

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

29 years agokrlogin.c: Don't need to #undef _BSD for AIX anymore (no more BSD dependencies)
Richard Basch [Sat, 31 Dec 1994 01:14:14 +0000 (01:14 +0000)]
krlogin.c: Don't need to #undef _BSD for AIX anymore (no more BSD dependencies)

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

29 years ago* Makefile.in
Richard Basch [Sat, 31 Dec 1994 00:49:31 +0000 (00:49 +0000)]
* Makefile.in
   Fixed man page installation when build tree != source tree

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

29 years ago * configure.in
Richard Basch [Fri, 30 Dec 1994 23:42:13 +0000 (23:42 +0000)]
* configure.in
   No need to do the fcntl check
Changed GETPGRP_ONEARG detection (and assign it when it
takes one argument, not void).

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

29 years ago * logutil.c
Richard Basch [Fri, 30 Dec 1994 23:40:17 +0000 (23:40 +0000)]
* logutil.c
* login.c
   Tidied up the code a bit.
Do not rely on NO_UT_TYPE (it has problems with AIX headers)

* krlogind.c
   Tidied up the code a bit.
   Set the controlling tty for Ultrix
Do not rely on NO_UT_TYPE (it has problems with AIX headers)

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

29 years ago * aclocal.m4
Richard Basch [Fri, 30 Dec 1994 22:06:57 +0000 (22:06 +0000)]
* aclocal.m4
   CHECK_UTMP needs to #include <sys/types.h> for its tests

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

29 years agoconfigure.in: Removed extraneous characters
Richard Basch [Fri, 30 Dec 1994 04:38:18 +0000 (04:38 +0000)]
configure.in: Removed extraneous characters
krlogind.c: Try all the forms of tty access (for most types of machines)
logutil.c: Corrected conditionalization for ut_pid.

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

29 years ago * krlogind.c
Richard Basch [Thu, 29 Dec 1994 15:17:28 +0000 (15:17 +0000)]
* krlogind.c
* logutil.c
   Conditionalized references to ut_type.

* krlogind.c
* configure.in
   Conditionalize grantpt/unlockpt on HAVE_GRANTPT
(added check to configure.in)

* krlogind.c
   Try all the pty master devices.  Other systems frequently
use the same names.

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

29 years ago * krlogind.c:
Richard Basch [Thu, 29 Dec 1994 06:48:24 +0000 (06:48 +0000)]
* krlogind.c:
More error checking for Solaris tty setup routines (grantpt/unlockpt)
Commented out the OOB code, as it causes problems currently.
Cleaned up some of the #ifdef's for logging incoming users
Removed extraneous declaration of malloc()
Pass a "" for the hostname rather than NULL to update_utmp.
Some additional cosmetic changes.
Included/excluded #ifdef SYSV code (SYSV is not defined anywhere)

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

29 years ago * krlogin.c
Richard Basch [Wed, 28 Dec 1994 23:30:34 +0000 (23:30 +0000)]
* krlogin.c
* krlogind.c
* krsh.c
* krshd.c
   Corrected the arguments to select, based on sizeof fd_set.
Converted what remained to use FD_* macros, instead of bitshift

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

29 years agoFixed a couple more syntactical errors with shadow passwords (now works)
Richard Basch [Wed, 28 Dec 1994 22:13:00 +0000 (22:13 +0000)]
Fixed a couple more syntactical errors with shadow passwords (now works)

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

29 years agoCorrected logic for shadow password tests
Richard Basch [Wed, 28 Dec 1994 22:08:02 +0000 (22:08 +0000)]
Corrected logic for shadow password tests

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

29 years agologin.c, configure.in, logutil.c
Richard Basch [Wed, 28 Dec 1994 21:57:34 +0000 (21:57 +0000)]
login.c, configure.in, logutil.c

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

29 years agoRenamed HAS_SHADOW to HAVE_SHADOW
Richard Basch [Wed, 28 Dec 1994 21:57:02 +0000 (21:57 +0000)]
Renamed HAS_SHADOW to HAVE_SHADOW

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

29 years agoRemoved a reference to CBAUD that caused compilation errors
Richard Basch [Wed, 28 Dec 1994 21:51:29 +0000 (21:51 +0000)]
Removed a reference to CBAUD that caused compilation errors

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

29 years agoChanged uid_type to uid_t, gid_type to gid_t
Richard Basch [Wed, 28 Dec 1994 21:38:21 +0000 (21:38 +0000)]
Changed uid_type to uid_t, gid_type to gid_t
Added shadow password support
Always use cfset*speed when POSIX_TERMIOS is defined

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

29 years agologutil.c, configure.in
Richard Basch [Wed, 28 Dec 1994 20:56:30 +0000 (20:56 +0000)]
logutil.c, configure.in

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

29 years agoAdded caching to some of the local tests.
Richard Basch [Wed, 28 Dec 1994 20:55:25 +0000 (20:55 +0000)]
Added caching to some of the local tests.
Added shadow password support

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

29 years agoCorrected the arguments to updwtmpx, and getutxid
Richard Basch [Wed, 28 Dec 1994 20:05:27 +0000 (20:05 +0000)]
Corrected the arguments to updwtmpx, and getutxid

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

29 years agoChanged the PATH for looking for BSD r* commands
Richard Basch [Wed, 28 Dec 1994 19:59:29 +0000 (19:59 +0000)]
Changed the PATH for looking for BSD r* commands
Use AC_TRY_LINK instead of AC_TRY_COMPILE for the setenv test.

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

29 years ago * configure.in
Richard Basch [Wed, 28 Dec 1994 18:56:09 +0000 (18:56 +0000)]
* configure.in
   Don't bother checking for sys/stream.h; done elsewhere
Look for the function ptsname.

* logutil.c
   Search to the proper position in the utmp/utmpx files.

* krlogind.c
   Revamped the tty setup routines.

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

29 years ago * krlogind.c
Richard Basch [Wed, 28 Dec 1994 18:55:59 +0000 (18:55 +0000)]
* krlogind.c
   Revamped the tty setup routines.

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

29 years ago * logutil.c
Richard Basch [Wed, 28 Dec 1994 18:55:37 +0000 (18:55 +0000)]
* logutil.c
   Search to the proper position in the utmp/utmpx files.

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

29 years ago * configure.in
Richard Basch [Wed, 28 Dec 1994 18:55:09 +0000 (18:55 +0000)]
* configure.in
   Don't bother checking for sys/stream.h; done elsewhere
Look for the function ptsname.

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

29 years agoTue Dec 27 14:42:15 1994 Richard Basch (probe@tardis)
Richard Basch [Tue, 27 Dec 1994 19:48:53 +0000 (19:48 +0000)]
Tue Dec 27 14:42:15 1994  Richard Basch  (probe@tardis)

* krlogin.c
   Cleaned up some of the includes

* krlogind.c
* krshd.c
* logutil.c
* login.c
   Revamped the utmp/wtmp handling routines

* Makefile.in
   Fixed the "krlogin" program define for "krsh"

* configure.in
Changed the HAVE_STREAMS macro to not try <sys/tty.h>
Corrected the text for the setpgrp arguments check

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

29 years ago * configure.in
Richard Basch [Tue, 27 Dec 1994 19:48:34 +0000 (19:48 +0000)]
* configure.in
Changed the HAVE_STREAMS macro to not try <sys/tty.h>
Corrected the text for the setpgrp arguments check

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

29 years agoRevamped the utmp/wtmp handling
Richard Basch [Tue, 27 Dec 1994 19:48:07 +0000 (19:48 +0000)]
Revamped the utmp/wtmp handling

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

29 years ago * krlogin.c
Richard Basch [Tue, 27 Dec 1994 19:47:11 +0000 (19:47 +0000)]
* krlogin.c
   Cleaned up some of the includes

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

29 years ago * krlogind.c
Richard Basch [Tue, 27 Dec 1994 19:46:44 +0000 (19:46 +0000)]
* krlogind.c
* logutil.c
* login.c
   Revamped the utmp/wtmp handling routines

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

29 years ago * Makefile.in
Richard Basch [Tue, 27 Dec 1994 19:46:05 +0000 (19:46 +0000)]
* Makefile.in
   Fixed the "krlogin" program define for "krsh"

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

29 years ago * krlogind.c
Richard Basch [Tue, 27 Dec 1994 11:45:05 +0000 (11:45 +0000)]
* krlogind.c
Use the file descriptor macros (eg. FD_SET) to handle fd arrays
Change #ifdef STREAMS to #ifdef HAVE_STREAMS
Started to add SYS-V utmp handling
Ripped out the old termio code.
Include <unistd.h> and <stdlib.h> where available.

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

29 years agoaclocal.m4:
Richard Basch [Tue, 27 Dec 1994 11:22:40 +0000 (11:22 +0000)]
aclocal.m4:
Combined KRB5_UT* macros into CHECK_UTMP macro (with additional checks)

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

29 years agoconfigure.in:
Richard Basch [Tue, 27 Dec 1994 11:17:20 +0000 (11:17 +0000)]
configure.in:
Combined KRB5_UT* macros into CHECK_UTMP macro, and added more checks.
Changed AC_COMPILE_CHECK macros to AC_MSG_CHECKING/AC_TRY_COMPILE

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

29 years agoCombined KRB5_UTPID, KRB5_UTTYPE, and KRB5_UTHOST into CHECK_UTMP macro.
Richard Basch [Tue, 27 Dec 1994 11:15:03 +0000 (11:15 +0000)]
Combined KRB5_UTPID, KRB5_UTTYPE, and KRB5_UTHOST into CHECK_UTMP macro.
Files affected: aclocal.m4, kadmin/kpasswd/configure.in, appl/bsd/configure.in

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

29 years agoRemoved the hard-coded paths for the BSD rlogin/rcp/rsh programs.
Richard Basch [Mon, 26 Dec 1994 23:47:15 +0000 (23:47 +0000)]
Removed the hard-coded paths for the BSD rlogin/rcp/rsh programs.
Let "configure" find the programs for us...

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

29 years agoRemoved the hard-coded paths for the BSD rlogin/rcp/rsh programs.
Richard Basch [Mon, 26 Dec 1994 18:54:47 +0000 (18:54 +0000)]
Removed the hard-coded paths for the BSD rlogin/rcp/rsh programs.
Let "configure" find the programs for us...

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

29 years agoAdd a enc_part2 member to the krb5_cred structure which may point to the
Theodore Tso [Sat, 24 Dec 1994 03:55:32 +0000 (03:55 +0000)]
Add a enc_part2 member to the krb5_cred structure which may point to the
unecrypted version, if it's available.

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

29 years agofixes as per OV suggestions
Tom Yu [Fri, 23 Dec 1994 02:06:37 +0000 (02:06 +0000)]
fixes as per OV suggestions

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

29 years agoconfigure.in:
Theodore Tso [Thu, 22 Dec 1994 21:34:01 +0000 (21:34 +0000)]
configure.in:
strcasecmp.c: Add strcasecmp replacement if necessary.

daemon.c:
memmove.c: Add #include for <sys/types.h>

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

29 years agoAdd test for uid_t
Theodore Tso [Thu, 22 Dec 1994 20:47:43 +0000 (20:47 +0000)]
Add test for uid_t

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

29 years agoChange the type of krb5_context to include the pointer
Theodore Tso [Thu, 22 Dec 1994 17:25:05 +0000 (17:25 +0000)]
Change the type of krb5_context to include the pointer

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

29 years agoFix typo
Theodore Tso [Wed, 21 Dec 1994 23:31:24 +0000 (23:31 +0000)]
Fix typo

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

29 years agoNew function which support krb5_init_os_context and krb5_free_os_context
Theodore Tso [Tue, 20 Dec 1994 04:17:56 +0000 (04:17 +0000)]
New function which support krb5_init_os_context and krb5_free_os_context

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

29 years agoAdd support for krb5_init_os_context and krb5_free_os_context
Theodore Tso [Tue, 20 Dec 1994 02:57:21 +0000 (02:57 +0000)]
Add support for krb5_init_os_context and krb5_free_os_context

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

29 years agoAdd support for krb5_init_context and krb5_free_context
Theodore Tso [Tue, 20 Dec 1994 02:56:23 +0000 (02:56 +0000)]
Add support for krb5_init_context and krb5_free_context

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

29 years agoAdd new typedefs, declarations for krb5_context and krb5_os_context
Theodore Tso [Tue, 20 Dec 1994 02:55:10 +0000 (02:55 +0000)]
Add new typedefs, declarations for krb5_context and krb5_os_context

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

29 years agoAdd new magic numbers for krb5_context and krb5_os_context
Theodore Tso [Tue, 20 Dec 1994 02:52:49 +0000 (02:52 +0000)]
Add new magic numbers for krb5_context and krb5_os_context

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

29 years agoWorkaround more Ultrix sh brain damage
Theodore Tso [Tue, 20 Dec 1994 02:26:11 +0000 (02:26 +0000)]
Workaround more Ultrix sh brain damage

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

29 years agoWork around yet another really horrible Ultrix sh bug. The values of
Theodore Tso [Tue, 20 Dec 1994 00:42:41 +0000 (00:42 +0000)]
Work around yet another really horrible Ultrix sh bug.  The values of
variables read in using the ${var='bar'} construction are displayed
using the "set" command with the high bit set.  (Someone should just
haul off the Ultrix sh and have it shot).  Fixed using tr.

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

29 years agoUse syslog instead of krb_log
Theodore Tso [Mon, 19 Dec 1994 23:12:57 +0000 (23:12 +0000)]
Use syslog instead of krb_log

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

29 years agoDo the right thing if we are compiling without V4 support. (The
Theodore Tso [Mon, 19 Dec 1994 23:07:39 +0000 (23:07 +0000)]
Do the right thing if we are compiling without V4 support.  (The
dump_v4db command is disabled.)

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

29 years agoFixed minor bug where the length of the returned domain was calculated
Theodore Tso [Mon, 19 Dec 1994 20:23:58 +0000 (20:23 +0000)]
Fixed minor bug where the length of the returned domain was calculated
incorrectly.

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

29 years agokrcp.c, krlogin.c, krlogind.c (v5_des_write): Fix byte swapping code
Theodore Tso [Mon, 19 Dec 1994 20:15:08 +0000 (20:15 +0000)]
krcp.c, krlogin.c, krlogind.c (v5_des_write): Fix byte swapping code
(Missing shift instructions).

krlogind.c: Fixed byte swapping code so that V4 des compatibility
works on 64 bit architectures.

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

29 years agoIf a null addresses is passed in to krb5_scc_store_addrs, don't core dump
Theodore Tso [Tue, 13 Dec 1994 20:44:47 +0000 (20:44 +0000)]
If a null addresses is passed in to krb5_scc_store_addrs, don't core dump

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

29 years agoIf a null addresses is passed in to krb5_fcc_store_addrs, don't core dump
Theodore Tso [Tue, 13 Dec 1994 20:43:58 +0000 (20:43 +0000)]
If a null addresses is passed in to krb5_fcc_store_addrs, don't core dump

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

29 years agoAdd check for HAS_SETSID test for daemon.c
Theodore Tso [Tue, 13 Dec 1994 20:41:10 +0000 (20:41 +0000)]
Add check for HAS_SETSID test for daemon.c

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

29 years agodo_tgs_req.c (prepare_error_tgs): Don't free the passed in ticket; it
Theodore Tso [Tue, 13 Dec 1994 20:39:00 +0000 (20:39 +0000)]
do_tgs_req.c (prepare_error_tgs): Don't free the passed in ticket; it
will be freed as part of other structures.

do_tgs_req.c (process_tgs_req): Set the encryption type in the reply
structure, and set the eblock type accordingly.

do_as_req.c (process_as_req): Set the encryption type in the
reply_encpart structure.

kdc_util.c (validate_as_request):
policy.c (against_local_policy_as): Move requirement that an AS
request must include the addresses field to the local policy routine.
(Not required by RFC).

main.c (setup_com_err): Initialize the kdc5 error table (the kdb5
error table is already initialized)

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

29 years agord_req_dec.c (decrypt_authenticator): If the subkey doesn't exist,
Theodore Tso [Tue, 13 Dec 1994 20:31:19 +0000 (20:31 +0000)]
rd_req_dec.c (decrypt_authenticator): If the subkey doesn't exist,
don't try to set the subkey's etype.

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

29 years agoexterns.h: If USE_TERMIO is defined and SYSV_TERMIO isn't, then always
Theodore Tso [Tue, 13 Dec 1994 20:22:56 +0000 (20:22 +0000)]
externs.h: If USE_TERMIO is defined and SYSV_TERMIO isn't, then always
#define termio to termios.

configure: Set K4LIBS correctly.

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

29 years agogmtime expects a pointer to a time_t, not a long. On most systems
Theodore Tso [Thu, 8 Dec 1994 23:43:25 +0000 (23:43 +0000)]
gmtime expects a pointer to a time_t, not a long. On most systems
these are the same, on others....

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

29 years agoSet the principal's type and magic number
Theodore Tso [Thu, 1 Dec 1994 03:34:35 +0000 (03:34 +0000)]
Set the principal's type and magic number

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

29 years agoMakefile.in: Build the new test driver (t_walk_rtree.c) for
Theodore Tso [Thu, 1 Dec 1994 01:37:13 +0000 (01:37 +0000)]
Makefile.in: Build the new test driver (t_walk_rtree.c) for
krb5_walk_realm_tree.

walk_realm_tree.c (krb5_walk_realm_tree): Fix bug which occured when
the client or the server is a subdomain of the other; walk_realm_tree
would return the wrong answer, and suffer from memory access errors.

unparse.c (krb5_unparse_name_ext): Quote the '/' and '@' characters properly.

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

29 years agoaclocal.m4, configure.in: Add appropriate help text for the --with-*
Theodore Tso [Wed, 30 Nov 1994 22:15:24 +0000 (22:15 +0000)]
aclocal.m4, configure.in: Add appropriate help text for the --with-*
and --enable-* options.  ISODE_INCLUDES should define KRB5_USE_ISODE
if necessary.

acconfig.h: Add defines for KRB5_ATHENA_COMPAT and KRB5_KRB4_COMPAT.

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

29 years agoAdd appropriate help text for the --with-krb4 option. Remove
Theodore Tso [Wed, 30 Nov 1994 22:11:53 +0000 (22:11 +0000)]
Add appropriate help text for the --with-krb4 option.  Remove
ISODE_DEFS call, since ISODE_INCLUDES now defines ISODE automatically.

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

29 years agoAdd appropriate help text for --with-krb4 option
Theodore Tso [Wed, 30 Nov 1994 22:10:20 +0000 (22:10 +0000)]
Add appropriate help text for --with-krb4 option

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

29 years agoosconf.h, config.h: Remove remnants of unifdef support for
Theodore Tso [Wed, 30 Nov 1994 21:37:04 +0000 (21:37 +0000)]
osconf.h, config.h: Remove remnants of unifdef support for
building osconf.h and config.h, left over from the imake
build system.

osconf.h: Add #ifdef for Athena configuration.

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

29 years agoconfigure.in: Add support for --enable-athena and --with-krb4
Theodore Tso [Wed, 30 Nov 1994 21:36:26 +0000 (21:36 +0000)]
configure.in: Add support for --enable-athena and --with-krb4
(to set KRB5_KRB4_COMPAT).

Makefile.in: Remove remnants of unifdef support for building
osconf.h and config.h, left over from the imake build system.

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

29 years agoMove get_for_creds to krb5_get_for_creds in the Kerberos library
Theodore Tso [Wed, 30 Nov 1994 04:12:05 +0000 (04:12 +0000)]
Move get_for_creds to krb5_get_for_creds in the Kerberos library

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

29 years agoMove get_for_creds to krb5_get_for_creds in the krb5 library
Theodore Tso [Wed, 30 Nov 1994 04:08:23 +0000 (04:08 +0000)]
Move get_for_creds to krb5_get_for_creds in the krb5 library

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

29 years agoRename rd_cred and mk_cred to krb5_rd_cred and krb5_mk_cred. The API
Theodore Tso [Wed, 30 Nov 1994 04:06:07 +0000 (04:06 +0000)]
Rename rd_cred and mk_cred to krb5_rd_cred and krb5_mk_cred.  The API
still needs to be changed, but let's get the namespace purity issue
settled.

Added krb5_get_for_creds() function.  Again, the API is still up for grabs...

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

29 years agoUse the list of encryption types passed as part of the KDC request to
Theodore Tso [Mon, 21 Nov 1994 22:26:52 +0000 (22:26 +0000)]
Use the list of encryption types passed as part of the KDC request to
determine which encryption to use for encrypting the ticket.  The
encryption must be one that is supported by the KDC, as well as being
one which is marked as being supported by the server of the ticket.
In a AS request, also use this encryption for encrypting the KDC
response.  In a TGS request, use the encryption type of the TGT
authenticator to determine how to encrypt the KDC response.

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

29 years agomk_req_ext.c (krb5_mk_req_extended): Sanitize how memory is freed in
Theodore Tso [Mon, 21 Nov 1994 22:21:06 +0000 (22:21 +0000)]
mk_req_ext.c (krb5_mk_req_extended): Sanitize how memory is freed in
both error and normal cases, to remove memory leaks.

mk_req_ext.c (krb5_mk_req_extended): Use the encryption type specified
by the ticket to generate the authenticator.

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

29 years agoencode_kdc.c (krb5_encode_kdc_rep): Now requires that the
Theodore Tso [Mon, 21 Nov 1994 20:33:53 +0000 (20:33 +0000)]
encode_kdc.c (krb5_encode_kdc_rep): Now requires that the
caller pass in the encryption block to be used for
encrpyting the ticket.  That way, this routine doesn't
need to create its own encryption block.

encrypt_tk.c (krb5_encrypt_tkt_part): Now requires that the
caller pass in the encryption block to be used for
encrpyting the ticket.  That way, this routine doesn't
need to create its own encryption block.

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

29 years agofixed bad prototype in changes
Mark Eichin [Mon, 21 Nov 1994 19:55:48 +0000 (19:55 +0000)]
fixed bad prototype in changes

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

29 years agolibrary.tex (internalfunc): Define \internalfunc, which prints a
Theodore Tso [Mon, 21 Nov 1994 19:25:57 +0000 (19:25 +0000)]
library.tex (internalfunc): Define \internalfunc, which prints a
disclaimer in front of "internal functions".  We should
move them somewhere else, but for now, let's start marking
those functions which we believe are internal.

krb5.tex: Documented changed interfaces to krb5_encode_kdc_rep
and krb5_encrypt_tkt_part.  Document krb5_encode_kdc_rep,
krb5_decode_kdc_rep, krb5_encrypt_tkt_part,
krb5_decrypt_tkt_part, and krb5_send_tgs as all internal
functions.

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

29 years agoWe don't need autoreconf.local anymore. That functionality has been
Theodore Tso [Mon, 21 Nov 1994 19:01:56 +0000 (19:01 +0000)]
We don't need autoreconf.local anymore.  That functionality has been
folded into autoconf 2.1!

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

29 years agocomplete command suite now in with most functionality
Tom Yu [Mon, 21 Nov 1994 05:48:44 +0000 (05:48 +0000)]
complete command suite now in with most functionality

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

29 years agoFix obvious typo
Theodore Tso [Sat, 19 Nov 1994 07:12:22 +0000 (07:12 +0000)]
Fix obvious typo

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

29 years agoFix stupid typo..
Theodore Tso [Sat, 19 Nov 1994 07:09:29 +0000 (07:09 +0000)]
Fix stupid typo..

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

29 years agoAdd magic numbers for keyblock structure
Theodore Tso [Sat, 19 Nov 1994 05:00:01 +0000 (05:00 +0000)]
Add magic numbers for keyblock structure

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

29 years agoAdd magic number to keyblock structure
Theodore Tso [Sat, 19 Nov 1994 04:59:24 +0000 (04:59 +0000)]
Add magic number to keyblock structure

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

29 years agoAdd magic numbers to keyblock structure
Theodore Tso [Sat, 19 Nov 1994 04:58:55 +0000 (04:58 +0000)]
Add magic numbers to keyblock structure

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

29 years agoInitialize magic variable and encryption type
Theodore Tso [Sat, 19 Nov 1994 04:58:09 +0000 (04:58 +0000)]
Initialize magic variable and encryption type

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

29 years agoAdd new attribute which defines whether or not a server supports DES/MD5
Theodore Tso [Fri, 18 Nov 1994 22:54:51 +0000 (22:54 +0000)]
Add new attribute which defines whether or not a server supports DES/MD5

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

29 years agoAdd magic numbers for keytab, principal, and keyblock
Theodore Tso [Fri, 18 Nov 1994 22:26:22 +0000 (22:26 +0000)]
Add magic numbers for keytab, principal, and keyblock

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

29 years agoFix to return correct error code, instead of always returning
Theodore Tso [Fri, 18 Nov 1994 22:24:44 +0000 (22:24 +0000)]
Fix to return correct error code, instead of always returning
KRB5_CC_NOMEM.

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

29 years agoupdate to autoconf 2.1
Mark Eichin [Fri, 18 Nov 1994 21:03:38 +0000 (21:03 +0000)]
update to autoconf 2.1

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