diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-07-30 21:56:07 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-07-30 21:56:07 +0000 |
commit | 4c159159d296e30c59fa780299644d71b2e52d3d (patch) | |
tree | 743bb78daee8b5b60cc8b06971db972ccb42417b /socket.c | |
parent | d8d123a20816b7dff876c865615bfef1a083074e (diff) | |
download | fetchmail-4c159159d296e30c59fa780299644d71b2e52d3d.tar.gz fetchmail-4c159159d296e30c59fa780299644d71b2e52d3d.tar.bz2 fetchmail-4c159159d296e30c59fa780299644d71b2e52d3d.zip |
INCOMPATIBLE: DROP --netsec/-T option, NET_SECURITY macro - the required library is no longer available.
svn path=/trunk/; revision=4192
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 26 |
1 files changed, 2 insertions, 24 deletions
@@ -84,10 +84,6 @@ static int h_errno; #endif /* ndef h_errno */ -#ifdef NET_SECURITY -#include <net/security.h> -#endif /* NET_SECURITY */ - #ifdef HAVE_SOCKETPAIR static char *const *parse_plugin(const char *plugin, const char *host, const char *service) { const char **argvec; @@ -267,15 +263,11 @@ int UnixOpen(const char *path) } #ifdef INET6_ENABLE -int SockOpen(const char *host, const char *service, const char *options, +int SockOpen(const char *host, const char *service, const char *plugin) { struct addrinfo *ai, *ai0, req; int i; -#ifdef NET_SECURITY - void *request = NULL; - int requestlen; -#endif /* NET_SECURITY */ #ifdef HAVE_SOCKETPAIR if (plugin) @@ -289,19 +281,6 @@ int SockOpen(const char *host, const char *service, const char *options, return -1; } -#if NET_SECURITY - if (!options) - requestlen = 0; - else - if (net_security_strtorequest((char *)options, &request, &requestlen)) - goto ret; - - i = inner_connect(ai0, request, requestlen, NULL, NULL, "fetchmail", NULL); - if (request) - free(request); - - ret: -#else /* NET_SECURITY */ #ifdef HAVE_INNER_CONNECT i = inner_connect(ai0, NULL, 0, NULL, NULL, "fetchmail", NULL); if (i >= 0) @@ -332,7 +311,6 @@ int SockOpen(const char *host, const char *service, const char *options, } #endif -#endif /* NET_SECURITY */ freeaddrinfo(ai0); @@ -349,7 +327,7 @@ int SockOpen(const char *host, const char *service, const char *options, #endif #endif /* HAVE_INET_ATON */ -int SockOpen(const char *host, int clientPort, const char *options, +int SockOpen(const char *host, int clientPort, const char *plugin) { int sock = -1; /* pacify -Wall */ |