[tin-dev] [PATCH] resurrect --with-socks[5]

Urs Janßen urs at tin.org
Wed Aug 9 09:23:52 CEST 2023


The following allowed me to link against libsocksd0 (from
https://www.inet.no/dante) as "libsocks" or "libsocks5"
(ln -sf libsocksd.so.0 libsocks5.so.0, ... required) 
via --with-socks or --with-socks5 and with a minimal
/etc/dante.conf (ip is hetzners open socks proxy)

 route {
  from: 0.0.0.0/0  to: 0.0.0.0/119  via: 138.201.139.252 port = 12344
  protocol: tcp
  proxyprotocol: socks_v4 socks_v5
  method: none
 }

connect to a newsserver.

=== modified file 'include/tin.h'
--- old/include/tin.h	2023-07-25 04:17:45 +0000
+++ new/include/tin.h	2023-08-09 06:56:44 +0000
@@ -2449,15 +2449,19 @@
  * for the stdio functions as well as the network functions.
  */
 #ifdef USE_SOCKS5
-#	define SOCKS
+#	ifndef SOCKS /* autoconf.h */
+#		define SOCKS
+#	endif /* !SOCKS */
 #	include <socks.h>
 /* socks.h doesn't define prototypes for use */
-extern size_t read(int, char *, size_t);
 extern int dup(int);
 extern int close(int);
 extern int fprintf(FILE *, const char *, ...);
 extern int fclose(FILE *);
-extern struct tm *localtime(time_t *);
+#if 0
+	extern size_t read(int, char *, size_t);
+	extern struct tm *localtime(const time_t *);
+#endif /* 0 */
 #endif /* USE_SOCKS5 */
 
 #ifdef SETVBUF_REVERSED



More information about the tin-dev mailing list