#
c1053578 |
| 31-Mar-2023 |
dtucker <dtucker@openbsd.org> |
Return immediately from get_sock_port if sock <0 so we don't call getsockname on a negative FD. From Coverity CID 291840, ok djm@
|
#
8135c598 |
| 03-Mar-2023 |
djm <djm@openbsd.org> |
guard against getsockname(-1, ...) from Coverity CID 291832
|
#
48e6b99d |
| 18-Oct-2020 |
djm <djm@openbsd.org> |
use the new variant log macros instead of prepending __func__ and appending ssh_err(r) manually; ok markus@
|
#
3aaa63eb |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
show more ...
|
#
1667b834 |
| 07-Mar-2016 |
djm <djm@openbsd.org> |
refactor canohost.c: move functions that cache results closer to the places that use them (authn and session code). After this, no state is cached in canohost.c
feedback and ok markus@
|
#
813771f0 |
| 01-Mar-2015 |
millert <millert@openbsd.org> |
Make sure we only call getnameinfo() for AF_INET or AF_INET6 sockets. getpeername() of a Unix domain socket may return without error on some systems without actually setting ss_family so getnameinfo(
Make sure we only call getnameinfo() for AF_INET or AF_INET6 sockets. getpeername() of a Unix domain socket may return without error on some systems without actually setting ss_family so getnameinfo() was getting called with ss_family set to AF_UNSPEC. OK djm@
show more ...
|
#
a0215499 |
| 15-Jul-2014 |
millert <millert@openbsd.org> |
Add support for Unix domain socket forwarding. A remote TCP port may be forwarded to a local Unix domain socket and vice versa or both ends may be a Unix domain socket. This is a reimplementation o
Add support for Unix domain socket forwarding. A remote TCP port may be forwarded to a local Unix domain socket and vice versa or both ends may be a Unix domain socket. This is a reimplementation of the streamlocal patches by William Ahern from: http://www.25thandclement.com/~william/projects/streamlocal.html OK djm@ markus@
show more ...
|
#
ced49c3f |
| 19-Jan-2014 |
dtucker <dtucker@openbsd.org> |
Cast socklen_t when comparing to size_t and use socklen_t to iterate over the ip options, both to prevent signed/unsigned comparison warnings. Patch from vinschen at redhat via portable openssh, begr
Cast socklen_t when comparing to size_t and use socklen_t to iterate over the ip options, both to prevent signed/unsigned comparison warnings. Patch from vinschen at redhat via portable openssh, begrudging ok deraadt.
show more ...
|
#
56c00d48 |
| 20-Nov-2013 |
deraadt <deraadt@openbsd.org> |
unsigned casts for ctype macros where neccessary ok guenther millert markus
|
#
f9110f33 |
| 14-Oct-2013 |
djm <djm@openbsd.org> |
refactor client config code a little:
add multistate option partsing to readconf.c, similar to servconf.c's existing code.
move checking of options that accept "none" as an argument to readconf.c
refactor client config code a little:
add multistate option partsing to readconf.c, similar to servconf.c's existing code.
move checking of options that accept "none" as an argument to readconf.c
add a lowercase() function and use it instead of explicit tolower() in loops
part of a larger diff that was ok markus@
show more ...
|
#
0d40fefd |
| 17-May-2013 |
djm <djm@openbsd.org> |
bye, bye xfree(); ok markus@
|
#
49ab41d7 |
| 13-Jan-2010 |
dtucker <dtucker@openbsd.org> |
Make HostBased authentication work with a ProxyCommand. bz #1569, patch from imorgan at nas nasa gov, ok djm@
|
#
44b2b058 |
| 27-May-2009 |
andreas <andreas@openbsd.org> |
Add clear_cached_addr(), needed for upcoming changes allowing the peer address to change. ok markus@
|
#
4edc3fd2 |
| 12-Feb-2009 |
djm <djm@openbsd.org> |
support remote port forwarding with a zero listen port (-R0:...) to dyamically allocate a listen port at runtime (this is actually specified in rfc4254); bz#1003 ok markus@
|
#
eed45aec |
| 12-Jun-2008 |
dtucker <dtucker@openbsd.org> |
Do not pass "0" strings as ports to getaddrinfo because the lookups can slow things down and we never use the service info anyway. bz #859, patch from YOSHIFUJI Hideaki and John Devitofranceschi. ok
Do not pass "0" strings as ports to getaddrinfo because the lookups can slow things down and we never use the service info anyway. bz #859, patch from YOSHIFUJI Hideaki and John Devitofranceschi. ok deraadt@ djm@
djm belives that the reason for the "0" strings is to ensure that it's not possible to call getaddrinfo with both host and port being NULL. In the case of canohost.c host is a local array. In the case of sshconnect.c, it's checked for null immediately before use.
In dns.c it ultimately comes from ssh.c:main() and is guaranteed to be non-null but it's not obvious, so I added a warning message in case it is ever passed a null.
show more ...
|
#
98211150 |
| 27-Dec-2007 |
dtucker <dtucker@openbsd.org> |
Add a small helper function to consistently handle the EAI_SYSTEM error code of getaddrinfo. Prompted by vgiffin at apple com via bz #1417. ok markus@ stevesk@
|
#
bd9502d5 |
| 03-Aug-2006 |
deraadt <deraadt@openbsd.org> |
almost entirely get rid of the culture of ".h files that include .h files" ok djm, sort of ok stevesk makes the pain stop in one easy step
|
#
1042aed5 |
| 01-Aug-2006 |
stevesk <stevesk@openbsd.org> |
move #include <stdio.h> out of includes.h
|
#
a121c4e0 |
| 26-Jul-2006 |
stevesk <stevesk@openbsd.org> |
move #include <stdlib.h> out of includes.h
|
#
0deb6794 |
| 22-Jul-2006 |
stevesk <stevesk@openbsd.org> |
move #include <string.h> out of includes.h
|
#
41779321 |
| 12-Jul-2006 |
stevesk <stevesk@openbsd.org> |
move #include <netdb.h> out of includes.h; ok djm@
|
#
ea82e68e |
| 11-Jul-2006 |
stevesk <stevesk@openbsd.org> |
move #include <errno.h> out of includes.h; ok markus@
|
#
3e070fac |
| 08-Jul-2006 |
stevesk <stevesk@openbsd.org> |
move #include <sys/socket.h> out of includes.h
|
#
cd3c8003 |
| 05-Jul-2006 |
stevesk <stevesk@openbsd.org> |
move #include <netinet/in.h> out of includes.h; ok deraadt@
|
#
7ef31a41 |
| 25-Mar-2006 |
djm <djm@openbsd.org> |
Put $OpenBSD$ tags back (as comments) to replace the RCSID()s that Theo nuked - our scripts to sync -portable need them in the files
|