+2002-06-18 Ken Raeburn <raeburn@mit.edu>
+
+ * sendauth.c (ECONNABORTED): Don't define here now that it's
+ defined in port-sockets.h.
+
2002-06-18 Danilo Almeida <dalmeida@mit.edu>
* princ_comp.c (krb5_realm_compare), auth_con.c
* Now, read back a byte: 0 means no error, 1 means bad sendauth
* version, 2 means bad application version
*/
-#ifndef ECONNABORTED
-#define ECONNABORTED WSAECONNABORTED
-#endif
if ((len = krb5_net_read(context, *((int *) fd), (char *)&result, 1)) != 1)
return((len < 0) ? errno : ECONNABORTED);
if (result == 1)
2002-06-18 Ken Raeburn <raeburn@mit.edu>
+ * changepw.c (ECONNABORTED, ECONNREFUSED, EHOSTUNREACH,
+ ETIMEDOUT): Don't define here now that they're defined in
+ port-sockets.h.
+ * read_msg.c (ECONNABORTED): Ditto.
+
* sendto_kdc.c: Include sys/timeb.h on Windows.
(ENABLE_TCP): Macro deleted, always enable code.
(krb5_sendto_kdc): Don't try UDP if outgoing message is 1500
#include <stdio.h>
#include <errno.h>
-/* Win32 defines. */
-#if defined(_WIN16) || (defined(_WIN32) && !defined(__CYGWIN32__))
-#ifndef ECONNABORTED
-#define ECONNABORTED WSAECONNABORTED
-#endif
-#ifndef ECONNREFUSED
-#define ECONNREFUSED WSAECONNREFUSED
-#endif
-#ifndef EHOSTUNREACH
-#define EHOSTUNREACH WSAEHOSTUNREACH
-#endif
-#ifndef ETIMEDOUT
-#define ETIMEDOUT WSAETIMEDOUT
-#endif
-#endif /* _WIN32 && !__CYGWIN32__ */
-
#ifndef GETSOCKNAME_ARG3_TYPE
#define GETSOCKNAME_ARG3_TYPE int
#endif
#include "k5-int.h"
#include <errno.h>
-#ifndef ECONNABORTED
-#define ECONNABORTED WSAECONNABORTED
-#endif
-
krb5_error_code
krb5_read_message(context, fdp, inbuf)
krb5_context context;