Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.35 KB

INSTALL.md

File metadata and controls

53 lines (30 loc) · 1.35 KB

connect-proxy

Make socket connection using SOCKS4/5, telnet, HTTP or HTTPS tunnel.


QUICK START:

Unix: gcc -o connect connect.c -lssl -lcrypto

Mingw: x86_64-w64-mingw32-gcc -o connect.c connect.c -I../mingw/openssl-1.1.1g/include -L../mingw/openssl-1.1.1g -lssl -lcrypto -lws2_32


The development version can be found here:

https://github.com/jjkeijser/connect-proxy/

How To Compile

On Linux/UNIX environment:

	gcc -o connect connect.c -lssl -lcrypto

Or using a specific OpenSSL installation:

	gcc -o connect connect.c  -I../openssl-1.1.1g/include 
			-L../openssl-1.1.1g -lssl -lcrypto 

The default CA certificate file is the RHEL/CentOS/Fedora default:

	/etc/pki/tls/certs/ca-bundle.crt

You can specify an alternative location using

	gcc -o connect connect.c -D__DEFAULT_CA_PATH__=\"/some/path\"
			-lssl -lcrypto

(mind the quotes!)

You can build a "Valgrind-clean" version using

	gcc -o connect connect.c -D_VALGRIND -lssl -lcrypto

This version should not report any memory leakage when run against valgrind. Note that "-D_VALGRIND" should not be used when building the MingW version, as it will result in error messages when the connect-proxy program closes.