krb5.git
27 years ago * Makefile.in (SRCS): Add $(srcdir)
Ezra Peisach [Sun, 17 Aug 1997 18:28:29 +0000 (18:28 +0000)]
   * Makefile.in (SRCS): Add $(srcdir)

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

27 years ago * Makefile.in (SRCS): Add $(srcdir) where needed
Ezra Peisach [Sun, 17 Aug 1997 18:25:09 +0000 (18:25 +0000)]
* Makefile.in (SRCS): Add $(srcdir) where needed

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

27 years agoChanges from the Kerbnet release by Cygnus
Ezra Peisach [Thu, 14 Aug 1997 15:38:14 +0000 (15:38 +0000)]
Changes from the Kerbnet release by Cygnus

        * asn1buf.h (asn1buf_remove_octet, asn1buf_size, asn1buf_free,
        asn1buf_ensure_space, asn1buf_len): Add macro versions.
        (asn1buf_insert_octet) [__GNUC__ >= 2]: Ditto, using a GNU C
        extension.
        * asn1buf.c (asn1buf_remove_octet, asn1buf_size, asn1buf_free,
        asn1buf_ensure_space, asn1buf_len, asn1buf_insert_octet): Undef
        macros before defining as functions.
[Kerbnet changes made by raeburn@cygnus.com]

        * asn1buf.h (asn1buf_expand): Remove "const" from int arg in
        prototype.

        * asn1buf.c (asn1buf_remove_charstring, asn1buf_create,
        asn1buf_remove_octetstring, asn12krb5_buf): Call malloc instead of
        calloc.
        (asn1buf_unparse, asn1buf_hex_unparse): Ditto.  Also don't
        allocate extra byte, since sizeof(STRING) does count the trailing
        null.
        (asn1buf_expand): Adjust bound based on increment
        value used, not value specified by caller.

[Kerbnet changes made by raeburn@cygnus.com]

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

27 years ago * aclocal.m4 (WITH_HESIOD): Fix --with-hesiod support to DTRT if
Ezra Peisach [Tue, 12 Aug 1997 15:11:22 +0000 (15:11 +0000)]
* aclocal.m4 (WITH_HESIOD): Fix --with-hesiod support to DTRT if
        the option is not specified.

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

27 years ago * init_ctx.c (krb5_init_context): Initialize local variable ctx
Ezra Peisach [Tue, 12 Aug 1997 13:14:55 +0000 (13:14 +0000)]
* init_ctx.c (krb5_init_context): Initialize local variable ctx
  before calling krb5_init_ets.
This keeps purify happy as we are not using a variable
before setting it.

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

27 years ago * Makefile.in (OSSRCS): Add $(srcdir)/ to source location
Ezra Peisach [Tue, 12 Aug 1997 13:11:13 +0000 (13:11 +0000)]
* Makefile.in (OSSRCS): Add $(srcdir)/ to source location

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

27 years ago * Makefile.in (SRCS): Add $(srcdir) as needed
Ezra Peisach [Tue, 12 Aug 1997 13:09:42 +0000 (13:09 +0000)]
* Makefile.in (SRCS): Add $(srcdir) as needed

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

