krb5.git
23 years ago * krb.h: Add prototype for krb_sendauth()
Ezra Peisach [Mon, 11 Jun 2001 19:58:31 +0000 (19:58 +0000)]
* krb.h: Add prototype for krb_sendauth()

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

23 years ago * Makefile.in (MLIBS): Do not link against libgen.a for test
Ezra Peisach [Mon, 11 Jun 2001 19:56:05 +0000 (19:56 +0000)]
* Makefile.in (MLIBS): Do not link against libgen.a for test
programs. (only needed for krb5 an_to_ln code).

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

23 years ago * setenv.c: Add prototype for _findenv to avoid inconsistancy of
Ezra Peisach [Mon, 11 Jun 2001 16:14:23 +0000 (16:14 +0000)]
* setenv.c: Add prototype for _findenv to avoid inconsistancy of
static vs. extern.

* heuristic.c (find_either_ticket): Change krb5_tgtname() to
ksu_tgtname().

* ccache.c: Include <sys/types.h> and <sys/stat.h> for start()
prototype.

* krb_auth_su.c: Reindent for readability. Remove defunct
code. Change use of krb5_tgtname to ksu_tgtname().

* ksu.h: Include k5-util.h for krb5_seteuid() prototype. Add
prototype for ksu_tgtname. Add prototype for unsetenv() if not
defined.

* main.c: Include grp.h for initgroups() prototype. Cleanup
assignment in conditional warning. Reindent for
readability. Arguments to print_status made consistant with regard
to long vs. int. Change krb5_tgtname to ksu_tgtname. (do not use
an internal krb5 function that is not advertised).

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

23 years ago * str_conv.c: If strptime() is present on system without a
Ezra Peisach [Mon, 11 Jun 2001 15:18:40 +0000 (15:18 +0000)]
* str_conv.c: If strptime() is present on system without a
prototype, provide one.

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

23 years ago * configure.in: Test for strptime() prototype. Debian linux has
Ezra Peisach [Mon, 11 Jun 2001 15:17:54 +0000 (15:17 +0000)]
* configure.in: Test for strptime() prototype. Debian linux has
strptime in the C library but does not provide a prototype.

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

23 years ago * configure.in: Check for system provided getutmp() prototype
Ezra Peisach [Mon, 11 Jun 2001 15:16:42 +0000 (15:16 +0000)]
* configure.in: Check for system provided getutmp() prototype

* update_wtmp.c: Provide prototype for getutmp() if needed.

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

23 years ago * aclocal.m4 (KRB5_NEED_PROTO): Determines if the OS provides a
Ezra Peisach [Mon, 11 Jun 2001 15:14:32 +0000 (15:14 +0000)]
* aclocal.m4 (KRB5_NEED_PROTO): Determines if the OS provides a
prototype for a function - and if not, allows us to define it.

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

23 years ago * kinit.c (k4_begin): Cleanup assignment in conditional warning
Ezra Peisach [Mon, 11 Jun 2001 14:51:34 +0000 (14:51 +0000)]
* kinit.c (k4_begin): Cleanup assignment in conditional warning

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

23 years ago * kadm_supp.c: Include string.h for strncpy() prototype
Ezra Peisach [Mon, 11 Jun 2001 14:50:21 +0000 (14:50 +0000)]
* kadm_supp.c: Include string.h for strncpy() prototype

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

23 years ago * krshd.c: Include <grp.h>, <libpty.h>, and <sys/wait.h> for
Ezra Peisach [Mon, 11 Jun 2001 14:49:37 +0000 (14:49 +0000)]
* krshd.c: Include <grp.h>, <libpty.h>, and <sys/wait.h> for
initgroups(), pty_logwtmp()/pty_make_sane_hostname(), and wait()
prototypes. For local initgroups definition, conditionalize on
HAVE_INITGROUPS and not __SCO__.

* krcp.c: Include <sys/wait.h> for wait()/waitpid() prototype.

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

23 years ago * krb.h: Add "internal" prototypes cr_err_reply(), create_ciph(),
Ezra Peisach [Fri, 8 Jun 2001 20:27:29 +0000 (20:27 +0000)]
* krb.h: Add "internal" prototypes cr_err_reply(), create_ciph(),
krb_create_ticket(), krb5_cr_tkt_krb5(), krb_set_key_krb5().

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

23 years ago * cr_tkt.c (krb_create_ticket): Get rid of last argument (k5key)
Ezra Peisach [Fri, 8 Jun 2001 20:25:33 +0000 (20:25 +0000)]
* cr_tkt.c (krb_create_ticket): Get rid of last argument (k5key)
which was added erroneously and is not how code is used in tree.

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

23 years ago * configure.in: Test for existance of arpa/inet.h
Ezra Peisach [Fri, 8 Jun 2001 20:23:26 +0000 (20:23 +0000)]
* configure.in: Test for existance of arpa/inet.h

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

23 years ago * dumpv4.c: Pass C_Block * to des_read_password() as per prototype
Ezra Peisach [Fri, 8 Jun 2001 20:22:46 +0000 (20:22 +0000)]
* dumpv4.c: Pass C_Block * to des_read_password() as per prototype

* loadv4.c: Include k5-int.h before des.h for des_read_password
prototype. Pass C_Block * to des_read_password() as per prototype.

* kdb5_util.h: Add prototype for usage.

* kdb5_create.c, kdb5_destroy.c, kdb5_stash.c: Include kdb5_util.h
for usage() prototype.

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

23 years ago * ovsec_kadmd.c (main): Make format string to sprintf specify that
Ezra Peisach [Fri, 8 Jun 2001 20:22:00 +0000 (20:22 +0000)]
* ovsec_kadmd.c (main): Make format string to sprintf specify that
long arguments are present.

* kadm_rpc_svc.c: Include arpa/inet.h (if present) for inet_ntoa
prototype. Include adm_proto.h for krb5_klog_syslog() prototype.

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

