Merge pull request #1791 from jimis/master

Include misc_lib.h in all tests that use xsnprintf().
Merge pull request #1792 from jimis/master

test.h should always be included first.
Don't use the deprecated API of RSA_generate_key.
tls_generic_test is now passing on Solaris.
Make sure printf("%s") is not getting any NULLs.

ERR_reason_error_string() may return NULL if there is no error, so make
sure we do not crash (such crash occured on Solaris 10).
Sanitisation.
A bit of beautification.
Make sure parent kills the child if it exits prematurely.
Convert malloc()+sprintf() to xasprintf().
De-undead-ify child.
add extra message in test classname , so that it visibly indicate the test that was failing was suppressed to go ahead for compilation, to be used by Junit extractor in jenkins as Junit-4 xdd used by jenkins does not have suppressed categories for test.
Refactor: consolidate the PlatformContext-related externs.

Move their declarations out of cf3.*.h, to a header file of their own,
and move an associated definition from cf3globals.c to classes.c so
that they're all in one place.  Renamed classes.c to systype.c and
named the header systype.h, since this name more faithfully relates to
the actual function of PlatformContext (it says what type of system
we're running on).  Adjust includes and make-files to match.
Spacing changes.

Line up assorted comments tidily, purge dangling hspace, put space
round some operators, kill a blank line.
redmine3974: add "Sun solaris" platform type.

This distinguishes solaris with BSD-style tools in /usr/ucb/ from more
modern versions where the system tools are BSD-compatible.  For now,
there is no difference; this is preparation for adding differences.
Documented what various platforms are a bit more clearly.

Note on the name: although Oracle took over before SunOS 5.10 was out,
the versions with /usr/ucb/ were part of the Sun era; and we need a
simple variant on the name to distinguish the two cases.  Using prefix
OLD has the perennial problem that, some day, what's currently new
shall be old.  It seems unlikely that Sun shall ever be an independent
entity again, so using its name looks like a better choice.
Added an OpenSSL error string wrapper for crypto.c.
Add: Example for locking local users in docs FAQ
Merge pull request #1796 from nickanderson/faq-locked-user

Add: Example for locking local users in docs FAQ
Properly report secondary error message during TLS handshake.
solaris: extend ps command column width and prepend zone name
Merge pull request #1789 from jimis/tls_generic_test-fix

tls_generic_test sanitisation.