krb5.git
22 years ago* aclocal.m4 (CONFIG_RULES): Comment out code looking for the in-tree version
Ken Raeburn [Fri, 11 Oct 2002 22:50:10 +0000 (22:50 +0000)]
* aclocal.m4 (CONFIG_RULES): Comment out code looking for the in-tree version
of autoconf that we deleted.

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

22 years agoimplement krb5_read_password, des_read_password via krb5_prompter_posix
Tom Yu [Fri, 11 Oct 2002 06:05:09 +0000 (06:05 +0000)]
implement krb5_read_password, des_read_password via krb5_prompter_posix

This commit fixes one incompatibility introduced when
krb5_read_password was reimplemented in terms of krb5_prompter_posix.
There is a remaining incompatibility, which is krb5_prompter_posix's
appending of the string ": " following a prompt.  Callers of
krb5_read_password and of des_read_password don't expect this
behavior, which results in a double colon prompt, which breaks the
libkadm5 test suite.

* read_pwd.c (krb5_read_password): Restore name of size_return.
Set *size_return after successful call to krb5_prompter_posix,
since some callers were actually checking, e.g. kadm5.

ticket: new

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

22 years agoImplement krb5_read_password an des_read_pw_string
Sam Hartman [Thu, 10 Oct 2002 22:06:02 +0000 (22:06 +0000)]
Implement krb5_read_password an des_read_pw_string
in terms of krb5_prompter_posix.
Change motivated by the desire for echo foo |kinit -4 bar to work in
test scripts, but having one implementation of password read functions on unix is good
anyway

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

22 years ago* Makefile.in (EXTRADEPSRCS): New variable.
Ken Raeburn [Thu, 10 Oct 2002 03:00:27 +0000 (03:00 +0000)]
* Makefile.in (EXTRADEPSRCS): New variable.
(t_hmac$(EXEEXT), t_pkcs5$(EXEEXT), vectors$(EXEEXT)): New targets.
(check-unix): Depend on and run t_hmac and t_pkcs5.

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

22 years ago* string2key.c (mit_des_string_to_key_int): If PRINT_TEST_VECTORS is defined,
Ken Raeburn [Thu, 10 Oct 2002 02:58:23 +0000 (02:58 +0000)]
* string2key.c (mit_des_string_to_key_int): If PRINT_TEST_VECTORS is defined,
print some of the intermediate results.

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

22 years ago* Makefile.in (t_cksum4, t_cksum5): Include com_err library when linking
Ken Raeburn [Thu, 10 Oct 2002 02:52:51 +0000 (02:52 +0000)]
* Makefile.in (t_cksum4, t_cksum5): Include com_err library when linking

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

22 years agowhitespace
Ken Raeburn [Thu, 10 Oct 2002 02:52:00 +0000 (02:52 +0000)]
whitespace

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

22 years ago* pbkdf2.c, t_hmac.c, t_pkcs5.c: New files
Ken Raeburn [Thu, 10 Oct 2002 02:41:52 +0000 (02:41 +0000)]
* pbkdf2.c, t_hmac.c, t_pkcs5.c: New files

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

22 years agoprincipal can't specify ks_tuples changing own passwd
Tom Yu [Tue, 8 Oct 2002 20:53:29 +0000 (20:53 +0000)]
principal can't specify ks_tuples changing own passwd

Thanks, the patch has been applied and will appear in a future release.

* misc.c (chpass_principal_wrapper_3): Renamed from
chpass_principal_wrapper; calls chpass_principal_3 now.
(randkey_principal_wrapper_3): Renamed from
randkey_principal_wrapper; calls randkey_principal_3 now.  Patch
from Ben Cox.

* server_stubs.c (chpass_principal_1_svc)
(chpass_principal3_1_svc): Call chpass_principal_wrapper_3.
(chrand_principal_1_svc, chrand_principal3_1_svc): Call
randkey_principal_wrapper_3.  Patch from Ben Cox.

ticket: 1207
version_reported: 1.2.6
target_version: 1.3

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

22 years agolibkadm5 should allow persistent locks
Tom Yu [Tue, 8 Oct 2002 20:20:29 +0000 (20:20 +0000)]
libkadm5 should allow persistent locks

libkadm5 should have a way to persistently lock the databases to avoid
wasting time on closing and reopening.  These patches implement
persistent exclusive locks for local access only.

ticket: new
target_version: 1.3

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

22 years agoASN.1 code passes uninitialized values around
Tom Yu [Tue, 8 Oct 2002 02:27:39 +0000 (02:27 +0000)]
ASN.1 code passes uninitialized values around