23 years ago kdm_ser_wrap.c: Argument to quad_cksum is C_Block * - not C_Block.
Ezra Peisach [Fri, 8 Jun 2001 20:21:16 +0000 (20:21 +0000)]
kdm_ser_wrap.c: Argument to quad_cksum is C_Block * - not C_Block.
(kadm_ser_init): Declare as returning int.

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

23 years ago * kdc_preauth.c: Include adm_proto.h for krb5_klog_syslog()
Ezra Peisach [Fri, 8 Jun 2001 18:18:58 +0000 (18:18 +0000)]
* kdc_preauth.c: Include adm_proto.h for krb5_klog_syslog()
prototype.

* main.c: Include des.h for des_init_random_number_generator()
prototype.

* network.c: Include adm_proto.h for krb5_klog_syslog()
prototype. Pass kdc_context to krb5_klog_reopen().

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

23 years ago * v4gssftp.exp: During test, set KRB5CCNAME to a non-existant
Ezra Peisach [Fri, 8 Jun 2001 17:19:02 +0000 (17:19 +0000)]
* v4gssftp.exp: During test, set KRB5CCNAME to a non-existant
cache. Restore at end to previous setting. This prevents failures
caused when the krb5 cache contains valid information - as in the
case of this test being run immediately after the gssftp.exp test.

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

23 years ago * client.c: Include unistd.h for getopt() prototype
Ezra Peisach [Fri, 8 Jun 2001 16:12:07 +0000 (16:12 +0000)]
* client.c: Include unistd.h for getopt() prototype

* configure.in: Check for unistd.h.

* server.c: Include unistd.h for getopt() prototype. Fix
rpc_test_badauth() prototype to be consistant with error
handler. Declare main as returning int. If POSIX_SIGNALS is
defined, the handler expects an argument.

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

23 years ago * auth_gssapi.h: Rename prototypes from _svcauth_set_log_XXX_func to
Ezra Peisach [Fri, 8 Jun 2001 16:08:12 +0000 (16:08 +0000)]
* auth_gssapi.h: Rename prototypes from _svcauth_set_log_XXX_func to
_svcauth_gssapi_set_log_XXX_func to match code.

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

23 years ago * ad_print.c (ad_print): Cast arguments to printf() to longs to
Ezra Peisach [Fri, 8 Jun 2001 15:58:40 +0000 (15:58 +0000)]
* ad_print.c (ad_print): Cast arguments to printf() to longs to
match format string.

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

23 years ago * svr_principal.c (check_pw_reuse): Cleanup assignment in conditional
Ezra Peisach [Fri, 8 Jun 2001 15:57:43 +0000 (15:57 +0000)]
* svr_principal.c (check_pw_reuse): Cleanup assignment in conditional

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

23 years ago * tcl_kadm5.c: Cleanup assignments in conditionals
Ezra Peisach [Fri, 8 Jun 2001 15:53:45 +0000 (15:53 +0000)]
* tcl_kadm5.c: Cleanup assignments in conditionals

* test.c: Add prototype for Tcl_ovsec_kadm_init() and Tcl_kadm5_init().

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

23 years agoInclude unistd.h (if present) for getopt() prototype
Ezra Peisach [Fri, 8 Jun 2001 15:51:40 +0000 (15:51 +0000)]
Include unistd.h (if present) for getopt() prototype

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

23 years ago * main.c: Include unistd.h (if present) for getopt() prototype
Ezra Peisach [Fri, 8 Jun 2001 15:49:48 +0000 (15:49 +0000)]
* main.c: Include unistd.h (if present) for getopt() prototype

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

23 years ago * krb5-config.in (CC_LINK): Use ' vs " to prevent bash expansion of
Ezra Peisach [Fri, 8 Jun 2001 15:48:01 +0000 (15:48 +0000)]
* krb5-config.in (CC_LINK): Use ' vs " to prevent bash expansion of
variables.
(LIBS): Quote autoconf substitution in case of space being present.

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

23 years ago* gssftp.exp: Invocation of ftpd changed to use -U /dev/null and
Mitchell Berger [Fri, 8 Jun 2001 04:23:45 +0000 (04:23 +0000)]
* gssftp.exp: Invocation of ftpd changed to use -U /dev/null and
-a so that the test may successfully be run by root without failing
(i.e. root is granted ftp access) and without opening the running
ftpd to a password attack (i.e. authorization is required).
Check for successful login messages added.

* v4gssftp.exp: Same changes.

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

23 years ago* pathnames.h: _PATH_FTPUSERS renamed to _PATH_FTPUSERS_DEFAULT
Mitchell Berger [Fri, 8 Jun 2001 04:17:45 +0000 (04:17 +0000)]
* pathnames.h: _PATH_FTPUSERS renamed to _PATH_FTPUSERS_DEFAULT

* ftpd.c: Added '-U filename' option to allow specification of
an ftpusers file other than the default.

* ftpd.M: Documented the new -U option.

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

23 years ago * krb5.hin: Get rid of extraneous krb5_const before integer
Ezra Peisach [Thu, 7 Jun 2001 22:36:55 +0000 (22:36 +0000)]
* krb5.hin: Get rid of extraneous krb5_const before integer
arguments in prototypes for valid_enctype(), valid_cksumtype(),
is_coll_proof_cksum(), is_keyed_cksum(), krb5_encrypt_size(),
krb5_checksum_size(), krb5_verify_checksum() so they match the
existing code.

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

23 years ago * server.c (log_badauth_display_status_1): Do not assume that
Ezra Peisach [Thu, 7 Jun 2001 22:33:00 +0000 (22:33 +0000)]
* server.c (log_badauth_display_status_1): Do not assume that
gss_buffer_desc strings are '\0' terminated.

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

23 years ago * kerberos_v4.c: Get rid of file wide static krb5_error_code. Cast
Ezra Peisach [Thu, 7 Jun 2001 21:59:55 +0000 (21:59 +0000)]
* kerberos_v4.c: Get rid of file wide static krb5_error_code. Cast
argument to sleep to unsigned int.

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

