Commit Graph

1966 Commits

Author SHA1 Message Date
Ted Percival e20183da23 Fix roken getifaddrs for IPv4 & IPv6 on HP-UX & Solaris
HP-UX only returns IPv6 addresses using SIOCGLIFCONF,
SIOCGIFCONF has to be used for IPv4 addresses.
Solaris uses the same code as described in the comments, which
should correctly detect all addresses when running in a zone.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-12-04 20:46:15 -08:00
Ted Percival 54817ef6f3 Revert "Try both v4 and v6 socket types"
It broke detection of IPv4 addresses on HP-UX machines with an IPv6
loopback address. Successful resolution of at least one IPv6 address
would then skip doing a separate IPv4 lookup as required by HP-UX.

This reverts commit 76afc31e9b.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-12-04 20:39:42 -08:00
Ted Percival 7fc0f55b89 Fix duplicate definition of rk_freeifaddrs
Introduced by incorrectly moving an ifdef in commit d00f998.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-12-04 20:07:42 -08:00
Asanka Herath e5ee3e7d60 Merge commit 'lha/master' into win32-port2
* commit 'lha/master':
  glue for strsvisx
  add Allan McRae and Victor Guerra, sort
  Version Heimdal 1.3.2
  Remove fd caching since we don't have unload (deconstructor) support
