Config: fix trace message for error pages

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Merge branch 'master' of ssh://git.monkey-project.com/srv/git/monkey
Sched: Fix a segfault when iterating timeouts
utils: Fix a valgrind warning about uninitialized data
Merge branch 'master' of ssh://git.monkey-project.com/srv/git/monkey
Fix #182: DoS bug on headers parser.

This patch fix the root cause for a problem described in Ticket #182,
actually if a header is malformed like a Header Key without a value, the
ToC parser used to continue processing the next header line.

The solution applied is to improve the ToC generator where it adds extra
validations for at least one colon and forcing each header line to contain
a value or empty space, otherwise the server will trigger a Bad Request
response to the client and close the connection.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
auth: Reject usernames if length does not match.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
PolarSSL: TransportLayer config must exists

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
monkey.conf: keys description ends with ':'

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Merge branch 'master' of ssh://git.monkey-project.com/srv/git/monkey
Liana/PolarSSL: add listen address to error message

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
request: Remove unused session_request member virtual_user.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
auth: Fix bug where failed base64_decode() cause segfault.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
auth: Fix buffer overflow when loading user file.

The third parameter of strncpy(3) was badly calculated.
For each entry in the users file the parameter was the length from start
of file until end of username, when it should be calculated from current
buffer position.
This causes writes outside buffer when the user file is larger than 2 *
sizeof(struct user).

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
auth: Ignore too large user entries.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>