krb5.git
20 years agodon't limit enctype lists at init time
Ken Raeburn [Sat, 13 Dec 2003 07:10:10 +0000 (07:10 +0000)]
don't limit enctype lists at init time

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

20 years agoAdd 64-bit sequence number support. Do sequence number ordering tests relative
Ken Raeburn [Sat, 13 Dec 2003 07:07:23 +0000 (07:07 +0000)]
Add 64-bit sequence number support.  Do sequence number ordering tests relative
to the initial value rather than absolute.  Support tokens without pseudo-ASN.1
wrappers.  Don't restrict enctype lists.  Implement CFX token support.

With CFX_EXERCISE defined, use random padding, random rotates, and bogus
initial tokens, to exercise the associated code paths.

ticket: 2040
status: open

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

20 years agoadd get_name callback for kdb keytab type, for debugging
Ken Raeburn [Sat, 13 Dec 2003 06:35:15 +0000 (06:35 +0000)]
add get_name callback for kdb keytab type, for debugging

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

20 years agoignore extra lines output when debugging code enabled
Ken Raeburn [Sat, 13 Dec 2003 06:30:21 +0000 (06:30 +0000)]
ignore extra lines output when debugging code enabled

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

20 years agoAdd platform-dependent 64-bit and inline-function support via new header
Ken Raeburn [Sat, 13 Dec 2003 06:28:35 +0000 (06:28 +0000)]
Add platform-dependent 64-bit and inline-function support via new header
k5-platform.h.  Add 64-bit serializer support.  [Not needed for ticket 1471,
but needed for 2040 and annoying to check in separately.]

Add to (internal for now) crypto API a function to get the mandatory checksum
type associated with an enctype.

New support for server-generated subkey, selected via an auth_context flag.

ticket: 1471
status: open

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

20 years ago * an_to_ln.c (krb5_aname_to_localname): Don't write one byte past
Tom Yu [Sat, 13 Dec 2003 01:28:08 +0000 (01:28 +0000)]
* an_to_ln.c (krb5_aname_to_localname): Don't write one byte past
the end of a string.  Found by Christopher Nebergall.

ticket: 2024
component: krb5-libs
version_reported: 1.3.1

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

20 years ago * Makefile.in: Move ##WIN32## constructs from inside
Tom Yu [Sat, 13 Dec 2003 01:20:56 +0000 (01:20 +0000)]
* Makefile.in: Move ##WIN32## constructs from inside
backslash-continued lists, as it was breaking them.  Move explicit
dependency information from under automatic dependencies.

ticket: 2049
component: krb5-libs

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

20 years ago * Added new krb5_ccache type "MSLSA" for Windows only.
Jeffrey Altman [Fri, 12 Dec 2003 22:22:36 +0000 (22:22 +0000)]
 * Added new krb5_ccache type "MSLSA" for Windows only.
   This new ccache type provides an interface for the MIT krb5_cc api
   functions to be used to access the contents of the MS Kerberos LSA
   cache.  The ccache type is read-only because the MS Kerberos LSA
   does not allow third party applications to insert credentials into
   the cache.

   The primary motivation of this work was to encapsulate the complex
   operations necessary to manipulate the MS Kerberos LSA.  The code
   was far from trivial and was often implemented incorrectly.  Worse
   still was the fact that each version of Windows since W2K modified
   the use of the LSA API.

   The code which was originally donated in the form of ms2mit.c had
   many memory and handle leaks which were acceptable for a one time
   application such as ms2mit.c. Unfortunately, this code has started
   to appear in many other applications: KfW's Leash, the AFS Wake
   systray tool, and others.

   By using the new MSLSA ccache the implementation of ms2mit.c went
   from 890 lines to 50 lines of code and comments.  All that is necessary
   is for the MSLSA ccache to be resolved and for its contents to be
   copied with krb5_cc_copy_creds to the default ccache.

   The MSLSA ccache implements all of the functions of a ccache except
   those which would be used to store data into the ccache.  When a
   write attempt is performed the new error KRB5_CC_READONLY is returned.

   The residual portion of the MSLSA ccache name is current ignored
   but preserved.  If you ask for ccache "MSLSA:myname" you will be
   given access to the LSA cache for the current Logon Session.  If
   you later ask for the name of the ccache you will be returned the
   same name.  In the future, the residual might be used to provide
   information necessary to identify a specific logon session whose
   cache it is desired to access.  If this is ever done, the applications
   which use it will have to possess the SeTcbPrivilege privilege.

   Using KfW's Leash it is now possible to set the Krb5 credential
   cache to "MSLSA:" and use it to monitor the contents of the
   MS Kerberos LSA cache.

   As part of adding this functionality, krb5_32.dll is not linked
   against the "secur32.lib" library as the Lsa security sdk routines
   are stored in the SECUR32.DLL file.

ticket: 2049
target_version: 1.3.2
tags: pullup

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

20 years agoRemove cvsignore files
Sam Hartman [Thu, 11 Dec 2003 23:23:32 +0000 (23:23 +0000)]
Remove cvsignore files

Ticket: 2061

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

20 years agoRemove kadmind4 and v5passwdd
Sam Hartman [Thu, 11 Dec 2003 23:14:06 +0000 (23:14 +0000)]
Remove kadmind4 and v5passwdd

Per email to kerberos-announce remove kadmind4 and v5passwdd from the distribution.

Ticket: new
Tags: enhancement

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

