Ezra Peisach [Wed, 25 Jul 2001 10:23:36 +0000 (10:23 +0000)]
* in_tkt_sky.c (krb5_get_in_tkt_with_skey): Change cast from
krb5_pointer to krb5_const_pointer to ensure const integrity of
parameter.
* in_tkt_ktb.c (keytab_keyproc): Add const argument to cast of
keyseed to struct keytab_keyproc_arg to maintain const status.
* conv_princ.c (krb5_524_conv_principal): Cast argument to
memcpy to size_t.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13636
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 25 Jul 2001 10:23:07 +0000 (10:23 +0000)]
* asn1_k_encode.c: (asn1_encode_predicted_sam_response): Use
asn1_encode_charstring() instead of asn1_decode_octetstring()
for krb5_data. (signed vs. unsigned)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13635
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Tue, 24 Jul 2001 20:29:38 +0000 (20:29 +0000)]
2001-07-24 Jeffrey Altman <jaltman@columbia.edu>
* def_realm.c:
krb5_get_default_realm() required a profile file
even when KRB5_DNS_LOOKUP was defined.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13634
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Tue, 24 Jul 2001 20:28:54 +0000 (20:28 +0000)]
2001-07024 Jeffrey Altman <jaltman@columbia.edu>
* win-pre.in: the proper #define is KRB5_DNS_LOOKUP_REALM
and not KRB5_DNS_LOOKUP_REALMS
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13633
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 24 Jul 2001 04:05:35 +0000 (04:05 +0000)]
* configure.in: Add check for getev() to avoid problems when
building setenv.c from appl/bsd.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13632
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 24 Jul 2001 04:04:56 +0000 (04:04 +0000)]
* getpass.c: Remove duplicate definitions of sig_t, my_sig_t;
they're already declared in ftp_var.h.
* ftp_var.h (FDOPEN_SOCKET): Fix second arg.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13631
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Tue, 24 Jul 2001 01:20:32 +0000 (01:20 +0000)]
* Makefile.in: Build gssftp client on Win32
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13630
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Tue, 24 Jul 2001 01:18:48 +0000 (01:18 +0000)]
* win-pre.in, win-post.in: Move rule-printing code to win-post.in
so we get the correct build options displayed (i.e., the options
as they stand after parsing Makefile.in).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13629
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Tue, 24 Jul 2001 01:07:16 +0000 (01:07 +0000)]
* Makefile.in, cmds.c, ftp.c, ftp_var.h, getpass.c, glob.c,
main.c, ruserpass.c, secure.c, secure.h: Quick and dirty Win32
port. Changes include using sockets more portably; changing the
method of getting username, home directory, and temporary
filenames; adding password reading code for Win32; directory
enumeration via FindNextFile() rather than readdir(); removing OUT
labels (which appear to cause problems with MSVC++ 6.0). Since
ANSI C, assume we have stdarg.h.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13628
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 23 Jul 2001 22:03:28 +0000 (22:03 +0000)]
* setenv.c: Include stdlib.h, provide prototypes for setenv and
unsetenv before declaration.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13627
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 23 Jul 2001 21:58:57 +0000 (21:58 +0000)]
* setenv.c (setenv): Include stdlib.h for malloc prototypes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13626
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 23 Jul 2001 21:50:37 +0000 (21:50 +0000)]
* sys_term.c (startslave): Get rid of extra argument in call to
getptyslave().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13625
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 23 Jul 2001 21:50:24 +0000 (21:50 +0000)]
* enc_des.c (fb64_start): Remove variable set but never used
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13624
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 23 Jul 2001 21:47:11 +0000 (21:47 +0000)]
* t_imp_name.c (display_status_1): Remove variable that was set
but never used.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13623
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 20 Jul 2001 22:58:02 +0000 (22:58 +0000)]
* fake-addrinfo.h: Include port-sockets.h instead of system header files; should fix Windows build
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13622
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 19 Jul 2001 20:59:13 +0000 (20:59 +0000)]
* xdr_mem.c: Do not assume that XDR x_private field is char *
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13621
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 19 Jul 2001 20:41:30 +0000 (20:41 +0000)]
* auth.h: AUTH ah_private structure element changed to void *
* clnt.h: CLIENT cl_private structure element changed to type void *.
* svc.h: SVCXRPT elements xp_p1 and xp_p2 changed to void * from
caddr_t.
* svc_udp.c: su_cache element of svcudp_data from caddr_t to void *.
* clnt_tcp.c, svc_tcp.c (writetcp, readtcp): Cleanup alignment
warning in casts.
* types.hin (mem_alloc): Do not cast type of malloc to char *.
* xdr.h: Change type of x_private of XDR from caddr_t to void *.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13620
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 16:40:52 +0000 (16:40 +0000)]
* fake-addrinfo.h (translate_h_errno): Supply a default value in case some
unrecognized code is returned.
(HAVE_GETNAMEINFO): Undefine before defining, just in case.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13618
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 14:17:19 +0000 (14:17 +0000)]
* hostaddr.c: Include fake-addrinfo.h.
(FAI_PREFIX): Define macro.
(krb5_os_hostaddr): Use getaddrinfo, to get ipv6 support and thread safety.
Support numeric addresses as well.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13617
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 14:03:13 +0000 (14:03 +0000)]
* klist.c (one_addr): Pass UNIX address family, not Kerberos address type, to
inet_ntop. Print different messages for unknown address types and known
address types we don't know how to print (e.g., AF_INET6 without inet_ntop).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13616
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 12:24:31 +0000 (12:24 +0000)]
* prof_tree.c (struct profile_iterator): Member "names" now points to const.
(profile_node_iterator_create): Argument "names" now points to const.
(profile_node_iterator): Local variable "cpp" now points to const.
* prof_int.h (profile_node_iterator_create): Decl updated.
* prof_get.c (profile_get_values): Argument "names" now points to const.
* profile.hin (profile_get_values): Decl updated.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13615
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 11:44:26 +0000 (11:44 +0000)]
New utility program.
* t_locate_kdc.c: New file.
* Makefile.in (t_locate_kdc.o, t_locate_kdc): New targets.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13614
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 11:41:24 +0000 (11:41 +0000)]
* locate_kdc.c: Include fake-addrinfo.h.
(FAI_PREFIX, FAI_IMPLEMENTATION): Define macros.
(get_port, add_sockaddr_to_list, add_host_to_list): Drop
gethostbyname/getservbyname support, always use getnameinfo, which should be
thread-safe.
(translate_ai_error, set_port_num): Now always defined.
(set_port_num): Only check for AF_INET6 if KRB5_USE_INET6.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13613
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 11:36:05 +0000 (11:36 +0000)]
prefer inet_addr over inet_aton
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13612
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 11:21:34 +0000 (11:21 +0000)]
delete stuff accidentally committed early
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13611
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 11:20:46 +0000 (11:20 +0000)]
drop temporary sunos4 hacks
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13610
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 11:16:52 +0000 (11:16 +0000)]
move krb5_os_hostaddr decl from krb5.hin to k5-int.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13609
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 11:15:35 +0000 (11:15 +0000)]
* fake-addrinfo.h: New file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13608
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 19 Jul 2001 09:54:00 +0000 (09:54 +0000)]
* des.c (des_ecb_encrypt): Put "static" before "const" for local variable "iv"
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13607
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 16 Jul 2001 21:16:22 +0000 (21:16 +0000)]
* string_table.c (str_INITING_KCONTEXT): Variable deleted.
* string_table.h (str_INITING_KCONTEXT): Declaration deleted.
* kadm5_create.c (kadm5_create, kadm5_create_magic_princs): Don't use
str_INITING_KCONTEXT, instead provide (different!) messages more appropriate to
the actual code.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13606
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 16 Jul 2001 20:25:15 +0000 (20:25 +0000)]
* t_shs3.c: New test file from Marcus Watts.
(longReverse): Resurrected function long since deleted from shs.c.
* Makefile.in (check-unix, check-windows): Use t_shs3 test.
(clean): Delete it.
* shs.c (SHSTransform): Make input data pointer point to const.
(SHSUpdate): Bugfixes suggested by Marcus Watts, to fix buffer overruns, bugs
with small or odd block sizes.
[mostly pr krb5-libs/626]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13605
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 14 Jul 2001 11:21:03 +0000 (11:21 +0000)]
* v4rcp.c (kstream_create_rcp_from_fd, kstream_create_from_fd): Allocate
correct amount of space for kstream data. (Patch from Cygnus KerbNet code,
1997.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13604
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 9 Jul 2001 19:01:59 +0000 (19:01 +0000)]
* admin_server.c: Provide prototype for do_child and declare static
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13597
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 9 Jul 2001 15:37:22 +0000 (15:37 +0000)]
Include string.h for memset prototype
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13596
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 9 Jul 2001 15:35:01 +0000 (15:35 +0000)]
* pmap_rmt.c, svc.c, svc_simple.c, svc_udp.c, svc_tcp.c,
xdr_array.c, xdr_reference.c : Include string.h for memset and
memcmp prototypes.
* auth_gssapi.c, auth_gssapi_misc.c, svc_auth_gssapi.c: Cast
argment to PRINTF to match format.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13595
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 9 Jul 2001 15:33:44 +0000 (15:33 +0000)]
* rpc_test_clnt.c, rpc_test_svc.c: Include string.h for memset
prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13594
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 9 Jul 2001 12:08:41 +0000 (12:08 +0000)]
* kerberos.c (Data): Third argument now const
* misc.c (printd): First argument now const.
* misc-proto.h: Modify printd prototype to take const first
argument.
* auth.c: Cast argument to memcpy to unsigned.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13593
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 9 Jul 2001 12:07:56 +0000 (12:07 +0000)]
* setenv.c: Include pos-obsolete.h
* pos-obsolete.h: Add for obsolete functions until they can be
removed from the library. Contains setenv functions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13592
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 9 Jul 2001 12:07:25 +0000 (12:07 +0000)]
* logger.c (severity2string): Declare as returning const char *.
(klog_com_err_proc): Do not discard const status of format
string.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13591
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 9 Jul 2001 12:06:37 +0000 (12:06 +0000)]
* hash/hash_func.c (hash4): Declare first argument const
* hash/hash.h: struct HTAB fname element now const.
* hash/hash.c: Declare third argument to hash_access and
init_hash const.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13590
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 8 Jul 2001 12:34:16 +0000 (12:34 +0000)]
* configure.in: Add AC_HEADER_STDARG
* commands.c (call): Rewrite to use varargs/stdarg interface.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13589
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 8 Jul 2001 12:25:41 +0000 (12:25 +0000)]
* fgetst.c: Include krb4int.h
* krb4int.h: Add fgetst prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13588
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 8 Jul 2001 12:24:56 +0000 (12:24 +0000)]
* server_internal.h: Add prototype for
krb5_copy_key_data_contents.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13587
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 8 Jul 2001 12:24:36 +0000 (12:24 +0000)]
* svr_iters.c: Declare kadm5_get_either static
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13586
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 8 Jul 2001 12:24:10 +0000 (12:24 +0000)]
* svc.c (xprt_register): If svc_fdset has not been initilized,
FD_ZERO it.
* rpc_commondata.c: Do not assume what the structure of an
fd_set looks like. Add variable gssrpc_svc_fdset_init to
determine if initialized.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13585
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 8 Jul 2001 12:23:34 +0000 (12:23 +0000)]
* crypto_libinit.c: Include crypto_libinit.h for prototypes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13584
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 8 Jul 2001 12:22:57 +0000 (12:22 +0000)]
* login.c (sigint): Declare static
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13583
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 8 Jul 2001 12:20:26 +0000 (12:20 +0000)]
* aclocal.m4 (CHECK_WAIT_TYPE): Need to include sys/types.h for
initial test or pid_t might not be defined.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13582
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 19:58:45 +0000 (19:58 +0000)]
* resolve.c: Include stdlib.h (if present) for exit() prototype
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13581
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 6 Jul 2001 19:57:45 +0000 (19:57 +0000)]
* configure.in: Check for need to provide setenv prototype if
setenv is in the C library.
* forward.c: Provide setenv prototype if needed.
* auth.c (auth_name): Cast result of sizeof() to int to match
printf format specification.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13580
dc483132-0cff-0310-8789-
dd5450dbe970
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