* asn1_get.c (asn1_get_tag_indef): Stomp on asn1class,
construction, retlen, and indef, even if we've hit the end of the
buffer, to avoid passing uninitialized values around.

* asn1_k_decode.c: Reformat somewhat and add comments to demystify
things a little.
(opt_field): Fix to explicitly check for end of subbuf before
verifying the pre-fetched tag, which may have been stomped on by
asn1_get_tag_indef() encountering end-of-buffer.

* krb5_decode.c (opt_field, opt_lenfield): Fix to explicitly check
for end of subbuf before verifying the pre-fetched tag, which may
have been stomped on by asn1_get_tag_indef() encountering
end-of-buffer.

ticket: new
target_version: 1.3

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

22 years agoImplement an install-headers target to install public headers into KRB5_INCDIR;
Sam Hartman [Mon, 7 Oct 2002 21:51:49 +0000 (21:51 +0000)]
Implement an install-headers target to install public headers into KRB5_INCDIR;
probably called by setting DESTDIR.

ticket: 1208

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

22 years ago * default.exp (stop_kerberos_daemons): Kill, expect eof, wait, in
Tom Yu [Mon, 7 Oct 2002 20:42:51 +0000 (20:42 +0000)]
* default.exp (stop_kerberos_daemons): Kill, expect eof, wait, in
that order.  Avoids delivery of multiple signals (HUP+TERM) to KDC
daemons when shutting down.

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

22 years ago * do_as_req.c (process_as_req): Apply fix from Kevin Coffman to
Tom Yu [Sun, 6 Oct 2002 01:44:27 +0000 (01:44 +0000)]
* do_as_req.c (process_as_req): Apply fix from Kevin Coffman to
avoid leaking padata.

ticket: 1206

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

22 years agoMove test_* from all to check target
Sam Hartman [Thu, 3 Oct 2002 22:07:11 +0000 (22:07 +0000)]
Move test_* from all to check target

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

22 years ago * rsh.exp (rsh_test): Explicitly call stop_rsh_daemon upon pass
Tom Yu [Mon, 30 Sep 2002 04:21:10 +0000 (04:21 +0000)]
* rsh.exp (rsh_test): Explicitly call stop_rsh_daemon upon pass
for "encrypted rsh" test, to avoid zombies.

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

22 years ago * default.exp (start_kerberos_daemons): Fix to use "tail -f" to
Tom Yu [Sun, 29 Sep 2002 21:00:31 +0000 (21:00 +0000)]
* default.exp (start_kerberos_daemons): Fix to use "tail -f" to
check for setup messages from daemons; this avoids a few race
conditions.

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

22 years agoupdate dependencies
Tom Yu [Sat, 28 Sep 2002 00:03:03 +0000 (00:03 +0000)]
update dependencies

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

22 years ago * depgen.sed: Solaris sed doesn't like '\(^.*$\)'; replace it with
Tom Yu [Fri, 27 Sep 2002 23:58:05 +0000 (23:58 +0000)]
* depgen.sed: Solaris sed doesn't like '\(^.*$\)'; replace it with
'^\(.*\)$'.

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

22 years agoFix DES_INT32 definition
Tom Yu [Fri, 27 Sep 2002 04:26:59 +0000 (04:26 +0000)]
Fix DES_INT32 definition

Intial merge of KfM des library API.

Update krb.h to use offsets from krb_err.et constants as error codes.
Fix up definitions of KRB4_32, KRB_INT32, KRB_UINT32.

ticket: 1189
status: open

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

22 years agoLimit the number of TCP connections that will be handled at one time.
Ken Raeburn [Fri, 27 Sep 2002 03:38:33 +0000 (03:38 +0000)]
Limit the number of TCP connections that will be handled at one time.
Remove some debugging calls.

* network.c (struct connection): New field start_time.
(tcp_data_counter, max_tcp_data_connections): New variables.
(kill_tcp_connection): New function.
(process_tcp_connection): Use it.  Log reason for rejecting connection if the
requested buffer size is too large.
(accept_tcp_connection): If there are too many TCP connections already, shut
down the oldest one.
(setup_network, listen_and_process, process_tcp_connection, service_conn):
Delete debugging code.
(process_packet): Use socklen_t where appropriate.

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

22 years ago* sendto_kdc.c (krb5int_cm_call_select): Fix last change
Ken Raeburn [Fri, 27 Sep 2002 02:28:30 +0000 (02:28 +0000)]
* sendto_kdc.c (krb5int_cm_call_select): Fix last change

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

