summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* misc cleanup in dump-utmpKen Raeburn2001-06-282-5/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13525 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): Don't copy host if it's a null pointerKen Raeburn2001-06-282-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13524 dc483132-0cff-0310-8789-dd5450dbe970
* *bindresvport.c: Include gssrpc/rpc.h for prototypeEzra Peisach2001-06-278-44/+88
| | | | | | | | | | | | | | | | | | | | * 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
* * compat_recv.c: Flush out prototype for static krb_v4_recvauthEzra Peisach2001-06-272-1/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13518 dc483132-0cff-0310-8789-dd5450dbe970
* * krb4int.h: Add prototypes for ad_print, krb_svc_init,Ezra Peisach2001-06-2713-10/+77
| | | | | | | | | | | | | | | | | 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
* * klog.h: Flush out prototype for klog()Ezra Peisach2001-06-272-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13516 dc483132-0cff-0310-8789-dd5450dbe970
* * gssapi.hin, gssapi_generic.h, gssapi_generic.c:Tom Yu2001-06-274-33/+217
| | | | | | | 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
* * server_glue_v1.c: Include misc.h for prototypesEzra Peisach2001-06-263-3/+11
| | | | | | | * 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
* * user-guide.texinfo, install.texinfo: Cleanup makeinfo warning ofEzra Peisach2001-06-263-5/+10
| | | | | | not having `.' or `,' after @xref. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13513 dc483132-0cff-0310-8789-dd5450dbe970
* * krb4int.h: Add prototypes for krb__get_realmsfile(),Ezra Peisach2001-06-2610-7/+37
| | | | | | | | | | | | | | | | | 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
* * conv_creds.c: Nuke prototype in fileEzra Peisach2001-06-263-7/+10
| | | | | | | * 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
* * authorization.c (find_first_cmd_that_exists): Change xmalloc()Ezra Peisach2001-06-263-3/+13
| | | | | | | | | | 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
* * prot.h: Flush out prototypes for create_auth_reply(),Ezra Peisach2001-06-262-3/+8
| | | | | | pkt_cipher(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13509 dc483132-0cff-0310-8789-dd5450dbe970
* * getdate.y: Provide full prototype for getdate_yylex() andEzra Peisach2001-06-262-7/+7
| | | | | | getdate_yyerror(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13508 dc483132-0cff-0310-8789-dd5450dbe970
* * str_conv.c (krb5_string_to_keysalts): When parsing string, allowEzra Peisach2001-06-262-1/+21
| | | | | | for extra separator characters (like spaces) between keysalts. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13507 dc483132-0cff-0310-8789-dd5450dbe970
* * ccache.tex (krb5_cc_default): Fix "equivalent to" example codeKen Raeburn2001-06-232-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13502 dc483132-0cff-0310-8789-dd5450dbe970
* * 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
* * draft-ietf-cat-kerb-chg-password-02.txt: Describes protocol inEzra Peisach2001-06-223-0/+364
| | | | | | | | | | | 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
* * 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