20 years agoAdded kg_sync_ccache_name(), kg_get_ccache_name, and kg_set_ccache_name() and rewrote...
Alexandra Ellwood [Thu, 11 Dec 2003 22:17:27 +0000 (22:17 +0000)]
Added kg_sync_ccache_name(), kg_get_ccache_name, and kg_set_ccache_name() and rewrote gss_krb5_ccache_name() and added a call to kg_sync_ccache_name() to acquire_init_cred() to fix a bug where on systems with multiple ccaches that GSSAPI gets stuck on the ccache that was default when it launched

ticket: 2060

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

20 years agoNote that krb4 expiration needs to be more conservative than krb5
Sam Hartman [Thu, 11 Dec 2003 22:12:35 +0000 (22:12 +0000)]
Note that krb4 expiration needs to be more conservative than krb5

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

20 years agoAdd exports for functions exported by KfM
Jeffrey Altman [Mon, 8 Dec 2003 21:53:30 +0000 (21:53 +0000)]
Add exports for functions exported by KfM

ticket: 2051
target_version: 1.3.2
tags: pullup

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

20 years ago2003-11-26 Jeffrey Altman <jaltman@mit.edu>
Jeffrey Altman [Mon, 8 Dec 2003 20:24:33 +0000 (20:24 +0000)]
2003-11-26  Jeffrey Altman <jaltman@mit.edu>

    * cc_default.c: Add support for Leash Kinit Dialog on Windows to
            krb5int_c_default()

ticket: 2028
target_version: 1.3.2
tags: pullup

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

20 years agoAdd support for conditional inclusion of flags when building as part of
Jeffrey Altman [Mon, 8 Dec 2003 20:17:00 +0000 (20:17 +0000)]
Add support for conditional inclusion of flags when building as part of
KfW.  The only flag defined at this time is USE_LEASH which is defined
to allow GSSAPI32.DLL to enable the use of Leash Kinit dialogs when
there are no tickets

ticket: 2028
target_version: 1.3.2
tags: pullup

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

20 years agowork around Solaris 9 pty-close bug
Tom Yu [Sat, 6 Dec 2003 00:39:23 +0000 (00:39 +0000)]
work around Solaris 9 pty-close bug

Create a LD_PRELOAD object, exitsleep, that will sleep for a short
time prior to calling the real exit() function.  This attempts to work
around a Solaris 9 kernel bug where output will get lost if it is
written to a pty immediately prior to the pty close.

ticket: new
component: krb5-build

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

20 years agoUpdated project to reflect changes in source files
Alexandra Ellwood [Tue, 25 Nov 2003 18:36:08 +0000 (18:36 +0000)]
Updated project to reflect changes in source files

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

21 years agoinitial sequence number mask short by 4 bits
Tom Yu [Thu, 30 Oct 2003 23:34:07 +0000 (23:34 +0000)]
initial sequence number mask short by 4 bits

* gen_seqnum.c (krb5_generate_seq_number): Fix mask; was short by
4 bits.

ticket: new
version_reported: 1.3.1
target_version: 1.3.2
component: krb5-libs
tags: pullup

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

21 years ago * sendto_kdc.c: Sockets must be closed with closesocket() instead
Jeffrey Altman [Mon, 27 Oct 2003 19:59:22 +0000 (19:59 +0000)]
* sendto_kdc.c: Sockets must be closed with closesocket() instead
      of close() for proper socket deallocation on systems which do
      not use file descriptors for sockets.  i.e., Windows.

ticket: 1973
target_version: 1.3.2
tags: pullup
status: resolved

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

21 years agoBecause of the failure of Windows 2000 and Windows XP to perform proper
Jeffrey Altman [Tue, 21 Oct 2003 22:20:48 +0000 (22:20 +0000)]
Because of the failure of Windows 2000 and Windows XP to perform proper
ticket expiration time management, the MS Kerberos LSA will return
tickets to a calling application with lifetimes as short as one second.
 Tickets with lifetimes less than five minutes can cause problems for
most apps.  Tickets with lifetimes less than 20 minutes will trigger the
Leash ticket lifetime warnings.

Instead of accepting whatever tickets are returned by MS LSA from the
cache, if the ticket lifetime is less than 20 minutes force a retrieval
operation bypassing the LSA ticket cache.

ticket: 1962
target_version: 1.3.2
tags: pullup
owner: jaltman@mit.edu
status: resolved

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

21 years agoremoved deleted files from project
Alexandra Ellwood [Tue, 21 Oct 2003 20:21:16 +0000 (20:21 +0000)]
removed deleted files from project

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

21 years agoUpdated to work with Xcode
Alexandra Ellwood [Fri, 17 Oct 2003 21:32:58 +0000 (21:32 +0000)]
Updated to work with Xcode

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

21 years ago * api.1/lock.exp: Work around a race condition in the Solaris 9
Tom Yu [Fri, 17 Oct 2003 02:32:31 +0000 (02:32 +0000)]
* api.1/lock.exp: Work around a race condition in the Solaris 9
pty implementation: output sent to a pty slave immediately before
last close/exit can get lost on the way to the master.  This is
Sun bug #4927647.  The workaround consists of changing the tests
to always make lock-test wait to read a character prior to
exiting, so any output prior to the "wait" directive will not get
lost.

ticket: 1792
tags: pullup
target_version: 1.3.2

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

21 years agoSave encoded KRB-SAFE-BODY to avoid problems caused by re-encoding it.
Tom Yu [Wed, 8 Oct 2003 23:53:23 +0000 (23:53 +0000)]
Save encoded KRB-SAFE-BODY to avoid problems caused by re-encoding it.
Also, handle correctly implemented RFC 1510 KRB-SAFE i.e., checksummed
over KRB-SAFE-BODY only.

ticket: 1893
tags: pullup

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

21 years agoAdd missing ChangeLog entry for krb.h:1.51
Tom Yu [Mon, 29 Sep 2003 20:45:50 +0000 (20:45 +0000)]
Add missing ChangeLog entry for krb.h:1.51

