PolarSSL: Drops polarssl v1.1 support.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
PolarSSL: Fixes error where connection isn't terminated on error.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
PolarSSL: Enable session cache.

Sets session cache on ssl context.
Moves pk_context to local thread context to allow use of polarssl
compiled without threading support.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
PolarSSL: Enable REUSEPORT feature

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Socket: fix array index.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Auth: Rewrite mk_passwd in C (close #131).

This patch drops the mk_passwd python script from auth plugin, by adding an
equivalent C implementation.

The C implementation makes use of Monkey functions, whenever possible, so it
links with Monkey objects.

In order to make the linking possible, some minor modifications had to be made
to the configure script, monkey.c and mk_config.c source files.

Signed-off-by: Vladimir Cernov <gg.kaspersky@gmail.com>
Doc: CONTRIBUTING.md: specify number of chars per line

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Debian: minor updates

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Lib: fix parameters for mk_socket_server() call

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Request: optimize initialization of session_request

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Auth: make mk_passwd work without Monkey internals.

This patch adds a few workarounds to make mk_passwd avoid Monkey
internals about memory allocations and string lines dependencies.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Auth: move mk_passwd code into tools/ for clean build

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
CI: add Travis integration

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
CI: add PolarSSL dependency and compile SSL Plugin

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
CI: disable PolarSSL due to test box problem

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
CI: enable IRC notifications

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
CGI: make sure the Interpreter can be used, otherwise use status 500

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
License: core and plugins are now under the Apache License v2.0

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Doc: update INSTALL

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Virtual Host: add Redirect support (Fix #132).

This patch implements a basic HTTP redirect functionality at
Virtual Host level, when the Redirect key is set on the Virtual
Host configuration file, for every incoming request the server
will perform a HTTP redirect. e.g:

[SERVER]
    Redirect  http://monkey-project.com

Signed-off-by: Eduardo Silva <eduardo@monkey.io>