22 years ago * socket-utils.h (sa2sin, sa2sin6): Add redundant cast to (void *)
Tom Yu [Fri, 27 Sep 2002 01:08:05 +0000 (01:08 +0000)]
* socket-utils.h (sa2sin, sa2sin6): Add redundant cast to (void *)
to get GCC to shut up about alignment increasing.

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

22 years agoActually commit krb5.conf
Sam Hartman [Tue, 24 Sep 2002 20:27:44 +0000 (20:27 +0000)]
Actually commit krb5.conf

ticket: 1195

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

22 years agoUpdate enctypes in krb5.conf
Sam Hartman [Tue, 24 Sep 2002 20:24:11 +0000 (20:24 +0000)]
Update enctypes in krb5.conf

Previously krb5.conf in config-files only allowed des-cbc-crc; really that's getting fairly old and we should allow
all the enctypes we support.
This has been updated and a comment added indicating that if the list is removed
all enctypes are allowed by the code.

Added club.cc.cmu.edu to distributed realms list per request

ticket: new
cc: leko@MIT.EDU

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

22 years agoMakefile.in, configure.in, aclocal.m4: Use AC_CONFIG_FILES instead of
Ezra Peisach [Tue, 24 Sep 2002 19:47:34 +0000 (19:47 +0000)]
Makefile.in, configure.in, aclocal.m4: Use AC_CONFIG_FILES instead of
arguments to AC_OUTPUT. This allows for generation of a single Makefile.

config/post.in: When regenerating Makefiles, invoke config.status with
only the Makefile to generate.

This completes the changes.

ticket: 1188

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

22 years agoAdd some dependencies on phony build targets to help with cross-directory dependencies
Ken Raeburn [Tue, 24 Sep 2002 18:34:13 +0000 (18:34 +0000)]
Add some dependencies on phony build targets to help with cross-directory dependencies

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

22 years ago* Makefile.in (EXTRADEPSRCS): New variable
Ken Raeburn [Tue, 24 Sep 2002 18:00:25 +0000 (18:00 +0000)]
* Makefile.in (EXTRADEPSRCS): New variable

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

22 years ago* pre.in (.et.c, .et.h): Change rules to only update the desired target file,
Ken Raeburn [Tue, 24 Sep 2002 17:58:33 +0000 (17:58 +0000)]
* pre.in (.et.c, .et.h): Change rules to only update the desired target file,
by using temporary files; this makes them safe for use in parallel builds.

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

22 years ago * Makefile.in (mydir): Add missing mydir lines
Ezra Peisach [Tue, 24 Sep 2002 15:44:30 +0000 (15:44 +0000)]
    * Makefile.in (mydir): Add missing mydir lines

ticket: 1188

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

22 years agoconfigure fails (autoconf 2.52) if aclocal.m4 located in directory above source tree
Ezra Peisach [Mon, 23 Sep 2002 17:56:36 +0000 (17:56 +0000)]
configure fails (autoconf 2.52) if aclocal.m4 located in directory above source tree

        * aclocal.m4 (V5_SET_TOPDIR): When determining the location of the
        top of the source tree, stop when reach the top and aclocal.m4
        file is located instead of continuing up and out of the tree.

ticket: new

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

22 years ago* admin.texinfo, dnssrv.texinfo: Documented config file variables and SRV
Ken Raeburn [Fri, 20 Sep 2002 20:47:43 +0000 (20:47 +0000)]
* admin.texinfo, dnssrv.texinfo: Documented config file variables and SRV
records to use for Kerberos TCP service, if it's enabled, which it isn't by
default.  Removed UDP port 750 from the DNS SRV recommendations.

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