2009-12-01 16:58:05 -05:00
Brian May 87d30c0e23 glue for strsvisx 2009-11-29 21:47:29 -08:00
Asanka Herath 62454211c0 (lib/roken) Add strerror_r() along with some missing symbols 2009-11-26 01:58:21 -05:00
Asanka Herath 405b7f530a (lib/roken) fk_flock() -> rk_flock() 2009-11-26 01:57:11 -05:00
Asanka Herath eb3dc6fabd (lib/roken) Use strerror_s() to emulate strerror_r() on Windows 2009-11-26 01:56:50 -05:00
Asanka Herath faa7dd7234 (lib/roken) Add ct.c to libroken on Windows 2009-11-25 12:43:16 -05:00
Love Hornquist Astrand 16a890a29c revert merged patches 2009-11-25 08:28:35 -08:00
Love Hornquist Astrand 86f4c66efd Merge branch 'master' into wip/win32-port2 2009-11-25 05:41:14 -08:00
Gabor Gombas 4c37844073 define KRB5_LIB_CALL in generated headers
glob.h did not define ROKEN_LIB_CALL and that caused havoc when it was
included before other roken headers, because those only check for the
existence of ROKEN_LIB_FUNCTION

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-25 05:14:46 -08:00
Asanka Herath b191b1e12f Make kdc build on windows
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-24 22:19:37 -08:00
Love Hornquist Astrand 2204b852a7 Merge branch 'master' into wip/win32-port2 2009-11-24 21:46:10 -08:00
Asanka Herath d00f9984a5 Make roken build on windows
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-24 21:42:02 -08:00
Love Hornquist Astrand f1c0c1bba3 prefix SOCKET symbols with rk_ 2009-11-25 05:29:18 +01:00
Love Hornquist Astrand c6bbdb545b First drop of Windows build infrastructure from Secure Endpoints 2009-11-24 12:12:53 -08:00
Asanka Herath a87447f2b4 Use casts to reduce errors when converting sockaddr* to sockaddr_in or sockaddr_in6 2009-11-24 10:20:19 -08:00
Asanka Herath 7262cbab9c Comment for fd_from_socket() 2009-11-24 10:20:19 -08:00
Asanka Herath f5b69e17f3 NTMakefile update for lib/roken to bulid additional modules and additional tests 2009-11-24 10:20:19 -08:00
Asanka Herath db6994d1f5 Header file ordering 2009-11-24 10:20:18 -08:00
Asanka Herath c0600f525c Add test for mini_inetd() 2009-11-24 10:20:18 -08:00
Asanka Herath 170e8158cb strcpy_s() and strcat_s() aren't drop-in replacements for strlcpy() and strlcat() 2009-11-24 10:20:18 -08:00
Asanka Herath 6c45d5614a Minor refactoring in simple_exec_w32.c 2009-11-24 10:20:18 -08:00
Asanka Herath 8e785a5750 Formatting changes and new mini_inetd() function signatures 2009-11-24 10:20:18 -08:00
Asanka Herath e1932ec0fd If a recv() return EINTR on Windows, don't retry
EINTR (or WSAEINTR) is used to indicate that a blocking call was cancelled
using WSACancelBlockingCall().  Retrying wouldn't be the right thing to
do in this case.
2009-11-24 10:20:18 -08:00
Asanka Herath a11386261d Change mini_inetd() to optionally return the connected socket
This is to support platforms where a socket is not an FD and can't
reliably be bound to the stdin and stdout file descriptors.
2009-11-24 10:20:18 -08:00
Asanka Herath 28023be15a Add setenv() to libroken 2009-11-24 10:17:50 -08:00
Asanka Herath 68e06566cc Use ROKEN_CPP_START and ROKEN_CPP_END instead of __BEGIN_DECLS/__END_DECLS 2009-11-24 10:17:49 -08:00
Asanka Herath 418dd986e5 Add bit-types to roken.h so that we don't need to include krb5-types.h everywhere 2009-11-24 10:17:18 -08:00
Asanka Herath 49b261efdc Formalize the simple_exec*() API 2009-11-24 10:17:18 -08:00
Asanka Herath 7ee1695f12 Add cloexec() and xfree() to libroken 2009-11-24 10:16:49 -08:00
Asanka Herath dc0b2b8648 Missing foo_LIB_FUNCTION fixes 2009-11-24 10:11:15 -08:00
Asanka Herath 6ca5815e3d Socket functions should use SOCKET instead of int 2009-11-24 10:11:15 -08:00
Asanka Herath 59a4c6b369 Missing roken.h declarations for Visual C and Windows 2009-11-24 10:11:15 -08:00
Asanka Herath 483da4ae9b (mini_identd_addrinfo) Use closesocket() to close sockets
Also, set closed sockets to INVALID_SOCKET so that they won't be
closed again.
2009-11-24 10:11:15 -08:00
Asanka Herath 867a1533be (arg_match_long) Use UNREACHABLE() macro to mark up unreachable code 2009-11-24 10:11:15 -08:00
Asanka Herath 4332f79a82 (eread,ewrite) Remove redundant includes
<err.h> is included by <roken.h>.
2009-11-24 10:11:15 -08:00
Asanka Herath b1063ea8fc Initial Windows port 2009-11-24 10:11:14 -08:00
Love Hornquist Astrand fb35ca4026 detect strerror_r and if not there, provide it 2009-10-12 09:01:55 -07:00
Love Hornquist Astrand 39d4a77d6a Disable this for AIX 2009-10-11 18:42:59 -07:00
Love Hornquist Astrand 1e9ec73bbc [HEIMDAL-646] aix
AIX qsort() is unstable and might change the order of the elements
if they are equal, libwind require them to be in the same order as they were
on the input, pull in FreeBSD qsort and use that instead of AIX version.
2009-10-11 15:08:58 -07:00
Love Hornquist Astrand f7bde058ee Include dirfd for AIX too
From Anton Lundin
2009-09-29 08:56:07 -07:00
Love Hornquist Astrand ff5bd1f6c6 use socket_set_ipv6only to bind only to the local v6 socket
This is since we probably will get a v4 adresses a tiny bit later, and
that will fail binding.
2009-09-21 07:59:18 -07:00
Love Hornquist Astrand a5b819e474 remove ROKEN_VERSION 2009-09-20 01:36:29 -07:00
Love Hornquist Astrand d55ee89437 use PACKAGE_VERSION instead 2009-09-20 01:36:09 -07:00
Love Hornquist Astrand 3e2a2de537 Maybe include <ws2tcpip.h>. 2009-09-19 17:55:04 -07:00
Love Hornquist Astrand a64366ba7f fix depenecies for make-roken 2009-09-19 17:25:54 -07:00
Love Hornquist Astrand 7005f1f3f9 process roken.h.in with a perlscript when cross compiling 2009-09-19 16:43:35 -07:00
Love Hornquist Astrand 7b83dfbe72 Fix #if _DECL_ definitions 2009-09-19 16:32:23 -07:00