Joris Vink 384bc8fdd6 Default to only TLSv1.2 from now on.
Add configuration setting tls_version to specify if you
either want TLSv1.2 or TLSv1.0 or both.

The configuration options ssl_cipher and ssl_dhparam
have changed name to tls_cipher and tls_dhparam. There is
no fallback so you might have to update your configs.
2015-05-06 10:59:43 +02:00
..
2015-05-06 10:59:43 +02:00
2014-10-22 18:48:43 +02:00

This example demonstrates how you can use external libs in your application.

In this case we link against yajl (Yet Another JSON library) in order to parse a JSON string that was POSTed to the server.

Run:

	env LDFLAGS="-lyajl" kore run

Test:

	curl -i -k -d '{"foo":{"bar": "Hello world"}}' https://127.0.0.1:8888

The result should echo back the foo.bar JSON path value: Hello world.

The yajl repo is available @ https://github.com/lloyd/yajl