22 years ago * Makefile: made the list of manpages a variable
Jen Selby [Fri, 20 Sep 2002 17:35:28 +0000 (17:35 +0000)]
    * Makefile: made the list of manpages a variable
        * admin.texinfo: took out second inclusion of copyright notice,
        changed some section names, updated initial synopsis of file,
        added explanation of encryption types and the [login] section of
        krb5.conf, added documentation on various tags in the configuration
        files, added some more examples, fixed some typos, updated usage
        statements for various kadmin and kdb5_util commands, updated the
        sample output from the commands, updated the infotex for use with
        makeinfo --html, added a section about getting shared-realm keys,
        updated the error codes
        * build.texinfo: added a section describing the structure of the
        source code tree, updated documentation of options to configure
        script, added information about defaults for various variable
        settings, updated information about shared library support,
        added discussion of valid kerberos principals
        * definitions.texinfo: added some new default variables,
        corrected some pathnames of default values
        * dnssrv.texinfo: made the information about default port numbers
        reference a variable
        * glossary.texinfo: updated definition of principal
        * install.texinfo: fixed typos and formatting errors, removed old
        sample config files from appendix (samples are in the sections about
        the config files), added information about supporting RC4 keys
        * kadm5.acl: new file.  describes the kadm5.acl file.  included by
        both admin.texinfo and install.texinfo.  text is made up mostly of
        text that was split between those two documents.  documentation
        of backreferences was added
        * kdcconf.texinfo: made defaults reference variables
        * krb425.texinfo: deleted second inclusion of copyright info,
        made defaults reference variable, fixed typos, took out redundant
        part about editing inetd.conf and replaced it with reference to
        install guide
        * krb5conf.texinfo: documented the "final variable" feature,
        added mention of the [login] section,
        * send-pr.texinfo: minor change in wording for clarity
        * user-guide.texinfo: made various minor wording changes, updated
        some of the sample output, updated documention of command options

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

22 years ago* port-sockets.h: Include sys/filio.h if available
Ken Raeburn [Thu, 19 Sep 2002 22:39:01 +0000 (22:39 +0000)]
* port-sockets.h: Include sys/filio.h if available

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

22 years agoupdated dependencies
Ken Raeburn [Thu, 19 Sep 2002 22:11:51 +0000 (22:11 +0000)]
updated dependencies

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

22 years ago* network.c: Include sys/filio.h if available
Ken Raeburn [Thu, 19 Sep 2002 22:08:03 +0000 (22:08 +0000)]
* network.c: Include sys/filio.h if available

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

22 years agoupdate comments
Ken Raeburn [Thu, 19 Sep 2002 21:19:34 +0000 (21:19 +0000)]
update comments

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

22 years agoPut back in the V5_OUTPUT_MAKEFILE. Revert the config.status invocation
Ezra Peisach [Thu, 19 Sep 2002 20:58:51 +0000 (20:58 +0000)]
Put back in the V5_OUTPUT_MAKEFILE. Revert the config.status invocation
until this code can be rewriten to use AC_CONFIG_FILES.

ticket: 1188
state: open

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

22 years agoAdd TCP support to the KDC, turned off by default, and using separate
Ken Raeburn [Thu, 19 Sep 2002 19:53:23 +0000 (19:53 +0000)]
Add TCP support to the KDC, turned off by default, and using separate
config file entries to indicate port numbers.
Checkpointing a working version; debug code needs cleanup, doc needs writing.

ticket: 1175
status: open

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

22 years ago* sendto_kdc.c (krb5int_cm_call_select): If timeout value has tv_sec==0, treat
Ken Raeburn [Thu, 19 Sep 2002 19:49:16 +0000 (19:49 +0000)]
* sendto_kdc.c (krb5int_cm_call_select): If timeout value has tv_sec==0, treat
it as meaning "no timeout".
(krb5int_debug_fprint): Handle null timeval pointer.

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

22 years agoUse AC_CONFIG_FILES for each Makefile generated instead of passing
Ezra Peisach [Thu, 19 Sep 2002 18:37:47 +0000 (18:37 +0000)]
Use AC_CONFIG_FILES for each Makefile generated instead of passing
list of files to AC_OUTPUT.

Also, only generate an individual Makefile when invoking config.status

ticket: 1188

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

22 years ago* post.in ($(srcdir)/$(thisconfigdir)/configure): Delete autom4te.cache directory
Ken Raeburn [Thu, 19 Sep 2002 18:22:00 +0000 (18:22 +0000)]
* post.in ($(srcdir)/$(thisconfigdir)/configure): Delete autom4te.cache directory

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

22 years ago* aclocal.m4 (KRB5_AC_CHOOSE_SS): Check that the indicated system ss package
Ken Raeburn [Thu, 19 Sep 2002 18:19:38 +0000 (18:19 +0000)]
* aclocal.m4 (KRB5_AC_CHOOSE_SS): Check that the indicated system ss package
can actually be linked against and will produce programs that run.

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

22 years ago* main.c (DEFAULT_KDC_PORTLIST): Define as DEFAULT_KDC_UDP_PORTLIST
Ken Raeburn [Thu, 19 Sep 2002 17:56:06 +0000 (17:56 +0000)]
* main.c (DEFAULT_KDC_PORTLIST): Define as DEFAULT_KDC_UDP_PORTLIST

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

