summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* * gssftp.exp: Use $tmppwd rather than hardcoding tmpdirTom Yu2001-06-227-30/+51
| | | | | | | | | | | | | | | | * 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
* * default.exp: Use the interface variable $TMPDIR to allow theTom Yu2001-06-222-398/+724
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* * krb5.hin: Do not use "random_key" as argument name. When krb.hEzra Peisach2001-06-223-7/+15
| | | | | | | | | 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
* * krb.h: Don't use "options" and "user" as argument namesEzra Peisach2001-06-222-10/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13497 dc483132-0cff-0310-8789-dd5450dbe970
* * krlogind.c: Provide daemon prototype if neededEzra Peisach2001-06-223-0/+15
| | | | | | * configure.in: Test if prototype for daemon necessary. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13496 dc483132-0cff-0310-8789-dd5450dbe970
* * telnetd.c (main): Change variable sin to sin4.Ezra Peisach2001-06-222-11/+16
| | | | | | (encrypt_failure): Change to not shadow global error_message. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13495 dc483132-0cff-0310-8789-dd5450dbe970
* * commands.c (tn): Change sin to sin4 to not shadow globalEzra Peisach2001-06-223-28/+36
| | | | | | | * 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
* * enc_des.c: Change local variable index to idx to not shadownEzra Peisach2001-06-224-45/+58
| | | | | | | | | | | | | 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
* * ftpcmd.y (help): Change local variable type to ftypeEzra Peisach2001-06-223-67/+74
| | | | | | | * 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
* * adm_conn.c (kadm_get_ccache): Cast return from getpid() to intEzra Peisach2001-06-222-1/+6
| | | | | | to match format. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13491 dc483132-0cff-0310-8789-dd5450dbe970
* * network.c (setup_port): Change sin to sin4 to prevent shadowingEzra Peisach2001-06-222-5/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13490 dc483132-0cff-0310-8789-dd5450dbe970
* * ovsec_kadmd.c: Change prototype for process_chpw_requestEzra Peisach2001-06-223-10/+20
| | | | | | | | | 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
* * kdb5_util.c (main): Change optarg to koptarg to preventEzra Peisach2001-06-222-9/+14
| | | | | | shadowing of getopt function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13488 dc483132-0cff-0310-8789-dd5450dbe970
* * login.c: Much cleanup to reduce globals and shadowingEzra Peisach2001-06-224-56/+81
| | | | | | | | | | | * 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
* * svc_simple.c (universal): Change transp to s_transp to notEzra Peisach2001-06-227-38/+52
| | | | | | | | | | | | | | | 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
* * libpty.h: Change variable line in prototype to tty_line toEzra Peisach2001-06-222-1/+6
| | | | | | prevent shadowing. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13485 dc483132-0cff-0310-8789-dd5450dbe970
* * accept_sec_context.c (krb5_gss_accept_sec_context): Do notEzra Peisach2001-06-222-4/+9
| | | | | | shadow local variable ptr. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13484 dc483132-0cff-0310-8789-dd5450dbe970
* * util_validate.c (g_save): Cleanup extraneous variable fromEzra Peisach2001-06-222-1/+5
| | | | | | last change. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13483 dc483132-0cff-0310-8789-dd5450dbe970
* Cleanup usage of memory free routines:Danilo Almeida2001-06-229-41/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* * win-pre.in: Minimize printing of compiler command line duringDanilo Almeida2001-06-222-4/+23
| | | | | | build of a directory. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13481 dc483132-0cff-0310-8789-dd5450dbe970
* * string2key.c (mit_des_string_to_key_int): Undo last changeKen Raeburn2001-06-222-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13480 dc483132-0cff-0310-8789-dd5450dbe970
* new fileKen Raeburn2001-06-221-0/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13479 dc483132-0cff-0310-8789-dd5450dbe970
* vectors.c: New file. Test vectors, submitted for inclusion in RFC1510bisKen Raeburn2001-06-222-0/+472
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13478 dc483132-0cff-0310-8789-dd5450dbe970
* * destest.c (value): Now signed int, since some entries are negative.Ken Raeburn2001-06-222-5/+12
| | | | | | | (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
* updateKen Raeburn2001-06-221-3/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13476 dc483132-0cff-0310-8789-dd5450dbe970
* * string2key.c (mit_des_string_to_key_int): Now staticKen Raeburn2001-06-222-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13475 dc483132-0cff-0310-8789-dd5450dbe970
* * derive.c: provide krb5_derive_random, krb5_random2key a la rfc1510bis (not ↵Ken Raeburn2001-06-222-0/+106
| | | | | | exported for now) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13474 dc483132-0cff-0310-8789-dd5450dbe970
* * checksum.c (krb5_dk_make_checksum): Cast 0x99 to char explicitly to ↵Ken Raeburn2001-06-222-1/+6
| | | | | | silence warnings git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13473 dc483132-0cff-0310-8789-dd5450dbe970
* * win-pre.in, win-post.in: Improve output directory creation and cleanupDanilo Almeida2001-06-223-43/+38
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13472 dc483132-0cff-0310-8789-dd5450dbe970
* * rc_io.c (krb5_rc_io_creat): Make cleanup code easier to read.Danilo Almeida2001-06-223-73/+174
| | | | | | | | | | | | | | | | | | | | (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
* drop a log entry for deleting an unused variable - ezra already did it, my ↵Ken Raeburn2001-06-221-1/+0
| | | | | | log entry was stale git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13470 dc483132-0cff-0310-8789-dd5450dbe970
* * adm_conn.c, kpasswd.c, srv_net.c: Changed various char string variables intoKen Raeburn2001-06-225-54/+71
| | | | | | | | | | | | | | | 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
* * util_validate.c (g_validate, g_save, g_delete): If HAVE_BSD_TYPEEzra Peisach2001-06-212-2/+21
| | | | | | | 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
* * test/dbtest.c: Cast argument to isspace() to int. Do not shadowEzra Peisach2001-06-215-51/+59
| | | | | | | | | 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
* * ftpd.c: If NEED_SETENV defined, prototype for setenv.Ezra Peisach2001-06-212-1/+7
| | | | | | | (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
* * kadm_supp.c (prin_vals): Pass time_t * to localtime instead ofEzra Peisach2001-06-212-1/+7
| | | | | | long *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13465 dc483132-0cff-0310-8789-dd5450dbe970
* * forward.c: If NEED_SETENV defined, provide prototype for setenvEzra Peisach2001-06-213-0/+11
| | | | | | * configure.in: If compiling setenv.c, define NEED_SETENV. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13464 dc483132-0cff-0310-8789-dd5450dbe970
* * telnetd.c: Add prototypes for getent() and tgetent()Ezra Peisach2001-06-212-1/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13463 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test for parsetos() prototype and presence ofEzra Peisach2001-06-214-2/+24
| | | | | | | | | | | 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
* * configure.in (SETENVOBJ): Define NEED_SETENV if compiling our ownEzra Peisach2001-06-212-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13461 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c: If NEED_SETENV defined, prototype for setenvEzra Peisach2001-06-212-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13460 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c: Add prototype for daemon if neededEzra Peisach2001-06-212-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13459 dc483132-0cff-0310-8789-dd5450dbe970
* * ovsec_kadmd.c: Add prototype for daemon if neededEzra Peisach2001-06-212-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13458 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test system header files for daemon prototypeEzra Peisach2001-06-212-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13457 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test for daemon prototypeEzra Peisach2001-06-213-0/+15
| | | | | | * main.c: Provide daemon prototype if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13456 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test need for daemon prototypeEzra Peisach2001-06-213-0/+13
| | | | | | * krb524d.c: Provide daemon prototype if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13455 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test if prototypes needed for setenv and unsetenvEzra Peisach2001-06-213-0/+14
| | | | | | * ext.h: Provide prototypes for unsetenv and setenv if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13454 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use optional argument to KRB5_NEED_PROTO so testEzra Peisach2001-06-212-2/+7
| | | | | | for swab existance removed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13453 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for daemon() prototypeEzra Peisach2001-06-213-0/+11
| | | | | | * kpropd.c: Provide prototype if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13452 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_LIB_PARAMS): Display test for host type andEzra Peisach2001-06-212-4/+17
| | | | | | | | | result so that "cached" is not simply output from configure. (KRB5_NEED_PROTO): Add optional third argument, which if set means to test for prototype even if configure script does not test for function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13451 dc483132-0cff-0310-8789-dd5450dbe970