ticket: 1586

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

21 years agoAdd --enable-maintainer-mode option to configure, and prevent rebuilding of
Ken Raeburn [Sat, 27 Sep 2003 00:16:16 +0000 (00:16 +0000)]
Add --enable-maintainer-mode option to configure, and prevent rebuilding of
include/krb5/autoconf.h.in and */configure if it's not enabled.  Anything else
we should only rebuild in maintainer mode?

* aclocal.m4 (KRB5_AC_MAINTAINER_MODE): New macro.
(CONFIG_RULES): Invoke it.
* config/post.in (configure): Make configure depend on configure.in and
aclocal.m4 only if maintainer mode is enabled.
* include/Makefile.in ($(srcdir)/krb5/autoconf.h.in): Depend on autoconf.stmp
only if maintainer mode is enabled.

ticket: 1588
status: open

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

21 years agoModify the declaration of the CREDENTIALS structure to support the additional
Jeffrey Altman [Tue, 23 Sep 2003 18:46:25 +0000 (18:46 +0000)]
Modify the declaration of the CREDENTIALS structure to support the additional
address field used on Windows.

ticket: 1586
status: open
owner: jaltman@mit.edu
target_version: 1.3.2
tags: pullup

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

21 years agoOops, naughty naughty. Use $(CC), not gcc
Ken Raeburn [Sat, 13 Sep 2003 04:17:08 +0000 (04:17 +0000)]
Oops, naughty naughty.  Use $(CC), not gcc

ticket: 1790

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

21 years ago* shlib.conf (*-*-linux*): Use gcc for linking shared libraries, and -Wl to
Ken Raeburn [Sat, 13 Sep 2003 04:16:10 +0000 (04:16 +0000)]
* shlib.conf (*-*-linux*): Use gcc for linking shared libraries, and -Wl to
pass linker flags in, so gcc can supply the necessary support libraries.

ticket: 1790
tags: pullup

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

21 years agoAlpha OSF build fails because daemon() tries to call setpgrp because
Ken Raeburn [Sat, 13 Sep 2003 03:33:14 +0000 (03:33 +0000)]
Alpha OSF build fails because daemon() tries to call setpgrp because
it doesn't know setsid is available.  It's using autoconf.h, but no
longer using the defines set in lib/krb5/posix/Makefile.

* configure.in: Check for setsid() and <paths.h>.

ticket: 1847

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

21 years agoApply patch from Cesar Garcia to fix lifetime computation in 524
Tom Yu [Tue, 2 Sep 2003 22:12:07 +0000 (22:12 +0000)]
Apply patch from Cesar Garcia to fix lifetime computation in 524
ticket conversion.

ticket: 1712
tags: pullup
version_reported: 1.3.1
target_version: 1.3.2

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

21 years agokill() might overwrite errno. Save it beforehand
Alexandra Ellwood [Tue, 2 Sep 2003 18:37:12 +0000 (18:37 +0000)]
kill() might overwrite errno.  Save it beforehand

ticket: 1799

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

