krb5.git
25 years agoMakefile.in: Change Windows kerbsrc.zip target so this now does what
Theodore Tso [Tue, 9 Feb 1999 02:44:22 +0000 (02:44 +0000)]
Makefile.in: Change Windows kerbsrc.zip target so this now does what
kerbsrc-nt.zip used to do.  We no longer support building krb5 on
systems with 8.3 limitations.  Also allow binary files in windows/lib
to be included into kerbsrc.zip file.

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

25 years agoInitial rototilling of these functions to make them more krb5 library
Theodore Tso [Fri, 5 Feb 1999 05:31:17 +0000 (05:31 +0000)]
Initial rototilling of these functions to make them more krb5 library
API compliant.

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

25 years agoInitial commit of massively modified stdcc functions to make them somewhat
Theodore Tso [Thu, 4 Feb 1999 07:53:43 +0000 (07:53 +0000)]
Initial commit of massively modified stdcc functions to make them somewhat
closer to correct.

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

25 years agoauth.c (auth_send): Increase size of buf so we can handle mongo-gram
Theodore Tso [Thu, 4 Feb 1999 04:43:25 +0000 (04:43 +0000)]
auth.c (auth_send): Increase size of buf so we can handle mongo-gram
sized tickets from Microsoft.  [telnet/686]

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

25 years agostate.c: Increase size of subbufer so that we don't truncate
Theodore Tso [Thu, 4 Feb 1999 04:42:54 +0000 (04:42 +0000)]
state.c: Increase size of subbufer so that we don't truncate
mongo-gram tickets from Microsoft.  [telnet/688]

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

25 years agokerberos5.c: Increase size of str_data so that we can accept
Theodore Tso [Thu, 4 Feb 1999 04:42:22 +0000 (04:42 +0000)]
kerberos5.c: Increase size of str_data so that we can accept
mongo-gram tickets from Microsoft.  [telnet/686]

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

25 years ago * read_pwd.c: Remove reference to CPP symbol "unix"
Tom Yu [Tue, 2 Feb 1999 21:03:16 +0000 (21:03 +0000)]
* read_pwd.c: Remove reference to CPP symbol "unix"

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

25 years agoccdefname.c: Add a new function krb5_cc_set_default_name(), which is
Theodore Tso [Tue, 2 Feb 1999 04:27:33 +0000 (04:27 +0000)]
ccdefname.c: Add a new function krb5_cc_set_default_name(), which is
used set the default ccname stored in the krb5_context.  All of the
OS-specific functions to determine the default ccname is moved to this
function.  The krb5_cc_default_name() function now just reads the
default ccname from the os_context, and will call
krb5_cc_set_default_name() to set the default ccname if necessary.

t_std_conf: Added functions to test krb5_cc_default_name and
krb5_cc_set_default_name().  Fixed the call to krb5_locate_kdc to
support the new variables added by the Cygnus initial ticket API
merge.

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

25 years agok5-int.h: Add an entry to the os_context to store the default ccache
Theodore Tso [Tue, 2 Feb 1999 04:25:20 +0000 (04:25 +0000)]
k5-int.h: Add an entry to the os_context to store the default ccache
name.

krb5.hin (krb5_cc_set_default_name): Add function prototype which sets
the defulat ccache name.

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

25 years ago * et_c.awk: Fix to not depend on CPP symbol "unix"
Tom Yu [Tue, 2 Feb 1999 00:43:45 +0000 (00:43 +0000)]
* et_c.awk: Fix to not depend on CPP symbol "unix"

* et_h.awk: Fix to not depend on CPP symbol "unix".

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

25 years agotrval.c: Now understands krb5 structure elements
Theodore Tso [Fri, 29 Jan 1999 01:07:32 +0000 (01:07 +0000)]
trval.c: Now understands krb5 structure elements

krb5_encode_test.c: Pass trval type hints to trval2() so that
datastructures get properly decoded.

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

25 years ago * configure.in: Fix typo so that lib/crypto actually gets
Tom Yu [Wed, 27 Jan 1999 22:11:05 +0000 (22:11 +0000)]
* configure.in: Fix typo so that lib/crypto actually gets
  configured.

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

25 years agoAdded missing #include of termios.h
Theodore Tso [Wed, 27 Jan 1999 07:34:40 +0000 (07:34 +0000)]
Added missing #include of termios.h

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

