krb5.git
29 years agoAdd context changes to dumpv4.c
Theodore Tso [Thu, 19 Jan 1995 03:04:43 +0000 (03:04 +0000)]
Add context changes to dumpv4.c

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

29 years agoMake global_context a static variable and initialize it automatically
Theodore Tso [Thu, 19 Jan 1995 03:02:48 +0000 (03:02 +0000)]
Make global_context a static variable and initialize it automatically
if necessary.

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

29 years agoFixed bugs in introduction of context variables; if the global context is
Theodore Tso [Thu, 19 Jan 1995 03:02:16 +0000 (03:02 +0000)]
Fixed bugs in introduction of context variables; if the global context is
not initialized, initialize it automatically.  Initialize the connection
context's krb5_context varaible in init_security_context and
accept_security_context.

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

29 years agoOops in previous memory freeing fixes; was a bit too agressive freeing things
Theodore Tso [Thu, 19 Jan 1995 02:46:40 +0000 (02:46 +0000)]
Oops in previous memory freeing fixes; was a bit too agressive freeing things

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

29 years ago * krlogind.c (v4_des_read, v5_des_read): When reading length,
Mark Eichin [Wed, 18 Jan 1995 23:55:49 +0000 (23:55 +0000)]
* krlogind.c (v4_des_read, v5_des_read): When reading length,
ignore everything before a leading zero (MSB first "reasonable"
value) to compensate for rlogin (mis)use of BSD-OOB data.
* krlogin.c (des_read): same code (in both versions of des_read.)

rlogin -x should be much more reliable now.

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

29 years agoit belongs here instead
Mark Eichin [Wed, 18 Jan 1995 06:15:44 +0000 (06:15 +0000)]
it belongs here instead

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

29 years agothis doesn't belong here
Mark Eichin [Wed, 18 Jan 1995 06:15:13 +0000 (06:15 +0000)]
this doesn't belong here

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

29 years ago * configure.in: undo streams test. It turns out that we want sunos
Mark Eichin [Wed, 18 Jan 1995 06:11:31 +0000 (06:11 +0000)]
* configure.in: undo streams test. It turns out that we want sunos
to *fail* that test, since it doesn't have a streams PTEM module
anyhow.
* krlogind.c: don't include sys/tty.h and sys/ptyvar.h if we don't
HAVE_STREAMS already.
* krlogin.c: do the same thing.

most of the files in appl/bsd should probably include one common
"system headers" include, since they duplicate so much (and not
consistently at that.) krlogind now works on SunOS 4.

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

29 years agofix tab vs. space glitch
Mark Eichin [Wed, 18 Jan 1995 06:04:14 +0000 (06:04 +0000)]
fix tab vs. space glitch

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

29 years agoAcually move init_ctx.c to init_os_ctx.c in the CVS repository and also
Chris Provenzano [Fri, 13 Jan 1995 22:15:08 +0000 (22:15 +0000)]
Acually move init_ctx.c to init_os_ctx.c in the CVS repository and also
rename the routine  krb5_free_os_context() to krb5_os_free_context().

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

29 years agoAuto configure changes. I didn't do anything
Chris Provenzano [Fri, 13 Jan 1995 22:07:17 +0000 (22:07 +0000)]
Auto configure changes. I didn't do anything

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

29 years agoRemoved all references to DECLARG and OLDDECLARG.
Chris Provenzano [Fri, 13 Jan 1995 22:05:49 +0000 (22:05 +0000)]
Removed all references to DECLARG and OLDDECLARG.
Added krb5_context to all krb5_*() routines.

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

29 years agoRemoved all references to DECLARG and OLDDECLARG.
Chris Provenzano [Fri, 13 Jan 1995 21:50:24 +0000 (21:50 +0000)]
Removed all references to DECLARG and OLDDECLARG.
Added krb5_context to all krb5_*() routines.

Fixed krlogin to use htons(debug_port).

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

29 years agoRemoved all references to DECLARG and OLDDECLARG.
Chris Provenzano [Fri, 13 Jan 1995 21:47:20 +0000 (21:47 +0000)]
Removed all references to DECLARG and OLDDECLARG.
Added krb5_context to all krb5_routines throughout the tree.

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

29 years agoRemoved all references to DECLARG and OLDDECLARG.
Chris Provenzano [Fri, 13 Jan 1995 21:30:09 +0000 (21:30 +0000)]
Removed all references to DECLARG and OLDDECLARG.
Added krb5_context to all krb5_routines.

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

29 years agoRemoved all references to DECLARG and OLDDECLARG.
Chris Provenzano [Fri, 13 Jan 1995 21:25:00 +0000 (21:25 +0000)]
Removed all references to DECLARG and OLDDECLARG.
Added krb5_context to all krb5_routines.

Moved init_ctx.c to init_os_ctx.c because a library cannot
have more than on file with the same name. See krb5/krb/init_ctx.c

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

29 years agoRemoved all references to DECLARG and OLDDECLARG.
Chris Provenzano [Fri, 13 Jan 1995 21:21:42 +0000 (21:21 +0000)]
Removed all references to DECLARG and OLDDECLARG.
Added krb5_context to all krb5_routines.

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

29 years agoRemoved all references to DECLARG and OLDDECLARG
Chris Provenzano [Fri, 13 Jan 1995 21:19:08 +0000 (21:19 +0000)]
Removed all references to DECLARG and OLDDECLARG

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

29 years agoRemoved all references to DECLARG and OLDDECLARG.
Chris Provenzano [Fri, 13 Jan 1995 21:13:02 +0000 (21:13 +0000)]
Removed all references to DECLARG and OLDDECLARG.
Added krb5_context to all krb5_routines

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

29 years agofix typo
Mark Eichin [Fri, 13 Jan 1995 12:52:16 +0000 (12:52 +0000)]
fix typo

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

29 years ago * Makefile.in (install): constructed headers come from the build
Mark Eichin [Fri, 13 Jan 1995 12:51:38 +0000 (12:51 +0000)]
* Makefile.in (install): constructed headers come from the build
tree, not the source tree.

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

29 years ago * configure.in (K4LIB): fix quoting so $(KRB4) actually survives
Mark Eichin [Wed, 11 Jan 1995 20:28:48 +0000 (20:28 +0000)]
* configure.in (K4LIB): fix quoting so $(KRB4) actually survives
to the Makefile.

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

29 years ago * logutil.c (update_wtmp): declare missing variables if
Mark Eichin [Wed, 11 Jan 1995 07:16:51 +0000 (07:16 +0000)]
* logutil.c (update_wtmp): declare missing variables if
HAVE_SETUTENT isn't set.
(update_utmp): declare tty at top of function.

Now the whole tree builds under raw sunos, native cc (still needs gnumake
though)

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

29 years ago * krlogin.c (doit): use exit_handler for signal exits, don't use
Mark Eichin [Wed, 11 Jan 1995 00:44:56 +0000 (00:44 +0000)]
* krlogin.c (doit): use exit_handler for signal exits, don't use
exit directly.
(exit_handler): new function, avoids type collision from misusing
exit directly as a signal handler.

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

29 years ago* configure.in: Streams test needs to include sys/types.h
Richard Basch [Tue, 10 Jan 1995 20:31:49 +0000 (20:31 +0000)]
* configure.in: Streams test needs to include sys/types.h

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

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