aboutsummaryrefslogtreecommitdiffstats
path: root/clientname.c
Commit message (Collapse)AuthorAgeFilesLines
* Tweaking the license text a bit more.Wayne Davison2007-07-101-2/+3
|
* Switching to GPL 3.Wayne Davison2007-07-071-3/+2
|
* Further modifications to the copyright comment section.Wayne Davison2007-02-041-4/+3
|
* - Changed strcpy() calls into strlcpy() calls, just to be extra safe.Wayne Davison2006-10-131-12/+14
| | | | | - Added a default: exit_cleanup() case to a switch. - Made the check_name() function take a buffer size arg.
* Updated the FSF's address to an even newer one.Wayne Davison2006-04-251-3/+3
|
* - Updated the address for the FSF in the opening comment.Wayne Davison2006-04-251-26/+22
| | | | | | | - Standardized the format of the opening comment, including adding a brief description of what's in the file for those that lacked it. - Added some missing copyright lines. - Some minor whitespace tweaks (in a few of the files).
* Got rid of unused externs.Wayne Davison2006-02-241-1/+0
|
* Got rid of a superfluous empty line.Wayne Davison2005-11-101-1/+0
|
* John E. Malmberg convinced me to standardize on #ifs for definedWayne Davison2005-02-141-5/+5
| | | | values instead of non-zero.
* Use "#if" (not "#ifdef") for configure-defined macros.Wayne Davison2005-01-281-4/+4
|
* Turned the various FERROR messages into (the more proper) FLOG.Wayne Davison2004-09-241-23/+13
|
* The daemon-over-ssh code now looks for $SSH_CONNECTION and $SSH2_CLIENTWayne Davison2004-06-031-12/+10
| | | | as well as $SSH_CLIENT to figure out the remote IP address.
* Changed rprintf() calls that included strerror() to use rsyserr().Wayne Davison2004-05-151-2/+1
|
* Only refer to AI_NUMERICHOST if it is defined.Wayne Davison2004-04-301-0/+2
|
* Use getaddrinfo() to figure out if a numeric address is IPv4 or IPv6.Wayne Davison2004-04-011-32/+29
|
* Last of the cleanup before the patching starts.Wayne Davison2004-04-011-15/+11
|
* A couple more minor twiddles.Wayne Davison2004-04-011-4/+6
|
* Updated the sizeof syntax and trimmed some trailing whitespace.Wayne Davison2004-04-011-18/+18
|
* Changed HAVE_SOCKADDR_SIN_LEN to HAVE_SOCKADDR_IN_LEN.Wayne Davison2004-03-161-1/+1
|
* Use new HAVE_SOCKADDR_SIN_LEN define (replaces HAVE_SOCKADDR_LEN).Wayne Davison2004-02-271-1/+1
|
* The inet_pton() man page says we need to pass in a pointer to aWayne Davison2003-01-111-2/+2
| | | | | | | struct in_addr, which means passing &sin.sin_addr instead of &sin.sin_addr.s_addr. Also changed the AF_INET6 version to pass &sin6.sin6_addr. Hopefully this will fix UNICOS and not break anyone else.
* Support IPv6 addresses with "hosts allow" and "hosts deny". Patch fromDavid Dykstra2003-01-091-3/+19
| | | | Hideaki Yoshifuji.
* * Don't call getnameinfo() if we've already populated the addr_buf.Wayne Davison2002-08-021-10/+10
| | | | | | * Moved some structures in client_name() so that they remain in-scope for the entire function (since we set pointers to their storage location). * Allow the dot-counting loop to increment to 4 instead of stopping at 3.
* Put in better method of checking whether or not daemon over --rsh mode isDavid Dykstra2002-08-021-10/+19
| | | | | | in place: simply check the "am_server" global variable, which is not set true when the daemon is listening for connections (daemon_main is not called in main.c if am_server is set).
* Fix client_name to work on when INET6 is enabled but using a 4-part IPv4David Dykstra2002-08-021-22/+33
| | | | | IP address. Tested on Linux, but only with an IPv4 ssh. Somebody who has IPv6 enabled on ssh needs to test it yet.
* Fix last change to use correct IPv6 structure names when using INET6.David Dykstra2002-08-011-2/+7
| | | | | Doesn't yet look up names correctly on Linux with INET6 enabled, however; needs further work but I don't have time right now.
* Fix to correctly identify remote IP address and host name when usingDavid Dykstra2002-08-011-9/+41
| | | | | | -e ssh and :: together. Uses $SSH_CLIENT to locate the IP address (was attempting to before but it didn't always work) and then uses inet_pton() on that and getnameinfo() to find the name.
* Commit patch based on one from John L. Allen to fix "forward nameMartin Pool2002-04-031-5/+14
| | | | | | | | lookup failed" on AIX 4.3.3. When doing an name->addr lookup on the client address, there's no point including the service name, because it can't be spoofed and it apparently causes trouble when not present in /etc/services.
* check_name doesn't need a socklen_t, because it knows what is insideMartin Pool2002-01-251-2/+1
| | | | each sockaddr type.
* Add code to compare sin6_addrs.Martin Pool2002-01-251-3/+9
|
* Back out last change -- to see whether an address is spoofed, we don'tMartin Pool2002-01-251-15/+18
| | | | | | | want to look at the whole sockaddr, but rather just at the sin_addr that it contains. Also fix silly bug where ai_flags was set incorrectly for getaddrinfo.
* compare_addrinfo_sockaddr: Add code to compare AF_INET6 addresses.Martin Pool2002-01-251-16/+13
|
* Split out code to compare addrinfo and sockaddr into it's ownMartin Pool2002-01-251-25/+45
| | | | | | | function. The comparison cannot be done just byte-by-byte, because different parts of the sockaddr will be meaningful depending on the protocol. It looks like on some systems the library sets the unused parts to 0, but this is not reliable. IPv6 not implemented yet.
* Doc.Martin Pool2002-01-251-7/+12
|
* The name resolution stuff is getting complicated -- split it out intoMartin Pool2002-01-251-0/+252
its own file.