22 years agoupdate dependencies
Ken Raeburn [Wed, 18 Sep 2002 21:17:36 +0000 (21:17 +0000)]
update dependencies

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

22 years agoSupport reading a list of TCP port numbers from the KDC config file; default
Ken Raeburn [Wed, 18 Sep 2002 20:45:36 +0000 (20:45 +0000)]
Support reading a list of TCP port numbers from the KDC config file; default
to none for now.

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

22 years agoprotoize
Ken Raeburn [Wed, 18 Sep 2002 20:44:13 +0000 (20:44 +0000)]
protoize

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

22 years ago* client_init.c (_kadm5_init_any): If creating a new ccache, put it in memory
Ken Raeburn [Wed, 18 Sep 2002 20:40:25 +0000 (20:40 +0000)]
* client_init.c (_kadm5_init_any): If creating a new ccache, put it in memory
instead of on disk.

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

22 years ago* sendto_kdc.c: Include cm.h.
Ken Raeburn [Wed, 18 Sep 2002 20:38:02 +0000 (20:38 +0000)]
* sendto_kdc.c: Include cm.h.
(struct select_state, SSF_READ, SSF_WRITE, SSF_EXCEPTION): Moved to cm.h.
(DEBUG): Define.
(krb5int_debug_sendto_kdc): Initialize to zero.
(default_debug_handler, put, putstr): New functions.
(krb5int_sendtokdc_debug_handler): New variable.
(krb5int_debug_fprint): Don't write to stderr; instead, pass strings to the
debug output handlers above.
(struct incoming_krb5_message): Broken out from struct conn_state.
(krb5int_cm_call_select): Renamed from call_select; callers updated.  Now
extern.  Display max fd number in debugging call, not nfds.

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

22 years ago* cm.h: New file
Ken Raeburn [Wed, 18 Sep 2002 20:35:51 +0000 (20:35 +0000)]
* cm.h: New file

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

22 years ago* configure.in: Check for sys/filio.h
Ken Raeburn [Wed, 18 Sep 2002 20:34:30 +0000 (20:34 +0000)]
* configure.in: Check for sys/filio.h

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

22 years ago* krb.h: Add extern "C" markers in case a C++ compiler is used
Ken Raeburn [Wed, 18 Sep 2002 20:33:20 +0000 (20:33 +0000)]
* krb.h: Add extern "C" markers in case a C++ compiler is used

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

22 years agoReturn errno not retval from getpeername failure
Sam Hartman [Tue, 17 Sep 2002 20:08:12 +0000 (20:08 +0000)]
Return errno not retval from getpeername failure

ticket: 1164

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

22 years ago* lib/helpers.exp (setup_database): Use "!=" instead of "ne" for string comparisons
Ken Raeburn [Mon, 16 Sep 2002 03:35:41 +0000 (03:35 +0000)]
* lib/helpers.exp (setup_database): Use "!=" instead of "ne" for string comparisons

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

22 years ago * kerberos_v4.c (check_princ): Call strftime() with correct number
Tom Yu [Sun, 15 Sep 2002 21:19:02 +0000 (21:19 +0000)]
* kerberos_v4.c (check_princ): Call strftime() with correct number
of arguments.

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

22 years ago * aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Set TCL_LIBPATH and
Tom Yu [Sun, 15 Sep 2002 20:37:53 +0000 (20:37 +0000)]
* aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Set TCL_LIBPATH and
TCL_RPATH.

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

22 years ago * lib/helpers.exp (expect_tcl_prompt): Use the "-re" flag, and
Tom Yu [Sun, 15 Sep 2002 19:17:58 +0000 (19:17 +0000)]
* lib/helpers.exp (expect_tcl_prompt): Use the "-re" flag, and
match end of output.
(expect_kadm_ok): s/error/perror.
(setup_database): Work around tcl 8.4's (incorrect?) output EOL
translation.

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

