Tom Yu [Fri, 22 Jun 2001 23:37:35 +0000 (23:37 +0000)]
* gssftp.exp: Use $tmppwd rather than hardcoding tmpdir
* kadmin.exp: Use $tmppwd rather than hardcoding tmpdir.
* rcp.exp: Use $tmppwd rather than hardcoding tmpdir.
* rsh.exp: Rearrange ordering of environment setup slightly.
* standalone.exp: Use $KLIST -5 -e so as to better debug enctype
problems.
* v4gssftp.exp: Do check_klogin as well as check_k5login. Use
$tmppwd rather than hardcoding tmpdir.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13501
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 22 Jun 2001 23:37:16 +0000 (23:37 +0000)]
* default.exp: Use the interface variable $TMPDIR to allow the
specification of an alternative temporary directory. Wrap a loop
around various testings and settings of interface variables that
specify the locations of programs to be tested, e.g. $KADMIND.
Add some support for having different sets of enctypes on client,
server, and kdc. The envstack changes and multiple config file
support should get cleaned up somewhat later to possibly allow for
programs to execute on different hosts.
(check_k5login): Fix up to reflect actual (perhaps bogus) behavior
of krb5_kuserok(), which doesn't do quite what we expect, so there
really does need to be something like "luser@KRBTEST.COM" in the
.k5login file.
(check_klogin): New procedure; .klogin also needs to be checked
for the v4gssftp test.
(envstack_push, envstack_pop): New procedure; keep a stack of
environment variable state, which is useful for running different
programs with different config files.
(setup_runtime_flags, setup_kerberos_env): Rewrite somewhat so
they play nice with the envstack.
(setup_krb5_conf): New procedure; write a config file with the
contents parameterized based on the type of program that will use
it.
(setup_kerberos_files): Create different krb5.conf files for
client, server, and kdc.
(setup_kadmind_srvtab, setup_kerberos_db, start_kerberos_daemons):
Rewrite to play nice with envstack.
(setup_root_shell_noremote): New procedure from raeburn; handle
the case where we're already running as root.
(setup_root_shell): Call setup_root_shell_noremote as appropriate.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13500
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 18:19:55 +0000 (18:19 +0000)]
* krb5.hin: Do not use "random_key" as argument name. When krb.h
included, it gets redefined. Do not use "options" either.
* k5-int.h (krb5_get_init_creds): Do not use "options" as argument
name.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13499
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 18:19:28 +0000 (18:19 +0000)]
* draft-ietf-cat-kerb-chg-password-02.txt: Describes protocol in
use by krb5_change_password().
* README: Describes which admin protocol is used with which server.
There is a newer draft of the password changing protocol out
(version 2 of the protocol) but we do not implement it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13498
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 17:50:01 +0000 (17:50 +0000)]
* krb.h: Don't use "options" and "user" as argument names
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13497
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 16:16:45 +0000 (16:16 +0000)]
* krlogind.c: Provide daemon prototype if needed
* configure.in: Test if prototype for daemon necessary.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13496
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 15:42:19 +0000 (15:42 +0000)]
* telnetd.c (main): Change variable sin to sin4.
(encrypt_failure): Change to not shadow global error_message.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13495
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 15:39:33 +0000 (15:39 +0000)]
* commands.c (tn): Change sin to sin4 to not shadow global
* authenc.c (telnet_gets): Change local variable prompt to tprompt
to not shadow global variable.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13494
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 15:35:07 +0000 (15:35 +0000)]
* enc_des.c: Change local variable index to idx to not shadown
global function.
* kerberos5.c (kerberos5_is): Change errbuf to kerrbuf to not
shadow previous local.
* kerberos.c (kerberos4_send): Change random_key to rand_key to
prevent redefine by des.h. Change auth to kauth to not shadow global.
(kerberos4_status): Change name to kname for same reason.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13493
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 15:16:32 +0000 (15:16 +0000)]
* ftpcmd.y (help): Change local variable type to ftype
* ftpd.c (main): Local variable name changes to prevent shadowing
of cp, sin, optarg.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13492
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 14:36:24 +0000 (14:36 +0000)]
* adm_conn.c (kadm_get_ccache): Cast return from getpid() to int
to match format.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13491
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 14:31:47 +0000 (14:31 +0000)]
* network.c (setup_port): Change sin to sin4 to prevent shadowing
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13490
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 11:29:34 +0000 (11:29 +0000)]
* ovsec_kadmd.c: Change prototype for process_chpw_request
prototype argument from sin to sockin. Get rid of global params
variable.
* schpw.c: Change function declaration as well.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13489
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 11:29:13 +0000 (11:29 +0000)]
* kdb5_util.c (main): Change optarg to koptarg to prevent
shadowing of getopt function.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13488
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 11:27:35 +0000 (11:27 +0000)]
* login.c: Much cleanup to reduce globals and shadowing
* krlogind.c (main): Change sin to sock_in.
* krshd.c: Change sin to sock_in to not shadow global. Change
some local variables to not shadow others.
2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13487
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 11:26:34 +0000 (11:26 +0000)]
* svc_simple.c (universal): Change transp to s_transp to not
shadow filewide static definition of name.
Move file wide definition of "pl" into respective functions.
* pmap_rmt.c: Change sin->sockin and socket->sock.
* pmap_getmaps.c, pmap_getport.c: Change socket to sock to not
shadow network function.
* bindresvport.c, clnt_generic.c: Change sin to sockin to not
shadow function declaration.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13486
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 11:25:31 +0000 (11:25 +0000)]
* libpty.h: Change variable line in prototype to tty_line to
prevent shadowing.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13485
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 11:23:34 +0000 (11:23 +0000)]
* accept_sec_context.c (krb5_gss_accept_sec_context): Do not
shadow local variable ptr.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13484
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 22 Jun 2001 11:23:02 +0000 (11:23 +0000)]
* util_validate.c (g_save): Cleanup extraneous variable from
last change.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13483
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Fri, 22 Jun 2001 07:51:38 +0000 (07:51 +0000)]
Cleanup usage of memory free routines:
* util_crypt.c (kg_encrypt, kg_decrypt): Use free() instead of
krb5_free_data_contents().
* util_cksum.c (kg_checksum_channel_bindings): Make sure that
returned memory is allocated with xmalloc() so that caller can use
xfree() on it.
* k5unseal.c (kg_unseal_v1): Use krb5_free_data_contents()
instead of xfree().
* k5seal.c (make_seal_token_v1): Use krb5_free_data_contents()
instead of xfree().
* init_sec_context.c (make_ap_req_v1): Use xfree() instead of
free() to be consistent with xmalloc() usage. Use
krb5_free_data_contents() instead of xfree().
* disp_name.c (krb5_gss_display_name): Use
krb5_free_unparsed_name() instead of xfree().
* add_cred.c (krb5_gss_add_cred): Use xfree() instead of free() to
be consistent with xmalloc() usage.
* accept_sec_context.c (krb5_gss_accept_sec_context): Remove
variables that were effectively unused. Use
krb5_free_data_contents() instead of xfree() where appropriate.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13482
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Fri, 22 Jun 2001 07:24:46 +0000 (07:24 +0000)]
* win-pre.in: Minimize printing of compiler command line during
build of a directory.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13481
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 22 Jun 2001 04:03:29 +0000 (04:03 +0000)]
* string2key.c (mit_des_string_to_key_int): Undo last change
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13480
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 22 Jun 2001 03:44:11 +0000 (03:44 +0000)]
new file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13479
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 22 Jun 2001 03:34:27 +0000 (03:34 +0000)]
vectors.c: New file. Test vectors, submitted for inclusion in RFC1510bis
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13478
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 22 Jun 2001 03:28:46 +0000 (03:28 +0000)]
* destest.c (value): Now signed int, since some entries are negative.
(convert): Do bounds checking on character values used as indices into value
array.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13477
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 22 Jun 2001 03:27:50 +0000 (03:27 +0000)]
update
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13476
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 22 Jun 2001 03:27:11 +0000 (03:27 +0000)]
* string2key.c (mit_des_string_to_key_int): Now static
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13475
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 22 Jun 2001 03:22:27 +0000 (03:22 +0000)]
* derive.c: provide krb5_derive_random, krb5_random2key a la rfc1510bis (not exported for now)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13474
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 22 Jun 2001 03:21:31 +0000 (03:21 +0000)]
* checksum.c (krb5_dk_make_checksum): Cast 0x99 to char explicitly to silence warnings
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13473
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Fri, 22 Jun 2001 03:08:00 +0000 (03:08 +0000)]
* win-pre.in, win-post.in: Improve output directory creation and cleanup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13472
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Fri, 22 Jun 2001 02:48:26 +0000 (02:48 +0000)]
* rc_io.c (krb5_rc_io_creat): Make cleanup code easier to read.
(krb5_rc_io_open_internal): Include code previously in
krb5_rc_open(). Add a new full pathname parameter so that a file
can be opened by its full pathname. Make cleanup code easier to
read.
(krb5_rc_io_open): Call krb5_rc_io_open_internal().
(krb5_rc_io_move): Fix Windows implementation so that it works
where it is used (only called by krb5_rc_dfl_expunge()).
(krb5_rc_io_sync): Fix function header to comply with coding
standard. Add implementation for Windows.
(krb5_rc_io_close): Close file descriptor only if it is not -1.
Set file descriptor to -1 if it is successfully closed.
* rc_dfl.c (krb5_rc_dfl_close_no_free): Leave file descriptor
check for krb5_rc_io_close().
(krb5_rc_dfl_expunge): Do better resource cleanup on error.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13471
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 22 Jun 2001 01:48:48 +0000 (01:48 +0000)]
drop a log entry for deleting an unused variable - ezra already did it, my log entry was stale
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13470
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 22 Jun 2001 01:47:29 +0000 (01:47 +0000)]
* adm_conn.c, kpasswd.c, srv_net.c: Changed various char string variables into
macros, for better format/argument checking under gcc.
* main.c (pwd_change): Use strncpy instead of sprintf to copy error message
text into buffer. Use goto rather than repeated code.
(main): Use %lx for params.mask. Make debug_level volatile. Delete unused
variables oldnames, rlen.
* srv_net.c (net_find_slave): Initialize "found".
(net_dispatch): Make "kret" volatile, so longjmp won't clobber it.
(net_slaves_active): Variable deleted.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13469
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 22:17:51 +0000 (22:17 +0000)]
* util_validate.c (g_validate, g_save, g_delete): If HAVE_BSD_TYPE
is not defined, declare static functions as taking a void *type for
passing to g_set_entry_add.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13468
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 22:13:14 +0000 (22:13 +0000)]
* test/dbtest.c: Cast argument to isspace() to int. Do not shadow
global variables type and flags.
* btree/bt_search.c, btree/bt_seq.c, recno/rec_search.c: Change
local variable index to idx.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13467
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 21:52:36 +0000 (21:52 +0000)]
* ftpd.c: If NEED_SETENV defined, prototype for setenv.
(auth_data): radix_encode expects a int * and not a size_t *. Use
temporary variable to pass data in and out.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13466
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 21:36:01 +0000 (21:36 +0000)]
* kadm_supp.c (prin_vals): Pass time_t * to localtime instead of
long *.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13465
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 18:39:21 +0000 (18:39 +0000)]
* forward.c: If NEED_SETENV defined, provide prototype for setenv
* configure.in: If compiling setenv.c, define NEED_SETENV.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13464
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 18:39:11 +0000 (18:39 +0000)]
* telnetd.c: Add prototypes for getent() and tgetent()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13463
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 18:28:32 +0000 (18:28 +0000)]
* configure.in: Test for parsetos() prototype and presence of
curses.h and term.h header files.
* telnet.c: Include term.h and curses.h if present for setupterm()
prototype.
* main.c: Declare prototype for parsetos() if needed.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13462
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 18:13:04 +0000 (18:13 +0000)]
* configure.in (SETENVOBJ): Define NEED_SETENV if compiling our own
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13461
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 18:12:51 +0000 (18:12 +0000)]
* ftpd.c: If NEED_SETENV defined, prototype for setenv
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13460
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 18:04:35 +0000 (18:04 +0000)]
* main.c: Add prototype for daemon if needed
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13459
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 18:02:57 +0000 (18:02 +0000)]
* ovsec_kadmd.c: Add prototype for daemon if needed
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13458
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 18:02:21 +0000 (18:02 +0000)]
* configure.in: Test system header files for daemon prototype
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13457
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 17:53:27 +0000 (17:53 +0000)]
* configure.in: Test for daemon prototype
* main.c: Provide daemon prototype if needed.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13456
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 17:51:20 +0000 (17:51 +0000)]
* configure.in: Test need for daemon prototype
* krb524d.c: Provide daemon prototype if needed.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13455
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 17:31:08 +0000 (17:31 +0000)]
* configure.in: Test if prototypes needed for setenv and unsetenv
* ext.h: Provide prototypes for unsetenv and setenv if needed.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13454
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 17:29:21 +0000 (17:29 +0000)]
* configure.in: Use optional argument to KRB5_NEED_PROTO so test
for swab existance removed.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13453
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 17:28:26 +0000 (17:28 +0000)]
* configure.in: Check for daemon() prototype
* kpropd.c: Provide prototype if needed.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13452
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 17:25:58 +0000 (17:25 +0000)]
* aclocal.m4 (KRB5_LIB_PARAMS): Display test for host type and
result so that "cached" is not simply output from configure.
(KRB5_NEED_PROTO): Add optional third argument, which if set means
to test for prototype even if configure script does not test for
function.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13451
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 14:25:10 +0000 (14:25 +0000)]
* main.c (get_params): Change optind to optindex to prevent
shadowing.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13450
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:47:55 +0000 (13:47 +0000)]
* kerberos5.c: Add prototype for rd_and_store_for_creds()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13449
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:47:15 +0000 (13:47 +0000)]
* ftpd.c: Include gssapi/gssapi_krb5.h for gss_krb5_copy_ccache
prototype. Provide prototype for yyparse.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13448
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:46:51 +0000 (13:46 +0000)]
* login.c (read_env_vars_from_file: Only define if
/etc/environment or /etc/timezone exists on machine.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13447
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:46:15 +0000 (13:46 +0000)]
* kdc_preauth.c: Include prototypes for mit_des_fixup_key_parity
and mit_des_is_weak_key here as no other "public" header file
defines it. Needed for return_sam_data() code.
* configure.in: Test for unistd.h and existance of swab() prototype.
* kerberos_v4.c: If swab() prototype needed, provide.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13446
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:44:04 +0000 (13:44 +0000)]
* admin_internal.h (_KADM5_CHECK_HANDLE): Change code to ecode
in blocked statement to prevent shadowing.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13445
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:42:41 +0000 (13:42 +0000)]
* t_nfold.c (main): Cast argument to printf to be consistant
with format.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13444
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:42:06 +0000 (13:42 +0000)]
* t_shs.c: Cast arguments to match printf format. Declare main
as returning int. Comment out unused variables.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13443
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:41:42 +0000 (13:41 +0000)]
* t_verify.c: Get rid of global variables i,j
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13442
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:41:21 +0000 (13:41 +0000)]
* verify.c (do_decrypt, do_encrypt): Cast argument to
des_ecb_encrypt to unsigned long *.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13441
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:41:03 +0000 (13:41 +0000)]
* t_std_conf.c (test_locate_kdc): Get rid of unused variable
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13440
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:40:49 +0000 (13:40 +0000)]
* chk_trans.c: Cast length arguments of %.*s in formats to int
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13439
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:39:26 +0000 (13:39 +0000)]
* error_message.c (error_message): Conditional label on _sgi so
gcc does not warn about being defined and not used.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13438
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 21 Jun 2001 13:39:10 +0000 (13:39 +0000)]
* btree/bt_delete.c, btree/bt_put.c, recno/rec_delete.c,
recno/rec_put.c: Change local variable index to idx.
* hash/hash_page.c: Change local variable stat to status to
prevent shadowing system function.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13437
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 21 Jun 2001 03:46:13 +0000 (03:46 +0000)]
oops, missed a change
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13428
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 21 Jun 2001 03:44:16 +0000 (03:44 +0000)]
* logger.c (krb5_klog_init) [HAVE_SYSLOG]: Loop over an array of syslog
facility names rather than open-coding each check. Add "authpriv" and "ftp"
names.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13427
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 21 Jun 2001 03:18:25 +0000 (03:18 +0000)]
fix salt length for afs case
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13426
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 21 Jun 2001 03:09:54 +0000 (03:09 +0000)]
delete some unnecessary casts
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13425
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 21 Jun 2001 03:03:51 +0000 (03:03 +0000)]
delete log entry for change i forgot to check in
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13424
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Wed, 20 Jun 2001 23:00:36 +0000 (23:00 +0000)]
* rc_dfl.c, rc_io.c: More compliance with coding standards: use
ANSI function declarations, use curly braces to fix up #ifdef
reindenting under Emacs, reindent code, strip trailing whitespace,
wrap lines, fix commans. Not finished: fix indenting of curly
braces in control structures.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13423
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 17:53:07 +0000 (17:53 +0000)]
* kcmd.c: Get rid of prototypes for krb5_write_message(),
krb5_net_write(), and krb5_net_read(). They are in krb5.h now.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13422
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 17:51:03 +0000 (17:51 +0000)]
* krb5.hin: Move prototypes for krb5_net_read() and
krb5_net_write() here.
* k5-int.h: From here.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13421
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 17:31:57 +0000 (17:31 +0000)]
* acquire_cred.c (acquire_init_cred): Include "k5-int.h" for
krb5int-cc_default() prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13420
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 17:26:56 +0000 (17:26 +0000)]
* server_internal.h: Add prototype for kdb_iter_entry()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13419
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 17:20:46 +0000 (17:20 +0000)]
* kname_parse.c (k_isrealm, k_isname, k_isrealm): Add
KRB5_DLLIMP/KRB5_CALLCONV definitions for function with exported
prototype in krb.h.
* g_cnffile.c (krb__get_srvtabname, krb__v5_get_file): Declare
argument as const.
* g_svc_in_tkt.c, put_svc_key.c, rd_req.c, rd_svc_key.c: Get rid
of krb__get_srvtabname() prototype - in krb.h now.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13418
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 17:20:26 +0000 (17:20 +0000)]
* krb.h: Add prototype for krb__get_srvtabname() which is invoked
in place of KEYFILE.
Add prototypes for krb_kntoln(), k_isinst(), k_isname(), k_isrealm().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13417
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 14:20:42 +0000 (14:20 +0000)]
Fix small stylistic typo
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13416
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 14:19:30 +0000 (14:19 +0000)]
* krb524d.c: Include <krb5/adm_proto.h> for krb5_log_init()
prototype.
(cleanup_and_exit) Conditionalize krb5_kt_close on keytab being
non-null.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13415
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 14:17:01 +0000 (14:17 +0000)]
* krb524d.c: Include <krb5/adm_proto.h> for krb5_log_init()
prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13414
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 14:15:33 +0000 (14:15 +0000)]
* kdb5_create.c: Include <krb5/adm_proto.h> for
krb5_keysalt_iterate() prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13413
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 14:09:33 +0000 (14:09 +0000)]
* t_std_conf.c (test_locate_kdc): Update to new krb5_locate_kdc
interface.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13412
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Jun 2001 11:24:40 +0000 (11:24 +0000)]
* Makefile.in (check-unix): Add $(RUN_SETUP) before invocation of
transit-tests for shared library environment variables.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13411
dc483132-0cff-0310-8789-
dd5450dbe970
Mitchell Berger [Wed, 20 Jun 2001 05:01:37 +0000 (05:01 +0000)]
Fixed several typos in comments
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13399
dc483132-0cff-0310-8789-
dd5450dbe970
Mitchell Berger [Wed, 20 Jun 2001 05:00:19 +0000 (05:00 +0000)]
Fixed a bunch of typos
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13398
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 20 Jun 2001 04:07:43 +0000 (04:07 +0000)]
New implementation of transited-realm checking, with some test cases. The test
cases currently check only t-r list expansion, not the validation step.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13397
dc483132-0cff-0310-8789-
dd5450dbe970
Mitchell Berger [Wed, 20 Jun 2001 04:06:14 +0000 (04:06 +0000)]
* api.0/init.exp: Silly typo fixed
* api.2/init.exp: Same silly typo fixed.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13396
dc483132-0cff-0310-8789-
dd5450dbe970
Mitchell Berger [Wed, 20 Jun 2001 04:01:59 +0000 (04:01 +0000)]
* server_dict.c: Silly typo fixed
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13395
dc483132-0cff-0310-8789-
dd5450dbe970
Mitchell Berger [Wed, 20 Jun 2001 03:58:06 +0000 (03:58 +0000)]
* krb524d.c: Call krb5_klog_init before the first point where the
klog facility may be used, delete ifdef'd out code to make that
call from later in the file, conditionalize kadm5_destroy on the
handle being non-null, and correct an indentation error.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13394
dc483132-0cff-0310-8789-
dd5450dbe970
Mitchell Berger [Wed, 20 Jun 2001 03:47:06 +0000 (03:47 +0000)]
* design.tex: Silly typo fixed
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13393
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 20 Jun 2001 03:45:17 +0000 (03:45 +0000)]
handle irix high-numbered error codes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13392
dc483132-0cff-0310-8789-
dd5450dbe970
Mitchell Berger [Wed, 20 Jun 2001 03:44:12 +0000 (03:44 +0000)]
* krb5.tex: Silly typo fixed
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13391
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 20 Jun 2001 00:00:05 +0000 (00:00 +0000)]
Use a "struct addrlist" instead of separate count and pointer-to-pointer values
for internal interfaces for looking up servers. Add a new routine to free the
addrlist contents, so that memory management can be changed in one place.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13390
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 19 Jun 2001 20:32:12 +0000 (20:32 +0000)]
* kdc_util.c (ktypes2str): New function; construct a string
containing a list of enctypes, given a number and list of
enctypes.
(rep_etypes2str): New function; construct a string indicating all
three enctypes associated with a KDC reply.
* kdc_util.h: Add prototypes for ktypes2str() and
rep_etypes2str().
* do_as_req.c (process_as_req): Call ktypes2str() and
rep_etypes2str() as appropriate.
* do_tgs_req.c (process_tgs_req): Call ktypes2str() and
rep_etypes2str() as appropriate.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13389
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 19 Jun 2001 17:43:43 +0000 (17:43 +0000)]
* ftpcmd.y: Cleanup potential ambiguity between comparsion and
pre-increment for a variable.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13388
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 19 Jun 2001 17:37:31 +0000 (17:37 +0000)]
pmap_prot2.c (xdr_pmaplist): Ensure variable set before use
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13387
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 19 Jun 2001 17:36:41 +0000 (17:36 +0000)]
* utility.c (printsub): Ensure variable set before use
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13386
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 19 Jun 2001 17:36:30 +0000 (17:36 +0000)]
telnet.c (telrcv): Ensure variable set before use
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13385
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 18 Jun 2001 20:27:09 +0000 (20:27 +0000)]
* encrypt.c (encrypt_is): Cast arguments to printf to match format
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13384
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 18 Jun 2001 20:26:06 +0000 (20:26 +0000)]
* dump.c (name_matches): Cleanup warning of assignments in
conditionals.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13383
dc483132-0cff-0310-8789-
dd5450dbe970