summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * resolve.c (main): Make error message note that misconfigurationTom Yu2001-06-122-2/+19
| | | | | | | of /etc/hosts, as well as problems with resolver library, are all likely to cause failure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13343 dc483132-0cff-0310-8789-dd5450dbe970
* * destest.c: main returns int instead of void. Add "const" toEzra Peisach2001-06-123-18/+28
| | | | | | | | casts in calls to mit_des_cbc_encrypt(). * t_verify.c (main): Add parenthesis aroud assignment in conditional. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13342 dc483132-0cff-0310-8789-dd5450dbe970
* * t_mddriver.c: Cleanup assignments in conditionals w/o parentheses.Ezra Peisach2001-06-122-33/+38
| | | | | | Add parenthesis abount structure initializers. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13341 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (t_walk_rtree, t_kerb): Do not link against kdb librariesEzra Peisach2001-06-125-11/+27
| | | | | | | | | | | | | | | for these test executables. * srv_rcache.c (krb5_get_server_rcache): Cast argument to isgraph() to int. * init_ctx.c: Cast arguments to isspace() to int. If unix is defined, include ../krb5_libinit.h. There has to be a better was for windows. * conv_princ.c (krb5_425_conv_principal): Cast argument to isupper(). to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13340 dc483132-0cff-0310-8789-dd5450dbe970
* * sn2princ.c, hst_realm.c, an_to_ln.c: Cast argument toEzra Peisach2001-06-125-10/+18
| | | | | | | | | isupper()/isspace()/islower() to int. * t_std_conf.c (test_locate_kdc): krb5_locate_kdc expects a struct sockaddr *** as a third argument instead of sockaddr **. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13339 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_decode.c (asn1_decode_predicted_sam_response): UseEzra Peisach2001-06-122-2/+8
| | | | | | | asn1_decode_charstring() instead of asn1_decode_octetstring() to decode krb5_data. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13338 dc483132-0cff-0310-8789-dd5450dbe970
* * test_profile.c: Include <string.h> for strcmp() prototypeEzra Peisach2001-06-112-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13337 dc483132-0cff-0310-8789-dd5450dbe970
* * pty-int.h: Provide revoke() prototype if system headers lackingEzra Peisach2001-06-114-4/+32
| | | | | | | | | | | * logwtmp.c: Provide logwtmp() prototype if needed. * configure.in: Check for system provided getutmp(), logwtmp() and revoke() prototypes. Check for util.h, libutil.h. * update_wtmp.c: Provide prototype for getutmp() if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13336 dc483132-0cff-0310-8789-dd5450dbe970
* * argv_parse.c (argv_parse): Cast argument to isspace() as int.Ezra Peisach2001-06-113-5/+11
| | | | | | | | | | * prof_parse.c (skip_over_blanks, parse_std_line, need_double_quotes): Likewise On some systems, isspace() is a macro indexing an array. Gcc warns on indexing an array with a char. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13335 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in (SETENVOBJ): If setenv is not present on system,Ezra Peisach2001-06-1110-11/+45
| | | | | | | | | | | | | | | | | | | | | | | | define NEED_SETENV as well as linking in local sources. * defines.h: Include prototype for setenv() if NEED_SETENV defined. * krlogin.c (prf): Declare as void. Used only with one argument - get rid of pseudo-varargs behaviour. * krlogind.c (recvauth): Include k5-util.h for krb5_compat_recvauth_version() prototype. Declare sendoob() void. * krshd.c: Include k5-util.h for krb5_compat_recvauth_version() prototype. * login.c: Include setenv prototype if NEED_SETENV defined. Cast arguments to printf to match format string. * v4rcp.c (source): Cast argument to sprintf() to match format string. * krcp.c (rsource): Likewise. * forward.c (rd_and_store_for_creds): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13334 dc483132-0cff-0310-8789-dd5450dbe970
* * compat_recv.c: Include k5-util.h to ensure new prototypes agreeEzra Peisach2001-06-112-0/+6
| | | | | | with definitions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13333 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-util.h: Add prototypes for krb5_compat_recvauth_version() andEzra Peisach2001-06-114-3/+32
| | | | | | | | | | krb5_compat_recvauth(). * krb5.hin: Move krb5_read_message() and krb5_write_message() prototypes here. k5-int.h: From here. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13332 dc483132-0cff-0310-8789-dd5450dbe970
* * sendauth.c (krb_sendauth): Add KRB5_DLLIMP/KRB5_CALLCONV definitionsEzra Peisach2001-06-112-5/+12
| | | | | | for function with exported prototype in krb.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13331 dc483132-0cff-0310-8789-dd5450dbe970
* * krb.h: Add prototype for krb_sendauth()Ezra Peisach2001-06-112-0/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13330 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (MLIBS): Do not link against libgen.a for testEzra Peisach2001-06-112-1/+6
| | | | | | programs. (only needed for krb5 an_to_ln code). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13329 dc483132-0cff-0310-8789-dd5450dbe970
* * setenv.c: Add prototype for _findenv to avoid inconsistancy ofEzra Peisach2001-06-117-1023/+1001
| | | | | | | | | | | | | | | | | | | | | | | | | static vs. extern. * heuristic.c (find_either_ticket): Change krb5_tgtname() to ksu_tgtname(). * ccache.c: Include <sys/types.h> and <sys/stat.h> for start() prototype. * krb_auth_su.c: Reindent for readability. Remove defunct code. Change use of krb5_tgtname to ksu_tgtname(). * ksu.h: Include k5-util.h for krb5_seteuid() prototype. Add prototype for ksu_tgtname. Add prototype for unsetenv() if not defined. * main.c: Include grp.h for initgroups() prototype. Cleanup assignment in conditional warning. Reindent for readability. Arguments to print_status made consistant with regard to long vs. int. Change krb5_tgtname to ksu_tgtname. (do not use an internal krb5 function that is not advertised). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13328 dc483132-0cff-0310-8789-dd5450dbe970
* * str_conv.c: If strptime() is present on system without aEzra Peisach2001-06-112-1/+6
| | | | | | prototype, provide one. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13327 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test for strptime() prototype. Debian linux hasEzra Peisach2001-06-112-0/+6
| | | | | | strptime in the C library but does not provide a prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13326 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for system provided getutmp() prototypeEzra Peisach2001-06-113-1/+26
| | | | | | * update_wtmp.c: Provide prototype for getutmp() if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13325 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_NEED_PROTO): Determines if the OS provides aEzra Peisach2001-06-112-0/+28
| | | | | | prototype for a function - and if not, allows us to define it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13324 dc483132-0cff-0310-8789-dd5450dbe970
* * kinit.c (k4_begin): Cleanup assignment in conditional warningEzra Peisach2001-06-112-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13323 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm_supp.c: Include string.h for strncpy() prototypeEzra Peisach2001-06-112-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13322 dc483132-0cff-0310-8789-dd5450dbe970
* * krshd.c: Include <grp.h>, <libpty.h>, and <sys/wait.h> forEzra Peisach2001-06-113-3/+14
| | | | | | | | | | initgroups(), pty_logwtmp()/pty_make_sane_hostname(), and wait() prototypes. For local initgroups definition, conditionalize on HAVE_INITGROUPS and not __SCO__. * krcp.c: Include <sys/wait.h> for wait()/waitpid() prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13321 dc483132-0cff-0310-8789-dd5450dbe970
* * krb.h: Add "internal" prototypes cr_err_reply(), create_ciph(),Ezra Peisach2001-06-082-0/+31
| | | | | | krb_create_ticket(), krb5_cr_tkt_krb5(), krb_set_key_krb5(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13320 dc483132-0cff-0310-8789-dd5450dbe970
* * cr_tkt.c (krb_create_ticket): Get rid of last argument (k5key)Ezra Peisach2001-06-082-1/+6
| | | | | | which was added erroneously and is not how code is used in tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13319 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test for existance of arpa/inet.hEzra Peisach2001-06-082-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13318 dc483132-0cff-0310-8789-dd5450dbe970
* * dumpv4.c: Pass C_Block * to des_read_password() as per prototypeEzra Peisach2001-06-087-4/+23
| | | | | | | | | | | | * loadv4.c: Include k5-int.h before des.h for des_read_password prototype. Pass C_Block * to des_read_password() as per prototype. * kdb5_util.h: Add prototype for usage. * kdb5_create.c, kdb5_destroy.c, kdb5_stash.c: Include kdb5_util.h for usage() prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13317 dc483132-0cff-0310-8789-dd5450dbe970
* * ovsec_kadmd.c (main): Make format string to sprintf specify thatEzra Peisach2001-06-083-1/+13
| | | | | | | | | long arguments are present. * kadm_rpc_svc.c: Include arpa/inet.h (if present) for inet_ntoa prototype. Include adm_proto.h for krb5_klog_syslog() prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13316 dc483132-0cff-0310-8789-dd5450dbe970
* kdm_ser_wrap.c: Argument to quad_cksum is C_Block * - not C_Block.Ezra Peisach2001-06-082-1/+8
| | | | | | (kadm_ser_init): Declare as returning int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13315 dc483132-0cff-0310-8789-dd5450dbe970
* * kdc_preauth.c: Include adm_proto.h for krb5_klog_syslog()Ezra Peisach2001-06-084-1/+18
| | | | | | | | | | | | prototype. * main.c: Include des.h for des_init_random_number_generator() prototype. * network.c: Include adm_proto.h for krb5_klog_syslog() prototype. Pass kdc_context to krb5_klog_reopen(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13314 dc483132-0cff-0310-8789-dd5450dbe970
* * v4gssftp.exp: During test, set KRB5CCNAME to a non-existantEzra Peisach2001-06-082-0/+31
| | | | | | | | cache. Restore at end to previous setting. This prevents failures caused when the krb5 cache contains valid information - as in the case of this test being run immediately after the gssftp.exp test. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13313 dc483132-0cff-0310-8789-dd5450dbe970
* * client.c: Include unistd.h for getopt() prototypeEzra Peisach2001-06-084-95/+25
| | | | | | | | | | | * configure.in: Check for unistd.h. * server.c: Include unistd.h for getopt() prototype. Fix rpc_test_badauth() prototype to be consistant with error handler. Declare main as returning int. If POSIX_SIGNALS is defined, the handler expects an argument. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13312 dc483132-0cff-0310-8789-dd5450dbe970
* * auth_gssapi.h: Rename prototypes from _svcauth_set_log_XXX_func toEzra Peisach2001-06-082-3/+8
| | | | | | _svcauth_gssapi_set_log_XXX_func to match code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13311 dc483132-0cff-0310-8789-dd5450dbe970
* * ad_print.c (ad_print): Cast arguments to printf() to longs toEzra Peisach2001-06-083-1/+7
| | | | | | match format string. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13310 dc483132-0cff-0310-8789-dd5450dbe970
* * svr_principal.c (check_pw_reuse): Cleanup assignment in conditionalEzra Peisach2001-06-082-4/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13309 dc483132-0cff-0310-8789-dd5450dbe970
* * tcl_kadm5.c: Cleanup assignments in conditionalsEzra Peisach2001-06-083-12/+21
| | | | | | * test.c: Add prototype for Tcl_ovsec_kadm_init() and Tcl_kadm5_init(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13308 dc483132-0cff-0310-8789-dd5450dbe970
* Include unistd.h (if present) for getopt() prototypeEzra Peisach2001-06-086-0/+21
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13307 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c: Include unistd.h (if present) for getopt() prototypeEzra Peisach2001-06-082-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13306 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5-config.in (CC_LINK): Use ' vs " to prevent bash expansion ofEzra Peisach2001-06-082-2/+8
| | | | | | | variables. (LIBS): Quote autoconf substitution in case of space being present. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13305 dc483132-0cff-0310-8789-dd5450dbe970
* * gssftp.exp: Invocation of ftpd changed to use -U /dev/null andMitchell Berger2001-06-083-8/+28
| | | | | | | | | | | -a so that the test may successfully be run by root without failing (i.e. root is granted ftp access) and without opening the running ftpd to a password attack (i.e. authorization is required). Check for successful login messages added. * v4gssftp.exp: Same changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13304 dc483132-0cff-0310-8789-dd5450dbe970
* * pathnames.h: _PATH_FTPUSERS renamed to _PATH_FTPUSERS_DEFAULTMitchell Berger2001-06-084-5/+34
| | | | | | | | | * ftpd.c: Added '-U filename' option to allow specification of an ftpusers file other than the default. * ftpd.M: Documented the new -U option. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13303 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5.hin: Get rid of extraneous krb5_const before integerEzra Peisach2001-06-072-7/+15
| | | | | | | | | arguments in prototypes for valid_enctype(), valid_cksumtype(), is_coll_proof_cksum(), is_keyed_cksum(), krb5_encrypt_size(), krb5_checksum_size(), krb5_verify_checksum() so they match the existing code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13302 dc483132-0cff-0310-8789-dd5450dbe970
* * server.c (log_badauth_display_status_1): Do not assume thatEzra Peisach2001-06-072-6/+12
| | | | | | gss_buffer_desc strings are '\0' terminated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13301 dc483132-0cff-0310-8789-dd5450dbe970
* * kerberos_v4.c: Get rid of file wide static krb5_error_code. CastEzra Peisach2001-06-072-2/+7
| | | | | | argument to sleep to unsigned int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13300 dc483132-0cff-0310-8789-dd5450dbe970
* * acl_files.c, admin_server.c, kadm_funcs.c, kadm_ser_wrap.c:Ezra Peisach2001-06-079-32/+186
| | | | | | | | | | | | | | | | | | | | | | | | Explicitly declare function return types and cleanup assignments in conditionals. * kadm_server.c: Include kadm_server.h and cleanup assignments in conditionals. * kadm_server.h: Include kadm5/admin.h, kadm.h, krb_db.h for structure defintions so that many prototypes may be added to this file. * kadm_stream.c: Include kadm_server.h for prototypes. Explicitly declare functions as ints. (stream_to_vals) Assumption made that pointer to long the same size as krb5_ui_4 fixed. * kadm_supp.c: Include sys/param.h early so that MAXHOSTNAMELEN is not defined by kadm.h and later redefined. In prin_vals(), key_high and key_low elements of the Kadm_vals structure are longs - use an appropriate format to printf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13299 dc483132-0cff-0310-8789-dd5450dbe970
* * request_tbl.c (ss_add_request_table): Do not cast argument toEzra Peisach2001-06-072-1/+6
| | | | | | realloc() to char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13291 dc483132-0cff-0310-8789-dd5450dbe970
* * vfy_increds.c (krb5_verify_init_creds): Get rid of a variableEzra Peisach2001-06-072-5/+9
| | | | | | that was set in a conditional and never used afterwards. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13290 dc483132-0cff-0310-8789-dd5450dbe970
* * ktdefname.c (krb5_kt_default_name): Get rid of a variable thatEzra Peisach2001-06-072-5/+9
| | | | | | was set in a conditional but never used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13289 dc483132-0cff-0310-8789-dd5450dbe970
* * ser_sctx.c (kg_oid_internalize): Do away with local variableEzra Peisach2001-06-072-3/+7
| | | | | | that was set but never used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13288 dc483132-0cff-0310-8789-dd5450dbe970
* * authenc.c (telnet_gets): Cleanup assignment in conditionalEzra Peisach2001-06-0710-41/+164
| | | | | | | | | | | | | | | | | | | | | | | | * commands.c: Include sys/wait.h, libtelent/auth.h, libtelnet/encrypt.h for prototypes. Explicity declare functions as returning int. Assignments in conditionals cleanup. * externs.h: Add numerous prototypes. * ring.c (ring_init): Explicitly declare as returning int. * ring.h: Add prototype for ring_at_mark(). * telnet.c: Include unistd.h, libtelnet/auth.h, libtelnet/encrypt.h for prototypes. Delcare is_unique() static. Fix up format string for sprintf() to expect longs. Assignments in conditionals cleaned up. * main.c, terminal.c: Include libtelnet/encrypt.h for prototype. * utilities.c: Include sys/socket.h, libtelent/auth.h, libtelnet/encrypt.h for prototypes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13287 dc483132-0cff-0310-8789-dd5450dbe970