23 years ago * acl_files.c, admin_server.c, kadm_funcs.c, kadm_ser_wrap.c:
Ezra Peisach [Thu, 7 Jun 2001 21:55:47 +0000 (21:55 +0000)]
* acl_files.c, admin_server.c, kadm_funcs.c, kadm_ser_wrap.c:
Explicitly declare function return types and cleanup assignments
in conditionals.

* kadm_server.c: Include kadm_server.h and cleanup assignments in
conditionals.

* kadm_server.h: Include kadm5/admin.h, kadm.h, krb_db.h for
structure defintions so that many prototypes may be added to this
file.

* kadm_stream.c: Include kadm_server.h for prototypes. Explicitly
declare functions as ints.
(stream_to_vals) Assumption made that pointer to long the same
size as krb5_ui_4 fixed.

* kadm_supp.c: Include sys/param.h early so that MAXHOSTNAMELEN is
not defined by kadm.h and later redefined. In prin_vals(),
key_high and key_low elements of the Kadm_vals structure are longs
- use an appropriate format to printf.

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

23 years ago * request_tbl.c (ss_add_request_table): Do not cast argument to
Ezra Peisach [Thu, 7 Jun 2001 17:59:39 +0000 (17:59 +0000)]
* request_tbl.c (ss_add_request_table): Do not cast argument to
realloc() to char *.

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

23 years ago * vfy_increds.c (krb5_verify_init_creds): Get rid of a variable
Ezra Peisach [Thu, 7 Jun 2001 17:51:04 +0000 (17:51 +0000)]
* vfy_increds.c (krb5_verify_init_creds): Get rid of a variable
that was set in a conditional and never used afterwards.

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

23 years ago * ktdefname.c (krb5_kt_default_name): Get rid of a variable that
Ezra Peisach [Thu, 7 Jun 2001 17:50:05 +0000 (17:50 +0000)]
* ktdefname.c (krb5_kt_default_name): Get rid of a variable that
was set in a conditional but never used.

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

23 years ago * ser_sctx.c (kg_oid_internalize): Do away with local variable
Ezra Peisach [Thu, 7 Jun 2001 17:48:07 +0000 (17:48 +0000)]
* ser_sctx.c (kg_oid_internalize): Do away with local variable
that was set but never used.

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

23 years ago * authenc.c (telnet_gets): Cleanup assignment in conditional
Ezra Peisach [Thu, 7 Jun 2001 17:40:17 +0000 (17:40 +0000)]
* authenc.c (telnet_gets): Cleanup assignment in conditional

* commands.c: Include sys/wait.h, libtelent/auth.h,
libtelnet/encrypt.h for prototypes. Explicity declare functions as
returning int. Assignments in conditionals cleanup.

* externs.h: Add numerous prototypes.

* ring.c (ring_init): Explicitly declare as returning int.

* ring.h: Add prototype for ring_at_mark().

* telnet.c: Include unistd.h, libtelnet/auth.h,
libtelnet/encrypt.h for prototypes. Delcare is_unique()
static. Fix up format string for sprintf() to expect
longs. Assignments in conditionals cleaned up.

* main.c, terminal.c: Include libtelnet/encrypt.h for prototype.

* utilities.c: Include sys/socket.h, libtelent/auth.h,
libtelnet/encrypt.h for prototypes.

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

23 years ago * ext.h: Remove unused prototype for start_slave() and replace
Ezra Peisach [Thu, 7 Jun 2001 17:05:31 +0000 (17:05 +0000)]
* ext.h: Remove unused prototype for start_slave() and replace
with one for startslave().

* state.c: Add libtlnet/encrypt.h for missing prototypes.

* sys_term.c: Add prototype for dup_tty(). Change getptyslave()
from int to void. Cleanup an assignment in conditional warning.

* telnetd.c: Include libtelnet/misc-proto.h. Declare return from
terminaltypeok() and main() as int.

* utility.c: Include libtelnet/auth.h and libtelnet/encrypt.h for
prototypes.

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

23 years ago * auth-proto.h: Add prototype for kerberos5_cleanup()
Ezra Peisach [Thu, 7 Jun 2001 17:00:34 +0000 (17:00 +0000)]
* auth-proto.h: Add prototype for kerberos5_cleanup()

* enc-proto.h: Add prototypes for encrypt_printsub(),
encrypt_request_sart(), encrypt_request_end(),
encrypt_enc_keyid()m encrypt_dec_keyid(), encrypt_support(),
encrypt_start(), encrypt_end().

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

23 years ago * k5-int.h: Remove AS_REP_105_SAM_COMPAT definition. Not used in
Ezra Peisach [Thu, 7 Jun 2001 15:17:19 +0000 (15:17 +0000)]
* k5-int.h: Remove AS_REP_105_SAM_COMPAT definition. Not used in
tree.  Remove SYSV redefinition of random() to rand() and
srandom() to srand(). Two locations in tree that might matter
already handled in configure. Unicos redefinition of utimes() to
utime() removed - appl/bsd has its own implementation.

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

23 years agoMakefile.in ($(srcdir)/krb5/autoconf.h.in): New target; rebuild using autoheader
Ken Raeburn [Wed, 6 Jun 2001 22:31:48 +0000 (22:31 +0000)]
Makefile.in ($(srcdir)/krb5/autoconf.h.in): New target; rebuild using autoheader

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

23 years agoaclocal.m4 (CONFIG_RULES): Set and substitute AUTOHEADER and AUTOHEADERFLAGS
Ken Raeburn [Wed, 6 Jun 2001 22:25:22 +0000 (22:25 +0000)]
aclocal.m4 (CONFIG_RULES): Set and substitute AUTOHEADER and AUTOHEADERFLAGS

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

23 years ago* pre.in (AUTOHEADER, AUTOHEADERFLAGS): New variables
Ken Raeburn [Wed, 6 Jun 2001 22:16:00 +0000 (22:16 +0000)]
* pre.in (AUTOHEADER, AUTOHEADERFLAGS): New variables

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

