summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * fake-addrinfo.h (AI_V4MAPPED, AI_ADDRCONFIG, AI_ALL, AI_DEFAULT): Define asKen Raeburn2001-08-302-8/+14
| | | | | | bogus values, since they're part of getipnodeby* API, not getaddrinfo API. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13699 dc483132-0cff-0310-8789-dd5450dbe970
* ipv6 support, except if source routing is requested (may be broken)Ken Raeburn2001-08-303-93/+133
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13698 dc483132-0cff-0310-8789-dd5450dbe970
* * telnet.c (setupterm): Now static.Ken Raeburn2001-08-302-5/+13
| | | | | | | | (suboption): Rename local variable "ospeed" to "o_speed" to avoid conflict with global. (env_opt_add): Cast opt_welldefined argument to char * to silence warning. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13697 dc483132-0cff-0310-8789-dd5450dbe970
* note ipv6 work still not doneKen Raeburn2001-08-301-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13696 dc483132-0cff-0310-8789-dd5450dbe970
* support incoming ipv6 connections; debug mode still ipv4 onlyKen Raeburn2001-08-303-15/+35
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13695 dc483132-0cff-0310-8789-dd5450dbe970
* use fake-addrinfo, get rid of non-getnameinfo supportKen Raeburn2001-08-302-82/+26
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13694 dc483132-0cff-0310-8789-dd5450dbe970
* * termio-tn.c, termios-tn.c: Define dummy variables if STREAMSPTY isn't ↵Ken Raeburn2001-08-303-0/+9
| | | | | | defined, to silence compiler complaints about empty files git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13693 dc483132-0cff-0310-8789-dd5450dbe970
* copyrightsKen Raeburn2001-08-302-0/+82
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13692 dc483132-0cff-0310-8789-dd5450dbe970
* copyright; update commentsKen Raeburn2001-08-301-1/+48
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13691 dc483132-0cff-0310-8789-dd5450dbe970
* * kdc5_hammer.c (main): Initialize enctype at entry; eliminate enctypedone ↵Ken Raeburn2001-08-302-7/+7
| | | | | | variable git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13690 dc483132-0cff-0310-8789-dd5450dbe970
* move socket util definitions (socklen_t, sa2sin, etc) from k5-int to a new fileKen Raeburn2001-08-303-63/+84
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13689 dc483132-0cff-0310-8789-dd5450dbe970
* update fake-addrinfo stuffKen Raeburn2001-08-292-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13688 dc483132-0cff-0310-8789-dd5450dbe970
* split fake getaddrinfo implementation off into a separate fileKen Raeburn2001-08-293-270/+282
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13687 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_AC_CHECK_INET6): Don't check for AI_ADDRCONFIGKen Raeburn2001-08-212-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13684 dc483132-0cff-0310-8789-dd5450dbe970
* * walk_rtree.c (krb5_walk_realm_tree): Initialize slen to silence compiler ↵Ken Raeburn2001-08-212-1/+6
| | | | | | warning git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13683 dc483132-0cff-0310-8789-dd5450dbe970
* * glob.c (amatch, case '*'): Treat multiple asterisks the same as oneKen Raeburn2001-08-212-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13682 dc483132-0cff-0310-8789-dd5450dbe970
* * clnt_udp.c (clntudp_call): Do not assume that select will notEzra Peisach2001-08-105-6/+24
| | | | | | | | | | | | | change the timeout struct timeval. Under Linux, this reflects the time left available - which might result in 0 in the case of a timeout. When attempting to resend a request, this may results in a timeout of zero - flooding the server with replay requests. * clnt_tcp.c (readtcp): Same. * pmap_rmt.c (clnt_broadcast): Same * svc_tcp.c (readtcp): Same git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13679 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c (HOST_BYTE_ORDER): When casting const int * toEzra Peisach2001-08-082-1/+6
| | | | | | const char * instead of simply char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13678 dc483132-0cff-0310-8789-dd5450dbe970
* * walk_rtree.c (krb5_walk_realm_tree): Do not try to free const char *Ezra Peisach2001-08-085-8/+24
| | | | | | | | | | | | | | * mk_safe.c (krb5_mk_safe_basic): Do not declare local_addr and remote_addr const and then cast the attribute away. * mk_req_ext.c (krb5_generate_authenticator): Static function - remove const attribute from cksum pointer. * gc_via_tkt.c (krb5_get_cred_via_tkt): Cast unsigned integer krb5_error error_value to signed before adding ERROR_TABLE_BASE_krb5. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13677 dc483132-0cff-0310-8789-dd5450dbe970
* * post.in (all-recurse clean-recurse distclean-recurseEzra Peisach2001-08-072-1/+9
| | | | | | | | | install-recurse check-recurse Makefiles-recurse): Do not pass down CC and CCOPTS to subdirs. This causes automatic reconfiguration to fail with autoconf 2.52 where config.status is invoked with different environment variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13676 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (setup_root_shell): Also recognize "nection reset byEzra Peisach2001-08-062-1/+8
| | | | | | | | peer" as a failure to get a root shell. This happens if tcp_wrappers are in use in inetd.conf, but rlogind is not prsent on the machine. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13673 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.M: Update the usage line and option descriptions to be in syncMitchell Berger2001-08-032-19/+32
| | | | | | with what the code actually does and be in a consistent order. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13672 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-int.h (ss2sin6): New gcc-specific function and alternative macro.Ken Raeburn2001-08-032-2/+14
| | | | | | (krb5_crypt_func, krb5_encrypt_helper): Don't use "usage" in argument names. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13671 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (main): Convert to do option parsing with getopt() ratherMitchell Berger2001-08-032-71/+48
| | | | | | | | | than the whitespace-sensitive voodoo we've used in the past. This fixes a bug where use of -u to set a default umask silently failed and granted more permission on files than desired if the -u and the mode were separated by a space, and likely many other such bugs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13670 dc483132-0cff-0310-8789-dd5450dbe970
* * authenc.c (net_write): Rewrite in terms of netwrite()Tom Yu2001-08-029-447/+433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Check for vsnprintf(). * ext.h: New prototypes for netprintf, netprintf_urg, netprintf_noflush, netwrite, netputs. * slc.c: Fix to use new NETOBUF-handling functions. * state.c: Fix to use new NETOBUF-handling functions. * telnetd.c: Fix to use new NETOBUF-handling functions. * termstat.c: Fix to use new NETOBUF-handling functions. * utility.c: General rework to be more paranoid about bounds-checking of NETOBUF and NFRONTP. Abstract away interactions with NETOBUF to eliminate explicit references to NFRONTP in many places. (netwrite): New function; copies a buffer to the NETOBUF "ring buffer", checking bounds and calling netflush() if needed. (netputs): New function; calls netwrite() with a nul-terminated string. (netprintf, netprintf_ext): New function; wrap sprintf() with bounds checking for use with NETOBUF. (netprintf_urg): New function; like netprintf() except sets neturg to point at last char written. (netprintf_noflush): New function; like netprintf() except silently fails if NETOBUF is full. (ttloop, printoption, printsub, printdata): Fix to use new NETOBUF-handling functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13669 dc483132-0cff-0310-8789-dd5450dbe970
* implement libdefaults/extra_addressesKen Raeburn2001-08-022-40/+177
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13667 dc483132-0cff-0310-8789-dd5450dbe970
* * klist.c: Include k5-int.h and fake-addrinfo.h.Ken Raeburn2001-08-022-34/+59
| | | | | | | (NEED_SOCKETS, FAI_PREFIX, FAI_IMPLEMENTATION): Define macros. (one_addr): Use getnameinfo always. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13666 dc483132-0cff-0310-8789-dd5450dbe970
* * hostaddr.c (krb5_os_hostaddr): Only retry non-numeric lookup after numericKen Raeburn2001-08-022-1/+6
| | | | | | lookup if AI_NUMERICHOST is nonzero. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13665 dc483132-0cff-0310-8789-dd5450dbe970
* * fake-addrinfo.h (AI_NUMERICHOST): Define as zero if not already definedKen Raeburn2001-08-012-0/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13664 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Include stdlib.h in test for swab declarationKen Raeburn2001-08-012-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13663 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_check_transited_list now takes pointers to constKen Raeburn2001-07-314-4/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13662 dc483132-0cff-0310-8789-dd5450dbe970
* * svr_principal.c (check_pw_reuse): Change argument forEzra Peisach2001-07-312-1/+6
| | | | | | | n_pw_hist_data to unsigned to be consistant with calling convention. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13661 dc483132-0cff-0310-8789-dd5450dbe970
* * read_passwd.c: Create local variable that takes the "int"Ezra Peisach2001-07-312-4/+10
| | | | | | bufsize and makes it unsigned for use in malloc, strcmp, etc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13660 dc483132-0cff-0310-8789-dd5450dbe970
* * genaddrs.c: Use GETPEERNAME_ARG2_TYPE, GETPEERNAME_ARG3_TYPEEzra Peisach2001-07-313-7/+38
| | | | | | | | instead of assuming types. * changepw.c: Use GETSOCKNAME_ARG3_TYPE instead of int in casts. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13659 dc483132-0cff-0310-8789-dd5450dbe970
* * get_in_tkt.c: Cast to unsigned krb5_error error value toEzra Peisach2001-07-312-2/+9
| | | | | | krb5_error_code before trying to add to ERROR_TABLE_BASE_krb5. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13658 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4: Fix typo in last change. Do not get rid ofEzra Peisach2001-07-312-4/+9
| | | | | | spaces in definitions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13657 dc483132-0cff-0310-8789-dd5450dbe970
* * sendauth.c (krb5_sendauth): Instead of casting second argumentEzra Peisach2001-07-302-3/+22
| | | | | | | to getpeername() and getsockname() to "struct sockaddr *", cast to system specific type as determined by autoconf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13656 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add KRB5_GETSOCKNAME_ARGS and KRB5_GETPEERNAME_ARGSEzra Peisach2001-07-302-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13655 dc483132-0cff-0310-8789-dd5450dbe970
* Checked in correct change without extraneous debugging codeEzra Peisach2001-07-301-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13654 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4: Add functions KRB5_GETSOCKNAME_ARGS andEzra Peisach2001-07-302-0/+89
| | | | | | | KRB5_GETPEERNAME_ARGS to elucidate the argument types to getsockname() and getpeername(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13653 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp.c: Declare mech_type in struct gss_trials gss_OID to beEzra Peisach2001-07-302-1/+6
| | | | | | compatible with GSS_C_NO_OID type. (was gss_OID *). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13652 dc483132-0cff-0310-8789-dd5450dbe970
* Unmark gss_mech_krb5 variable as an importDanilo Almeida2001-07-282-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13651 dc483132-0cff-0310-8789-dd5450dbe970
* Do no export gss_mech_krb5Danilo Almeida2001-07-282-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13650 dc483132-0cff-0310-8789-dd5450dbe970
* Remove local Win32-specific definition of gss_mech_krb5.Danilo Almeida2001-07-282-25/+10
| | | | | | | Use GSS_C_NO_OID instead of gss_mech_krb5 for mech_type to use an implementation specific default. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13649 dc483132-0cff-0310-8789-dd5450dbe970
* Export gss_mech_krb5 as DATA. Mark all exported variables as DATADanilo Almeida2001-07-272-4/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13648 dc483132-0cff-0310-8789-dd5450dbe970
* Mark gss_mech_krb5 variable as an importDanilo Almeida2001-07-272-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13647 dc483132-0cff-0310-8789-dd5450dbe970
* * gen_port.c (krb5_gen_portaddr): Add const to cast ofEzra Peisach2001-07-272-1/+6
| | | | | | krb5_const_pointer to maintain const status. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13646 dc483132-0cff-0310-8789-dd5450dbe970
* * xdr_reference.c (xdr_reference): Remove cast in argument to memsetEzra Peisach2001-07-2712-11/+45
| | | | | | | | | | | | | | | | | | | | | | | | * svc_auth_gssapi.c: In call to gss_accept_sec_context, pass OM_uint32 * instead of int *; * pmap_clnt.h, pmap_getport.c (pmap_getport): Prototype changed for protocol from unsigned int to rpc_u_int32 to match struct pmap. * getrpcport.c (gssrpc_getrpcport): Update to reflect proper calling conventions. * rpc.h (callrpc): Change prototype from expecting ints for prognum, versnum and procnum to rpc_u_int32 for consistancy. (getrpcport): Update arguments in similar fashion. * clnt_simple.c (gssrpc_callrpc): Update to reflect prototype change. * auth_gssapi_misc.c (auth_gssapi_display_status_1): Local variable msg_ctx should be OM_uint32 instead of int as argument to gss_display_status. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13645 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_xdr.c (krb5_dbe_update_mod_princ_data,Ezra Peisach2001-07-273-4/+14
| | | | | | | | | krb5_encode_princ_contents): Delcare local variable unsigned. * kdb_cpw.c (add_key_pwd): Declare local variable unsigned based on use. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13644 dc483132-0cff-0310-8789-dd5450dbe970
* * adb_xdr.c (xdr_krb5_key_data): Use xdr_krb5_ui_2 instead ofEzra Peisach2001-07-252-2/+7
| | | | | | xdr_krb5_int16 for key_data_length field. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13643 dc483132-0cff-0310-8789-dd5450dbe970