From c8ecb908dde9760ac2ff55f73ffd02f1a0046f59 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 20 Nov 1998 15:52:48 +0000 Subject: Added socks library support. svn path=/trunk/; revision=2189 --- fetchmail.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index f06f6f26..95848491 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -195,6 +195,11 @@ int main (int argc, char **argv) #if NET_SECURITY printf("+NETSEC"); #endif /* NET_SECURITY */ +#ifdef HAVE_SOCKS + #if HAVE_SOCKS + printf("+SOCKS"); + #endif +#endif /* HAVE_SOCKS */ putchar('\n'); /* this is an attempt to help remote debugging */ @@ -415,6 +420,17 @@ int main (int argc, char **argv) } } +/* Time to initiate the SOCKS library (this is not mandatory: it just + registers the correct application name for logging purpose. If you + have some problem, comment these lines). */ +#ifdef HAVE_SOCKS + #if HAVE_SOCKS +/* Mmmh... I don't like hardcoded application names, + but "fetchmail" is everywhere... */ + SOCKSinit("fetchmail"); + #endif +#endif /* HAVE_SOCKS */ + /* * Maybe time to go to demon mode... */ -- cgit v1.2.3