23 years ago * auth-proto.h: Add prototypes for getauthmask(), auth_enable,
Ezra Peisach [Wed, 6 Jun 2001 21:21:53 +0000 (21:21 +0000)]
* auth-proto.h: Add prototypes for getauthmask(), auth_enable,
auth_disable(), auth_onoff(), auth_togdebug(), auth_status(),
auth_name(), auth_sendname(), auth_debug(), and auth_printsub().

* auth.c: Include unistd.h and cleanup some assignments in
conditionals.

* auth.h: Explicitly declare auth_debug mode as an int.

* enc-proto.h: Add prototypes for EncryptDisable(), EncryptType(),
EncryptStart(), EncryptStartInput(), EncryptStartOutput(),
EncryptStop(), EncryptStopInput(), EncryptStopOutput(),
EncryptStatus(), encrypt_gen_printsub(), printsub().

* enc_des.c: Declare encrypt_debug_mode as int. Cleanup unused
variables and assignments in conditionals.

* encrypt.c: Include stdio.h for sprintf prototype. Cleanup
assignments in conditionals.

* getent.c: Conditionalize definition of some variables.

* kerberos5.c: Explicitly declare auth_debug_mode an int.

* misc-proto.h: Add prototype for auth_encrypt_user().

* misc.c: Include auth.h and encrypt.h for prototypes.

* misc.h: Add prototypes for isprfix(), genget(), Ambiguous().

* parsetos.c: Include stdlib.h for strtol() prototype.

* forward.c, kerberos.c, setenv.c: Assignment in conditional cleanup.

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

23 years agoFix up small typo in lat set of commits
Ezra Peisach [Wed, 6 Jun 2001 18:57:39 +0000 (18:57 +0000)]
Fix up small typo in lat set of commits

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

23 years ago * test.c (print_key): Pass in des_cblock* instead of char *.
Ezra Peisach [Wed, 6 Jun 2001 18:51:22 +0000 (18:51 +0000)]
* test.c (print_key): Pass in des_cblock* instead of char *.
(krb5_print_keyblock): Cast argument to C_Block_print to des_cblock *.
(krb4_print_ticket): For printf formats expecting a long, cast
arguments as such.

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

23 years ago * v4gssftp.exp: Allow for "decrypt integrity check failed" error
Ezra Peisach [Wed, 6 Jun 2001 18:41:24 +0000 (18:41 +0000)]
* v4gssftp.exp: Allow for "decrypt integrity check failed" error
minor code from GSSAPI as well.

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

23 years ago * ftpcmd.y: Include "ftpd_var.h" and remove prototype for reply()
Ezra Peisach [Wed, 6 Jun 2001 18:06:36 +0000 (18:06 +0000)]
* ftpcmd.y: Include "ftpd_var.h" and remove prototype for reply()
and lreply(). Add prototypes and declare as returning void
sizecmd(), help() and yylex(). Cleanup assignments in
conditionals.

* ftpd.c: Include <grp.h> for initgroups() prototype. Move
reply(), lreply() prototypes to ftpd_var.h (and include
same). Include "krb524.h" for krb524_convert_creds_kdc()
prototype. Include secure.h. Provide static prototypes for
ftpd_gss_convert_creds(), ftpd_gss_userok(), dolog(),
receive_data(), login(), end_login(), disallowed_user(),
restricted_user(), checkuser(). Declare main(), checkuser(),
disallowed_user(), restricted_user(), end_login(), kpass(),
retreive_data(), auth_data(), secure_printf(), ftpd_gss_userok(),
as returning int. Declare setdlevel(), user(), pass(), login(),
retreive(), store_file(), secure_error(), statfilecmd(),
stat_cmd(), fatal(), reply(), lreply(), ack(), nack(), yyerror(),
delete_file(), cwd(), makedir(), removedir(), pwd(), renamecmd(),
dolog(), dologout(), passive(), perror_reply(), auth(),
send_file_list(), reply_gss_error(), secure_gss_error(),
ftpd_gss_convert_creds(), as returning void. Cleanup printf
argument mismatches.

* ftpd_var.h: New header file with many prototypes from ftpd.c.

* popen.c (ftpd_popen): Add parenthesis in conditional to
distinguish || vs &&. Add prototype for blkfree().
(ftpd_pclose): Declare as returning int.

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

23 years ago* configure.in: Check for unistd.h.
Ken Raeburn [Tue, 5 Jun 2001 23:57:17 +0000 (23:57 +0000)]
* configure.in: Check for unistd.h.
* k524init.c: Only include unistd.h if it's available.

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

23 years ago* krb524d.c: Include stdarg.h.
Ken Raeburn [Tue, 5 Jun 2001 23:56:28 +0000 (23:56 +0000)]
* krb524d.c: Include stdarg.h.
(main): Accept new argument -p to indicate port number to use; fall back to
KRB524_SERVICE and then KRB524_PORT.  In error messages, use only part of
program name following last '/'.
(usage): Updated.
(krb5_free_keyblock_contents): Delete disabled function.

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

23 years ago client.c, server.c: Cleanup assignments in conditionals
Ezra Peisach [Tue, 5 Jun 2001 20:58:31 +0000 (20:58 +0000)]
 client.c, server.c: Cleanup assignments in conditionals

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

23 years ago * authorization.c, heuristic.c, krb_auth_su.c, main.c, setenv.c:
Ezra Peisach [Tue, 5 Jun 2001 16:53:24 +0000 (16:53 +0000)]
* authorization.c, heuristic.c, krb_auth_su.c, main.c, setenv.c:
Cleanup assignments in conditionals.

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

23 years ago * server.c (log_badauth_display_status_1): Need value element of
Ezra Peisach [Tue, 5 Jun 2001 16:31:48 +0000 (16:31 +0000)]
* server.c (log_badauth_display_status_1): Need value element of
gss_buffer_desc for printf.

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