27 years ago * Makefile.in (MACFILES): Remove mac/gss/* as it does not exist
Ezra Peisach [Tue, 12 Aug 1997 12:59:00 +0000 (12:59 +0000)]
* Makefile.in (MACFILES): Remove mac/gss/* as it does not exist

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

27 years ago * aclocal.m4 (KRB5_BUILD_LIBRARY_STATIC): Fix up some things so
Tom Yu [Tue, 12 Aug 1997 01:19:06 +0000 (01:19 +0000)]
* aclocal.m4 (KRB5_BUILD_LIBRARY_STATIC): Fix up some things so
that this macro actually works; it's still necessary to precede a
call to KRB5_BUILD_LIBOBJS with a call to
KRB5_BUILD_LIBRARY_STATIC, though.  Basically if you AC_DEFUN
something that produces shell code and then calls a macro that
AC_REQUIREs something else, then all the AC_REQUIREd stuff ends up
coming *before* the shell code in the first macro.  I'm not sure
there's a reasonable workaround, or whether this can even be
considered to be a bug.

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

27 years ago * convt_tkt.c: Delete; it's not needed anymore
Tom Yu [Tue, 12 Aug 1997 01:16:32 +0000 (01:16 +0000)]
* convt_tkt.c: Delete; it's not needed anymore

* test.c: Remove reference to krb524_convert_creds_addr, as that
doesn't exist anymore.

* conv_creds.c: Clean up substantially to be less convoluted.

* sendmsg.c: Fix to not do a full series of timeouts on each
server; loop over the whole list before increasing the timeout.

* configure.in: Update to use the new library build system to
build libkrb524.

* Makefile.in: Update to reflect changes in the library.  Also,
use the new library build system to build libkrb524.

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

27 years ago * rd_cred.c (krb5_rd_cred_basic): Check remote_addr and
Tom Yu [Fri, 8 Aug 1997 22:04:30 +0000 (22:04 +0000)]
* rd_cred.c (krb5_rd_cred_basic): Check remote_addr and
encpart.s_address before calling krb5_address_compare.  Fixes
krb5-libs/456.

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

27 years ago * cnv_tkt_skey.c:
Tom Yu [Thu, 7 Aug 1997 21:36:21 +0000 (21:36 +0000)]
* cnv_tkt_skey.c:
* krb524.h:
* krb524d.c: Add jik's patches for multihomed hosts.  Fixes
krb5-misc/275.

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

27 years ago * g_cnffile.c: Check to see if context is NULL prior to calling
Tom Yu [Thu, 7 Aug 1997 20:32:14 +0000 (20:32 +0000)]
* g_cnffile.c: Check to see if context is NULL prior to calling
profile_get_values.  Fixes krb5-libs/317.

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

27 years ago * Makefile.in: Add support for compiling with Hesiod
Tom Yu [Thu, 7 Aug 1997 00:27:44 +0000 (00:27 +0000)]
* Makefile.in: Add support for compiling with Hesiod

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

27 years ago * aclocal.m4: Add support for --with-hesiod (and add it to
Tom Yu [Thu, 7 Aug 1997 00:26:30 +0000 (00:26 +0000)]
* aclocal.m4: Add support for --with-hesiod (and add it to
CONFIG_RULES, as it's needed almost everywhere kadm5 gets
linked).

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

27 years ago * pre.in: Add $(HESIOD_LIBS) to KADMSRV_LIBS
Tom Yu [Thu, 7 Aug 1997 00:25:36 +0000 (00:25 +0000)]
* pre.in: Add $(HESIOD_LIBS) to KADMSRV_LIBS

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

27 years ago * Makefile.in: Add flags to conditionally compile with Hesiod
Tom Yu [Thu, 7 Aug 1997 00:23:11 +0000 (00:23 +0000)]
* Makefile.in: Add flags to conditionally compile with Hesiod

* server_misc.c: Add support for checking GECOS field of Hesiod
passwd entry.

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

27 years agoversion.rc: New file containing the version resource information for
Theodore Tso [Wed, 6 Aug 1997 00:22:58 +0000 (00:22 +0000)]
version.rc: New file containing the version resource information for
MIT releases of the Krb5 software.

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

27 years agoMakefile.in, telnet.rc: Add version resource to the executable
Theodore Tso [Tue, 5 Aug 1997 22:48:13 +0000 (22:48 +0000)]
Makefile.in, telnet.rc: Add version resource to the executable

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

27 years agoMakefile.in, gss.rc: Use the version resource from windows/version.rc,
Theodore Tso [Tue, 5 Aug 1997 22:46:46 +0000 (22:46 +0000)]
Makefile.in, gss.rc: Use the version resource from windows/version.rc,
which affects the version resources for the entire krb5 distribution.

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

27 years agoMakefile.in, cnsres5.rc: Add a version resource to the executable
Theodore Tso [Tue, 5 Aug 1997 22:45:23 +0000 (22:45 +0000)]
Makefile.in, cnsres5.rc: Add a version resource to the executable

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

27 years agoversion.rc: New file containing the version resource information for
Theodore Tso [Tue, 5 Aug 1997 22:41:26 +0000 (22:41 +0000)]
version.rc: New file containing the version resource information for
MIT releases of the Krb5 software.

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

27 years agoMakefile.in, krb5.rc, version.rc: Add support for adding a Windows
Theodore Tso [Tue, 5 Aug 1997 22:08:45 +0000 (22:08 +0000)]
Makefile.in, krb5.rc, version.rc: Add support for adding a Windows
Version resource to all of the DLL files.

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

27 years agoCheck in new version of the version server libraries
Theodore Tso [Tue, 5 Aug 1997 22:07:49 +0000 (22:07 +0000)]
Check in new version of the version server libraries

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

27 years ago * Makefile.in (SRCS): Fix typo s/scrdir/srcdir/
Ezra Peisach [Thu, 31 Jul 1997 18:57:38 +0000 (18:57 +0000)]
* Makefile.in (SRCS): Fix typo s/scrdir/srcdir/

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

27 years ago * kdb_db2.c (krb5_db2_db_delete_principal): Fix switch statement
Ezra Peisach [Thu, 31 Jul 1997 18:56:23 +0000 (18:56 +0000)]
* kdb_db2.c (krb5_db2_db_delete_principal): Fix switch statement
        so that all cases have one statement.

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

27 years ago * Makefile.in (SRCS): Add / after $(srcdir) in SRCS line
Ezra Peisach [Thu, 31 Jul 1997 15:31:13 +0000 (15:31 +0000)]
* Makefile.in (SRCS): Add / after $(srcdir) in SRCS line

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

27 years ago * kdc_util.c:
Tom Yu [Wed, 30 Jul 1997 22:30:06 +0000 (22:30 +0000)]
* kdc_util.c:
* main.c: Don't use an rcache.

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

27 years ago * configure.in: Add "create" directory back
Tom Yu [Wed, 30 Jul 1997 22:28:40 +0000 (22:28 +0000)]
* configure.in: Add "create" directory back

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

27 years ago * kdb5_mkdums.c: Update to match reality of libkdb, so that it
Tom Yu [Wed, 30 Jul 1997 22:28:05 +0000 (22:28 +0000)]
* kdb5_mkdums.c: Update to match reality of libkdb, so that it
actually works.

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

27 years agoFor Windows and Macintosh, always include stdlib.h
Theodore Tso [Wed, 30 Jul 1997 03:14:52 +0000 (03:14 +0000)]
For Windows and Macintosh, always include stdlib.h

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

27 years agoAdd documentation describing the /MD flag in the Win32 CFLAGS
Theodore Tso [Wed, 30 Jul 1997 03:13:44 +0000 (03:13 +0000)]
Add documentation describing the /MD flag in the Win32 CFLAGS

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

27 years agoMakefile.in: Remove msvcrt.lib from the explicit WINLIBS link line
Theodore Tso [Wed, 30 Jul 1997 03:12:30 +0000 (03:12 +0000)]
Makefile.in: Remove msvcrt.lib from the explicit WINLIBS link line
since we're now using /MD and have removed the /nodefaultlibs switch.
For now, build debug versions of the libraries.

krb5_16.def, krb5_32.def, sapkrb16.def: Add decode_krb5_ap_req to the
exported functions list, since the GSSAPI krb5 mechanism routine needs
access to this internal routine.

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

27 years agoAdd support for the new OID value for host-based service name
Theodore Tso [Wed, 30 Jul 1997 03:08:11 +0000 (03:08 +0000)]
Add support for the new OID value for host-based service name

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

27 years agoinq_names.c (krb5_gss_inquire_names_for_mech): Add the the new OID
Theodore Tso [Wed, 30 Jul 1997 03:07:37 +0000 (03:07 +0000)]
inq_names.c (krb5_gss_inquire_names_for_mech): Add the the new OID
value for the host-based service name and the exported name OID to the
list of OID's supported by this mechanism.

import_name.c (krb5_gss_import_name): Add support for the new OID
value for the host-based service name.

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

27 years ago * kdb_db2.c (krb5_db2_db_set_hashfirst): Don't cast a
Tom Yu [Tue, 29 Jul 1997 06:40:23 +0000 (06:40 +0000)]
* kdb_db2.c (krb5_db2_db_set_hashfirst): Don't cast a
krb5_context * to a krb5_db2_context *.

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

27 years agoTake out the /nod option, and remove libc.lib from the list of
Theodore Tso [Tue, 29 Jul 1997 03:37:26 +0000 (03:37 +0000)]
Take out the /nod option, and remove libc.lib from the list of
libraries to be linked.

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

27 years agoAdd additional debugging messages so we can see the winsock error
Theodore Tso [Tue, 29 Jul 1997 03:30:32 +0000 (03:30 +0000)]
Add additional debugging messages so we can see the winsock error
numbers.

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

27 years ago * kdb_db2.c: Fix typo; also, tweak page size in attempt to speed
Tom Yu [Sat, 26 Jul 1997 01:24:08 +0000 (01:24 +0000)]
* kdb_db2.c: Fix typo; also, tweak page size in attempt to speed
things up.

* kdb_db2.h: Fix typo.

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

27 years ago * kadm_funcs.c: Remove mention of dbm for now. It should probably
Tom Yu [Fri, 25 Jul 1997 19:50:25 +0000 (19:50 +0000)]
* kadm_funcs.c: Remove mention of dbm for now.  It should probably
be added back later to deal with dbm-hashed passwd files.

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

27 years ago * loadv4.c:
Tom Yu [Fri, 25 Jul 1997 19:49:30 +0000 (19:49 +0000)]
* loadv4.c:
* kdb5_create.c:
* kdb5_destroy.c:
* dump.c: Update to new kdb API.

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

27 years ago * dump.c: Update to new kdb API
Tom Yu [Fri, 25 Jul 1997 19:45:36 +0000 (19:45 +0000)]
* dump.c: Update to new kdb API

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

27 years ago * main.c (init_realm): Fix to use new ktkdb
Tom Yu [Fri, 25 Jul 1997 19:44:33 +0000 (19:44 +0000)]
* main.c (init_realm): Fix to use new ktkdb

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

27 years ago * Makefile.in: Remove test-randkey since it was breaking the
Tom Yu [Fri, 25 Jul 1997 19:40:10 +0000 (19:40 +0000)]
* Makefile.in: Remove test-randkey since it was breaking the
server-side tests; api.2/getprinc-v2.exp wants *two* keys, while
randkey results in only one.

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

27 years ago * server_init.c: Change a few calls to align with the new kdb
Tom Yu [Fri, 25 Jul 1997 19:39:54 +0000 (19:39 +0000)]
* server_init.c: Change a few calls to align with the new kdb
API.

* Makefile.in: Bump version.

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

27 years ago * t_kdb.c: Reflect changes in the API, mostly db_create
Tom Yu [Fri, 25 Jul 1997 19:34:42 +0000 (19:34 +0000)]
* t_kdb.c: Reflect changes in the API, mostly db_create

* Makefile.in: Bump version due to major reworking.

* kdb_db2.h:
* kdb_db2.c: Add Berkely DB backend.

* keytab.c: Add support for new kdb API; delete dead arguments.

* kdb_xdr.c: Remove dependencies on dbm; encode things to
krb5_datas rather than datums.

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

27 years ago * t_ser.c: Add support for changed kdb API
Tom Yu [Fri, 25 Jul 1997 19:27:45 +0000 (19:27 +0000)]
* t_ser.c: Add support for changed kdb API

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

27 years ago * kdb5_err.et: Add error code for bad creation flags
Tom Yu [Fri, 25 Jul 1997 19:27:30 +0000 (19:27 +0000)]
* kdb5_err.et: Add error code for bad creation flags

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

27 years ago * Makefile.in: Bump version due to et changes
Tom Yu [Fri, 25 Jul 1997 19:27:07 +0000 (19:27 +0000)]
* Makefile.in: Bump version due to et changes

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

27 years ago * kdb_kt.h: Move support for "kdb" keytab here
Tom Yu [Fri, 25 Jul 1997 19:23:47 +0000 (19:23 +0000)]
* kdb_kt.h: Move support for "kdb" keytab here

* kdb.h: Add support for modified kdb API; remove extra arguments
for db_set_mkey and db_get_mkey.  Remove all (hopefully) mentions
of any particular backend database implementation.  Add flags
argument for db_create, allowing caller to specify whether btree
or hash methods are to be used in the backend.

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

27 years ago * k5-int.h: Don't include anything related to dbm
Tom Yu [Fri, 25 Jul 1997 19:23:30 +0000 (19:23 +0000)]
* k5-int.h: Don't include anything related to dbm

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

27 years ago* util_ordering.c: Include string.h for prototypes
Ezra Peisach [Tue, 22 Jul 1997 00:35:45 +0000 (00:35 +0000)]
* util_ordering.c: Include string.h for prototypes

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

27 years ago (krb5_gss_accept_sec_context): Initialize ctx before it is referenced without being...
Ezra Peisach [Tue, 22 Jul 1997 00:34:54 +0000 (00:34 +0000)]
 (krb5_gss_accept_sec_context): Initialize ctx before it is referenced without being set in failure cases

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

27 years ago * error_message.c (error_message): Mask error code with
Ezra Peisach [Tue, 22 Jul 1997 00:29:16 +0000 (00:29 +0000)]
* error_message.c (error_message): Mask error code with
ERRCODE_MASK to handle case where 32bit ints are zero
filled in the gssapi layer.

* error_table.h: Define ERRCODE_MAX, the maximum allowed error
code (32bits).

I am taking the draconian outlook that the com_err library was always
intending to define the error as a 32 bit value. I taken this approach
instead of making the errcode_t machine specific as the com_er
generated header files would then need be machine specific as
well. (error codes are declared as say -4353L explicitly).

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

27 years agoFix stupid #ifdef logic error
Theodore Tso [Thu, 17 Jul 1997 17:39:08 +0000 (17:39 +0000)]
Fix stupid #ifdef logic error

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

27 years ago * dump.c (process_k5beta_record): Change variables from char to
Ezra Peisach [Thu, 17 Jul 1997 16:35:19 +0000 (16:35 +0000)]
* dump.c (process_k5beta_record): Change variables from char to
krb5_octet to match types in krb5_key_data.

* ovload.c (process_ov_principal): Change "more" variable to
krb5_boolean as argument to krb5_db_get_principal.

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

27 years agoFix name of srvtab file in the man page to be krb5.keytab
Theodore Tso [Wed, 16 Jul 1997 23:03:56 +0000 (23:03 +0000)]
Fix name of srvtab file in the man page to be krb5.keytab

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

27 years agoOnly copy over the old table when there's an old table to copy over.
Theodore Tso [Wed, 16 Jul 1997 02:16:18 +0000 (02:16 +0000)]
Only copy over the old table when there's an old table to copy over.
Otherwise, BoundsChecker complains about memcpy(foo, NULL, 0).

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

27 years agoAlways copy the mechtype so that delete_sec_context() can safely
Theodore Tso [Wed, 16 Jul 1997 02:06:22 +0000 (02:06 +0000)]
Always copy the mechtype so that delete_sec_context() can safely
release the OID without smashing memory passed in by the application.

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

27 years agoRemove (probably unneeded) size_t definition
Theodore Tso [Tue, 15 Jul 1997 16:37:05 +0000 (16:37 +0000)]
Remove (probably unneeded) size_t definition

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

27 years ago * kdc_preauth.c (get_sam_edata): Don't goto cleanup if SAM is not
Tom Yu [Tue, 15 Jul 1997 06:00:11 +0000 (06:00 +0000)]
* kdc_preauth.c (get_sam_edata): Don't goto cleanup if SAM is not
used; this prevents freeing an unallocated keyblock.

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

27 years agoAdded Winsock kludge for finding your local IP address. May not work
Theodore Tso [Fri, 4 Jul 1997 04:13:56 +0000 (04:13 +0000)]
Added Winsock kludge for finding your local IP address.  May not work
for all stacks, so we use it as a fallback.

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

27 years ago * kadm_funcs.c, kadm_server.c, kadm_ser_wrap.c: Reenable mod and
Tom Yu [Tue, 1 Jul 1997 20:28:43 +0000 (20:28 +0000)]
* kadm_funcs.c, kadm_server.c, kadm_ser_wrap.c: Reenable mod and
check_pw.

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

27 years ago * kadm_funcs.c, kadm_server.c, kadm_ser_wrap.c: Reenable get and
Tom Yu [Tue, 1 Jul 1997 06:39:58 +0000 (06:39 +0000)]
* kadm_funcs.c, kadm_server.c, kadm_ser_wrap.c: Reenable get and
add.

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

27 years ago * kadm_rpc_svc.c, server_stubs.c: Add support for setv4key
Tom Yu [Tue, 1 Jul 1997 06:37:29 +0000 (06:37 +0000)]
* kadm_rpc_svc.c, server_stubs.c: Add support for setv4key

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

27 years agoFix goof in ChangeLog
Tom Yu [Tue, 1 Jul 1997 06:36:16 +0000 (06:36 +0000)]
Fix goof in ChangeLog

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

27 years ago * client_principal.c, client_rpc.c: Add support for setv4key
Tom Yu [Tue, 1 Jul 1997 06:35:43 +0000 (06:35 +0000)]
* client_principal.c, client_rpc.c: Add support for setv4key

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

27 years ago * server_acl.h: Fix ACL_ALL_MASK to include ACL_SETKEY
Tom Yu [Tue, 1 Jul 1997 06:34:18 +0000 (06:34 +0000)]
* server_acl.h: Fix ACL_ALL_MASK to include ACL_SETKEY

* svr_principal.c: Fix setv4key_principal.

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

27 years ago * kadm_rpc.h, kadm_rpc_xdr.c: Add support for setv4key
Tom Yu [Tue, 1 Jul 1997 06:32:36 +0000 (06:32 +0000)]
* kadm_rpc.h, kadm_rpc_xdr.c: Add support for setv4key

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

27 years agoAdded code so that a valid credential handle is generated when
Kevin Mitchell [Mon, 30 Jun 1997 21:17:07 +0000 (21:17 +0000)]
Added code so that a valid credential handle is generated when
credentials are delegated.

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

27 years agokillpg() wasn't conditionalized in login.c, causing compiles to fail on
Kevin Mitchell [Mon, 30 Jun 1997 17:29:27 +0000 (17:29 +0000)]
killpg() wasn't conditionalized in login.c, causing compiles to fail on
Solaris 2.4 (which puts the function into the BSD compatibility libraries).

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

27 years ago * svr_principal.c: Add new function kadm5_setv4key_principal
Tom Yu [Sun, 29 Jun 1997 18:53:18 +0000 (18:53 +0000)]
* svr_principal.c: Add new function kadm5_setv4key_principal

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

27 years ago * kadm_err.et: Add support for kadm5_setv4key_principal
Tom Yu [Sun, 29 Jun 1997 18:52:46 +0000 (18:52 +0000)]
* kadm_err.et: Add support for kadm5_setv4key_principal

* admin.h: Add prototype for kadm5_setv4key_principal.

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

27 years ago * keytab.c (add_principal): Don't call kadm5_free_key_data; that's
Tom Yu [Fri, 27 Jun 1997 21:38:24 +0000 (21:38 +0000)]
* keytab.c (add_principal): Don't call kadm5_free_key_data; that's
Just Wrong here and was causing coredumps.

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

27 years ago * acgeneral.m4 (AC_CHECK_PROG, AC_PATH_PROG): Fix bug in previous
Tom Yu [Fri, 20 Jun 1997 02:58:39 +0000 (02:58 +0000)]
* acgeneral.m4 (AC_CHECK_PROG, AC_PATH_PROG): Fix bug in previous
patch; add double quotes to protect things.

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

27 years ago * kadm_funcs.c (kadm_chg_srvtab): Remove extraneous macros that
Tom Yu [Wed, 18 Jun 1997 22:39:22 +0000 (22:39 +0000)]
* kadm_funcs.c (kadm_chg_srvtab): Remove extraneous macros that
were elaborate contortions to avoid using goto.

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

27 years ago * acgeneral.m4 (AC_CHECK_PROG, AC_PATH_PROG): Assign the path to
Tom Yu [Wed, 18 Jun 1997 22:28:50 +0000 (22:28 +0000)]
* acgeneral.m4 (AC_CHECK_PROG, AC_PATH_PROG): Assign the path to
ac_dummy and then expand it, rather than simply tacking on
$ac_dummy to the path.  This works around POSIX.2 word splitting
semantics, in which even things like a:b:c:$PATH don't get
word-split as you might expect on a pre-POSIX shell.

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

27 years agoAdded the mac/gss files to the Macintosh tar file
Theodore Tso [Wed, 11 Jun 1997 20:47:21 +0000 (20:47 +0000)]
Added the mac/gss files to the Macintosh tar file

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

27 years agoNew snapshot from Meeroh; eliminated the GSS Window class
Theodore Tso [Wed, 11 Jun 1997 20:46:25 +0000 (20:46 +0000)]
New snapshot from Meeroh; eliminated the GSS Window class

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

27 years agogss-server.c (server_establish_context): Rearrange server establish
Theodore Tso [Wed, 11 Jun 1997 20:45:39 +0000 (20:45 +0000)]
gss-server.c (server_establish_context): Rearrange server establish
context loop to match with the draft-ietf-gssv2-cbind-04.txt
suggestion --- always send the output token even in the case of an
error, and call gss_delete_sec_context() if needed.

gss-client.c (client_establish_context): Check for error condition
after sending the output token, if present.  In case of error, call
delete_sec_context if necessary.

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

27 years agologin.c: Always use the new tty line discpline. [krb5-appl/428]
Theodore Tso [Sat, 7 Jun 1997 02:38:53 +0000 (02:38 +0000)]
login.c: Always use the new tty line discpline.  [krb5-appl/428]

login.c: If a hangup signal is received, pass it onto the child.
[krb5-appl/432]

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

27 years agoaccept_sec_context.c (krb5_gss_accept_sec_context): Reorganized error
Theodore Tso [Sat, 7 Jun 1997 02:16:37 +0000 (02:16 +0000)]
accept_sec_context.c (krb5_gss_accept_sec_context): Reorganized error
handling code to be more compact (and correct!).  If an error occurs
while we are doing mutual authentication, send an KRB_ERROR message
back to the client, so that it knows what is going on.  (This is
specified by RFC 1964; we just weren't implementing this previously.)

delete_sec_context.c (krb5_gss_delete_sec_context): Check to make sure
pointers in the context are non-zero before freeing them.

init_sec_context.c (krb5_gss_init_sec_context): If the server sends a
KRB_ERROR message, decode it and return an appropriate minor status
error code.

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

27 years agoRemove erroneous space from the HPUX open()
Theodore Tso [Tue, 3 Jun 1997 23:05:48 +0000 (23:05 +0000)]
Remove erroneous space from the HPUX open()

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

27 years agoCheck in Miro's new gss sample code
Theodore Tso [Fri, 30 May 1997 23:10:14 +0000 (23:10 +0000)]
Check in Miro's new gss sample code

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

27 years ago * do_as_req.c (process_as_req), do_tgs_req (process_tgs_req): Use
Theodore Tso [Fri, 30 May 1997 01:24:01 +0000 (01:24 +0000)]
* do_as_req.c (process_as_req), do_tgs_req (process_tgs_req): Use
limit_string() to make sure the length of cname and sname
are reasonable.

* kdc_util.c (limit_string): New function which limits the strings
that will end up in log files to "reasonable" lengths.

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

27 years agoFix bug where kinit would core dump if given a really long principal
Theodore Tso [Thu, 29 May 1997 19:44:14 +0000 (19:44 +0000)]
Fix bug where kinit would core dump if given a really long principal
name.

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

27 years ago * admin.h: add prototype for kadm5_setkey_principal
Barry Jaspan [Wed, 28 May 1997 17:35:05 +0000 (17:35 +0000)]
* admin.h: add prototype for kadm5_setkey_principal

* misc_free.c (kadm5_free_key_data): add kadm5_free_data

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

27 years ago * keytab.c (add_principal): use kadm5_free_key_data
Barry Jaspan [Wed, 28 May 1997 17:34:09 +0000 (17:34 +0000)]
* keytab.c (add_principal): use kadm5_free_key_data

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

27 years ago * Makefile.in (OBJS): Build kadm_funcs.c again
Tom Yu [Tue, 27 May 1997 02:47:29 +0000 (02:47 +0000)]
* Makefile.in (OBJS): Build kadm_funcs.c again

* kadm_funcs.c: Re-enable kadm_chg_srvtab() and update it to use
the new kadm5 interface.

* kadm_ser_wrap.c: Re-enable kadm_ser_stab().

* kadm_server.c: Re-enable kadm_ser_stab().

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

27 years ago * Makefile.in:
Tom Yu [Wed, 14 May 1997 00:24:07 +0000 (00:24 +0000)]
* Makefile.in:
* admin_server.c:
* kadm_server.c:
* kadm_ser_wrap.c: Convert to use new kadm5 API; this still needs
work to remove references to krb5_db and to regain full v4 kadmind
functionality (or as much as is possible).

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

27 years ago * setkey-test.c, configure.in: add rules to test for correct
Barry Jaspan [Mon, 5 May 1997 21:12:33 +0000 (21:12 +0000)]
* setkey-test.c, configure.in: add rules to test for correct
  random()-equivlant function

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

27 years agoFix Y2K bug in the parsing of the MDTM command. [krb5-appl/399]
Theodore Tso [Fri, 2 May 1997 02:58:43 +0000 (02:58 +0000)]
Fix Y2K bug in the parsing of the MDTM command.   [krb5-appl/399]

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

27 years agoWrite special case hack for the SAP kerberos libraries since we can't
Theodore Tso [Fri, 2 May 1997 02:57:24 +0000 (02:57 +0000)]
Write special case hack for the SAP kerberos libraries since we can't
make the version server code correctly read out the version resource
from SAPGUI.EXE for some reason....

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

27 years agoFile containing test tracker MOTD
Theodore Tso [Tue, 29 Apr 1997 10:46:46 +0000 (10:46 +0000)]
File containing test tracker MOTD

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

27 years agoAdd version resource information to test version server code
Theodore Tso [Tue, 29 Apr 1997 10:46:06 +0000 (10:46 +0000)]
Add version resource information to test version server code

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

27 years agoRemove #include of "mitcpyrt.h" (since it's of dubious legal value, and
Theodore Tso [Tue, 29 Apr 1997 10:45:03 +0000 (10:45 +0000)]
Remove #include of "mitcpyrt.h" (since it's of dubious legal value, and
the file doesn't exist.)

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

27 years agowin_glue.c: Add code to get the version resource from the calling
Theodore Tso [Tue, 29 Apr 1997 10:44:10 +0000 (10:44 +0000)]
win_glue.c: Add code to get the version resource from the calling
application and use that to call the Version server.

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

27 years agoMakefile.in: Add MIT files to the windows zip file (if the mit
Theodore Tso [Tue, 29 Apr 1997 10:21:40 +0000 (10:21 +0000)]
Makefile.in: Add MIT files to the windows zip file (if the mit
directory exists)

wconfig.c (main): Add arguments to allow specification of the --mit,
--nomit, --ignore=XXX options.

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

27 years agoAdd these files (as binary)
Theodore Tso [Sat, 26 Apr 1997 13:04:53 +0000 (13:04 +0000)]
Add these files (as binary)

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

27 years agodidn't check them in in binary mode
Theodore Tso [Sat, 26 Apr 1997 13:03:48 +0000 (13:03 +0000)]
didn't check them in in binary mode

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