From baf309de6b8b33af9fdcaf368317520b147dc51b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 20 Feb 1998 16:32:52 +0000 Subject: Security relabeling. svn path=/trunk/; revision=1659 --- socket.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index b06fd6e2..1f8733a9 100644 --- a/socket.c +++ b/socket.c @@ -28,9 +28,9 @@ #endif #include "socket.h" -#if NETSEC +#if NET_SECURITY #include -#endif /* NETSEC */ +#endif /* NET_SECURITY */ #if INET6 int SockOpen(const char *host, const char *service, const char *options) @@ -40,24 +40,24 @@ int SockOpen(const char *host, const char *service, const char *options) memset(&req, 0, sizeof(struct addrinfo)); req.ai_socktype = SOCK_STREAM; -#if NETSEC - net_security_operation request[32]; - int requestlen = 32; -#endif /* NETSEC */ +#if NET_SECURITY + net_security_operation request[NET_SECURITY_OPERATION_MAX]; + int requestlen = NET_SECURITY_OPERATION_MAX; +#endif /* NET_SECURITY */ if (i = getaddrinfo(host, service, &req, &ai)) { fprintf(stderr, "fetchmail: getaddrinfo(%s.%s): %s(%d)\n", host, service, gai_strerror(i), i); return -1; }; -#if NETSEC +#if NET_SECURITY if (net_security_strtorequest(options, request, &requestlen)) i = -1; else i = inner_connect(ai, request, requestlen, NULL,NULL, "fetchmail", NULL); -#else /* NETSEC */ +#else /* NET_SECURITY */ i = inner_connect(ai, NULL, 0, NULL, NULL, "fetchmail", NULL); -#endif /* NETSEC */ +#endif /* NET_SECURITY */ freeaddrinfo(ai); return i; -- cgit v1.2.3