23 years ago* client.c (main): Missing arguments to printf fixed
Ezra Peisach [Tue, 5 Jun 2001 16:27:38 +0000 (16:27 +0000)]
* client.c (main): Missing arguments to printf fixed

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

23 years ago * clnt_perror.c (clnt_spcreateerror): Enumerate missing cases in
Ezra Peisach [Tue, 5 Jun 2001 15:46:16 +0000 (15:46 +0000)]
* clnt_perror.c (clnt_spcreateerror): Enumerate missing cases in
switch.

* getrpcport.c: Include string.h for memmove() prototype and
pmap_clnt.h for pmap_getport() prototype.

* rpc_dtablesize.c (_gssrpc_rpc_dtablesize): Declare as returning int.
* get_myaddress.c (gssrpc_get_myaddress): Likewise.

* rpc_prot.c (gssrpc_xdr_accepted_reply, sunrpc_seterr_reply):
Enumerate missing cases for switch.
(rejected): Fix typo: RPC_VERMISMATCH -> RPC_MISMATCH for
enumerated switch.

   * svc_auth.c: Add braces to svcauthsw[] initialization.

* svc_simple.c: Include pmap_clnt.h for pmap_unset prototype.

* bindresvport.c, clnt_simple.c, clnt_tcp.c, clnt_udp.c, pmap_clnt.c,
pmap_getmaps.c, pmap_gtport.c, pmap_rmt.c, svc_tcp.c, svc_udp.c:
Include unistd.h for close() prototype.

* xdr.c (xdr_opaque): Specify internal buffer as ints.
(xdr_u_int32): Declare as returning bool_t.

* clnt_generic.c, rpc_callmsg.c, svc_auth_unix.c, xdr_mem.c:
Include string.h for memmove() prototype.

* xdr_rec.c: Include string.h for memmove() prototype. Add dummy
XDR_FREE cases for switches.

* xdr_reference.c (xdr_reference): Add XDR_ENCODE case. (gcc warning).
* xdr_array.c (xdr_array): Likewise.

* auth.h: Include gssrpc/xdr.h and provide prototype for
gssrpc_xdr_opaque_auth().

* auth_gssapi.h: Add prototypes for auth_gssapi_seal_seq() and
auth_gssapi_unseal_seq().

* clnt.h: Add prototype for _gssrpc_rpc_dtablesize().

* rpc.h: Add prototypes for gssrpc_get_myaddress() and
gssrpc_bindresvport().

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

23 years ago * misc.c, schpw.c: Cleanup assignments in conditionals
Ezra Peisach [Mon, 4 Jun 2001 21:26:34 +0000 (21:26 +0000)]
* misc.c, schpw.c: Cleanup assignments in conditionals

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

23 years ago * kadm5_create.c: Add prototype for static
Ezra Peisach [Mon, 4 Jun 2001 21:17:17 +0000 (21:17 +0000)]
* kadm5_create.c: Add prototype for static
add_admin_princs(). Cleanup calling of add_admin_princs() to be
consistant with prototype.

* kdb5_create.c, kdb5_stash.c, kdb5_destroy.c: Cleanup assignments
in conditionals.

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

23 years ago * k524init.c: Inculde unistd.h for getopt() prototype
Ezra Peisach [Mon, 4 Jun 2001 16:14:54 +0000 (16:14 +0000)]
* k524init.c: Inculde unistd.h for getopt() prototype

* test.c (do_remote): Comment out unused variables.

* sendmsg.c (krb524_sendto_kdc): Cleanup assignment in conditional.

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

23 years ago * kdc_util.c (add_to_transited): Add braces to provide unambiguous
Ezra Peisach [Mon, 4 Jun 2001 16:04:03 +0000 (16:04 +0000)]
* kdc_util.c (add_to_transited): Add braces to provide unambiguous
if - if - else statements.

* kdc_preauth.c (verify_sam_response): Cleanup assignments in
conditionals.
* main.c (main): Likewise.

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

23 years ago * krlogin.c: Always provide prototype for setsignal and not if
Ezra Peisach [Mon, 4 Jun 2001 15:58:40 +0000 (15:58 +0000)]
* krlogin.c: Always provide prototype for setsignal and not if
__STDC__ is defined.

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

23 years ago * logger.c (krb5_klog_init): Cleanup assignments in
Ezra Peisach [Mon, 4 Jun 2001 15:28:21 +0000 (15:28 +0000)]
* logger.c (krb5_klog_init): Cleanup assignments in
conditionals. Ensure that if hostname is MAXHOSTNAMELEN, buffer is
\0 terminated.

* str_conv.c (krb5_string_to_keysalts, krb5_keysalt_iterate):
Clean up assignments in conditionals.

* admin.h: Move kadm5_free_name_list() to version 1 api as it is
  present in the ovsec_glue layer.

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

23 years ago * svr_principal.c: Cleanup assignments in conditionals
Ezra Peisach [Mon, 4 Jun 2001 15:27:06 +0000 (15:27 +0000)]
* svr_principal.c: Cleanup assignments in conditionals

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

23 years ago * gss_libinit.c: Include gssapiP_krb5.h for kg_release_defcred()
Ezra Peisach [Mon, 4 Jun 2001 15:25:02 +0000 (15:25 +0000)]
* gss_libinit.c: Include gssapiP_krb5.h for kg_release_defcred()
  prototype.

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

23 years ago * accept_sec_context.c (krb5_gss_accept_sec_context): Cleanup
Ezra Peisach [Mon, 4 Jun 2001 15:23:41 +0000 (15:23 +0000)]
* accept_sec_context.c (krb5_gss_accept_sec_context): Cleanup
  assignments in conditionals.
* k5seal.c (make_seal_token_v1): Likewise.

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

23 years ago* init_ctx.c (get_profile_etype_list): Zero out multiple separator characters
Ken Raeburn [Sat, 2 Jun 2001 01:10:58 +0000 (01:10 +0000)]
* init_ctx.c (get_profile_etype_list): Zero out multiple separator characters
between tokens, so the second can be recognized properly.

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

