Author: Frank da Cruz <fdc@columbia.edu>
Columbia University Academic Information Systems, New York City.
- Copyright (C) 1985, 2004,
+ Copyright (C) 1985, 2009,
Trustees of Columbia University in the City of New York.
All rights reserved. See the C-Kermit COPYING.TXT file or the
copyright text in the ckcmai.c module for disclaimer and permissions.
#define NP_K5U2U 18 /* TCP/IP Kerberos 5 User to User */
#define NP_CTERM 19 /* DEC CTERM */
#define NP_LAT 20 /* DEC LAT */
+#define NP_SSL_RAW 21 /* SSL with no Telnet permitted */
+#define NP_TLS_RAW 22 /* TLS with no Telnet permitted */
+
/* others here... */
#ifdef CK_SSL
_PROTOTYP( int netclos, (void) );
_PROTOTYP( int netflui, (void) );
_PROTOTYP( int nettchk, (void) );
+_PROTOTYP( int netxchk, (int) );
_PROTOTYP( int netbreak, (void) );
_PROTOTYP( int netinc, (int) );
_PROTOTYP( int netxin, (int, CHAR *) );
_PROTOTYP( int nettol, (CHAR *, int) );
_PROTOTYP( int nettoc, (CHAR) );
+#ifdef TCPSOCKET
+_PROTOTYP( int gettcpport, (void) );
+_PROTOTYP( int gettcpport, (void) );
+#endif /* TCPSOCKET */
+
/*
SunLink X.25 support by Marcello Frutig, Catholic University,
Rio de Janeiro, Brazil, 1990.
#endif /* bcopy */
#endif /* VMS */
+#ifdef HPUX6
+/* These are missing in HP-UX 6.xx */
+#ifndef bzero
+#define bzero(s,n) memset(s,0,n)
+#endif /* bzero */
+#ifndef bcopy
+#define bcopy(h,a,l) memcpy(a,h,l)
+#endif /* bcopy */
+#endif /* HPUX6 */
+
#ifdef UNIX /* UNIX section */
#ifdef SVR4
#endif /* IF_DOT_H */
#include <in.h>
+#ifdef VMS
+#include <inet.h> /* (SMS 2007/02/15) */
+#endif /* VMS */
#include <netdb.h>
#include <socket.h>
#include "ckvioc.h"
/* Type needed as 5th argument (length) to get/setsockopt() */
+#ifdef TRU64
+/* They say it themselves - this does not conform to standards */
+#define socklen_t int
+#else
+#ifdef HPUX
+#define socklen_t int
+#endif /* HPUX */
+#endif /* TRU64 */
+
+#ifndef SOCKOPT_T
+#ifdef CK_64BIT
+#define SOCKOPT_T socklen_t
+#endif /* CK_64BIT */
+#endif /* SOCKOPT_T */
+
#ifndef SOCKOPT_T
#define SOCKOPT_T int
+#ifdef MACOSX10
+#undef SOCKOPT_T
+#define SOCKOPT_T unsigned int
+#else
#ifdef AIX42
#undef SOCKOPT_T
#define SOCKOPT_T unsigned long
#endif /* NT */
#endif /* PTX */
#endif /* AIX42 */
+#endif /* MACOSX10 */
#endif /* SOCKOPT_T */
/* Ditto for getsockname() */
#ifndef GSOCKNAME_T
+#ifdef CK_64BIT
+#define GSOCKNAME_T socklen_t
+#endif /* CK_64BIT */
+#endif /* GSOCKNAME_T */
+
+#ifndef GSOCKNAME_T
#define GSOCKNAME_T int
+#ifdef MACOSX10
+#undef GSOCKNAME_T
+#define GSOCKNAME_T unsigned int
+#else
#ifdef PTX
#undef GSOCKNAME_T
#define GSOCKNAME_T size_t
#endif /* UNIXWARE */
#endif /* AIX41 */
#endif /* PTX */
+#endif /* MACOSX10 */
#endif /* GSOCKNAME_T */
#endif /* TCPSOCKET */