22 years ago * api.0/chpass-principal.exp:
Tom Yu [Sun, 15 Sep 2002 19:14:32 +0000 (19:14 +0000)]
* api.0/chpass-principal.exp:
* api.0/crte-policy.exp:
* api.0/crte-principal.exp:
* api.0/destroy.exp:
* api.0/dlte-policy.exp:
* api.0/dlte-principal.exp:
* api.0/get-policy.exp:
* api.0/get-principal.exp:
* api.0/init.exp:
* api.0/mod-policy.exp:
* api.0/mod-principal.exp:
* api.0/randkey-principal.exp:
* api.0/rename-principal.exp:
* api.1/lock.exp:
* api.2/chpass-principal-v2.exp:
* api.2/chpass-principal.exp:
* api.2/crte-policy.exp:
* api.2/crte-principal.exp:
* api.2/destroy.exp:
* api.2/dlte-policy.exp:
* api.2/dlte-principal.exp:
* api.2/get-policy.exp:
* api.2/get-principal-v2.exp:
* api.2/get-principal.exp:
* api.2/init-v2.exp:
* api.2/init.exp:
* api.2/mod-policy.exp:
* api.2/mod-principal-v2.exp:
* api.2/mod-principal.exp:
* api.2/randkey-principal-v2.exp:
* api.2/randkey-principal.exp:
* lib/lib.t: s/error/perror.

* config/unix.exp: Work around tcl 8.4's (incorrect?) output EOL
translation.

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

22 years ago* kerberos_v4.c: Always include stdarg.h, not varargs.h.
Ken Raeburn [Sun, 15 Sep 2002 04:59:15 +0000 (04:59 +0000)]
* kerberos_v4.c: Always include stdarg.h, not varargs.h.
(v4_klog): Always declare and define stdarg version.
(krb4_stime): Deleted.
(check_princ): Use strftime instead.

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

22 years ago* Makefile.in (rcp): Fix typo in 06-25 change
Ken Raeburn [Sun, 15 Sep 2002 00:01:19 +0000 (00:01 +0000)]
* Makefile.in (rcp): Fix typo in 06-25 change

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

22 years ago* sendto_kdc.c (service_fds): Fix bug in last change.
Ken Raeburn [Sat, 14 Sep 2002 12:30:55 +0000 (12:30 +0000)]
* sendto_kdc.c (service_fds): Fix bug in last change.
(krb5int_debug_fprint): Use 'out' consistently, minimize explicit
references to stderr.  Flush output before returning.
(dperror) [_WIN32]: Shorten message.
(start_connection, service_tcp_fd, service_fds, krb5int_sendto):
Use dprint instead of dfprintf.

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

22 years ago* sendto_kdc.c (struct conn_state): Add new function pointer field 'service'
Ken Raeburn [Sat, 14 Sep 2002 03:49:59 +0000 (03:49 +0000)]
* sendto_kdc.c (struct conn_state): Add new function pointer field 'service'
for the fd service routine.
(setup_connection): Initialize it.
(service_fd): Deleted.
(service_fds): Incorporate debug output from service_fd.  Call service routine
indicated in connection info.  Decrement select fd count for each flag set for
a file descriptor.  Ensure that the index into the conns array doesn't run off
the end.
(krb5int_debug_fprint): Fetch correct type for %E.

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

22 years agoWork out pathname for gcc fixincludes headers via "-print-libgcc-file-name" and
Ken Raeburn [Sat, 14 Sep 2002 02:45:50 +0000 (02:45 +0000)]
Work out pathname for gcc fixincludes headers via "-print-libgcc-file-name" and
substitutions in depgen.sed at "make depend" time, and emit patterns into
depfix2.sed to strip them out of dependencies, instead of hard-coding pathnames
for Athena gcc installations we know about in depfix.sed.

Verify that gcc is being used, before trying to rebuild dependencies.

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

22 years agoDelete old placeholders for framework support; implement it anew soon,
Ken Raeburn [Sat, 14 Sep 2002 01:01:22 +0000 (01:01 +0000)]
Delete old placeholders for framework support; implement it anew soon,
when we're more certain what we need.

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

22 years agocopyright
Ken Raeburn [Fri, 13 Sep 2002 23:46:50 +0000 (23:46 +0000)]
copyright

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

22 years ago--with-system-db info
Ken Raeburn [Fri, 13 Sep 2002 23:17:01 +0000 (23:17 +0000)]
--with-system-db info

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

22 years agoupdate dependencies
Ken Raeburn [Fri, 13 Sep 2002 23:08:04 +0000 (23:08 +0000)]
update dependencies

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

22 years agoDon't do 'make depend' if we're not using the in-tree versions of et,ss,db
Ken Raeburn [Fri, 13 Sep 2002 23:07:20 +0000 (23:07 +0000)]
Don't do 'make depend' if we're not using the in-tree versions of et,ss,db

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

22 years agoPermit building against either the in-tree version of db2 or a system version
Ken Raeburn [Fri, 13 Sep 2002 23:06:15 +0000 (23:06 +0000)]
Permit building against either the in-tree version of db2 or a system version
specified at configure time.

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

