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.
Added an OpenSSL error string wrapper for crypto.c.
Properly report secondary error message during TLS handshake.
Merge pull request #1789 from jimis/tls_generic_test-fix

tls_generic_test sanitisation.