23 years ago * login.c: Add braces around initializers. Cleanup assignments in
Ezra Peisach [Fri, 1 Jun 2001 22:01:12 +0000 (22:01 +0000)]
* login.c: Add braces around initializers. Cleanup assignments in
conditionals.  Include krb524.h if KRB4_CONVERT defined.

* krlogind.c (main): Cleanup unused variables.
(protocol): Cleanup ambiguous if-if-else warning.

* krshd.c (main): Cleanup unused variables.

* krlogin.c (setsignal): Declare as void.
(server_message): Cleanup unused variables.

* setenv.c (setenv): Declare as returning int and clean up
assignments in conditionals.

* kcmd.c (kcmd, rcmd_stream_init_krb5, v5_des_read): Clean up
unused variables and assignments in conditionals.
* forward.c (rd_and_store_for_creds): Likewise.
* krcp.c (rsource): Likewise.
* v4rcp.c (answer_auth): Likewise.

* krsh.c (main): Declare as retuning int.

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

23 years ago * g_krbrlm.c: Remove unused static variable krb_conf
Ezra Peisach [Fri, 1 Jun 2001 18:43:25 +0000 (18:43 +0000)]
* g_krbrlm.c: Remove unused static variable krb_conf

* g_svc_in_tkt.c (krb_svc_init, krb_svc_init_preauth): Declare as
returning int.

* gethostname.c: Include unistd.h for gethostname() prototype.

* getst.c: Include unistd.h for read() prototype.

* in_tkt.c (in_tkt): Cast arguments to debugging printf to int
from uid_t to match format statement.

* kname_parse.c: Declare k_isname() and k_isinst() as returning
int. Cleanup assigments in conditionals.

* kuserok.c (kuserok): Cleanup assignment in conditional.

* log.c (krb_set_logfile): Declare function as void.
* klog.c (kset_logfile): Likewise.

* pkt_clen.c (pkt_clen): Declare as returning int.
* kntoln.c (krb_kntoln): Likewise.
* fgetst.c (fgetst): Likewise.

* rd_req.c: Declare local variable only if KRB_CRYPT_DEBUG defined.

* recvauth.c: Include stdlib.h and unistd.h for read() and atoi()
prototypes.

* send_to_kdc.c: Include unistd.h for close() prototype.

* sendauth.c (krb_sendauth): Clean up assignment in conditional.

* tkt_string.c (tkt_string): Likewise

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

23 years ago * des.c (des_ecb_encrypt): Do not use a variable named "encrypt".
Ezra Peisach [Thu, 31 May 2001 17:47:51 +0000 (17:47 +0000)]
* des.c (des_ecb_encrypt): Do not use a variable named "encrypt".
* enc_dec.c (des_cbc_encrypt): Likewise.
* pcbc_encrypt.c (des_pcbc_encrypt): Likewise.

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

23 years ago* des.h: Do not use "encrypt" as an argument
Ezra Peisach [Thu, 31 May 2001 17:39:05 +0000 (17:39 +0000)]
* des.h: Do not use "encrypt" as an argument

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

23 years ago * k5_md4des.c (k5_md4des_verify): Get rid of local variable that
Ezra Peisach [Thu, 31 May 2001 17:38:03 +0000 (17:38 +0000)]
* k5_md4des.c (k5_md4des_verify): Get rid of local variable that
is assigned to, without side effects, but never used.
* k5_md5des.c (k5_md5des_verify): Likewise.

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

23 years ago * des.c (k5_des_docrypt): Do not use a variable named "encrypt"
Ezra Peisach [Thu, 31 May 2001 17:36:30 +0000 (17:36 +0000)]
* des.c (k5_des_docrypt): Do not use a variable named "encrypt"
* des3.c (k5_des3_docrypt): Likewise.

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

23 years ago * f_cbc.c (mit_des_cbc_encrypt): Do not use a variable named "encrypt".
Ezra Peisach [Thu, 31 May 2001 17:34:39 +0000 (17:34 +0000)]
* f_cbc.c (mit_des_cbc_encrypt): Do not use a variable named "encrypt".
* d3_cbc.c (mit_des3_cbc_encrypt): Likewise.

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

