aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-02-20 16:32:52 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-02-20 16:32:52 +0000
commitbaf309de6b8b33af9fdcaf368317520b147dc51b (patch)
treef1c2d4f0eba90d76a6f9b608f2cd8979f9e031a0 /socket.c
parent91f1a0e1058f39fc6b75acb77c95eec2d3106a0c (diff)
downloadfetchmail-baf309de6b8b33af9fdcaf368317520b147dc51b.tar.gz
fetchmail-baf309de6b8b33af9fdcaf368317520b147dc51b.tar.bz2
fetchmail-baf309de6b8b33af9fdcaf368317520b147dc51b.zip
Security relabeling.
svn path=/trunk/; revision=1659
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c18
1 files changed, 9 insertions, 9 deletions
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 <net/security.h>
-#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;