25 years agolisten.c (print_prompt): Replace BSD-style ioctl with termios interface
Theodore Tso [Wed, 27 Jan 1999 07:12:49 +0000 (07:12 +0000)]
listen.c (print_prompt): Replace BSD-style ioctl with termios interface

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

25 years agoMakefile.in, configure.in: Move the responsibility for generating
Theodore Tso [Wed, 27 Jan 1999 06:04:47 +0000 (06:04 +0000)]
Makefile.in, configure.in: Move the responsibility for generating
Makefile files for the following subdirectories to the top-level:
util, util/send-pr, util/dyn, lib, config-files, and gen-manpages.

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

25 years agoconfigure.in: Remove test CHECK_WAIT_TYPE since nothing is using the
Theodore Tso [Wed, 27 Jan 1999 05:49:36 +0000 (05:49 +0000)]
configure.in: Remove test CHECK_WAIT_TYPE since nothing is using the
results of that test (WAIT_USES_INT).

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

25 years agokdc_preauth.c (check_padata): If preauth fails because the preauth
Theodore Tso [Wed, 27 Jan 1999 05:22:07 +0000 (05:22 +0000)]
kdc_preauth.c (check_padata): If preauth fails because the preauth
data from the client was of an unknown type, and the principal does
not require preauth, then the preauth should be disregarded.
[krb5-kdc/652]

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

25 years agolocaladdr.c: On the macintosh, check to see if getmyipaddr returns
Theodore Tso [Wed, 27 Jan 1999 05:14:25 +0000 (05:14 +0000)]
localaddr.c: On the macintosh, check to see if getmyipaddr returns
NULL, and return an error in that case.

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

25 years agoMakefile.in: Add ccapi to the include path so we can find stdcc.h
Theodore Tso [Wed, 27 Jan 1999 04:53:45 +0000 (04:53 +0000)]
Makefile.in: Add ccapi to the include path so we can find stdcc.h

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

25 years agowconfig.c: Updated to be more featureful. It will now save the
Theodore Tso [Wed, 27 Jan 1999 03:15:02 +0000 (03:15 +0000)]
wconfig.c: Updated to be more featureful.  It will now save the
arguments passed to it and emit it as a makefile variable
WCONFIG_FLAGS.  This allows the makefile to be able to preserve
wconfig options in the future when updating makefile.  Also added the
--win32 and --win16 options to force win16 or win32 makefiles.  An
option of the form --enable-foo will cause lines that begin ##FOO## to
be uncommented in the Makefile.  The program has also been cleaned up
so it can be run (for debugging purposes) under Unix.

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

25 years agoUpped to 1.1b4
Miro Jurisic [Tue, 26 Jan 1999 20:59:23 +0000 (20:59 +0000)]
Upped to 1.1b4

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

25 years agoReelase notes update; Makefile.tmpl fixes to make debugging version link against...
Miro Jurisic [Tue, 26 Jan 1999 20:56:14 +0000 (20:56 +0000)]
Reelase notes update; Makefile.tmpl fixes to make debugging version link against debugging C and runtime libs

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

25 years ago* prof_tree.c (profile_node_iterator): Added comments indicating that
Theodore Tso [Mon, 25 Jan 1999 23:47:01 +0000 (23:47 +0000)]
* prof_tree.c (profile_node_iterator): Added comments indicating that
profile_node_iterator, not being an exported interface, returns
pointers into the parse tree, and that values should be strdup()'ed
before returning them to a calling application.

prof_get.c (profile_iterator): Strdup the name and value strings
before returning them to the calling application.

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

25 years agoUppder version to 1.1b3
Miro Jurisic [Fri, 22 Jan 1999 21:53:06 +0000 (21:53 +0000)]
Uppder version to 1.1b3

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

25 years agoFixed typo in SRCS
Miro Jurisic [Fri, 22 Jan 1999 21:31:50 +0000 (21:31 +0000)]
Fixed typo in SRCS

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

25 years agoAdded realms from Athena krb5.conf
Miro Jurisic [Fri, 22 Jan 1999 21:30:41 +0000 (21:30 +0000)]
Added realms from Athena krb5.conf

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

25 years agoResource chain mangling fix
Miro Jurisic [Fri, 22 Jan 1999 21:21:42 +0000 (21:21 +0000)]
Resource chain mangling fix

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

25 years ago_MACINTOSH -> macintosh
Miro Jurisic [Fri, 22 Jan 1999 21:21:12 +0000 (21:21 +0000)]
_MACINTOSH -> macintosh

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

