Commit Graph

1998 Commits

Author SHA1 Message Date
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
Love Hornquist Astrand
fb63b6d6f0 Don't care about the result from write() in SIGSEGV handler 2009-09-19 14:34:58 -07:00
Love Hornquist Astrand
b59d869489 have HAVE_DECL_ if special and is set to 0 on failure 2009-09-19 10:48:49 -07:00
Love Hornquist Astrand
ac8444c77f More #if -> #ifdef 2009-09-16 20:21:08 -07:00
Love Hornquist Astrand
9da5a02331 More #if -> #ifdef 2009-09-16 20:18:56 -07:00
Love Hornquist Astrand
082b2ecb08 use #ifdef 2009-09-16 16:39:37 -07:00
Love Hornquist Astrand
da642095a7 SUN4 dead, sorry 2009-09-16 16:37:45 -07:00
Love Hornquist Astrand
dec4371492 use !defined instead of ! 2009-09-16 16:30:51 -07:00
Love Hornquist Astrand
52f94f5d42 Remove $Id$ 2009-09-16 15:11:00 -07:00
Love Hornquist Astrand
84b191349c remove more 2009-09-16 15:10:48 -07:00
Love Hornquist Astrand
53c878d313 Remove #if 0 for unused code 2009-09-16 14:55:16 -07:00
Love Hornquist Astrand
c5264d42f4 drop rcsid 2009-09-07 21:24:36 -07:00
Love Hornquist Astrand
ba4909eba5 Link libroken with libcrypt since roken uses crypt() in unix_verify_password
Found by Guillaume Rousse
2009-08-26 15:20:51 -07:00
Anton Lundin
76afc31e9b Try both v4 and v6 socket types
The libroken-getifaddrs fails to retrive the ipv6-address in
solaris-zones but it might connect over ipv6 anyway, and then the kdc
refuses to give a ticket with the cryptic message:

kinit: krb5_get_init_creds: No ENC-TS found

A saner message ends up in the kdc's logfile.

because of a ENXIO when looking for a ipv6-address on the
ipv4-interface, the whole getlifaddrs2 fails and getifaddrs2 is run
instead and it just discovers the ipv4-address.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-08-20 07:51:56 -07:00
Love Hornquist Astrand
599a7e2e50 add ct_memcmp as an exported symbol 2009-08-20 04:34:26 -07:00
Love Hornquist Astrand
5e1ceeddce Include "roken.h" for prototypes 2009-08-19 04:04:16 -07:00
Love Hornquist Astrand
9c95cd27f9 doxygen, make constant time for real. 2009-08-18 13:10:23 +02:00
Love Hornquist Astrand
b9018774d1 basic description of roken 2009-08-18 13:06:05 +02:00
Love Hornquist Astrand
aab1f34689 add doxygen.c 2009-08-18 13:05:36 +02:00