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>