Ezra Peisach [Fri, 6 Jul 2001 19:50:03 +0000 (19:50 +0000)]
* configure.in: Check if prototype needed for herror()
* commands.c (ayt_status): Add explict return type (void or int)
depending on signal handler definition. Add prototype for herror
if system does not provide one.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13579
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 19:27:46 +0000 (19:27 +0000)]
* trval.c: Include string.h for strcmp prototype
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13578
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 19:27:30 +0000 (19:27 +0000)]
* resolve.c: Include stdlib.h (if present) for exit() prototype
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13577
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 18:26:50 +0000 (18:26 +0000)]
* sn2princ.c (krb5_sname_to_principal): Cast tolower argument to int
* hst_realm.c (krb5_get_host_realm): Cast argument to toupper and
tolower to int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13576
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 17:54:35 +0000 (17:54 +0000)]
* conv_princ.c (krb5_425_conv_principal): Cast argument to tolower
to int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13575
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 17:16:36 +0000 (17:16 +0000)]
* get_in_tkt.c: Include os-proto.h for _krb5_conf_boolean prototype
* Makefile.in (LOCALINCLUDES): Add -I$(srcdir)/../os so os-proto.h
can be included.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13574
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 16:57:47 +0000 (16:57 +0000)]
* hash/dbm.c: Include db-dbm.h for prototypes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13573
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 16:57:25 +0000 (16:57 +0000)]
* db-dbm.h: New header file which lists the dbm interfaces
* db-ndbm.h: Change prototype from dirinfo to dirfno which matches
code and ndbm API.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13572
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 15:51:22 +0000 (15:51 +0000)]
* sys_term.c (addarg): Cast char to long in indexing array
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13570
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 14:07:01 +0000 (14:07 +0000)]
* auth_unix.c: In case GETGROUPS_T is not defined, default to int
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13569
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Fri, 6 Jul 2001 00:30:32 +0000 (00:30 +0000)]
* shs.h, shs.c, t_shs.c: Fix sha1 on Windows by renaming LONG to
SHS_LONG to avoid problem with LONG being signed on Windows.
Rename BYTE to SHS_BYTE to avoid any name colisions with Windows
(where BYTE and LONG are types defined in the Platform SDK).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13568
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 00:18:48 +0000 (00:18 +0000)]
* Makefile.in: Link krshd with KRSHDLIBS instead of LOGINLIBS
* configure.in: Creare a new variable KRSHDLIBS which differs from
LOGINLIBS by not including libkrb524.a. Test for getenv.
* krcp.c: Prototype lostconn().
* krlogind.c: Provide prototype for signal handler cleanup. Implied
need to add extra argument to function - ensure consistant
calling.
* krsh.c: Provide prototype for signal handler sendsig.
* krshd.c: Rewrite error() to use stdargs/varargs.
(doit): When creating a tty name using getpid. Ensure that does
not overflow tty string buffer.
* login.c: Provide prototype for signal handler timedout.
* setenv.c: Do not define getenv() unless needed.
* v4rcp.c: Rewrite error() to use stdargs/varargs. Add signal
number argument to lostconn(), include prototype, and ensure
called consistantly.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13567
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 5 Jul 2001 22:35:47 +0000 (22:35 +0000)]
vectors.c: fix some compiler complaints
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13566
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 5 Jul 2001 20:35:31 +0000 (20:35 +0000)]
* aclocal.m4 (CHECK_WAIT_TYPE): Improved testing if wait uses int
or struct union as an argument. Tests if a prototype conflict
exists with int being used, and if so, falls back on the old test.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13565
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 5 Jul 2001 18:45:34 +0000 (18:45 +0000)]
* encrypt.c (encrypt_reply): Cast arguments to printf to match
format in debugging statments.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13564
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 5 Jul 2001 16:15:42 +0000 (16:15 +0000)]
* configure.in: Add AC_TYPE_GETGROUPS to determine argument to
getgroups.
* auth_unix.c (authunix_create_default): Use GETGROUPS_T array in
call to getgroups. Copy into array of int for call to
authunix_create. Note: If auth_unix protection ever used with this
code, we will need to cleanup assumptions in int being 32 bits in
OTW transfer of gids.
* clnt_tcp.c, svc_tcp.c: Change writetcp and readtcp to take char
* as first argument to be compatible with xdrrec_create.
* xdr.c (xdr_opaque): Cast argument in call to XDR_GETBYTES.
* svc.h: Add prototype for gssrpc_svcudp_enablecache.
* svc_auth_gssapi.c (_gssrpc_svcauth_gssapi): Change
_svcauth_gssapi to _gssrpc_svcauth_gssapi for consistancy.
* svc_auth.c: Move prototypes for _gssrpc_svcauth_{unix, null,
short, gssapi} to:
* svc_auth.h: here.
* svc_auth_unix.c: Update _gssrpc_svcauth_short and
_gssrpc_svcauth_unix to match prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13563
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 5 Jul 2001 15:19:27 +0000 (15:19 +0000)]
* rtest.c: Provide a prototype for krb5_klog_syslog() dummy handler
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13559
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 5 Jul 2001 11:32:15 +0000 (11:32 +0000)]
* ftpd.c: Provide prototypes for myoob and lostconn
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13558
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 5 Jul 2001 11:31:36 +0000 (11:31 +0000)]
* rc_io.c: Declare krb5_rc_io_open_internal static
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13557
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 5 Jul 2001 11:31:13 +0000 (11:31 +0000)]
* ser_sctx.c: Declare kg_oid_size and kg_queue_size static
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13556
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 5 Jul 2001 11:30:16 +0000 (11:30 +0000)]
* hash/hash_log2.c: Include hash.h, page.h and extern.h for
prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13555
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 4 Jul 2001 15:05:09 +0000 (15:05 +0000)]
* v4gssftp.exp, gssftp.exp: Test transfering a file > 1MB to
exercise PBSZ failure.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13554
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 4 Jul 2001 14:56:41 +0000 (14:56 +0000)]
* secure.c: Instead of hard wiring the FUDGE_FACTOR, new
variables to keep track of the total buffer length desired and
the actual maximum that can be fitted. Add
secure_determine_constants() to determine the mechanism
dependent overhead. This has a hard limit for krb4 - for
gssapi use gss_wrap_size_limit.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13553
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 3 Jul 2001 11:00:43 +0000 (11:00 +0000)]
* v4rcp.c, login.c: Fill in prototypes, declare many functions
static.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13550
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 3 Jul 2001 11:00:15 +0000 (11:00 +0000)]
* ftpd.c (sgetpwnam): Remove local declaration of sgetsave
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13549
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Mon, 2 Jul 2001 21:58:00 +0000 (21:58 +0000)]
* update_utmp.c (pty_update_utmp): Remember to chop off leading
"/dev/" for the non-sysV case. Handle lseek() returning non-zero
yet non-negative values (it usually does... :-), so that we can
actually write somewhere not at the beginning of the utmp file if
necessary.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13548
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 2 Jul 2001 20:03:06 +0000 (20:03 +0000)]
* rpc_test_svc.c: Change rpc_test_prog_1 to
rpc_test_prog_1_svc.
* rpc_test.h: Create prototypes for rpc_test_echo_1_svc and
rpc_test_prog_1_svc.
* server.c: Declare usage and handlesig static. Change
rpc_test_echo_1 to rpc_test_echo_1_svc and rpc_test_prog_1 to
rpc_test_prog_1_svc.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13547
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 2 Jul 2001 18:27:09 +0000 (18:27 +0000)]
* prof_int.h: Provide prototypes for profile_ser_size,
profile_ser_externalize, profile_ser_internalize.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13546
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 2 Jul 2001 17:40:32 +0000 (17:40 +0000)]
* popen.c: Include ftpd_var.h
* ftpd.c: Declare secure_fprintf, gunique, sgetsave, sgetpwnam,
path_expand static.
* ftpd_var.h: Add prototypes for getline, renamefrom, ftpd_popen,
ftpd_pclose.
* ftpcmd.y: Declare lookup, copy and urgsafe_getc static.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13545
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 2 Jul 2001 16:44:54 +0000 (16:44 +0000)]
* commands.c: Remove prototypes for EncryptAutoEnc(),
EncryptAuthDec(), EcnryptDebug(), EncryptVerbose() as they exists
in enc-proto.h in libtelnet.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13544
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 2 Jul 2001 16:42:37 +0000 (16:42 +0000)]
* krb5forw.h: File with prototype for rd_and_store_for_creds()
* kerberos5.c: Include krb5forw.h for rd_and_store_for_creds()
prototype which is removed from this file.
* forward.c: Include krb5forw.h for prototype.
* setenv.c: Include misc-proto.h for setenv/unsetenv prototypes.
* parsetos.c: Include misc-proto.h for parsetos prototype.
* misc-proto.h: Add prototype for parsetos(), setenv(), unsetenv()
as needed.
* kerberos5.c: Declare kerberos5_forward() static and flush out
prototype.
* gettytab.h: Flush out prototypes for getent() and getstr().
* getent.c: Include gettytab.h for prototypes.
* genget.c: Include misc.h for prototypes.
* enc_des.c: Add prototype for fb64_printsub.
* enc-proto.h: Add prototypes for encrypt_debug(),
finddecryption(), EncryptAuthEnc(), EncryptAutoDec(),
EncryptDebug(), EncryptVerbose().
* encrypt.c: Declare encrypt_list_types() and encrypt_keyid() static.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13543
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 2 Jul 2001 13:26:33 +0000 (13:26 +0000)]
* commands.c: Declare sourceroute() static
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13542
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 2 Jul 2001 10:45:38 +0000 (10:45 +0000)]
* commands.c: Declare local functions static
* main.c: Declare usage() static.
* ring.h: Provide full prototypes for ring_mark() and
ring_clear_mark().
* sys_bsd.c: Declare signal handler and NetNonblockingIO static.
* telnet.c: Declear gettermname() and mklist() static. Change
local variable timeout to tmie_out to avoid shadowing curses
header file.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13541
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 2 Jul 2001 10:45:21 +0000 (10:45 +0000)]
* state.c: Declate doclientstat() static and conditionalize
inclusion if LINEMODE defined.
* sys_term.c: Declare getptyslave() and addard() static.
* telnetd.c: Declare _gettermname() and getterminaltype()
static.
* utility.c: Declare putstr() and nextitem() static.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13540
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 1 Jul 2001 11:45:32 +0000 (11:45 +0000)]
* kadm_server.h: Add prototypes for missing acl_ functions
* admin_server.c, kadm_func.c: Declare functions static that are
local to file.
* acl_files.c: Include kadm_server.h for prototypes. Flush out
static prototype for acl_abort.
* kadm_supp.c: Include kadm_server.h for prototypes.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13539
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 1 Jul 2001 11:45:10 +0000 (11:45 +0000)]
* tcl_kadm5.h: File with prototypes for Tcl_kadm5_init and
Tcl_ovsec_kadm_init.
* tcl_kadm5.c: Include tcl_kadm5.h. Declare
tcl_kadm5_{rename,chpass,get}_principal,
tcl_kadm5_chpass_principal_util, tcl_kadm5_randkey_principal,
tcl_kadm5_{create,delete,modify,get}_policy,
tcl_kadm5_free_{principal,policy}_ent, tcl_kadm5_get_privs as
static.
* test.c, tcl_ovsec_kadm.c: Include tcl_kadm5.h.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13538
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 1 Jul 2001 11:42:53 +0000 (11:42 +0000)]
* misc.c, server_stubs.c: Nuke rcsid
* misc.h: Add prototypes for kadm_1 and process_chpw_request.
* ovsec_kadmd.c: Include misc.h and remove prototype for
process_chpw_request and kadm_1.
* kadm_rpc_svc.c, schpw.c: Include misc.h for prototypes.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13537
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 1 Jul 2001 11:39:38 +0000 (11:39 +0000)]
* nstrtok.h: New file with prototype for nstrtok
* ovload.c: Include nstrtok.h
* strtok.c: Include nstrtok.h for prototype. Declare delim as
const char * argument. Delete rcsid.
* string_table.c: Delete rcsid.
* kadm5_create.c (build_name_with_realm): Declare static.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13536
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 30 Jun 2001 02:57:51 +0000 (02:57 +0000)]
* init_ctx.c (get_profile_etype_list): Fix etype-counting loop so
that trailing separator characters (as in the DEFAULT_ETYPE_LIST)
don't cause another iteration, which was causing the following
loop to fall off the end of the string due to count being one too
great.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13532
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 30 Jun 2001 00:06:32 +0000 (00:06 +0000)]
* configure.in: Add check for ifaddrs.h, which missing
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13531
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 28 Jun 2001 23:00:46 +0000 (23:00 +0000)]
* chk_trans.c (foreach_realm): Cleanup loal variable set but never
used.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13529
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 28 Jun 2001 20:46:58 +0000 (20:46 +0000)]
* auth.h: Provide full prototype for xdr_des_block
* auth_gssapi.h: Complete prototypes for
_svcauth_gssapi_unset_names().
* clnt.h: Prototype dispatch functions and all functions.
* clnt_perror.c: Prototype static auth_errmsg().
* clnt_raw.h clnt_tcp.c, clnt_udp.c: Provide prototypes to static
functions and match dispatch table prototypes. control function
takes void * instead of caddr_t.
* pmap_rmt.c: Move prototype for resultproc_t to pmap_clnt.h.
* rpc.h: get_myaddress returns int. Add prototypes for callrpc and
getrpcport.
* rpc_commondata.c (rpc_createerr): When initializing rpc_creaerr
use RPC_SUCCESS instead of 0.
* get_myaddress.c, rpc_dtablesize.c: Include gssrpc/rpc.h for
prototype.
* pmap_clnt.h, pmap_prot.h, pmap_rmt.h, rpc_msg.h: Full prototypes
for all functions.
* svc.c: Provide full prototype for static function.
* svc.h: Prototypes for dispatch functions added. Flushed out
prototypes for all functions missing prototypes. Added prototype
for svcfd_create.
* svc_auth.c: Prototypes for all functions referenced.
* svc_auth.h: Prototype dispatch functions to svc_auth_ops.
* svc_auth_any.c: Replace use of authany_wrap() with a new local
function that matches svc_auth_ops dispatch table.
* svc_simple.c: Provide prototype for static function
universal. Fill in missing types of parameters to
gssrpc_registerrpc.
* svc_raw.c svc_tcp.c, svc_udp.c: Provide prototypes for static
functions and match prototypes in dispatch table. Change getargs
and freeargs argument to void * from caddr_t.
* xdr.c (xdr_void): Function to match prototype of arguments given.
* xdr.h: Provide full prototypes for xdr_ops dispatch table and
xdr_void().
* svc_auth_gssapi.c, xdr_alloc.c, xdr_mem.c, xdr_rec.c,
xdr_stdio.c: Provide protypes for static functions and match
dispatch tables.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13528
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 28 Jun 2001 19:02:04 +0000 (19:02 +0000)]
* krb4int.h: Provide prototype for krb_get_default_user and
krb_set_default_user if _WINDOWS is not defined. There is a
conditional prototype in krb.h for them.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13527
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 28 Jun 2001 14:53:38 +0000 (14:53 +0000)]
oops, forgot to save fixed version
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13526
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 28 Jun 2001 12:35:20 +0000 (12:35 +0000)]
misc cleanup in dump-utmp
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13525
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 28 Jun 2001 12:20:34 +0000 (12:20 +0000)]
* update_utmp.c (pty_update_utmp): Don't copy host if it's a null pointer
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13524
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 27 Jun 2001 21:16:13 +0000 (21:16 +0000)]
*bindresvport.c: Include gssrpc/rpc.h for prototype
* auth_unix.h: Expand prototype for xdr_authunix_params to include
arguments.
* auth_gssapi.h: Give full prototypes for xdr_gss_buf,
xdr_authgssapi_creds, xdr_authgssapi_init_arg and
xdr_authgssapi_init_res.
* auth_gssapi.c, auth_none.c, auth_unix.c: For struct AUTH
disptach functions, provide full prototypes and ensure consistant
usage in functions
* auth.h: Provide prototypes dispatch functions in struct
AUTH. Give a forward declaration of struct rpc_msg. Change
duplicate definitions of AUTH_WRAP and AUTH_UNWRAP into auth_wrap
and auth_unwrap. Give full prototype for authany_wrap.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13521
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 27 Jun 2001 11:21:18 +0000 (11:21 +0000)]
* compat_recv.c: Flush out prototype for static krb_v4_recvauth
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13518
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 27 Jun 2001 11:20:33 +0000 (11:20 +0000)]
* krb4int.h: Add prototypes for ad_print, krb_svc_init,
krb_svc_init_preauth, krb_get_svc_in_tkt_preauth, kset_logfile,
krb_log, krb_set_logfile, krb_set_lifetime, month_sname,
krb_rd_preauth, krb_net_rd_preauth, krb_net_rd_sendauth,
krb_stime, krb_start_session, krb_end_session,
krb_get_default_user, krb_set_default_user.
* ad_print.c, g_svc_in_tkt.c, klog.c, log.c, mk_req.c,
month_sname.c, rd_preauth.c, sendauth.c, stime.c, unix_glue.c:
Include krb4int.h for prototypes.
* decomp_tkt.c: Include krb54proto.h for decomp_tkt_krb5()
prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13517
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 27 Jun 2001 11:20:08 +0000 (11:20 +0000)]
* klog.h: Flush out prototype for klog()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13516
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 27 Jun 2001 03:47:04 +0000 (03:47 +0000)]
* gssapi.hin, gssapi_generic.h, gssapi_generic.c:
added oids from rfc 2744. Kept old oids for compatibility.
[pullup of lxs's changes]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13515
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 26 Jun 2001 21:10:17 +0000 (21:10 +0000)]
* server_glue_v1.c: Include misc.h for prototypes
* ovsec_kadmd.c: Declare usage() and display_status() static.
Flush out static prototype for display_status_1().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13514
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 26 Jun 2001 20:44:39 +0000 (20:44 +0000)]
* user-guide.texinfo, install.texinfo: Cleanup makeinfo warning of
not having `.' or `,' after @xref.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13513
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 26 Jun 2001 20:35:59 +0000 (20:35 +0000)]
* krb4int.h: Add prototypes for krb__get_realmsfile(),
krb5 prototypes are declarted from krb.hkrb__get_cnffile() and
krb5 prototypes are declarted from krb.hk_gethostname().
* g_pw_in_tkt.c: Declare passwd_to_key() static.
* cr_tkt.c: Move krb5.h inclusion before krb.h so that certain
krb5 prototypes are declarted from krb.h.
* g_admhost.c, g_cnffile.c, g_krbhst.c, g_krbrlm.c,
gethostname.c
krb5 prototypes are declarted from krb.hrealmofhost.c:
Include krb4int.h and remove prototypes included in there.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13512
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 26 Jun 2001 20:35:31 +0000 (20:35 +0000)]
* conv_creds.c: Nuke prototype in file
* krb524.h: Replace profile for krb524_send_message() with
krb524_sendto_kdc(). (krb524_send_message no longer exists).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13511
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 26 Jun 2001 20:35:08 +0000 (20:35 +0000)]
* authorization.c (find_first_cmd_that_exists): Change xmalloc()
to xcalloc() where was intented in code (two arguments to
xmalloc).
* ksu.h: Provide full prototypes for xmalloc(), xrealloc(),
xcalloc(), and xstrdup().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13510
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 26 Jun 2001 20:26:53 +0000 (20:26 +0000)]
* prot.h: Flush out prototypes for create_auth_reply(),
pkt_cipher().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13509
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 26 Jun 2001 20:24:43 +0000 (20:24 +0000)]
* getdate.y: Provide full prototype for getdate_yylex() and
getdate_yyerror().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13508
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 26 Jun 2001 19:59:45 +0000 (19:59 +0000)]
* str_conv.c (krb5_string_to_keysalts): When parsing string, allow
for extra separator characters (like spaces) between keysalts.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13507
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 23 Jun 2001 03:14:08 +0000 (03:14 +0000)]
* ccache.tex (krb5_cc_default): Fix "equivalent to" example code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13502
dc483132-0cff-0310-8789-
dd5450dbe970
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