21 years agoFixed handling of krb5_net_write() failing (need to call waitpid() on child even...
Alexandra Ellwood [Tue, 2 Sep 2003 18:14:37 +0000 (18:14 +0000)]
Fixed handling of krb5_net_write() failing (need to call waitpid() on child even if we kill it)

ticket: 1799

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

21 years agoFixed comment (part of adding Apple Password Server support)
Alexandra Ellwood [Tue, 2 Sep 2003 15:43:10 +0000 (15:43 +0000)]
Fixed comment (part of adding Apple Password Server support)

ticket: 1799

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

21 years agoAdded Apple password server support
Alexandra Ellwood [Tue, 2 Sep 2003 15:32:50 +0000 (15:32 +0000)]
Added Apple password server support

ticket: 1799

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

21 years agoWhile libc5 isn't one of our supported configurations, this is a simple enough
Ken Raeburn [Sat, 30 Aug 2003 01:55:40 +0000 (01:55 +0000)]
While libc5 isn't one of our supported configurations, this is a simple enough
change.  It should be in the 1.4 release.  (Next 1.3.x release? I don't know.)

* fake-addrinfo.h (WRAP_GETADDRINFO, COPY_FIRST_CANONNAME): Don't define on
Linux unless HAVE_GETADDRINFO is defined, for libc5 compatibility.

ticket: 1711
tags: pullup

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

21 years agoCopy and build daemon.c in whatever directories need it, instead of building it
Ken Raeburn [Sat, 30 Aug 2003 01:09:41 +0000 (01:09 +0000)]
Copy and build daemon.c in whatever directories need it, instead of building it
into the krb5 library.

* aclocal.m4 (KRB5_AC_NEED_DAEMON): New macro.
* appl/bsd/configure.in, kadmin/configure.in, kdc/configure.in,
krb524/configure.in, slave/configure.in: Use it.  Don't directly check if
prototype for daemon() is needed.
* kadmin/server/Makefile.in (OBJS), kadmin/v5passwdd/Makefile.in (SERV_OBJS),
kdc/Makefile.in (OBJS, fakeka), krb524/Makefile.in (SERVER_OBJS),
slave/Makefile.in (SERVEROBJS): Use LIBOBJS.
* config/post.in (daemon.c): New rule for copying daemon.c locally
from lib/krb5/posix.

ticket: 1791

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

21 years agokrshd hangs in linux nightly testing
Ken Raeburn [Fri, 29 Aug 2003 07:09:48 +0000 (07:09 +0000)]
krshd hangs in linux nightly testing

A typical stack trace:

#0  0xffffe002 in ?? ()
#1  0x420da75f in syslog () from /lib/tls/libc.so.6
#2  0x0804ad06 in cleanup (signumber=15) at krshd.c:567
#3  <signal handler called>
#4  0xffffe000 in ?? ()
#5  0x4202774e in sigaction () from /lib/tls/libc.so.6
#6  0x0804ac82 in cleanup (signumber=1) at krshd.c:548
#7  <signal handler called>
#8  0xffffe002 in ?? ()
#9  0x4202774e in sigaction () from /lib/tls/libc.so.6
#10 0x420daa21 in vsyslog () from /lib/tls/libc.so.6
#11 0x420da75f in syslog () from /lib/tls/libc.so.6
#12 0x0804b670 in doit (f=3, fromp=0xbfffda50) at krshd.c:1313
#13 0x0804ab87 in main (argc=11, argv=0xbfffdb34) at krshd.c:459
#14 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6

Yes, we're calling syslog from inside a signal handler.  Yes, this is
bad.  And from some poking about that I did earlier, it appears that
there's some locking code in vsyslog which may be deadlocking in the
nested call.  And this usually seems to happen when logging the "shell
process completed" message.

This is a quick patch to switch off the signal handlers before logging
that message.  I suspect the breakage happens earlier, though, so this
might not fix the bug, just maybe move it around a little.

* krshd.c (ignore_signals): Split out from cleanup().
(doit): Call it when the shell process has completed, before calling syslog.

ticket: new
status: open

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

21 years agoIn my tests (2GHz P4 Linux, 5 minutes, no pre-existing replay cache), this gets
Ken Raeburn [Wed, 27 Aug 2003 01:10:56 +0000 (01:10 +0000)]
In my tests (2GHz P4 Linux, 5 minutes, no pre-existing replay cache), this gets
about a 10% speedup adding entries to an already open replay cache.

* rc_dfl.c (alive): Take a timestamp argument instead of the context, and don't
check the current time here.  All callers changed to pass in the current time.
(rc_store): Take a timestamp argument.  All callers changed to pass in the
current time.

ticket: 1784
status: open

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

21 years ago* krb5.hin (struct _krb5_donot_replay, krb5_rc_default, krb5_rc_resolve_type)
Ken Raeburn [Tue, 26 Aug 2003 22:20:16 +0000 (22:20 +0000)]
* krb5.hin (struct _krb5_donot_replay, krb5_rc_default, krb5_rc_resolve_type)
(krb5_rc_resolve_full, krb5_rc_get_type, krb5_rc_default_type)
(krb5_rc_default_name, krb5_auth_to_rep): Private declarations moved...
* k5-int.h: ...to here.

ticket: 1784
status: open

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

21 years ago* cc_file.c (krb5_fcc_store_int32, krb5_fcc_store_ui_4, krb5_fcc_store_ui_2)
Ken Raeburn [Tue, 26 Aug 2003 20:34:46 +0000 (20:34 +0000)]
* cc_file.c (krb5_fcc_store_int32, krb5_fcc_store_ui_4, krb5_fcc_store_ui_2)
(krb5_fcc_store_octet): Remove gratuitous conditionalizing of casts on
USE_STDIO, left over from merge.

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

21 years ago* configure.in: Don't test for labs, memmove or bcopy.
Ken Raeburn [Tue, 26 Aug 2003 20:23:58 +0000 (20:23 +0000)]
* configure.in: Don't test for labs, memmove or bcopy.
* k5-int.h (labs, HAVE_LABS): Never define.
* win-mac.h (HAVE_LABS): Don't define.

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

21 years ago* getdate.y (bcopy): Don't bother with HAVE_BCOPY and HAVE_MEMCPY tests; always
Ken Raeburn [Tue, 26 Aug 2003 20:21:19 +0000 (20:21 +0000)]
* getdate.y (bcopy): Don't bother with HAVE_BCOPY and HAVE_MEMCPY tests; always
define the macro if it's not already defined.

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

21 years ago* configure.in: Check for some C99 headers and types
Ken Raeburn [Tue, 26 Aug 2003 20:03:19 +0000 (20:03 +0000)]
* configure.in: Check for some C99 headers and types

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

21 years ago* k5-config.h: Unused file deleted
Ken Raeburn [Tue, 26 Aug 2003 19:50:31 +0000 (19:50 +0000)]
* k5-config.h: Unused file deleted

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

21 years ago* aclocal.m4 (KRB5_AC_ENABLE_DNS): Drop --enable-dns and --enable-dns-for-kdc
Ken Raeburn [Tue, 26 Aug 2003 17:09:54 +0000 (17:09 +0000)]
* aclocal.m4 (KRB5_AC_ENABLE_DNS): Drop --enable-dns and --enable-dns-for-kdc
options; turn them on always.

ticket: 1724

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

21 years ago* fake-addrinfo.h (inline): Supported by Sun Forte Developer 7 compiler
Ken Raeburn [Tue, 26 Aug 2003 17:00:37 +0000 (17:00 +0000)]
* fake-addrinfo.h (inline): Supported by Sun Forte Developer 7 compiler

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

21 years ago* foreachaddr.c (foreach_localaddr) [HAVE_IFADDRS_H]: Skip over any returned
Ken Raeburn [Tue, 26 Aug 2003 16:57:32 +0000 (16:57 +0000)]
* foreachaddr.c (foreach_localaddr) [HAVE_IFADDRS_H]: Skip over any returned
data structure with a NULL ifa_addr field.

ticket: 1770
version_reported: 1.3
target_version: 1.3.2
tags: pullup

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

21 years ago* aclocal.m4 (WITH_CCOPTS, WITH_CPPOPTS, WITH_LINKER, WITH_LDOPTS,
Ken Raeburn [Tue, 26 Aug 2003 16:27:55 +0000 (16:27 +0000)]
* aclocal.m4 (WITH_CCOPTS, WITH_CPPOPTS, WITH_LINKER, WITH_LDOPTS,
KRB5_INIT_CCOPTS, WITH_CC_DEPRECATED_ARG): Deleted.
(CONFIG_RULES): Do the non-useless parts directly here.
(V5_SET_TOPDIR): Work quietly.
(WITH_KRB4): Use AC_MSG_NOTICE.

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

21 years agomake depend
Ken Raeburn [Thu, 21 Aug 2003 08:29:20 +0000 (08:29 +0000)]
make depend

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

21 years ago* dnssrv.c: New file; split out DNS SRV RR query support...
Ken Raeburn [Thu, 21 Aug 2003 08:28:48 +0000 (08:28 +0000)]
* dnssrv.c: New file; split out DNS SRV RR query support...
* locate_kdc.c: ...from here.  Always compile in the calls.
* Makefile.in (STLIBOBJS, OBJS, SRCS): Add it.

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

21 years ago* configure.in: Don't substitute LIBOBJS, newer autoconfs don't like it
Ken Raeburn [Thu, 21 Aug 2003 07:46:13 +0000 (07:46 +0000)]
* configure.in: Don't substitute LIBOBJS, newer autoconfs don't like it

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

21 years ago* Makefile.in (STLIBOBJS, OBJS): Empty
Ken Raeburn [Thu, 21 Aug 2003 07:43:59 +0000 (07:43 +0000)]
* Makefile.in (STLIBOBJS, OBJS): Empty

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

21 years ago* fake-addrinfo.h (getnameinfo): Define to my_fake_getnameinfo only if
Ken Raeburn [Thu, 21 Aug 2003 07:25:45 +0000 (07:25 +0000)]
* fake-addrinfo.h (getnameinfo): Define to my_fake_getnameinfo only if
HAVE_GETADDRINFO is defined.

ticket: 1380
status: open

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

21 years agoMake things work on IRIX again
Ken Raeburn [Thu, 21 Aug 2003 03:55:53 +0000 (03:55 +0000)]
Make things work on IRIX again

* fake-addrinfo.h (inline): Move definitions further up, before first use.  Do
use __inline__ for gcc without c99 support.
(GET_SERV_BY_NAME) [!GETSERVBYNAME_R_RETURNS_INT]: Fix invocation for IRIX
definition.
* socket-utils.h: Include port-sockets.h to get a definition for struct
sockaddr_storage.

ticket: 1380
status: open

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

21 years agoOops. Include errno.h even if gai_strerror isn't being defined
Ken Raeburn [Thu, 21 Aug 2003 02:52:07 +0000 (02:52 +0000)]
Oops.  Include errno.h even if gai_strerror isn't being defined

ticket: 1380
status: open

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

21 years ago* configure.in: Don't replace any missing system functions. Just set LIBOBJS
Ken Raeburn [Thu, 21 Aug 2003 02:49:49 +0000 (02:49 +0000)]
* configure.in: Don't replace any missing system functions.  Just set LIBOBJS
empty for now and substitute it.

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

21 years agoFirst cut at adding local caching to the getaddrinfo support. Still needs work
Ken Raeburn [Thu, 21 Aug 2003 01:50:02 +0000 (01:50 +0000)]
First cut at adding local caching to the getaddrinfo support.  Still needs work

* fake-addrinfo.h: Delete the unused WRAP_GETNAMEINFO support.
(HAVE_GETADDRINFO) [__APPLE__ && __MACH__]: Don't undefine.
(FAI_CACHE) [__APPLE__ && __MACH__]: Define.
(system_getaddrinfo, system_freeaddrinfo, system_getnameinfo): New functions.
(gaiptr, faiptr, gniptr): Variables deleted.  Change references to use the
system_* functions above.
(getaddrinfo, freeaddrinfo) [FAI_CACHE]: Define as macros to the my_fake_*
versions.
(protoname, socktypename, familyname): Use caller-supplied buffers instead of
local static buffers.
(debug_dump_getaddrinfo_args): Provide a buffer.
(NEED_FAKE_GETNAMEINFO): Define if HAVE_GETADDRINFO is not defined.
(inline): Rework macros to test for C99 and IRIX.
(NEED_FAKE_GETADDRINFO): Define if FAI_CACHE is defined.
(fai_add_entry) [KRB5_USE_INET6]: Support IPv6.
(CACHE_ENTRY_LIFETIME): New macro.
(struct face, struct fac): New types.
(fac): New static variable.
(plant_face, find_face): New functions.
(fai_add_hosts_by_name) [FAI_CACHE]: Check the cache before looking up the
hostname.  Add the looked-up host info to the cache.
(fake_getaddrinfo): Call GET_SERV_BY_NAME instead of conditionally calling
getservbyname or getservbyname_r.  Don't pass AF_INET to
fai_add_hosts_by_name.
(fake_getnameinfo): Define only if NEED_FAKE_GETNAMEINFO is defined.
(gai_strerror): Define if either HAVE_FAKE_GETADDRINFO or NEED_FAKE_GETNAMEINFO
is defined.
(getaddrinfo): Do define function if FAI_CACHE is defined.
(getnameinfo): Define only if NEED_FAKE_GETNAMEINFO is defined.

ticket: 1380
status: open

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

21 years agoDon't double free the encrypted credential part
Sam Hartman [Tue, 19 Aug 2003 20:32:43 +0000 (20:32 +0000)]
Don't double free the encrypted credential part

Ticket: 1731
Tags: pullup

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

21 years agokrb_check_auth clears the return value for the schedule parameter with a memset....
Alexandra Ellwood [Fri, 15 Aug 2003 19:54:14 +0000 (19:54 +0000)]
krb_check_auth clears the return value for the schedule parameter with a memset.  This prevents callers from using the key schedule, which breaks code

ticket: 1730

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

21 years ago* configure.in: Check for mode_t
Ken Raeburn [Thu, 14 Aug 2003 04:07:10 +0000 (04:07 +0000)]
* configure.in: Check for mode_t

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

21 years ago* configure.in: Don't check for or replace vfprintf, vsprintf, strerror,
Ken Raeburn [Wed, 13 Aug 2003 08:28:38 +0000 (08:28 +0000)]
* configure.in: Don't check for or replace vfprintf, vsprintf, strerror,
memmove, or sscanf, all part of C 89.

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

21 years agouse my mit changelog id
Ken Raeburn [Wed, 13 Aug 2003 08:27:07 +0000 (08:27 +0000)]
use my mit changelog id

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

21 years ago* Makefile.in (OBJS, STLIBOBJS): Drop setenv.o.
Ken Raeburn [Wed, 13 Aug 2003 08:26:19 +0000 (08:26 +0000)]
* Makefile.in (OBJS, STLIBOBJS): Drop setenv.o.
* setenv.c: Deleted.
* pos-obsolete.h: Deleted.

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

21 years ago * cnv_tkt_skey.c (krb524_convert_tkt_skey): Call krb_create_ticket
Tom Yu [Tue, 12 Aug 2003 02:18:55 +0000 (02:18 +0000)]
* cnv_tkt_skey.c (krb524_convert_tkt_skey): Call krb_create_ticket
instead of local version.  Remove local version of
krb_create_ticket.  This file no longer gets included into a
krb524 library, so accessing internal functions isn't that big of
an issue anymore.

ticket: 1714
version_reported: 1.3.1
target_version: 1.3.2
tags: pullup
component: krb5-kdc

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

21 years agoget_init_creds_password: DNS SRV off causes bogus REALM_UNKNOWN
Tom Yu [Fri, 8 Aug 2003 20:38:55 +0000 (20:38 +0000)]
get_init_creds_password: DNS SRV off causes bogus REALM_UNKNOWN

* gic_pwd.c (krb5_get_init_creds_password): If DNS SRV support is
turned off, the second call to get_init_creds() will fail with
KRB5_REALM_UNKNOWN under certain circumstances.  If that happens,
return the error from the first call to get_init_creds(), which
will be more useful to the user.

ticket: new
target_version: 1.3.2
tags: pullup
component: krb5-libs

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

21 years agoRemove the target requirement for kadmind4 and v5passwdd
Alexandra Ellwood [Fri, 8 Aug 2003 15:02:15 +0000 (15:02 +0000)]
Remove the target requirement for kadmind4 and v5passwdd

ticket: 1715

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

21 years agoconfigure.in: Don't assume all darwin boxes are powerpc. (eg: OpenDarwin/x86)
Alexandra Ellwood [Wed, 6 Aug 2003 20:17:18 +0000 (20:17 +0000)]
configure.in: Don't assume all darwin boxes are powerpc. (eg: OpenDarwin/x86)

ticket: 1718

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

21 years agoDo not install kadmin4 or v5passwdd on Mac OS X. Also, fixed broken goober I acciden...
Alexandra Ellwood [Wed, 6 Aug 2003 17:50:59 +0000 (17:50 +0000)]
Do not install kadmin4 or v5passwdd on Mac OS X.  Also, fixed broken goober I accidentally checked in on the trunk.  oops

ticket: 1715

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

21 years ago * kinit.c (main): Apply patch from Stephen Grau to correctly
Tom Yu [Fri, 1 Aug 2003 21:05:35 +0000 (21:05 +0000)]
* kinit.c (main): Apply patch from Stephen Grau to correctly
return non-zero for certain error conditions.

ticket: 1437
target_version: 1.3.2
tags: pullup

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

21 years agoadd missing ChangeLog entry
Tom Yu [Thu, 31 Jul 2003 19:20:01 +0000 (19:20 +0000)]
add missing ChangeLog entry

ticket: 1702
tags: pullup
target_version: 1.3.2

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

21 years agokrb5_get_host_realm and krb5_free_host_realm should not be labeled as KRB5_PRIVATE.
Jeffrey Altman [Thu, 31 Jul 2003 19:06:31 +0000 (19:06 +0000)]
krb5_get_host_realm and krb5_free_host_realm should not be labeled as KRB5_PRIVATE.
They are required for many applications including OpenAFS and UMich's Kx509.  1.2.8
had them public but the change was never reflected on the trunk.

Ticket: 1702

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

21 years agoupdate for krb5-1.3.1
Tom Yu [Thu, 31 Jul 2003 03:05:25 +0000 (03:05 +0000)]
update for krb5-1.3.1

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

21 years agoKfM jam file paths should work from any project file the KerberosFramework hierarchy
Alexandra Ellwood [Mon, 28 Jul 2003 18:40:13 +0000 (18:40 +0000)]
KfM jam file paths should work from any project file the KerberosFramework hierarchy

ticket: 1693

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

21 years ago-s can return non-zero exit status if credentials are expired
Sam Hartman [Sun, 27 Jul 2003 05:30:54 +0000 (05:30 +0000)]
-s can return non-zero exit status if credentials are expired

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

21 years ago* admin.texinfo (realms (krb5.conf)): Add description of master_kdc tag.
Ken Raeburn [Fri, 25 Jul 2003 20:43:58 +0000 (20:43 +0000)]
* admin.texinfo (realms (krb5.conf)): Add description of master_kdc tag.
(Sample krb5.conf File): Add it to the example.

ticket: 1692
tags: pullup

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

21 years agouse new config file tag for master KDC
Ken Raeburn [Fri, 25 Jul 2003 15:37:57 +0000 (15:37 +0000)]
use new config file tag for master KDC

We want to avoid making extra attempts to contact the "master" KDC, in the case
where the password appears to be incorrect according to one KDC but we think
maybe the master KDC could have a newer password, if there isn't actually a
master KDC.  Currently the admin_server tag is overloaded for kadmin and
password changing.  So, don't use it as a filter on the KDC list; instead, look
for master_kdc as an independent list.

(See also ticket 1511 re contacting the master twice if it's first in the
regular KDC list.)

Doc updates still needed.

* locate_kdc.c (krb5_locate_kdc): Always pass 0 to locate_server as the
get_masters argument.  Instead, if get_masters is set, look up "master_kdc" in
the config file instead of "kdc".

ticket: new
target_version: 1.3.2
tags: pullup
status: open

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

21 years agoAdded a little more buffer space than the supplied patch, and used sizeof
Ken Raeburn [Thu, 24 Jul 2003 21:12:50 +0000 (21:12 +0000)]
Added a little more buffer space than the supplied patch, and used sizeof

* kadmin.c (strdate): Increase size of buffer to 40.  Use sizeof for
length passed to strftime.

ticket: 1613
target_version: 1.3.2
tags: pullup

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

21 years agoDon't document kdc_supported_enctypes
Sam Hartman [Thu, 24 Jul 2003 20:35:17 +0000 (20:35 +0000)]
Don't document kdc_supported_enctypes

Since the code for kdc_supported_enctypes was removed, the docs should
be as well.

Ticket: new
Target_Version: 1.3.1
Tags: pullup

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

21 years agokrb5-1.3.1-beta1, again
Tom Yu [Wed, 23 Jul 2003 02:28:36 +0000 (02:28 +0000)]
krb5-1.3.1-beta1, again

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

21 years agoupdate for krb5-1.3.1-beta1
Tom Yu [Wed, 23 Jul 2003 00:30:24 +0000 (00:30 +0000)]
update for krb5-1.3.1-beta1

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

21 years agoSend generalstring not octetstring in etype_info2. Accept either
Sam Hartman [Tue, 22 Jul 2003 22:27:34 +0000 (22:27 +0000)]
Send generalstring not octetstring in etype_info2.  Accept either
form.

Also, if a etype_info fails to decode, skip it rather than failing to
process the AS reply.

Ticket: 1681
Tags: pullup

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

21 years ago * README: Revert previous change, as it was in error; socklen_t
Tom Yu [Tue, 22 Jul 2003 22:22:39 +0000 (22:22 +0000)]
* README: Revert previous change, as it was in error; socklen_t
was introduced in Aug 2001 Platform SDK, and the actual problem
reported was very probably a compilation environment
misconfiguration.

ticket: 1675

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

21 years agoDon't use broken getaddrinfo on Mac OS X
Alexandra Ellwood [Tue, 22 Jul 2003 21:51:59 +0000 (21:51 +0000)]
Don't use broken getaddrinfo on Mac OS X

ticket: 1683

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

21 years agoAlways register the file ccache in the set of registered ops. The
Sam Hartman [Tue, 22 Jul 2003 21:34:57 +0000 (21:34 +0000)]
Always register the file ccache in the set of registered ops.  The
resolve code may also find it as the default ops on some platforms,
but this will not cause problems.

ticket: 1684
owner: lxs
status: open

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

21 years agoChange crypto "provider" structures to hold numeric values instead of function
Ken Raeburn [Tue, 22 Jul 2003 19:09:32 +0000 (19:09 +0000)]
Change crypto "provider" structures to hold numeric values instead of function
pointers for key sizes, block sizes, etc., when the values are always constant
for each encryption or hash mechanism.

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

21 years ago* resolve.c (main): If gethostbyname fails, report the failing hostname
Ken Raeburn [Tue, 22 Jul 2003 18:02:34 +0000 (18:02 +0000)]
* resolve.c (main): If gethostbyname fails, report the failing hostname

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

21 years agoDon't combine encrypt and decrypt code paths.
Ken Raeburn [Tue, 22 Jul 2003 17:53:10 +0000 (17:53 +0000)]
Don't combine encrypt and decrypt code paths.
Zap key schedule when done.

* des3.c (validate_and_schedule): Split out from old k5_des3_docrypt.
(k5_des3_encrypt, k5_des3_decrypt): Call it, and krb5int_des3_cbc_encrypt or
_decrypt, instead of k5_des3_docrypt.  Zap key schedules before returning.

ticket: 1404
status: open

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

21 years ago* k5-int.h (krb5int_zap_data, zap): New macros; call memset with volatile cast
Ken Raeburn [Tue, 22 Jul 2003 17:44:39 +0000 (17:44 +0000)]
* k5-int.h (krb5int_zap_data, zap): New macros; call memset with volatile cast
for now.

ticket: 1404
status: open

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

21 years agocrypto library has bogus dependence on com_err
Ken Raeburn [Tue, 22 Jul 2003 16:50:24 +0000 (16:50 +0000)]
crypto library has bogus dependence on com_err

Forgotten debugging code that was never removed...

* pbkdf2.c (foo): Never call com_err.

ticket: new
target_version: 1.3.1
tags: pullup

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

21 years ago* f_cbc.c (krb5int_des_cbc_decrypt): Move declarations that were after
Ken Raeburn [Tue, 22 Jul 2003 15:19:55 +0000 (15:19 +0000)]
* f_cbc.c (krb5int_des_cbc_decrypt): Move declarations that were after
statements after flattening blocks is previous change.
* d3_cbc.c (krb5int_des3_cbc_decrypt): Likewise.

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

21 years agoExport krb5_principal2salt
Alexandra Ellwood [Mon, 21 Jul 2003 18:37:38 +0000 (18:37 +0000)]
Export krb5_principal2salt

ticket: 1679

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

21 years ago * init_ets.c (krb5_init_ets): Only initialize error tables once -
Ezra Peisach [Sat, 19 Jul 2003 20:07:18 +0000 (20:07 +0000)]
* init_ets.c (krb5_init_ets): Only initialize error tables once -
so that init_conext/free_context loops do not result in memory
leaks.

I did not implement the remove error table functions - as a system
installed com_err library might not support remove_error_table that
exists in our trees com_err library.

ticket: 1665
target_version: 1.3.1
tags: pullup

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

21 years agokrb5_gss_register_acceptor_identity does not allocate enough memory for cached keytab
Ezra Peisach [Sat, 19 Jul 2003 20:03:10 +0000 (20:03 +0000)]
krb5_gss_register_acceptor_identity does not allocate enough memory for cached keytab

* acquire_cred.c (krb5_gss_register_acceptor_identity): Allocate
enough memory to include the null at the end of the keytab char *.

Essentially off by one error.

ticket: new
target_version: 1.3.1
tags: pullup
component: krb5-libs

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

21 years agoWindows build needs Feb 2003 Platform SDK
Tom Yu [Sat, 19 Jul 2003 00:54:14 +0000 (00:54 +0000)]
Windows build needs Feb 2003 Platform SDK

* README: Note requirement for Feb 2003 Platform SDK.  Thanks to
Doug Engert and Rodney Dyer.

ticket: 1675
component: krb5-doc
version_reported: 1.3
target_version: 1.3.1
tags: pullup

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

21 years agoFix incorrect RFC number for FTP IPv6 support
Tom Yu [Sat, 19 Jul 2003 00:09:22 +0000 (00:09 +0000)]
Fix incorrect RFC number for FTP IPv6 support

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

21 years ago * ms2mit.c:
Jeffrey Altman [Fri, 18 Jul 2003 13:17:47 +0000 (13:17 +0000)]
* ms2mit.c:

    Functional changes:
    (1) do not restrict ourselves to DES-CBC-CRC instead support any
        ticket with an enctype we support.  as of this date (rev 1.3)
        this includes all but RC4-MD4.
    (2) do not accept invalid tickets
    (3) when attempting to retrieve tickets do not specify either the
        enctype or cache options (if possible).  doing so will force a
        TGS request and prevent the results from being stored into the
        cache.
    (4) when the LSA cache contains a TGT which has expired Microsoft will
        not perform a new TGS request until the cache has been purged.
        Instead the expired ticket continues to be used along with its
        embedded authorization data.  When PURGE_ENABLED is defined, if the
        tickets are expired, the cache will be purged before requesting
        new tickets, else we ignore the contents of the cache and force
        a new TGS request.
    (5) when the LSA cache is empty do not abort.  On XP or 2003, use
        the SecurityLogonSessionData to determine the Realm (UserDnsDomain
        in MS-speak) and request an appropriate TGT.  On 2000, check the
        Registry for the HKCU\"Volatile Environment":"USERDNSDOMAIN"
        instead.  This will allow ms2mit to be used to repopulate the
        LSA cache.  If the current session is not Kerberos authenticated
        an appropriate error message will be generated.

    Code changes:
    (1) several memory leaks plugged
    (2) several support functions copied from the Leashw32.dll sources
    (3) get_STRING_from_registry() uses the ANSI versions of the Registry
        functions and should at a later date be converted to use the
        Unicode versions.

    Notes: an ms2mit.exe based on the Leash_import() function
    should be considered.  Leash_import() not only imports the TGT from
    the LSA but also performs the krb524 conversion and AFS token retrieval.
    Of course, that version of ms2mit.exe could not exist within the krb5
    source tree.

ticket: 1667
target_version: 1.3.1
tags: pullup
owner: jaltman@mit.edu
status: resolved

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

21 years agogssapi32.def: export the GSS_C_NT_xxxx constants as DATA. These are required
Jeffrey Altman [Fri, 18 Jul 2003 12:53:34 +0000 (12:53 +0000)]
gssapi32.def: export the GSS_C_NT_xxxx constants as DATA.  These are required
              by applications that wish to use the gss_nt_xxxx constants.

ticket: 1666
target_version: 1.3.1
tags: pullup
owner: jaltman@mit.edu
status: resolved

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

21 years agoRemove kg_release_defcred and caching of default credential. Rewrite
Tom Yu [Thu, 17 Jul 2003 20:50:36 +0000 (20:50 +0000)]
Remove kg_release_defcred and caching of default credential.  Rewrite
krb5_gss_init_sec_context() while we're at it to make defcred-related
changes easier, and as a side effect, fix some error condition memory
leaks.

ticket: 1365
target_version: 1.3.1
tags: pullup

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

21 years agoUse the old DES encrypt function, not the split versions via macros
Ken Raeburn [Thu, 17 Jul 2003 12:31:31 +0000 (12:31 +0000)]
Use the old DES encrypt function, not the split versions via macros

* des.c (mit_des_cbc_encrypt): Undef before use.
* enc_dec.c (mit_des_cbc_encrypt): Likewise.
* mac_des_glue.c (mit_des3_cbc_encrypt): Likewise.

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