summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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
* * ext.h: Remove unused prototype for start_slave() and replaceEzra Peisach2001-06-076-14/+44
| | | | | | | | | | | | | | | | | with one for startslave(). * state.c: Add libtlnet/encrypt.h for missing prototypes. * sys_term.c: Add prototype for dup_tty(). Change getptyslave() from int to void. Cleanup an assignment in conditional warning. * telnetd.c: Include libtelnet/misc-proto.h. Declare return from terminaltypeok() and main() as int. * utility.c: Include libtelnet/auth.h and libtelnet/encrypt.h for prototypes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13286 dc483132-0cff-0310-8789-dd5450dbe970
* * auth-proto.h: Add prototype for kerberos5_cleanup()Ezra Peisach2001-06-073-1/+22
| | | | | | | | | * enc-proto.h: Add prototypes for encrypt_printsub(), encrypt_request_sart(), encrypt_request_end(), encrypt_enc_keyid()m encrypt_dec_keyid(), encrypt_support(), encrypt_start(), encrypt_end(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13285 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-int.h: Remove AS_REP_105_SAM_COMPAT definition. Not used inEzra Peisach2001-06-072-17/+8
| | | | | | | | | tree. Remove SYSV redefinition of random() to rand() and srandom() to srand(). Two locations in tree that might matter already handled in configure. Unicos redefinition of utimes() to utime() removed - appl/bsd has its own implementation. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13284 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in ($(srcdir)/krb5/autoconf.h.in): New target; rebuild using autoheaderKen Raeburn2001-06-062-1/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13283 dc483132-0cff-0310-8789-dd5450dbe970
* aclocal.m4 (CONFIG_RULES): Set and substitute AUTOHEADER and AUTOHEADERFLAGSKen Raeburn2001-06-062-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13282 dc483132-0cff-0310-8789-dd5450dbe970
* * pre.in (AUTOHEADER, AUTOHEADERFLAGS): New variablesKen Raeburn2001-06-062-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13281 dc483132-0cff-0310-8789-dd5450dbe970
* * auth-proto.h: Add prototypes for getauthmask(), auth_enable,Ezra Peisach2001-06-0616-47/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | auth_disable(), auth_onoff(), auth_togdebug(), auth_status(), auth_name(), auth_sendname(), auth_debug(), and auth_printsub(). * auth.c: Include unistd.h and cleanup some assignments in conditionals. * auth.h: Explicitly declare auth_debug mode as an int. * enc-proto.h: Add prototypes for EncryptDisable(), EncryptType(), EncryptStart(), EncryptStartInput(), EncryptStartOutput(), EncryptStop(), EncryptStopInput(), EncryptStopOutput(), EncryptStatus(), encrypt_gen_printsub(), printsub(). * enc_des.c: Declare encrypt_debug_mode as int. Cleanup unused variables and assignments in conditionals. * encrypt.c: Include stdio.h for sprintf prototype. Cleanup assignments in conditionals. * getent.c: Conditionalize definition of some variables. * kerberos5.c: Explicitly declare auth_debug_mode an int. * misc-proto.h: Add prototype for auth_encrypt_user(). * misc.c: Include auth.h and encrypt.h for prototypes. * misc.h: Add prototypes for isprfix(), genget(), Ambiguous(). * parsetos.c: Include stdlib.h for strtol() prototype. * forward.c, kerberos.c, setenv.c: Assignment in conditional cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13280 dc483132-0cff-0310-8789-dd5450dbe970
* Fix up small typo in lat set of commitsEzra Peisach2001-06-061-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13279 dc483132-0cff-0310-8789-dd5450dbe970
* * test.c (print_key): Pass in des_cblock* instead of char *.Ezra Peisach2001-06-062-5/+14
| | | | | | | | (krb5_print_keyblock): Cast argument to C_Block_print to des_cblock *. (krb4_print_ticket): For printf formats expecting a long, cast arguments as such. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13278 dc483132-0cff-0310-8789-dd5450dbe970
* * v4gssftp.exp: Allow for "decrypt integrity check failed" errorEzra Peisach2001-06-062-0/+6
| | | | | | minor code from GSSAPI as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13277 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y: Include "ftpd_var.h" and remove prototype for reply()Ezra Peisach2001-06-065-50/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and lreply(). Add prototypes and declare as returning void sizecmd(), help() and yylex(). Cleanup assignments in conditionals. * ftpd.c: Include <grp.h> for initgroups() prototype. Move reply(), lreply() prototypes to ftpd_var.h (and include same). Include "krb524.h" for krb524_convert_creds_kdc() prototype. Include secure.h. Provide static prototypes for ftpd_gss_convert_creds(), ftpd_gss_userok(), dolog(), receive_data(), login(), end_login(), disallowed_user(), restricted_user(), checkuser(). Declare main(), checkuser(), disallowed_user(), restricted_user(), end_login(), kpass(), retreive_data(), auth_data(), secure_printf(), ftpd_gss_userok(), as returning int. Declare setdlevel(), user(), pass(), login(), retreive(), store_file(), secure_error(), statfilecmd(), stat_cmd(), fatal(), reply(), lreply(), ack(), nack(), yyerror(), delete_file(), cwd(), makedir(), removedir(), pwd(), renamecmd(), dolog(), dologout(), passive(), perror_reply(), auth(), send_file_list(), reply_gss_error(), secure_gss_error(), ftpd_gss_convert_creds(), as returning void. Cleanup printf argument mismatches. * ftpd_var.h: New header file with many prototypes from ftpd.c. * popen.c (ftpd_popen): Add parenthesis in conditional to distinguish || vs &&. Add prototype for blkfree(). (ftpd_pclose): Declare as returning int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13276 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for unistd.h.Ken Raeburn2001-06-053-1/+6
| | | | | | * k524init.c: Only include unistd.h if it's available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13275 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: Include stdarg.h.Ken Raeburn2001-06-052-24/+49
| | | | | | | | | | (main): Accept new argument -p to indicate port number to use; fall back to KRB524_SERVICE and then KRB524_PORT. In error messages, use only part of program name following last '/'. (usage): Updated. (krb5_free_keyblock_contents): Delete disabled function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13274 dc483132-0cff-0310-8789-dd5450dbe970
* client.c, server.c: Cleanup assignments in conditionalsEzra Peisach2001-06-053-202/+224
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13273 dc483132-0cff-0310-8789-dd5450dbe970