Commit Graph

1741 Commits

Author SHA1 Message Date
Love Hornquist Astrand
77e382a2e0 handle that we always include strerror_r.c 2009-12-13 12:03:04 -08:00
Love Hornquist Astrand
5312f4de31 always include strerror_r.c 2009-12-13 12:02:46 -08:00
Love Hornquist Astrand
2f07a7d29d Try handle strerror_r more correct 2009-12-13 12:02:28 -08:00
Love Hornquist Astrand
74527a0bb2 if we have strerror_r, assume its the non standard strerror_r 2009-12-13 11:15:38 -08:00
Love Hornquist Astrand
85ad70e230 fix type for strerror_r 2009-12-13 11:02:46 -08:00
Ted Percival
c93cea7ea6 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.

This adds the code that went missing from commit e20183da.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-12-07 18:40:46 -08:00
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
Brian May
87d30c0e23 glue for strsvisx 2009-11-29 21:47:29 -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
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
c6bbdb545b First drop of Windows build infrastructure from Secure Endpoints 2009-11-24 12:12:53 -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
Love Hornquist Astrand
b657b2e680 Add constant time version of memcmp 2009-08-15 13:24:52 +02:00
Love Hornquist Astrand
076f3b9b8c Provide glue function for dirfd() for Solaris 2009-08-14 11:02:08 +02:00
Love Hornquist Astrand
f1207346f0 Fix printf argument error to errx() 2009-08-14 10:45:17 +02:00
Love Hornquist Astrand
21ff5b84a5 Fix symbols renaming for flock 2009-08-14 05:17:51 +02:00
Love Hornquist Astrand
833ac10aab Use unsigned char instead of u_int32_t 2009-08-14 03:59:24 +02:00
Love Hornquist Astrand
57393f7b86 Add <limits.h> for INT_MAX, needed on Solaris 2009-08-14 03:05:18 +02:00
Love Hornquist Astrand
da61635b75 Quest Software, Inc. and its contributors waive all copyright claims on
the attached getifaddrs test code and dedicate it to the public domain.

Changed to looked to the other heimdal test apps by me
2009-08-07 20:00:09 +02:00