23 years ago * des_int.h (mit_des_cbc_encrypt, mit_des3_ecb_encrypt,
Ezra Peisach [Thu, 31 May 2001 17:15:50 +0000 (17:15 +0000)]
* des_int.h (mit_des_cbc_encrypt, mit_des3_ecb_encrypt,
mit_des3_cbc_encrypt): Don't use "encrypt" as argument name.

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

23 years ago * krb5-config.in: New script for providing linker and compiler
Ezra Peisach [Wed, 30 May 2001 18:44:44 +0000 (18:44 +0000)]
* krb5-config.in: New script for providing linker and compiler
information for applications.

* patchlevel.h: Update to current release. Mkrel script generates
this in distribtions.

* configure.in: Add support for parsing patchlevel.h into a
useable form for krb5-config. Generate krb5-config from
krb5-config.in. Add KRB5_BUILD_PROGRAM for variable substitution.

* Makefile.in: Add support for building and installing krb5-config.

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

23 years ago * krlogind.c (protocol): Don't do TIOCPKT on systems with STREAMS
Tom Yu [Fri, 25 May 2001 21:40:08 +0000 (21:40 +0000)]
* krlogind.c (protocol): Don't do TIOCPKT on systems with STREAMS
ptys, even if there is a TIOCPKT, since it may result in hangs on
some systems where BSD packet mode is (presumably) not implemented
properly, such as AIX 4.3.3.  Should get cleaned up at some later
point to actually I_PUSH "pckt" or equivalent and do translation
between STREAMS and BSD style packet mode.

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

23 years ago * aclocal.m4 (WITH_CC, WITH_CCOPTS): Autoconf 2.50 fix. Change
Ezra Peisach [Wed, 23 May 2001 22:16:00 +0000 (22:16 +0000)]
* aclocal.m4 (WITH_CC, WITH_CCOPTS): Autoconf 2.50 fix. Change
from define to AC_DEFUN. Autoconf warns of use of AC_REQUIRE
outside such as environment.

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

23 years ago * getpty.c: Make pty_getpty() into ptyint_getpty_ext(), which has
Tom Yu [Wed, 16 May 2001 02:55:51 +0000 (02:55 +0000)]
* getpty.c: Make pty_getpty() into ptyint_getpty_ext(), which has
an extra argument that determines whether to call grantpt() and
unlockpt() on systems that support it.  The new pty_getpty() will
simply call the extended version.  This is to support some
wackiness needed by pty_paranoia.c tests.

* pty-int.h: Add prototype for ptyint_getpty_ext().

* pty_paranoia.c: Add rant about ptys and quirks therein.  Needs
to be updated somewhat.  Add some more paranoia for the case where
we actually succeed in opening the slave of a closed master and
then succeed in opening the same master.  This program will get
rewritten at some point to actually see what things result in EOFs
and under what conditions data will actually get passed between
master and slave.

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

23 years ago* gss-server.c (usage): Fix usage info *again* to reflect that
Danilo Almeida [Tue, 15 May 2001 21:19:02 +0000 (21:19 +0000)]
* gss-server.c (usage): Fix usage info *again* to reflect that
service_name is required.

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

23 years ago * wrap_size_limit.c (krb5_gss_wrap_size_limit): Get rid of unused
Ezra Peisach [Mon, 14 May 2001 18:19:55 +0000 (18:19 +0000)]
* wrap_size_limit.c (krb5_gss_wrap_size_limit): Get rid of unused
variable.

* util_ctxsetup.c (kg2_parse_token): Fix erroneous assignment in
conditional. (code not used in current tree).

* util_seed.c, util_seqnum.c, util_crypt.c, util_cksum.c: Cleanup
up assignments in conditionals.

* ser_sctx.c (kg_queue_internalize): Get rid of unused variable.

* gssapiP_krb5.h: Renable prototype for krb5_gss_release_oid() as
code is back (since 1996).

* k5unseal.c (kg_unseal_v1): Declare internal function static.

* init_sec_context.c (make_ap_req_v2): Comment out non-referenced
function.

* gssapi_krb5.c: Include k5-int.h for krb5_ser_* prototypes.

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

23 years ago * defines.h: Fix k4cmd prototype to match kcmd.c
Tom Yu [Fri, 11 May 2001 03:42:35 +0000 (03:42 +0000)]
* defines.h: Fix k4cmd prototype to match kcmd.c

* kcmd.c (k4cmd): Fix to not use a narrow type.

* krlogin.c: Fix prototypes so they don't include narrow types.

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

23 years ago * pty_paranoia.c: New file; do many paranoid checks about ctty
Tom Yu [Fri, 11 May 2001 03:01:46 +0000 (03:01 +0000)]
* pty_paranoia.c: New file; do many paranoid checks about ctty
handling by the pty drivers.

* Makefile.in: Add rules for pty_paranoia and check-paranoia,
which runs pty_paranoia.

* configure.in: Define REVOKE_NEEDS_OPEN for Tru64.  Add support
for program building and run flags for the sake of pty_paranoia.

* open_slave.c: Fix somewhat; AIX doesn't like opening the ctty
twice, so only do initial open if we special-case it in
configure.in, e.g. for Tru64.

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

23 years ago * shlib.conf: Fix RUN_ENV for Irix. [pulled up from 1.2.2]
Tom Yu [Fri, 11 May 2001 02:14:03 +0000 (02:14 +0000)]
* shlib.conf: Fix RUN_ENV for Irix. [pulled up from 1.2.2]

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

23 years ago * logwtmp.c: Delete code under "#if 0". Fix reversed test for
Tom Yu [Wed, 9 May 2001 03:38:37 +0000 (03:38 +0000)]
* logwtmp.c: Delete code under "#if 0".  Fix reversed test for
loggingin.  Don't forget to set the ut_tv or ut_time for the
entry.

* update_utmp.c: Update rant about Tru64; remove fetching of
ut_user from old entry.  The existence of the old ut_user in the
logout entry in wtmp was confusing last.

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

23 years ago * disp_major_status.c (display_unknown): Remove unused variable
Ezra Peisach [Tue, 8 May 2001 17:10:18 +0000 (17:10 +0000)]
* disp_major_status.c (display_unknown): Remove unused variable

* util_token.c (g_make_token_header): Remove incorrect cast of
length argument to memcpy.

* oid_ops.c (generic_gss_str_to_oid): Cast argument of isxxx()
functions to int - avoids gcc warning when these are implemented
as macros indexing an array.

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

23 years ago* locate_kdc.c (add_host_to_list): Initialize stack variable err
Danilo Almeida [Tue, 8 May 2001 14:29:53 +0000 (14:29 +0000)]
* locate_kdc.c (add_host_to_list): Initialize stack variable err
which would otherwise get returned without being set in certain
circumstances.

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

23 years ago * cleanup.c: Call update_utmp() with the correct pid to assist in
Tom Yu [Tue, 8 May 2001 04:28:33 +0000 (04:28 +0000)]
* cleanup.c: Call update_utmp() with the correct pid to assist in
finding the old utmp entry.

* open_ctty.c: Reformat somewhat and revise comment.

* open_slave.c: Rework significantly.  Primarily, keep a fd open
to the slave if we need to reopen the slave device following
vhangup() or revoke(), to accommodate various OS quirks.

* update_utmp.c: Revise history section somewhat to document more
HP-UX brokenness.  Search via ut_pid before searching via
ut_line.  Copy stuff around because entuxent() will clobber some
things.

* void_assoc.c: Revise comment and reformat somewhat.

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

23 years ago* sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN is returned,
Ken Raeburn [Tue, 8 May 2001 04:22:23 +0000 (04:22 +0000)]
* sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN is returned,
as might happen if the DNS support is not enabled.

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

23 years ago* locate_kdc.c (add_sockaddr_to_list) [TEST]: If getnameinfo is available, use
Ken Raeburn [Tue, 8 May 2001 03:50:53 +0000 (03:50 +0000)]
* locate_kdc.c (add_sockaddr_to_list) [TEST]: If getnameinfo is available, use
it instead of inet_ntoa to get the printable address.
(add_host_to_list): Share declaration sections as much as possible.  Propagate
errors back correctly from gethostbyname path.

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

23 years ago * open_slave.c (pty_open_slave): If revoke() present on system but
Ezra Peisach [Fri, 4 May 2001 18:59:20 +0000 (18:59 +0000)]
* open_slave.c (pty_open_slave): If revoke() present on system but
VHANG_FIRST is not defined, declare local variable.

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

23 years ago * dump-utmp.c: Fix some off-by-one errors. Handle cases where we
Tom Yu [Fri, 4 May 2001 04:22:50 +0000 (04:22 +0000)]
* dump-utmp.c: Fix some off-by-one errors.  Handle cases where we
have utmpname() but not utmpname().

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

23 years ago * pty-int.h: Fix typo; VHANG_first -> VHANG_FIRST
Tom Yu [Fri, 4 May 2001 04:12:07 +0000 (04:12 +0000)]
* pty-int.h: Fix typo; VHANG_first -> VHANG_FIRST

* open_slave.c (pty_open_slave): Add workaround for Tru64 v5.0,
since its revoke() will fail if the slave isn't open already.

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

23 years ago * sane_hostname.c (pty_make_sane_hostname): Preserve const
Ezra Peisach [Thu, 3 May 2001 18:44:24 +0000 (18:44 +0000)]
* sane_hostname.c (pty_make_sane_hostname): Preserve const
property of incomming parameter in casts.

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

23 years ago * cleanup.c (pty_cleanup): Delcare local variable only if
Ezra Peisach [Thu, 3 May 2001 18:41:20 +0000 (18:41 +0000)]
* cleanup.c (pty_cleanup): Delcare local variable only if
VHANG_LAST defined.

* logwtmp.c (pty_logwtmp): Only declare local variables if
logwtmp() not available on system.

* sane_hostname.c (sockaddrlen): Only define static function if
HAVE_GETNAMEINFO defined. (pty_make_sane_hostname) Declare goto
target only if code compiled in.

gcc warning cleanups

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

23 years ago* update_utmp.c (pty_update_utmp): Fix typo (OWRONLY -> O_WRONLY)
Ken Raeburn [Wed, 2 May 2001 02:28:23 +0000 (02:28 +0000)]
* update_utmp.c (pty_update_utmp): Fix typo (OWRONLY -> O_WRONLY)

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

23 years agocmds.c: fix broken port number check
Ken Raeburn [Tue, 1 May 2001 22:46:11 +0000 (22:46 +0000)]
cmds.c: fix broken port number check

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

23 years ago* telnet.c (telnet): Fix grammar in some error messages
Ken Raeburn [Tue, 1 May 2001 22:39:38 +0000 (22:39 +0000)]
* telnet.c (telnet): Fix grammar in some error messages

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

23 years ago * update_wtmp.c (ptyint_update_wtmpx): Add missing semi-colon in
Ezra Peisach [Tue, 1 May 2001 14:59:25 +0000 (14:59 +0000)]
* update_wtmp.c (ptyint_update_wtmpx): Add missing semi-colon in
  code path if PTY_UTMP_E_EXIT and PTY_UTMPX_E_EXIT exist.

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

23 years ago * configure.in: Fix some quoting of shell variables when passing
Tom Yu [Mon, 30 Apr 2001 21:53:15 +0000 (21:53 +0000)]
* configure.in: Fix some quoting of shell variables when passing
to "test".  Reorder some logic in consistency checks to validate
cache variables against "yes" to account for possible empty or
nonexistent values.

* pty-int.h: Fix conditional prototype of update_wtmp().

* update_wtmp.c: Fix conditional compilation of update_wtmp() to
cover the case where we have setutxent() but don't have updwtmpx()
and WTMPX_FILE, as is the case on some Linux installations.

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

23 years ago * configure.in(K5_CHECK_UT_MEMBER): Fix typo in previous; make
Tom Yu [Sat, 28 Apr 2001 02:20:57 +0000 (02:20 +0000)]
* configure.in(K5_CHECK_UT_MEMBER): Fix typo in previous; make
sure to include the correct header when checking structure
members.

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

23 years ago * configure.in: Many changes to support the rewriting of the utmp
Tom Yu [Sat, 28 Apr 2001 02:05:38 +0000 (02:05 +0000)]
* configure.in: Many changes to support the rewriting of the utmp
pieces of libpty.  Do a large amount of checking for consistency
of various utmp and utmpx APIs as currently understood.  See rant
in update_utmp.c.

* dump-utmp.c: Rewrite; now has capability to use utmp{,x}name()
to extract entries from utmp and utmpx files.  Adjusts field
widths when printing as appropriate.

* libpty.h: Update call signature for update_utmp() and logwtmp();
make prototypes unconditional.

* logwtmp.c: Rewrite.  Use pututline() or pututxline() API
whenever possible.

* pty-int.h: Update call signatures for update_wtmp{,x}(); make
prototypes unconditional.

* sane_hostname.c: Use the autoconf-correct macro names.

* update_utmp.c: Rewrite.  Basically, use functions from the
pututline() or pututxline() API whenever possible, to avoid
lossage.  Inserted large rant about the conjectured history of BSD
utmp, sysV utmp, and utmpx, as well as documentation about some
known quirks.

* update_wtmp.c: Rewrite.  Add new function ptyint_logwtmpx() that
takes a utmpx rather than a utmp, so it can fail to lose data
converting to and from utmp.

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