kore/examples/tls-proxy
Joris Vink c5ce707a91 Introduce build flavors.
Kore applications now get a build.conf which may contain different
build flavors. Each flavor can get its own cflags or ldflags.

This was in parts inspired by #106.

A new cli command has been added:
kore flavor

This command allows you to see all flavors and switch between them.
The kore build command now also takes a -v argument which if given
dumps the used CFLAGS and LDFLAGS out to stdout.

For existing applications the build.conf is automatically generated
next time you run kore build or kore run.

Also fixed a bug in the json_yajl example, sneaky change here.
2016-01-27 21:29:59 +01:00
..
conf Introduce build flavors. 2016-01-27 21:29:59 +01:00
src Properly queue net events for tls-proxy example 2016-01-22 15:07:33 +01:00
.gitignore Add TLS proxy example. 2015-12-02 21:52:26 +01:00
README.md Make the TLS proxy example much better. 2015-12-09 21:29:53 +01:00

README.md

Kore as a TLS-proxy.

Edit src/proxy.c and add your backends to the backends[] data structure.

If you want to reduce attack surface you can build Kore with NOHTTP=1 to completely remove the HTTP component and only run the net code.

Run:

	$ kore run

Test:

	Connect to the server and notice that it proxies data between you
	and your destination.

	$ openssl s_client -connect 127.0.0.1:8888