Fix memory leak parsing some X.509 certs
Fix potential bad read in parsing ServerHello
Fix ssl_close_notify() with non-blocking I/O
x509_crt_parse() did not increase total_failed on PEM error
Fix compiler warnings on iOS
Don't print uninitialised buffer in ssl_mail_client
Fix net_accept() regarding non-blocking sockets
Fix ssl_read wrt non-Application Data
pkcs5.c: fix dead store: return proper exit status

Found with Clang's `scan-build` tool.

The error value assigned to `ret` is not returned, meaning that the
selftest always succeeds. Ensure the error value is propagated back to
the caller.
ssl_test.c: remove dead store, assign at declaration

Found with Clang's `scan-build` tool.

The store to `ret` is not used, it's overwritten shortly after. Assign
the value of 1 at declaration time instead to silence scan-build.
ssl_mail_client.c: silence warning, check base64_encode() status

Found with Clang's `scan-build` tool.

ssl_mail_client.c does a dead store by assigning the return value of
base64_encode() to `len` and not using the value.  This causes
scan-build to issue a warning.

Instead of storing the return value into `len`, store it to `ret`, since
base64_encode() returns a status code, not a length. Also check if the
return value is nonzero and print an error; this silences scan-build.
timing.c: avoid referencing garbage value

Found with Clang's `scan-build` tool.

When get_timer() is called with `reset` set to 1, the value of
t->start.tv_sec is used as a rvalue without being initialized first.
This is relatively harmless because the result of get_timer() is not
used by the callers when called in "reset mode". However, scan-build
prints a warning.

Silence the warning by only calculating the delta on non-reset runs,
returning zero otherwise.
Update changelog for the last few commits
Accept spaces at EOL/buffer in base64_decode()
Prepared for PolarSSL-1.2.12