Love Hornquist Astrand
052d34e611
define a socket type, krb5_socket_t
2009-11-24 13:36:03 -08:00
Love Hornquist Astrand
0c725419db
Merge branch 'master' into wip/win32-port2
2009-11-24 12:36:04 -08:00
Asanka Herath
1d624801c1
Compile on windows
...
- include <stdlib.h>
- export file
- fill out structs to make it compile with visual studio
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-11-24 12:33:37 -08:00
Love Hornquist Astrand
d48ac21325
Merge branch 'master' into wip/win32-port2
2009-11-24 12:31:00 -08:00
Asanka Herath
c9fdd77bc8
probe exported symbols
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-11-24 12:30:24 -08:00
Asanka Herath
d6f90d3ef5
probe exported symbols
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-11-24 12:30:17 -08:00
Love Hornquist Astrand
5a10fdf3d7
Merge branch 'master' into wip/win32-port2
2009-11-24 12:13:08 -08: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
81b70c3488
Copy cc_ops and kt_types when copying a krb5_context in krb5_copy_context()
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
480acc60ec
Build libwind as a .dll by default
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
56afc4da1a
Build libheimntlm as a .dll by default
2009-11-24 10:19:49 -08:00
Asanka Herath
81d091baa8
Add tests for the new path tokens
2009-11-24 10:19:49 -08:00
Asanka Herath
39f6fc00f8
krb5_net_read(), krb5_net_write() nad krb5_storage_from_fd() should accept both sockets and fds
...
When a socket and a file descriptor aren't interchangeable, these
functions should be able to determine whether it has received one or
the other and act accordingly.
This assumes that a fd can be cast into a SOCKET.
2009-11-24 10:19:49 -08:00
Asanka Herath
67e1aa5109
Need a DllMain in libkrb5 for path resolution
2009-11-24 10:19:49 -08:00
Asanka Herath
6073ca9a28
Add portable path tokens
...
Add USERCONFIG, COMMONCONFIG, LIBDIR, BINDIR, LIBEXEC, SBINDIR tokens.
2009-11-24 10:19:49 -08:00
Asanka Herath
93445a8133
Don't use Windows specific path tokens in lib/krb5/config_file.c
2009-11-24 10:19:49 -08:00
Asanka Herath
4634af9078
Consistent use of SOCKET data type in lib/krb5
2009-11-24 10:19:49 -08:00
Asanka Herath
bd669f10eb
Build dll.obj and don't build KRB4 specific targets if not building KRB4
2009-11-24 10:18:20 -08:00
Asanka Herath
c6b8fad5dc
Consistency updates for lib/kadm5 and don't check fd_set size if it's not necessary
2009-11-24 10:18:20 -08:00
Asanka Herath
a79bf3464d
Build libhx509 as a .dll by default
2009-11-24 10:18:20 -08:00
Asanka Herath
204789d408
Build libhdb as a .dll by default
2009-11-24 10:18:19 -08:00
Asanka Herath
348bd51d0a
Build libhrypto as a .dll by default
2009-11-24 10:18:19 -08:00
Asanka Herath
988792b3f7
Build system update for lib/gssapi and new exports.def
2009-11-24 10:18:19 -08:00
Asanka Herath
59ae14e814
Consistency fixes for lib/com_err
2009-11-24 10:18:19 -08:00
Asanka Herath
a70de39e9c
Update exports.def and build rules for lib/asn1
...
The previous rules didn't export all the symbols we needed.
2009-11-24 10:18:19 -08:00
Asanka Herath
19185e136f
NTMakefile for kdc and exports.def for libkdc
2009-11-24 10:18:19 -08:00
Asanka Herath
6aa28bcc91
Don't use SIGPIPE, SIGXCPU or geteuid() if they aren't available
...
in kdc/main.c
2009-11-24 10:18:19 -08:00
Asanka Herath
fa8a92471c
Don't build KRB4 specific code if we aren't supporting KRB4
2009-11-24 10:18:19 -08:00
Asanka Herath
8768960156
Don't rely on Posix like links in kdc
2009-11-24 10:18:19 -08:00
Asanka Herath
d47c01083b
Use SOCKET data type instead of ints for sockets in kdc
2009-11-24 10:18:19 -08:00
Asanka Herath
4583cc514d
NTMakefile for kadmin
2009-11-24 10:17:51 -08:00
Asanka Herath
a1942c1bad
Use SOCKET data type instead of ints for sockets in kadmin
...
Also use the new mini_inetd() API
2009-11-24 10:17:51 -08:00
Asanka Herath
14ae739820
Don't rely on Posix links in kadmin/stash.c
2009-11-24 10:17:51 -08:00
Asanka Herath
b79445f4e4
Config changes
...
- Use custom implementations for strlcat() and strlcpy() because strcpy_s()
and strcat_s() have different behavior.
- Define NO_POSIX_LINKS to indicate that link/unlink operations don't
quite work the way they should. I.e. in-use files can't be replaced that
way.
- Change definitions of directory macros to use correct path tokens.
- Define NO_INETD to indicate that there's no inetd
2009-11-24 10:17:51 -08:00
Asanka Herath
0b0ad49382
Complete NTMakefile for admin
2009-11-24 10:17:50 -08:00
Asanka Herath
ef1501d081
Also include data when listing externals in an .OBJ file
2009-11-24 10:17:50 -08:00
Asanka Herath
aa058a6a63
Typos and fixes for init_c.c to not include stuff we don't have
2009-11-24 10:17:50 -08:00
Asanka Herath
41afd0a139
Locale.h and setenv()
2009-11-24 10:17:50 -08:00
Asanka Herath
06179e66ad
Additional include files for krb5
2009-11-24 10:17:50 -08:00
Asanka Herath
28023be15a
Add setenv() to libroken
2009-11-24 10:17:50 -08:00