25 years agotrval.c: Added usage message, better options parsing, and support for
Theodore Tso [Fri, 22 Jan 1999 08:53:16 +0000 (08:53 +0000)]
trval.c: Added usage message, better options parsing, and support for
two new options: -hex, which will accept the asn.1 encoding in hex
(i.e., from a packet dump), and -krb5, which instructs the trval to
print out the krb5 interpretations of the data types.  Trval will now
also try to interpret the field names of known krb5 structures if
-krb5 is specified.

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

25 years agonetbsd1.def (UTMP_FILE, WTMP_FILE): Update filenames to comply with
Theodore Tso [Fri, 22 Jan 1999 05:55:04 +0000 (05:55 +0000)]
netbsd1.def (UTMP_FILE, WTMP_FILE): Update filenames to comply with
netbsd system.  (Not actually used by our configuration system, but
I'll update the file.)  Submitted by ghudson, [krb5-admin/522]

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

25 years agokrb5.tex (krb5_mk_safe): Fix reference to a non-existent flag.
Theodore Tso [Fri, 22 Jan 1999 05:12:52 +0000 (05:12 +0000)]
krb5.tex (krb5_mk_safe): Fix reference to a non-existent flag.
(KRB5_AUTH_CONTEXT_DO_TIME_NOTIME should have been
KRB5_AUTH_CONTEXT_DO_TIME).  [krb5-doc/528]

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

25 years agokrb5.hin: Fix realm iterator prototypes so that they use
Theodore Tso [Thu, 21 Jan 1999 20:24:58 +0000 (20:24 +0000)]
krb5.hin: Fix realm iterator prototypes so that they use
        KRB5_PROTOTYPE, and surround them with extern "C" so things work under
        C++.

\aCVS: ----------------------------------------------------------------------

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

25 years agokrb5.hin: Fix realm iterator prototypes so that they use
Theodore Tso [Thu, 21 Jan 1999 20:24:39 +0000 (20:24 +0000)]
krb5.hin: Fix realm iterator prototypes so that they use
KRB5_PROTOTYPE, and surround them with extern "C" so things work under
C++.

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

25 years agoprofile.hin: Fix definition of PROTOYPE so that it works under C++
Theodore Tso [Thu, 21 Jan 1999 20:23:04 +0000 (20:23 +0000)]
profile.hin: Fix definition of PROTOYPE so that it works under C++

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

25 years ago * login.c (main): Call setluid()
Tom Yu [Thu, 21 Jan 1999 02:44:00 +0000 (02:44 +0000)]
* login.c (main): Call setluid()

* krshd.c (doit): Call setluid().

* configure.in: Check for setluid() rather than main() in
libsecurity.

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

25 years agoVersion 1.1b1, changed CFM fragment version numbers and tweaked makefile.initial
Miro Jurisic [Wed, 20 Jan 1999 23:49:43 +0000 (23:49 +0000)]
Version 1.1b1, changed CFM fragment version numbers and tweaked makefile.initial

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

25 years agoChanges to krb5.ini to default to single DES TGT (3DES is hosed); added realms API...
Miro Jurisic [Tue, 19 Jan 1999 19:42:19 +0000 (19:42 +0000)]
Changes to krb5.ini to default to single DES TGT (3DES is hosed); added realms API and 3DES to export file; building only PPC versions

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

25 years agoUpdating Mac CCache library implementation includes and bins to latest
Scott McGuire [Wed, 13 Jan 1999 16:00:59 +0000 (16:00 +0000)]
Updating Mac CCache library implementation includes and bins to latest

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

25 years ago * Makefile.in (CFLAGS): PW_CHECK functionality now in DEFS
Tom Yu [Tue, 12 Jan 1999 23:27:13 +0000 (23:27 +0000)]
* Makefile.in (CFLAGS): PW_CHECK functionality now in DEFS

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

25 years ago * configure.in: Define NDBM_PW_CHECK if enable_athena is set to
Tom Yu [Tue, 12 Jan 1999 23:26:44 +0000 (23:26 +0000)]
* configure.in: Define NDBM_PW_CHECK if enable_athena is set to
deal with v4kadmind kludge.

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

25 years agoRemove inappropriate cc_shutdown() call from krb5_cc_destroy()
Scott McGuire [Wed, 6 Jan 1999 22:45:07 +0000 (22:45 +0000)]
Remove inappropriate cc_shutdown() call from krb5_cc_destroy()

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

25 years agocns.c (position_dialog): If the registry position for the window is
Theodore Tso [Tue, 5 Jan 1999 06:39:40 +0000 (06:39 +0000)]
cns.c (position_dialog): If the registry position for the window is
all zeros, then default to centering the window in the correct place.

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

25 years agosn2princ.c (krb5_sname_to_principal): Windows NT5's broken resolver
Theodore Tso [Tue, 5 Jan 1999 05:39:44 +0000 (05:39 +0000)]
sn2princ.c (krb5_sname_to_principal): Windows NT5's broken resolver
gratuitously tacks on a trailing period to the hostname (at least it
does in Beta2).  Deal with this brain-damage.

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

25 years agochangepw.c: Add a test for _WIN16 as well as _WIN32 for sockets
Theodore Tso [Tue, 5 Jan 1999 05:39:07 +0000 (05:39 +0000)]
changepw.c: Add a test for _WIN16 as well as _WIN32 for sockets
workaround (in case we do want to build the 16 bit library again
someday)

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

25 years ago * configure.in (withval): Conditinalize ATHENA_DES3_KLUDGE on
Tom Yu [Tue, 5 Jan 1999 05:15:28 +0000 (05:15 +0000)]
* configure.in (withval): Conditinalize ATHENA_DES3_KLUDGE on
--enable-athena.

* main.c (initialize_realms): Kludge to disable
des3-marc-hmac-sha1 from the command line.

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

25 years ago * make_checksum.c (krb5_c_make_checksum): Note the fact that we're
Tom Yu [Tue, 5 Jan 1999 05:14:54 +0000 (05:14 +0000)]
* make_checksum.c (krb5_c_make_checksum): Note the fact that we're
punting on dealing with backwards compat with length-included
checksums.

* etypes.c: Add ENCTYPE_LOCAL_DES3_HMAC_SHA1 as a temporary
kludge.  Note that this is added to the end of the array so other
code can lop off the last member of the array and the right thing
will happen so that it is possible to disable des3-marc-hmac-sha1
from the KDC command line, for instance.

* configure.in: Conditionalize ATHENA_DES3_KLUDGE on
--enable-athena.

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

25 years ago * dk.h: Add prototypes for krb5_marc_dk_*
Tom Yu [Tue, 5 Jan 1999 05:14:31 +0000 (05:14 +0000)]
* dk.h: Add prototypes for krb5_marc_dk_*

* dk_encrypt.c (krb5_marc_dk_encrypt): Add compat for 32-bit
length coded ciphertext.

* dk_decrypt.c (krb5_marc_dk_decrypt): Add compat for 32-bit
length coded ciphertext.

* checksum.c: Add compat for 32-bit length included checksum.
Note that nothing uses this at the moment, and probably
shouldn't.

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

25 years agoprof_tree.c (profile_node_iterator): Make sure the pointer to the
Theodore Tso [Sat, 2 Jan 1999 06:38:49 +0000 (06:38 +0000)]
prof_tree.c (profile_node_iterator): Make sure the pointer to the
iterator function is non-NULL before checking the magic value.

prof_file.c (profile_open_file): Add ability to parse filenames that
begin with "~/" and substitute it with "$HOME/".

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

26 years agoTemporary patch for krb5-appl/678; avoid data from stdout being mixed to stderr
Sam Hartman [Sun, 27 Dec 1998 02:53:59 +0000 (02:53 +0000)]
Temporary patch for krb5-appl/678; avoid data from stdout being mixed to stderr

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

26 years agogss-server.c (test_import_export_context): Fix memory leak
Theodore Tso [Tue, 22 Dec 1998 04:10:08 +0000 (04:10 +0000)]
gss-server.c (test_import_export_context): Fix memory leak

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

26 years agoaccept_sec_context.c (krb5_gss_accept_sec_context): Eliminate double
Theodore Tso [Tue, 22 Dec 1998 04:09:37 +0000 (04:09 +0000)]
accept_sec_context.c (krb5_gss_accept_sec_context): Eliminate double
free of ap_req.data, and initialize ctypes to be NULL to avoid freeing
a pointer to stack garbage when doing a V1 mechanism
accept_sec_contxt.

init_sec_context.c: Re-arrange program logic to simplify and factor
out code; fix gss_init_sec_context() so that if the default OID is
passed to the init_sec_context, it will use the V1 mechanism if a
single DES enctype is used.  Error handling was revamped to make it
simpler and cleaner, and to assure that we don't have memory leaks on
error returns.

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

26 years ago * old_decrypt.c (krb5_old_decrypt): Initialize the ivec to the key
Tom Yu [Wed, 16 Dec 1998 21:16:33 +0000 (21:16 +0000)]
* old_decrypt.c (krb5_old_decrypt): Initialize the ivec to the key
  if we're using DES_CBC_CRC, for backwards compatibility.  We
  weren't noticing this before because it only trashes the first
  block, which is the confounder, which we weren't actually
  verifying because checksum was unconditionally succeeding prior to
  the other patch.

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

26 years ago * old_decrypt.c (krb5_old_decrypt): Actually compare the
Tom Yu [Fri, 11 Dec 1998 03:16:50 +0000 (03:16 +0000)]
* old_decrypt.c (krb5_old_decrypt): Actually compare the
calculated checksum against the provided checksum.

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

26 years ago * svr_principal.c (kadm5_randkey_principal_3): Fix typo in
Ezra Peisach [Mon, 7 Dec 1998 20:20:38 +0000 (20:20 +0000)]
    * svr_principal.c (kadm5_randkey_principal_3): Fix typo in
                arguments to krb5_dbe_crk().

Prototypes are your friends. Essentially, the number of tuples was
passed as tuples and visa-versa.

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

26 years ago * krb54proto.h: Fix decomp_tkt_krb5 to use KRB4_32, instead of a
Tom Yu [Mon, 7 Dec 1998 00:46:32 +0000 (00:46 +0000)]
* krb54proto.h: Fix decomp_tkt_krb5 to use KRB4_32, instead of a
nonexistent type.

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

26 years agokrb.h: Add prototypes for krb_set_key() and decomp_ticket()
Theodore Tso [Sat, 5 Dec 1998 21:39:30 +0000 (21:39 +0000)]
krb.h: Add prototypes for krb_set_key() and decomp_ticket()

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

26 years agoMakefile.in: Set the myfulldir and mydir variables (which are relative
Theodore Tso [Sat, 5 Dec 1998 21:38:08 +0000 (21:38 +0000)]
Makefile.in: Set the myfulldir and mydir variables (which are relative
to buildtop and thisconfigdir, respectively.)

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

26 years agoMakefile.in: Set the myfulldir and mydir variables (which are relative
Theodore Tso [Sat, 5 Dec 1998 21:32:13 +0000 (21:32 +0000)]
Makefile.in: Set the myfulldir and mydir variables (which are relative
to buildtop and thisconfigdir, respectively.)

configure.in: Use K5_AC_OUTPUT isntead of K5_OUTPUT_FILES

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

26 years agoMakefile.in: Set the myfulldir and mydir variables (which are relative
Theodore Tso [Sat, 5 Dec 1998 06:52:28 +0000 (06:52 +0000)]
Makefile.in: Set the myfulldir and mydir variables (which are relative
to buildtop and thisconfigdir, respectively.)

configure.in: Use K5_AC_OUTPUT instead of K5_OUTPUT_FILES.

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

26 years agoMakefile.in: Set the myfulldir and mydir variables (which are relative
Theodore Tso [Sat, 5 Dec 1998 06:51:49 +0000 (06:51 +0000)]
Makefile.in: Set the myfulldir and mydir variables (which are relative
to buildtop and thisconfigdir, respectively.)

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

26 years agoMakefile.in: Set the myfulldir and mydir variables (which are relative
Theodore Tso [Sat, 5 Dec 1998 06:45:51 +0000 (06:45 +0000)]
Makefile.in: Set the myfulldir and mydir variables (which are relative
to buildtop and thisconfigdir, respectively.)

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

26 years agoMakefile.in: Set the myfulldir and mydir variables (which are relative
Theodore Tso [Sat, 5 Dec 1998 06:31:28 +0000 (06:31 +0000)]
Makefile.in: Set the myfulldir and mydir variables (which are relative
to buildtop and thisconfigdir, respectively.)

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

26 years agoMakefile.in: Set the myfulldir and mydir variables (which are relative
Theodore Tso [Sat, 5 Dec 1998 06:25:34 +0000 (06:25 +0000)]
Makefile.in: Set the myfulldir and mydir variables (which are relative
to buildtop and thisconfigdir, respectively.)

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

26 years agoMakefile.in, ccdefops.c: Temporarily back out the ccapi ccache under
Theodore Tso [Sat, 5 Dec 1998 06:22:37 +0000 (06:22 +0000)]
Makefile.in, ccdefops.c: Temporarily back out the ccapi ccache under
Windows so we can make sure the rest of the krb5 tree builds correctly
under Windows.  (Note: I didn't revert lib/krb5/os/ccdefname.c, so
setting KRB5_CC_NAME to FILE:C:\tmp\tkt is required to make things
work.)

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

26 years agoMakefile.in: Updated windows configuration rules to work with the new
Theodore Tso [Sat, 5 Dec 1998 06:15:57 +0000 (06:15 +0000)]
Makefile.in: Updated windows configuration rules to work with the new
crypto library.  (Including bundling the correct directories into
kerbsrc-nt.zip)

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

26 years agoAdded missing krb4__krb5_context variable declaration
Theodore Tso [Sat, 5 Dec 1998 06:13:40 +0000 (06:13 +0000)]
Added missing krb4__krb5_context variable declaration

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

26 years agolocaladdr.c: Added missing KRB5_DLLIMP and KRB5_CALLCONF macros from
Theodore Tso [Sat, 5 Dec 1998 06:12:58 +0000 (06:12 +0000)]
localaddr.c: Added missing KRB5_DLLIMP and KRB5_CALLCONF macros from
the function definition.

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

26 years agokrb5_32.def: Fixed exports file to reflect new crypto library and
Theodore Tso [Sat, 5 Dec 1998 06:11:41 +0000 (06:11 +0000)]
krb5_32.def: Fixed exports file to reflect new crypto library and
related changes.

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

26 years agokrb5.hin: Add KRB5_DLLIMP and KRB5_CALLCONV to the prototypes of
Theodore Tso [Sat, 5 Dec 1998 06:10:35 +0000 (06:10 +0000)]
krb5.hin: Add KRB5_DLLIMP and KRB5_CALLCONV to the prototypes of
valid_enctype, valid_cksumtype, is_coll_proof_cksum, and
is_keyed_cksum, which had previously been #defines, but since they are
now functions, they needed to be exported by the DLL interface.

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

26 years agoMakefile.in: Set the myfulldir and mydir variables (which are relative
Theodore Tso [Sat, 5 Dec 1998 05:58:23 +0000 (05:58 +0000)]
Makefile.in: Set the myfulldir and mydir variables (which are relative
to buildtop and thisconfigdir, respectively.)

configure.in, kpropd.c: Removed useless test for KRB5_POSIX, and
removed unneeded #include of sgtty.h if POSIX_TERMIOS is not defined.

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

26 years agoMakefile.in: Set the myfulldir and mydir variables (which are relative
Theodore Tso [Sat, 5 Dec 1998 05:55:32 +0000 (05:55 +0000)]
Makefile.in: Set the myfulldir and mydir variables (which are relative
to buildtop and thisconfigdir, respectively.)

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

26 years agoUse K5_AC_OUTPUT instead of K5_OUTPUT_FILES
Theodore Tso [Sat, 5 Dec 1998 05:53:01 +0000 (05:53 +0000)]
Use K5_AC_OUTPUT instead of K5_OUTPUT_FILES

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

26 years agoMakefile.in: Added missing "cd .." necessary for making this compile
Theodore Tso [Sat, 5 Dec 1998 05:47:39 +0000 (05:47 +0000)]
Makefile.in: Added missing "cd .." necessary for making this compile
under Windows.  Also added missing *.lst files to OBJFILELIST.

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

26 years agoFixed busted Makefile so that it compiles under Windows
Theodore Tso [Sat, 5 Dec 1998 05:46:21 +0000 (05:46 +0000)]
Fixed busted Makefile so that it compiles under Windows

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

26 years agoAdded KRB5_DLLIMP and KRB5_CALLCONV so that these files build
Theodore Tso [Sat, 5 Dec 1998 05:45:10 +0000 (05:45 +0000)]
Added KRB5_DLLIMP and KRB5_CALLCONV so that these files build
under Windows.

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

26 years agoMakefile.in: Set the myfulldir and mydir variables (which are relative
Theodore Tso [Sat, 5 Dec 1998 05:40:45 +0000 (05:40 +0000)]
Makefile.in: Set the myfulldir and mydir variables (which are relative
to buildtop and thisconfigdir, respectively.)

fcc_maybe.c (fcc_lock_file): Removed all of the filesystem-dependent
mess for file locking, which has been now properly moved to
krb5_lock_file(), where it belongs.

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

26 years agord_svc_key.c (krb54_get_service_keyblock): New function which searches
Theodore Tso [Sat, 5 Dec 1998 05:38:29 +0000 (05:38 +0000)]
rd_svc_key.c (krb54_get_service_keyblock): New function which searches
the appropaite krb5 keytab file for the key to be used by the krb4
library.

rd_req.c (krb_rd_req): If the appropriate key cannot be found in the
krb4 srvtab file, try calling krb54_get_service_keyblock.

decomp_tkt.c (dcmp_tkt_int):
g_in_tkt.c (krb_mk_in_tkt_preauth):
g_ad_tkt.c (get_ad_tkt):
pkt_clen.c (pkt_clen):
rd_err.c (krb_rd_err):
rd_priv.c (krb_rd_priv):
rd_req.c (krb_rd_req):

rd_safe.c (krb_rd_safe): Use krb4_swab32 and krb4_swab16 instead of
swap_u_long and swap_u_short.  The new byte swapping routines are
faster and cleaner.

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

26 years agoForgot to check this in earlier
Theodore Tso [Sat, 5 Dec 1998 05:28:03 +0000 (05:28 +0000)]
Forgot to check this in earlier

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

26 years agokrb5.hin: Move krb4 function prototypes to krb54proto.h
Theodore Tso [Sat, 5 Dec 1998 05:17:49 +0000 (05:17 +0000)]
krb5.hin: Move krb4 function prototypes to krb54proto.h

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

26 years ago * admin.h: Add prototypes for create_principal_3,
Tom Yu [Sat, 5 Dec 1998 04:13:09 +0000 (04:13 +0000)]
* admin.h: Add prototypes for create_principal_3,
chpass_principal_3, and randkey_principal_3.

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

26 years ago * svr_principal.c (kadm5_create_principal): Modify to call
Tom Yu [Sat, 5 Dec 1998 04:12:35 +0000 (04:12 +0000)]
* svr_principal.c (kadm5_create_principal): Modify to call
create_principal_3.
(kadm5_create_principal_3): New function including flag to keep
old keys and optional explicit keysalt_tuples.
(kadm5_chpass_principal): Modify to call chpass_principal_3.
(kadm5_chpass_principal_3): New function including flag to keep
old keys and optional explicit keysalt_tuples.
(kadm5_randkey_principal): Modify to call randkey_principal_3.
(kadm5_randkey_principal_3): New function including flag to keep
old keys and optional explicit keysalt_tuples.

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

26 years agoprof_get.c: Add new public profile_iterator functions for iterating
Theodore Tso [Fri, 4 Dec 1998 08:19:28 +0000 (08:19 +0000)]
prof_get.c: Add new public profile_iterator functions for iterating
over values found in the profile file.

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

26 years agorealm_iter.c: New function which iterators over the realms in the
Theodore Tso [Fri, 4 Dec 1998 08:17:26 +0000 (08:17 +0000)]
realm_iter.c: New function which iterators over the realms in the
krb5.conf file.

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

26 years agokrb5.hin: Add function prototypes for the new realm iterator
Theodore Tso [Fri, 4 Dec 1998 08:16:22 +0000 (08:16 +0000)]
krb5.hin: Add function prototypes for the new realm iterator
functions.  Also add some krb4 function prototypes to make catching
prototype errors easier.

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

26 years ago * krb5_decode_test.c (main): Add variant test cases on
Tom Yu [Fri, 4 Dec 1998 03:28:32 +0000 (03:28 +0000)]
* krb5_decode_test.c (main): Add variant test cases on
enc_tkt_part to test bit string values that aren't exactly 32
bits, including 38, 40, 29, and 24 bits to test boundary
conditions.

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

26 years ago * asn1_k_decode.c (asn1_decode_krb5_flags): Fix previous to
Tom Yu [Fri, 4 Dec 1998 03:16:56 +0000 (03:16 +0000)]
* asn1_k_decode.c (asn1_decode_krb5_flags): Fix previous to
properly left-justify bit strings less than 32 bits.

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

26 years ago * asn1_k_decode.c (asn1_decode_krb5_flags): Modify to deal with
Tom Yu [Fri, 4 Dec 1998 00:42:41 +0000 (00:42 +0000)]
* asn1_k_decode.c (asn1_decode_krb5_flags): Modify to deal with
BIT STRING values that are not exactly 32 bits.  Throw away bits
beyond number 31 in a bit string for now.  Deal with masking out
unused bits.

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

26 years agoUse $() instead of ${}, which doesn't work for Makefiles
Theodore Tso [Wed, 2 Dec 1998 00:29:26 +0000 (00:29 +0000)]
Use $() instead of ${}, which doesn't work for Makefiles

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

26 years agocom_err.h, error_table.h: Use "#if defined(MSDOS) || ..." instead of
Theodore Tso [Tue, 1 Dec 1998 23:55:54 +0000 (23:55 +0000)]
com_err.h, error_table.h: Use "#if defined(MSDOS) || ..." instead of
"#if !defined(unix)", since not all Unix compilers define "unix".

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

26 years agoerror_message.c: Use "#if defined(MSDOS) || ..." instead of "#if
Theodore Tso [Tue, 1 Dec 1998 23:51:12 +0000 (23:51 +0000)]
error_message.c: Use "#if defined(MSDOS) || ..." instead of "#if
!defined(unix)", since not all Unix compilers define "unix".

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

26 years agoUpdate the Changelog with a better documentation of the whole SUBDIRS,
Theodore Tso [Tue, 1 Dec 1998 20:41:18 +0000 (20:41 +0000)]
Update the Changelog with a better documentation of the whole SUBDIRS,
LOCAL_SUBDIRS, and MY_SUBDIRS mess.

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

26 years agoChecked in wrong version of post.in previously. Make sure we check
Theodore Tso [Tue, 1 Dec 1998 20:32:34 +0000 (20:32 +0000)]
Checked in wrong version of post.in previously.  Make sure we check
Since if MY_SUBDIRS is defined, it overrides SUBDIRS, we should check
do_subdirs after it has been properly assigned.

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

26 years agoMore Windows compatibility fixes
Scott McGuire [Wed, 25 Nov 1998 22:59:21 +0000 (22:59 +0000)]
More Windows compatibility fixes

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

26 years ago * svr_principal.c (kadm5_create_principal):
Tom Yu [Tue, 17 Nov 1998 23:21:40 +0000 (23:21 +0000)]
* svr_principal.c (kadm5_create_principal):
(kadm5_chpass_principal):
(kadm5_randkey_principal): Fix up for new calling conventions of
dbe_crk and dbe_cpw.

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

26 years ago * kdb_cpw.c (krb5_dbe_crk):
Tom Yu [Tue, 17 Nov 1998 23:20:13 +0000 (23:20 +0000)]
* kdb_cpw.c (krb5_dbe_crk):
(krb5_dbe_cpw): Add "keepold" boolean argument to indicate whether
to retain old keys.

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

26 years ago * kdb.h: Update dbe_crk and dbe_cpw to take a boolean to indicate
Tom Yu [Tue, 17 Nov 1998 23:19:17 +0000 (23:19 +0000)]
* kdb.h: Update dbe_crk and dbe_cpw to take a boolean to indicate
whether old keys should be retained.

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

26 years agoprof_get.c (profile_get_values): If there are no relations found,
Theodore Tso [Tue, 17 Nov 1998 22:38:20 +0000 (22:38 +0000)]
prof_get.c (profile_get_values): If there are no relations found,
return PROF_NO_RELATION, instead of an empty list.

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

26 years ago * Makefile.in (autoconf.stamp): Fix up to deal with config.status
Tom Yu [Tue, 17 Nov 1998 20:40:19 +0000 (20:40 +0000)]
* Makefile.in (autoconf.stamp): Fix up to deal with config.status
not being in the current directory anymore.

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

26 years agoconfigure.in: Add check for <sys/utsname.h>
Theodore Tso [Mon, 16 Nov 1998 18:04:33 +0000 (18:04 +0000)]
configure.in: Add check for <sys/utsname.h>

utility.c (putf): Add support for %s, %m, %r, %v using information
from the uname() system call.

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

26 years agoaclocal.m4: Add support for FreeBSD systems using ELF (and not just
Theodore Tso [Mon, 16 Nov 1998 17:58:42 +0000 (17:58 +0000)]
aclocal.m4: Add support for FreeBSD systems using ELF (and not just
a.out systems).  Also remove the definition for the KRB5_POSIX_LOCKS
test, since it is no longer needed.  (See ChangeLog for
lib/krb5/os/lock_file.c for more details.)

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