22 years ago* aclocal.m4 (KRB5_AC_CHOOSE_DB): New macro.
Ken Raeburn [Fri, 13 Sep 2002 22:57:41 +0000 (22:57 +0000)]
* aclocal.m4 (KRB5_AC_CHOOSE_DB): New macro.
(CONFIG_RULES): Invoke it.

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

22 years ago* build.texinfo (Options to Configure): Update for new options
Ken Raeburn [Fri, 13 Sep 2002 22:54:58 +0000 (22:54 +0000)]
* build.texinfo (Options to Configure): Update for new options
--with-system-db, DB_HEADER=, DB_LIB=.

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

22 years agoignore krb5-install directory
Ken Raeburn [Fri, 13 Sep 2002 22:53:20 +0000 (22:53 +0000)]
ignore krb5-install directory

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

22 years ago* depfix.sed: Replace db2 headers with $(DB_DEPS)
Ken Raeburn [Fri, 13 Sep 2002 22:30:07 +0000 (22:30 +0000)]
* depfix.sed: Replace db2 headers with $(DB_DEPS)

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

22 years ago* kdb_db2.c (krb5_db2_db_iterate_ext): Don't call bt_rseq if HAVE_BT_RSEQ is
Ken Raeburn [Fri, 13 Sep 2002 22:25:28 +0000 (22:25 +0000)]
* kdb_db2.c (krb5_db2_db_iterate_ext): Don't call bt_rseq if HAVE_BT_RSEQ is
undefined; instead, just return an error.

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

22 years ago* kerberos_v4.c (kerb_get_principal): Include kvno when logging failure to find
Ken Raeburn [Fri, 13 Sep 2002 02:41:15 +0000 (02:41 +0000)]
* kerberos_v4.c (kerb_get_principal): Include kvno when logging failure to find
a key.
(v4_klog): Include explicit do-nothing default case in switch statement.

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

22 years ago* main.c (initialize_realms): Include replay cache name in error if it can't be initi...
Ken Raeburn [Fri, 13 Sep 2002 02:40:04 +0000 (02:40 +0000)]
* main.c (initialize_realms): Include replay cache name in error if it can't be initialized

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

22 years agoDon't request addresses when
Sam Hartman [Wed, 11 Sep 2002 20:50:59 +0000 (20:50 +0000)]
Don't request   addresses  when
we forward addressless tickets

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

22 years ago* t_locate_kdc.c(main):Add new argument -m for looking up master KDC addresses
Ken Raeburn [Wed, 11 Sep 2002 08:43:27 +0000 (08:43 +0000)]
* t_locate_kdc.c(main):Add new argument -m for looking up master KDC addresses

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

22 years ago* locate_kdc.c (get_port): Skip service name lookup, just use the supplied
Ken Raeburn [Wed, 11 Sep 2002 08:42:03 +0000 (08:42 +0000)]
* locate_kdc.c (get_port): Skip service name lookup, just use the supplied
numbers.
(add_host_to_list): If a second port number is supplied, look up AF_INET
addresses only, and only for SOCK_DGRAM type entries.  Ignore errors in the
second address lookup.
(krb5_locate_srv_conf_1) [TEST]: More debugging code.

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

22 years agowhitespace
Ken Raeburn [Wed, 11 Sep 2002 08:13:45 +0000 (08:13 +0000)]
whitespace

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

22 years agoprotoize
Ken Raeburn [Wed, 11 Sep 2002 03:59:27 +0000 (03:59 +0000)]
protoize

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

22 years agoupdate dependencies
Ken Raeburn [Wed, 11 Sep 2002 03:05:06 +0000 (03:05 +0000)]
update dependencies

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

22 years agolog for last post.in change
Ken Raeburn [Wed, 11 Sep 2002 03:02:11 +0000 (03:02 +0000)]
log for last post.in change

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

22 years ago* Makefile.in (LOCALINCLUDES): Don't reference et directory.
Ken Raeburn [Wed, 11 Sep 2002 02:59:44 +0000 (02:59 +0000)]
* Makefile.in (LOCALINCLUDES): Don't reference et directory.
(dependencies updated)

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

22 years agoMove all depfix2.sed generation into depgen.sed, so ".." in $(srcdir) and
Ken Raeburn [Wed, 11 Sep 2002 02:58:24 +0000 (02:58 +0000)]
Move all depfix2.sed generation into depgen.sed, so ".." in $(srcdir) and
$(BUILDTOP) can be properly quoted, and won't match names like "ss".

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

