summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | getaddrinfo code uses vars outside of storage durationKen Raeburn2006-06-202-83/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The calls to gethostbyname_r and friends were wrapped in macros that declared automatic variables for the auxiliary storage needed, but the pointers returned by the functions would be used outside of that scope, when the storage would no longer be valid. Changed the macro interfaces to define new types for the auxiliary storage, and add a new argument to the macros referring to that storage. Changed call sites accordingly. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18180 dc483132-0cff-0310-8789-dd5450dbe970
* | (kadmin_cpw): Don't crash if principal name is not given. Based on aKen Raeburn2006-06-201-4/+12
| | | | | | | | | | | | | | | | | | | | patch from S Rahul. (extended_com_err_fn): If error code is zero, don't fetch an error message. ticket: 3308 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18179 dc483132-0cff-0310-8789-dd5450dbe970
* | Document kpropd -a optionKen Raeburn2006-06-201-1/+9
| | | | | | | | | | | | ticket: 2087 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18178 dc483132-0cff-0310-8789-dd5450dbe970
* | whitespaceKen Raeburn2006-06-201-1/+1
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18177 dc483132-0cff-0310-8789-dd5450dbe970
* | fix parallel builds for libgssTom Yu2006-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * src/lib/gssapi/Makefile.in (SUBDIROBJLISTS): Add missing spnego directory. ticket: new target_version: 1.5 tags: pullup component: krb5-build git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18176 dc483132-0cff-0310-8789-dd5450dbe970
* | In verify_krb_v4_tgt, use an unsigned KRB4_32 to store an address ratherRuss Allbery2006-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | than an unsigned long to avoid memcpying past the end of a structure on 64-bit platforms. Ticket: 581 Version_Reported: 1.0.5 Target_Version: 1.5 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18175 dc483132-0cff-0310-8789-dd5450dbe970
* | krb5-1.6-prereleaseTom Yu2006-06-201-3/+3
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18170 dc483132-0cff-0310-8789-dd5450dbe970
* | Pass in the correct value for the first argument of select (one largerRuss Allbery2006-06-194-5/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | than the largest file number in the select set) rather than some multiple of sizeof some struct. The latter is large enough accidentally work, but breaks on AIX. Map IPv4-mapped IPv6 addresses back to IPv4 in krshd for the purposes of connecting back to the remote system on AIX, since on AIX getnameinfo returns such addresses but connect won't accept them. Ticket: 3122 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18166 dc483132-0cff-0310-8789-dd5450dbe970
* | Make local const array of structures static tooKen Raeburn2006-06-191-1/+1
| | | | | | | | | | | | ticket: 3276 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18165 dc483132-0cff-0310-8789-dd5450dbe970
* | Update config.guess and config.sub to the current versions fromRuss Allbery2006-06-192-334/+522
| | | | | | | | | | | | | | | | savannah.gnu.org. Ticket: 3900 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18164 dc483132-0cff-0310-8789-dd5450dbe970
* | Export krb5_gss_register_acceptor_identity in KFWJeffrey Altman2006-06-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | krb5_gss_register_acceptor_identity is a gss krb5 extension that is part of the public ABI. It does not have a gss_krb5_* name due to historical reasons. Instead there is a gss_krb5_register_acceptor_identity macro that uses this export. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18163 dc483132-0cff-0310-8789-dd5450dbe970
* | gssapi32.def: Export gss_inquire_mechs_for_name now thatJeffrey Altman2006-06-181-1/+1
| | | | | | | | | | | | | | | | it has been implemented. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18162 dc483132-0cff-0310-8789-dd5450dbe970
* | Test for and use setutsent, based on a patch from Nate Yocom at Centrify.Ken Raeburn2006-06-172-5/+22
| | | | | | | | | | | | | | | | Modified to restrict the configure test to just the pty library. ticket: 3423 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18161 dc483132-0cff-0310-8789-dd5450dbe970
* | (hpux10.exports): Export initializer and destructor symbols(?). PatchKen Raeburn2006-06-161-0/+2
| | | | | | | | | | | | | | | | from Albert Chin. ticket: 3129 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18158 dc483132-0cff-0310-8789-dd5450dbe970
* | Change a bunch of calls to ctype macros (those cited by Jeff, and aKen Raeburn2006-06-1611-27/+27
| | | | | | | | | | | | | | | | few others) to cast the character values to unsigned char. ticket: 3445 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18156 dc483132-0cff-0310-8789-dd5450dbe970
* | fix for support lib version number changeKen Raeburn2006-06-161-1/+1
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18155 dc483132-0cff-0310-8789-dd5450dbe970
* | Remove -lkrb5support, which should be for internal use only, from the displayedKen Raeburn2006-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | list of libraries. This means the output is not suitable for linking against static libraries built from the tree, but prevents us from committing to keeping libkrb5support.1 in all future Mac shared-library builds (in addition to the libkrb5support.0 we're stuck with for non-Mac UNIXy shared-library builds). ticket: 3887 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18154 dc483132-0cff-0310-8789-dd5450dbe970
* | ftpd's getline conflicts with current glibc headersKen Raeburn2006-06-163-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by Ubaidul Khan on kerberos@mit this date. GNU libc includes a function getline with an incompatible prototype. It hasn't caused problems for MIT on RHEL 4 (glibc 2.3.4), but apparently FC5 has a newer set of headers in which it does. * ftpcmd.y (getline): Renamed to ftpd_getline. Declarations and callers changed. * ftpd.c (getline): Remove duplicate declaration. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18153 dc483132-0cff-0310-8789-dd5450dbe970
* | * configure.in: Set and substitute SUPPORTLIB_MAJOR based on operating system.Ken Raeburn2006-06-152-2/+13
| | | | | | | | | | | | | | * util/support/Makefile.in (LIBMAJOR): Use it. (LIBMINOR): Bump. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18152 dc483132-0cff-0310-8789-dd5450dbe970
* | Increase buffer sizes to 64K where a Kerberos 5 authenticator might beKen Raeburn2006-06-157-7/+7
| | | | | | | | | | | | | | | | exchanged. Suggested by Markus Moeller. ticket: 2615 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18151 dc483132-0cff-0310-8789-dd5450dbe970
* | remove unused versions of makefilesKen Raeburn2006-06-156-369/+0
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18150 dc483132-0cff-0310-8789-dd5450dbe970
* | * config/pre.in (KRB5_BASE_LIBS): Add $(DL_LIB).Ken Raeburn2006-06-152-2/+3
| | | | | | | | | | | | | | | | | | * krb5-config.in: Add DL_LIB. ticket: 3838 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18149 dc483132-0cff-0310-8789-dd5450dbe970
* | (kadmin_startup): Properly skip "\@" and "\/" sequences whenKen Raeburn2006-06-151-2/+2
| | | | | | | | | | | | | | | | | | processing principal name, rather than going into an infinite loop. Suggested by Mark Phalan at Sun. ticket: 3697 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18148 dc483132-0cff-0310-8789-dd5450dbe970
* | * src/lib/gssapi/libgssapi_krb5.exports: AddTom Yu2006-06-151-0/+1
| | | | | | | | | | | | gss_inquire_mechs_for_name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18143 dc483132-0cff-0310-8789-dd5450dbe970
* | * src/lib/gssapi/krb5/gssapiP_krb5.h: Restore prototype ofTom Yu2006-06-152-2/+5
| | | | | | | | | | | | | | | | | | krb5_gss_release_oid() for now. * src/lib/gssapi/krb5/rel_oid.c (krb5_gss_release_oid): Restore for now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18142 dc483132-0cff-0310-8789-dd5450dbe970
* | make dependTom Yu2006-06-156-11/+229
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18141 dc483132-0cff-0310-8789-dd5450dbe970
* | * src/lib/gssapi/mechglue/Makefile.in (mydir):Tom Yu2006-06-152-2/+2
| | | | | | | | | | | | | | * src/lib/gssapi/spnego/Makefile.in (mydir): Point to correct locations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18140 dc483132-0cff-0310-8789-dd5450dbe970
* | remove spuriously resurrected file from mergeTom Yu2006-06-151-30/+0
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18139 dc483132-0cff-0310-8789-dd5450dbe970
* | * rc_io.c (krb5_rc_io_move): Use same code for cygwin as for normalKen Raeburn2006-06-151-1/+1
| | | | | | | | | | | | | | | | Windows build. ticket: 1434 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18138 dc483132-0cff-0310-8789-dd5450dbe970
* | Conditionalize declarations of krb5int_make_srv_query_realm andKen Raeburn2006-06-151-0/+2
| | | | | | | | | | | | | | | | | | krb5int_free_srv_dns_data on KRB5_DNS_LOOKUP. ticket: 2628 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18137 dc483132-0cff-0310-8789-dd5450dbe970
* | Make __kdb2_hash_open declaration and definition consistentKen Raeburn2006-06-151-1/+1
| | | | | | | | | | | | | | ticket: 2628 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18136 dc483132-0cff-0310-8789-dd5450dbe970
* | This ticket is pretty old, and the config files have been changedKen Raeburn2006-06-151-0/+13
| | | | | | | | | | | | | | | | around a bit since, but this is an attempt to integrate the patch... ticket: 856 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18135 dc483132-0cff-0310-8789-dd5450dbe970
* | Some simple transformations:Ken Raeburn2006-06-141-151/+169
| | | | | | | | | | | | | | | | | | | | Use ANSI C function definitions instead of old K&R style. Rename local variable "res" to "clnt_res". Cast clnt_call arguments to xdrproc_t and caddr_t. This brings the code more in line with what current (RHEL) rpcgen would do. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18134 dc483132-0cff-0310-8789-dd5450dbe970
* | Merge from branches/mechglue. Initial integration of Sun-donatedTom Yu2006-06-1467-1743/+7995
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mechglue and SPNEGO implementations. Additional changes outside of src/lib/gssapi: * src/configure.in: Add lib/gssapi/mechglue and lib/gssapi/spnego to list of directories to output Makefile in. * src/lib/rpc/unit-test/rpc_test.0/expire.exp (expired): Update regexp for mechglue. * src/tests/dejagnu/krb-standalone/v4gssftp.exp (v4ftp_test): Update "Miscellaneous failure" regexp for mechglue. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18131 dc483132-0cff-0310-8789-dd5450dbe970
* | remove old cvs log commentKen Raeburn2006-06-141-65/+0
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18130 dc483132-0cff-0310-8789-dd5450dbe970
* | When NULL is passed into krb_get_in_pw_tkt, we only want to prompt onceRuss Allbery2006-06-142-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for the password rather than passing NULL along to each string to key function causing each to prompt independently. Modify krb_get_in_pw_tkt to call des_read_pw_string directly and then pass the resulting password into each string to key function as needed. Add a prototype of des_read_pw_string to krb4int.h since it's an exported function of libdes425 but isn't prototyped in des.h. Ticket: 2648 Version_Reported: 1.3.3 Component: krb5-libs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18129 dc483132-0cff-0310-8789-dd5450dbe970
* | Enable kinit -a to match the man page and add documentationRuss Allbery2006-06-131-3/+3
| | | | | | | | | | | | | | | | Ticket: 3030 Reported_Version: 1.4.1 Component: krb5-clients git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18125 dc483132-0cff-0310-8789-dd5450dbe970
* | telnet help should telnet to a host named help, not display a usageRuss Allbery2006-06-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | message. Only support ?, not help, to request help with the open command. The same change was made in netkit's telnet. Ticket: 3269 Component: krb5-appl Version_Reported: 1.4.2 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18124 dc483132-0cff-0310-8789-dd5450dbe970
* | Change kprop and kpropd to fall back on port 754 if krb5_prop isn'tRuss Allbery2006-06-133-8/+6
| | | | | | | | | | | | | | | | | | | | available via getservbyname rather than failing. Ticket: 3268 Version_Reported: 1.4.2 Component: krb5-misc git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18123 dc483132-0cff-0310-8789-dd5450dbe970
* | Change man page cross-reference to kerberos(1) from kerberos(3)Russ Allbery2006-06-131-1/+1
| | | | | | | | | | | | | | | | Ticket: 3008 Version_Reported: 1.3.6 Component: krb5-appl git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18122 dc483132-0cff-0310-8789-dd5450dbe970
* | POSIX allows getpwnam_r and getpwuid_r to return 0 (success) even if theRuss Allbery2006-06-131-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | username or UID could not be found, in which case OUT will be set to NULL. Elsewhere, code assumes that if k5_getpwnam_r or k5_getpwuid_r returns 0, OUT is non-NULL. Check whether OUT is NULL and adjust the return value accordingly in the k5_getpw{nam,uid}_r wrappers. Ticket: 3490 Version_Reported: 1.4.3 Component: krb5-libs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18121 dc483132-0cff-0310-8789-dd5450dbe970
* | Prevent a library double-free and crash when a keytab is zero-length.Russ Allbery2006-06-131-1/+4
| | | | | | | | | | | | | | | | | | | | Based on a patch from Rainer Weikusat. Ticket: 3549 Version_Reported: 1.4.3 Component: krb5-libs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18120 dc483132-0cff-0310-8789-dd5450dbe970
* | Trivial whitespace cleanup in KDC codeKen Raeburn2006-06-131-2/+2
| | | | | | | | | | | | ticket: 2712 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18119 dc483132-0cff-0310-8789-dd5450dbe970
* | Allow whitespace in front of comments. Patch from Jeremie KoenigRuss Allbery2006-06-121-3/+3
| | | | | | | | | | | | | | Ticket: 1988 Version_Reported: 1.3.6 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18118 dc483132-0cff-0310-8789-dd5450dbe970
* | Always include sys/ioctl.h in the telnet and telnetd code, even ifRuss Allbery2006-06-122-4/+2
| | | | | | | | | | | | | | | | | | | | sys/filio.h is available. GNU/kFreeBSD has sys/filio.h but still requires sys/ioctl.h, and sys/ioctl.h is included unconditionally elsewhere in the code. Patch from Petr Salinger. Ticket: 3466 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18117 dc483132-0cff-0310-8789-dd5450dbe970
* | Never return -I/usr/include from --cflags. It's already in the defaultRuss Allbery2006-06-121-1/+5
| | | | | | | | | | | | | | | | | | | | compiler search path, causes gcc warnings, and can cause obscure failures with gcc by including system headers before gcc's internal headers. Ticket: 3011 Version_Reported: 1.4.2 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18116 dc483132-0cff-0310-8789-dd5450dbe970
* | Always initialize the output token in gss_init_sec_context as requiredRuss Allbery2006-06-121-0/+2
| | | | | | | | | | | | | | | | | | | | by RFC 2744 section 5.19. The krb5 code did this but the generic code didn't, causing a double-free in OpenSSH. Ticket: 3086 Version_Reported: 1.3.6 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18114 dc483132-0cff-0310-8789-dd5450dbe970
* | If krb5_gss_canonicalize_name is given GSS_C_NULL_OID as the mechanism,Russ Allbery2006-06-121-1/+2
| | | | | | | | | | | | | | | | | | | | assume krb5 using similar logic as other library functions rather than failing. Patch provided by Daniel Kahn Gillmor. Ticket: 3467 Version_Reported: 1.4.3 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18113 dc483132-0cff-0310-8789-dd5450dbe970
* | Document the authorization logic used in the absence of .k5login files.Russ Allbery2006-06-122-18/+18
| | | | | | | | | | | | | | | | | | | | Remove all remaining references to .rhosts authentication; the code to implement this was already removed. Ticket: 2577 Version_Reported: 1.3.3 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18112 dc483132-0cff-0310-8789-dd5450dbe970
* | This file uses E* constants and therefore should include errno.hRuss Allbery2006-06-121-0/+1
| | | | | | | | | | | | | | Ticket: 3266 Version_Reported: 1.3.6 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18110 dc483132-0cff-0310-8789-dd5450dbe970