22 years ago* Makefile.in (LOCALINCLUDES): Drop references to .. and et directories in
Ken Raeburn [Wed, 11 Sep 2002 02:40:54 +0000 (02:40 +0000)]
* Makefile.in (LOCALINCLUDES): Drop references to .. and et directories in
source and build trees.
(depend-prerecurse): Depend on 'includes'.

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

22 years agoTry a little harder to avoid returning e-text that says "Generic error (see
Ken Raeburn [Wed, 11 Sep 2002 01:12:53 +0000 (01:12 +0000)]
Try a little harder to avoid returning e-text that says "Generic error (see
e-text)" for out-of-range codes where we haven't explicitly decided to return a
vague error message.

* do_as_req.c (prepare_error_as): New argument, the error message text as
determined *before* possibly replacing the error code with "generic error".
(process_as_req): Fill it in based on 'status', or the error message
corresponding to the error code to be returned.
* do_tgs_req.c (prepare_error_tgs): New argument, the error message text as
determined *before* possibly replacing the error code with "generic error".
(process_tgs_req): Fill it in based on 'status', or the error message
corresponding to the error code to be returned.

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

22 years ago* network.c (process_packet): Call inet_ntop directly.
Ken Raeburn [Tue, 10 Sep 2002 23:40:02 +0000 (23:40 +0000)]
* network.c (process_packet): Call inet_ntop directly.
* sock2p.c: Deleted.
* Makefile.in (SRCS, OBJS): Drop it.

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

22 years agouse stdint.h and inttypes.h if available
Ken Raeburn [Thu, 5 Sep 2002 12:31:57 +0000 (12:31 +0000)]
use stdint.h and inttypes.h if available

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

22 years agoanother one
Ken Raeburn [Thu, 5 Sep 2002 06:45:18 +0000 (06:45 +0000)]
another one

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

22 years agoupdates: ANSI C; autoconf; TCP; --with-system-{et,ss}
Ken Raeburn [Thu, 5 Sep 2002 06:37:57 +0000 (06:37 +0000)]
updates: ANSI C; autoconf; TCP; --with-system-{et,ss}

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

22 years ago* rc_io.c (krb5_rc_io_move): Missed a variable name change
Ken Raeburn [Thu, 5 Sep 2002 06:36:49 +0000 (06:36 +0000)]
* rc_io.c (krb5_rc_io_move): Missed a variable name change

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

22 years ago* build.texinfo (Options to Configure): Update for new options
Ken Raeburn [Wed, 4 Sep 2002 00:07:46 +0000 (00:07 +0000)]
* build.texinfo (Options to Configure): Update for new options
--with-system-et, --with-system-ss, SS_DIR=.

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

22 years agoSupport SS_LIB=... at configure time
Ken Raeburn [Tue, 3 Sep 2002 23:18:41 +0000 (23:18 +0000)]
Support SS_LIB=... at configure time

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

22 years ago* libobj.in (.c.so, .c.po): Put LOCALINCLUDES before CPPFLAGS
Ken Raeburn [Tue, 3 Sep 2002 23:16:47 +0000 (23:16 +0000)]
* libobj.in (.c.so, .c.po): Put LOCALINCLUDES before CPPFLAGS

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

22 years ago* aclocal.m4 (KRB_INCLUDE): Put in-tree include dirs before previous contents of...
Ken Raeburn [Tue, 3 Sep 2002 22:31:16 +0000 (22:31 +0000)]
* aclocal.m4 (KRB_INCLUDE): Put in-tree include dirs before previous contents of CPPFLAGS

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

22 years ago* pre.in (ALL_CFLAGS): Put LOCALINCLUDES before CPPFLAGS
Ken Raeburn [Tue, 3 Sep 2002 22:30:44 +0000 (22:30 +0000)]
* pre.in (ALL_CFLAGS): Put LOCALINCLUDES before CPPFLAGS

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

22 years ago* foreachaddr.c: Include errno.h instead of declaring errno
Ken Raeburn [Tue, 3 Sep 2002 22:11:02 +0000 (22:11 +0000)]
* foreachaddr.c: Include errno.h instead of declaring errno

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

22 years ago* fake-addrinfo.h (gaiptr, faiptr, gniptr): Delete duplicate declarations
Ken Raeburn [Tue, 3 Sep 2002 22:10:47 +0000 (22:10 +0000)]
* fake-addrinfo.h (gaiptr, faiptr, gniptr): Delete duplicate declarations

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

22 years agoprotoize
Ken Raeburn [Tue, 3 Sep 2002 22:03:48 +0000 (22:03 +0000)]
protoize

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